uiz Space

May 2025 term · Machine Learning Techniques · BSCS2007

Machine Learning Techniques Quiz 1: 13 July 2025 (May 2025 term)

The IIT Madras BS Machine Learning Techniques (MLT) Quiz 1 paper sat on 13 Jul 2025, in the May 2025 term: 15 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
15
Marks
40
Duration
120 min
MCQ
8
MSQ
2
Numerical
5

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD2 13 July 2025 · No negative marking.

Question 1

+2 marksOne correct option

How does K-means++ algorithm enhance the initialization process as compared to the standard K- means algorithm?

  1. A

    It ensures the algorithm converges in a fixed number of iterations.

  2. B

    It improves centroid initialization by spreading them out, leading to better separated clusters.

  3. C

    It automatically calculates the best value of K.

  4. D

    It removes the need to run the algorithm multiple times.

Show answer

Correct answer

  • B

    It improves centroid initialization by spreading them out, leading to better separated clusters.

Question 2

+2 marksOne correct option
  1. A

    2

  2. B

    3

  3. C

    5

  4. D

    4

Show answer

Correct answer

  • B

    3

Question 3

+4 marksOne correct option

Let k:Rd×Rd→Rk : \mathbb{R}^d \times \mathbb{R}^d \to \mathbb{R} be a valid kernel function such that k(x,y)=ϕ(x)Tϕ(y)k(x, y) = \phi(x)^T\phi(y), where ϕ:Rd→RD\phi : \mathbb{R}^d \to \mathbb{R}^D, where d<Dd < D. Define

k1(x,y)=100k(x,y)k(x,x)k(y,y).k_1(x, y) = \frac{100k(x, y)}{\sqrt{k(x, x)k(y, y)}}.

Find ϕ1:Rd→RD\phi_1 : \mathbb{R}^d \to \mathbb{R}^D such that k1(x,y)=ϕ1(x)Tϕ1(y)k_1(x, y) = \phi_1(x)^T\phi_1(y).

Note: ∣∣x∣∣2=xTx||x||_2 = \sqrt{x^Tx}.

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

Correct answer

  • C

Question 4

+4 marksOne correct option

Kernel PCA with a polynomial kernel is applied on the following dataset with three features:

X=[100100].X = \begin{bmatrix} 1 & 0 \\ 0 & 1 \\ 0 & 0 \end{bmatrix}.

The kk-th principal component is given by wk=ϕ(X)αkw_k = \phi(X)\alpha_k, where ϕ\phi is the transformation mapping corresponding to the kernel k(xi,xj)=(1+xiTxj)2k(x_i, x_j) = (1 + x_i^Tx_j)^2 for some αk∈Rn\alpha_k \in \mathbb{R}^n. Find the centered kernel matrix KcK^c.

Hint: kijc=kij−θi1jT−1iθjT+P1i1jTk_{ij}^c = k_{ij} - \theta_i\mathbb{1}_j^T - \mathbb{1}_i\theta_j^T + P\mathbb{1}_i\mathbb{1}_j^T, where θi=1n∑k=1nkik,∀ i,P=1n2∑i,jkij\theta_i = \frac{1}{n}\sum_{k=1}^{n} k_{ik}, \forall\, i, P = \frac{1}{n^2}\sum_{i,j} k_{ij}.

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

Correct answer

  • B

Question 5

+3 marksOne correct option

You are presented with a dataset that has latent variables that influences your data. You are asked to use Expectation-Maximization algorithm to best capture the data. How would you define the steps in the EM (Expectation and Maximization) algorithm?

  1. A

    E-step: Estimate the latent variables in the dataset, M-step: Maximize the likelihood over the model parameters.

  2. B

    E-step: Estimate the number of latent variables in the dataset, M-step: Maximize the likelihood over the model parameters.

  3. C

    E-step: Estimate the likelihood over the model parameters, M-step: Maximize the number of latent variables in the dataset.

  4. D

    E-step: Estimate the likelihood over the model parameters, M-step: Maximize the number of parameters in the model.

Show answer

