ML Tutorial III
ML Tutorial III
1. Consider a scenario where grade obtained by a student depends on the difficulty of the
course and how intelligent the student is. Students got admission on GRE based on his
intelligence. Finally, instructor issues the recommendation letter based on the grade
obtained in the subject. Draw the causal graph.
2. Here is a graphical model that models the grades obtained by a student in a course and its
implications. Difficulty represents the difficulty of the course and intelligence is an
indicator of how intelligent the student is, GRE represents the GRE scores of the student
and Letter presents the event of the student receiving a letter of recommendation from the
faculty teaching the course. The random variables given in the model are modeled as
discrete variables
P(E0|I0) = 0.95 P(E0|I1) = 0.2 P(E1|I0) = 0.05 P(E1|I1) = 0.8 P(L0|G0) = 0.1 P(L1|G0) =
0.9 P(L0|G1) = 0.4 P(L1|G1) = 0.6 P(L0|G2) = 0.99 P(L1|G2) = 0.01
3. Consider the following figure for clusters found after performing flat clustering:(k-Means)
on a set of documents. The gold standard for each document is produced by human judges.
Each document belongs to one of the three gold standard classes (x, o and +). Calculate
the NMI and Purity quality measures for the above clustering.
4. Consider a perceptron network with one hidden layer having three units. The output layer
consists of one unit. Each input is represented via four features. Learning rate is 0.01 and
it optimizes the squared error loss function. Now apply it over following dataset and run
for six rounds using gradient descent and stochastic gradient descent. Show the updated
parameters after each round. Assume initial values of parameters are 0.5.
Sr. X0 X1 X2 X3 Price
No
7. Consider a two class classification problem [+1,-1] over a sample of males and females.
The confusion matrix is given below:
True Label
Predicted Label +1 -1
+1 70 30
-1 40 60
The confusion matrix for the male class is as follows:
True Label
Predicted Label +1 -1
+1 50 10
-1 35 55
Does this satisfy equal opportunity property?