CSIT
CSIT
IIIT Vadodara
B.Tech. CSE and IT
Mid-sem Remote Exam Winter 2020-21
CS/IT 308 - Machine Learning
Total marks: 10 Time Allowed: 40 minutes
5. Stop the algorithm, if there is no change in the class assignment for all the
data points; otherwise, compute the new cluster centers µi and go to step 2.
Given 8 data points in R2 are: x1 = [−2, −1]T , x2 = [−2, +1]T , x3 =
[−2, +2]T , x4 = [−1, −1]T , x5 = [+1, −1]T , x6 = [+1, +1]T , x7 = [+1, +2]T ,
and x8 = [+2, +1]T .
Now, classify the data points using µ1 = [+1, +1]T , µ2 = [−2, +1]T , and
µ3 = [−1, −1]T .
2. (4 marks) Consider a 2D Gaussian mixture probability density function
1 1 1
p = N2 (µ1 , Σ) + N2 (µ2 , Σ) + N2 (µ3 , Σ). (1)
3 3 3
T T T 1 0
Given µ1 = [0 0] , µ2 = [0 1] , µ3 = [2 0] , and Σ = . It is clear that
0 1
P1 = P2 = P3 = 31 , and number of classes M = 3.
(a) Following observations are drawn from equation (1): x1 = [1 1]T , x2 =
[2 1]T , x3 = [1 2]T , x4 = [−1 −1]T , x5 = [−2 1]T , x6 = [2 −1]T . Classify
the observations using the Bayes’ decision rule.
(b) If the probability function (1) is changed to
p = 0.4 N2 (µ1 , I) + 0.6 N2 (µ3 , I), (2)
then check whether the decision of classification for observations x4 and
x6 remain the same as done in part (a) or not.
1
CS/IT 308
3. (2 marks) Consider a support vector machine (SVM) and following two class
C1 , and C2 training data for two features (x1 , x2 ): C1 = {(1, 1), (2, 2), (2, 0)},
and C2 = {(0, 0), (1, 0), (0, 1)}. Now, (a) Plot these six training points, and
construct (by inspection) the weight vector for the optimal hyperplane, and
the optimal margin, and (b) What are the support vectors?