Correct answer

  • A

    E-step: Estimate the latent variables in the dataset, M-step: Maximize the likelihood over the model parameters.

Question 6

+3 marksOne or more correct options

Which of the following statements is/are true?

Select all that apply.

  1. A

    EM algorithm converges to a global optimum.

  2. B

    Lloyd’s algorithm converges to a local optimum.

  3. C

    Poor initialization does not affect the clusters produced by EM algorithm.

  4. D

    Poor initialization leads to a slower convergence of Lloyd’s algorithm.

  5. E

    Lloyd’s algorithm is sensitive to the number of clusters (k).

Show answer

Correct answers

  • B

    Lloyd’s algorithm converges to a local optimum.

  • D

    Poor initialization leads to a slower convergence of Lloyd’s algorithm.

  • E

    Lloyd’s algorithm is sensitive to the number of clusters (k).

Question 7

+3 marksOne or more correct options

For a linear regression problem, which among the following are true? Select all that apply.

Select all that apply.

  1. A

    Gradient descent will converge to a global minimum.

  2. B

    Gradient descent will converge to a local minimum (which is not a global minimum).

  3. C

    Stochastic gradient descent is guaranteed to converge to a global minimum.

  4. D

    Gradient descent will take lesser number of iterations to converge to a local minimum than stochastic gradient descent.

Show answer

Correct answers

  • A

    Gradient descent will converge to a global minimum.

  • D

    Gradient descent will take lesser number of iterations to converge to a local minimum than stochastic gradient descent.

Question 8

+3 marksNumerical answer
Show answer

Correct answer: 0.125 (accepted within ±0.005)

Question 9

+3 marksNumerical answer

Let X1,X2,…,XnX_1, X_2, \ldots, X_n be an i.i.d. sample drawn from a Pareto distribution with the following probability density function:

f(x∣θ)=θx−θ−1,x≥1,  θ>1.f(x \mid \theta) = \theta x^{-\theta-1}, \quad x \geq 1, \; \theta > 1.

You are given the following sample of 5 observations:

X={2.5, 1.8, 3.2, 2.0, 2.7}.X = \{2.5,\ 1.8,\ 3.2,\ 2.0,\ 2.7\}.

What is the maximum likelihood estimator of θ\theta for the above sample? Enter the answer correct to three decimal places.

Show answer

Correct answer: 1.1485 (accepted within ±0.0015)

Question 10

+2 marksNumerical answer
Show answer

Correct answer: 5250

Question 11

+2 marksOne correct option

Based on the above data, answer the given subquestions.

Which of the following represents the covariance matrix C?

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

Correct answer

  • B

Question 12

+2 marksNumerical answer

Based on the above data, answer the given subquestions.

What is the variance of the dataset along the first principal component?

Show answer

Correct answer: 1

Question 13

+3 marksOne correct option

Based on the above data, answer the given subquestions.

Find the residues after projecting the data points onto the first principal component.

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

Correct answer

  • B

Question 14

+3 marksOne correct option

Consider the following dataset with feature vector x\mathbf{x} and label yy:

x\mathbf{x}yy
[41]T\begin{bmatrix} 4 & 1 \end{bmatrix}^T2
[28]T\begin{bmatrix} 2 & 8 \end{bmatrix}^T−14-14
[14]T\begin{bmatrix} 1 & 4 \end{bmatrix}^T−7-7
[32]T\begin{bmatrix} 3 & 2 \end{bmatrix}^T−1-1

Based on the above data, answer the given subquestions.

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

Correct answer

  • B

Question 15

+1 markNumerical answer

Consider the following dataset with feature vector x\mathbf{x} and label yy:

x\mathbf{x}yy
[41]T\begin{bmatrix} 4 & 1 \end{bmatrix}^T2
[28]T\begin{bmatrix} 2 & 8 \end{bmatrix}^T−14-14
[14]T\begin{bmatrix} 1 & 4 \end{bmatrix}^T−7-7
[32]T\begin{bmatrix} 3 & 2 \end{bmatrix}^T−1-1

Based on the above data, answer the given subquestions.

Find the mean squared error for the training dataset.

Show answer

Correct answer: 0