uiz Space

September 2025 term · Machine Learning Techniques · BSCS2007

Machine Learning Techniques Quiz 1: 26 October 2025 (September 2025 term)

The IIT Madras BS Machine Learning Techniques (MLT) Quiz 1 paper sat on 26 Oct 2025, in the September 2025 term: 14 questions for 40 marks in 120 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
14
Marks
40
Duration
120 min
MSQ
5
Numerical
6
MCQ
3

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD2 26 Oct 2025 · No negative marking.

Question 1

+2 marksOne or more correct options

Which among the following is true with respect to the Lloyds’ algorithm?

Select all that apply.

  1. A

    It always converges.

  2. B

    It may fail to converge for an initialization while it may converge for other initialization.

  3. C

    It is sensitive to outliers.

  4. D

    The solution produced is always the optimal.

Show answer

Correct answers

  • A

    It always converges.

  • C

    It is sensitive to outliers.

Question 2

+4 marksOne or more correct options

Select all that apply.

  1. A

    There will be 50 non-zero eigenvalues of the covariance matrix.

  2. B

    There will be 6 non-zero eigenvalues of the covariance matrix.

  3. C

    Using the first 5 principal components, the dataset can be reconstructed with zero residue.

  4. D

    The variance captured by the top 6 principal components equals the total variance of the dataset.

Show answer

Correct answers

  • B

    There will be 6 non-zero eigenvalues of the covariance matrix.

  • D

    The variance captured by the top 6 principal components equals the total variance of the dataset.

Question 3

+4 marksOne or more correct options

Consider the dataset consisting of the following points:

(0,0),  (0,2),  (2,0),  (2,2).(0, 0), \; (0, 2), \; (2, 0), \; (2, 2).

We want to run the KK-means++ algorithm with K=2K = 2. Suppose the first cluster center chosen is (0,0)(0, 0). Which of the following statements are correct?

Hint: The score of a datapoint xx is given by S(x)=min⁡j=1,2,…,l−1(∣∣x−μj0∣∣2)S(x) = \min_{j=1,2,\ldots,l-1} (||x - \mu_j^0||^2), where μj0\mu_j^0 is the initial cluster center.

Select all that apply.

  1. A

    The points (0, 2), (2, 0), and (2, 2) have the equal probability of being chosen as the second cluster center.

  2. B

    The probability of selecting (2, 2) as the second cluster center is twice that of selecting (0, 2).

  3. C

    If (2, 2) is chosen as the second cluster center, the algorithm will always converge in one iteration.

  4. D

    The tie-breaking rule will affect the final cluster centers.

Show answer

Correct answers

  • B

    The probability of selecting (2, 2) as the second cluster center is twice that of selecting (0, 2).

  • C

    If (2, 2) is chosen as the second cluster center, the algorithm will always converge in one iteration.

  • D

    The tie-breaking rule will affect the final cluster centers.

Question 4

+4 marksOne or more correct options

Suppose that 100 items are sampled from a manufacturing process, where three items are found to be defective. Consider Beta(a,b)\text{Beta}(a, b) as a prior distribution for the proportion θ\theta of defective items with the following parameters:

  • a=1,b=1a = 1, b = 1
  • a=0.5,b=0.5a = 0.5, b = 0.5

If posterior mean is used as the estimate for θ\theta, then which of the following is correct?

Hint: Expectation of a Beta(a,b)\text{Beta}(a, b) is given by a(a+b)\frac{a}{(a + b)}.

Select all that apply.

  1. A

    Posterior mean for Beta(1, 1) is 0.039.

  2. B

    Posterior mean for Beta(1, 1) is 0.03.

  3. C

    Posterior mean for Beta(0.5, 0.5) is 0.025.

  4. D

    Posterior mean for Beta(0.5, 0.5) is 0.034.

Show answer

Correct answers

  • A

    Posterior mean for Beta(1, 1) is 0.039.

  • D

    Posterior mean for Beta(0.5, 0.5) is 0.034.

Question 5

+3 marksOne or more correct options

Which of the following are valid kernel functions? Select all that apply.

Select all that apply.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answers

  • A
  • B
  • D

Question 6

+3 marksNumerical answer

Consider a mean-centered dataset consisting of 150 patients from the health-care domain with 6 features. The dataset is represented as a 150×6150 \times 6 matrix XX. PCA is performed on this dataset, and it is observed that the reconstruction error (residue) vanishes completely after kk components. A domain expert provides the following insights about the columns of XX, denoted by c1,c2,…,c6c_1, c_2, \ldots, c_6:

(a) The set {c1,c2,c3}\{c_1, c_2, c_3\} is linearly independent.

(b) The following relationships hold:

  • c4=2c1−c2c_4 = 2c_1 - c_2
  • c5=c2+c3c_5 = c_2 + c_3
  • c6=4c1−3c3c_6 = 4c_1 - 3c_3

What is the value of kk?

Show answer

Correct answer: 3

Question 7

+3 marksNumerical answer

Consider a dataset X∈Rd×nX \in \mathbb{R}^{d \times n} with sample size n=100n = 100 (i.e., XX has dd features and 100 examples), where d≫100d \gg 100. Suppose the first five eigenvalues of the matrix XTXX^TX are:

10, 5, 3, 2, 1,10,\ 5,\ 3,\ 2,\ 1,

and all remaining eigenvalues are zero.

What is the proportion of variance explained along the first principal component? Enter your answer correct to two decimal places.

Show answer

Correct answer: 0.475 (accepted within ±0.025)

Question 8

+2 marksOne correct option

Based on the above data, answer the given subquestions.

What is the covariance matrix of the dataset?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 9

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

If standard PCA is performed on this dataset, what is the variance along the first principal component? Enter the answer correct to one decimal place.

Show answer

Correct answer: 4.5

Question 10

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

If standard PCA is performed on this dataset, what is the variance along the second principal component? Enter the answer correct to one decimal place.

Show answer

Correct answer: 0.5

Question 11

+3 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • B

Question 12

+3 marksNumerical answer

Based on the above data, answer the given subquestions.

Suppose at the tt-th iteration of the EM algorithm, the parameters are:

π1=0.3,π2=0.7,μ1=2,μ2=3,σ12=1,σ22=1.\pi_1 = 0.3, \quad \pi_2 = 0.7, \quad \mu_1 = 2, \quad \mu_2 = 3, \quad \sigma_1^2 = 1, \quad \sigma_2^2 = 1.

The densities of the data points given each mixture component are provided below:

xix_if(xi∣zi=1)f(x_i \mid z_i = 1)f(xi∣zi=2)f(x_i \mid z_i = 2)
10.2420.054
100.3990.242
200.2420.399

What is the value of λ11\lambda_1^1? Enter your answer correct to two decimal places.

Show answer

Correct answer: 0.66 (accepted within ±0.02)

Question 13

+3 marksOne correct option

Based on the above data, answer the given subquestions.

Perform K-means clustering with K = 2 and initial cluster centers at (−2, 3) and (2,−1). What are the final means of clusters after convergence?

  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • A

Question 14

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

Suppose we introduce a new data point (0, 0) to the existing dataset and perform K means with the same initial cluster centers. How many iterations would it require now for convergence?

Show answer

Correct answer: 1