uiz Space

May 2025 term · Machine Learning Techniques · BSCS2007

Machine Learning Techniques End Term: 31 August 2025, Set QDD1 (May 2025 term)

The IIT Madras BS Machine Learning Techniques (MLT) End Term paper sat on 31 Aug 2025, in the May 2025 term, set QDD1: 17 questions for 50 marks in 180 minutes. Every question is below with its answer. Take it as a timed mock test to be marked, or read it through first.

Questions
17
Marks
50
Duration
180 min
MCQ
7
MSQ
4
Numerical
6

Updated

Official paper: IIT M DIPLOMA FN EXAM QDD1 31 Aug 2025 · No negative marking.

Question 1

+3 marksOne correct option
  1. A

    PCA has reduced the dimensionality of the dataset because the combinations of features are de-correlated.

  2. B

    PCA has not reduced the dimensionality of the dataset because all principal components are retained.

  3. C

    PCA always reduces the dimensionality of the dataset regardless of the number of components retained.

  4. D

    PCA can never be used for dimensionality reduction.

Show answer

Correct answer

  • B

    PCA has not reduced the dimensionality of the dataset because all principal components are retained.

Question 2

+3 marksOne correct option
  1. A
  2. B
  3. C
  4. D
Show answer

Correct answer

  • C

Question 3

+4 marksOne correct option

Consider clustering 1D data with a mixture of 2 Gaussians using the EM algorithm. You are given the data points x1=1,x2=10,x3=20x_1 = 1, x_2 = 10, x_3 = 20.

Suppose the output of the E-step is as follows:

λ11=1,  λ21=0λ12=0.4,  λ22=0.6λ13=0.1,  λ23=0.9,\begin{gathered} \lambda_1^1 = 1, \; \lambda_2^1 = 0 \\ \lambda_1^2 = 0.4, \; \lambda_2^2 = 0.6 \\ \lambda_1^3 = 0.1, \; \lambda_2^3 = 0.9, \end{gathered}

where λCi\lambda_C^i denotes the probability of the ii-th data point to be in cluster CC. After performing the M-step for the means μ1\mu_1 and μ2\mu_2, what are the updated means?

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

Correct answer

  • D

Question 4

+2 marksOne correct option
  1. A

    40

  2. B

    60

  3. C

    100

  4. D

    1

Show answer

Correct answer

  • C

    100

Question 5

+3 marksOne or more correct options

Which among the following is TRUE for k-NN algorithm? Select all that apply.

Select all that apply.

  1. A

    1-nearest neighbour is sensitive to outliers.

  2. B

    k-NN can only be applied to a classification problem.

  3. C

    As k increases, the model is more likely to overfit.

  4. D

    The bias increases with the increase in the value of k.

  5. E

    The variance increases with the increase in the value of k.

Show answer

Correct answers

  • A

    1-nearest neighbour is sensitive to outliers.

  • D

    The bias increases with the increase in the value of k.

Question 6

+3 marksOne or more correct options

Select all that apply.

  1. A

    30

  2. B

    120

  3. C

    50

  4. D

    160

Show answer

Correct answers

  • A

    30

  • B

    120

  • C

    50

Question 7

+3 marksOne or more correct options

Select all that apply.

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

Correct answers

  • B
  • D

Question 8

+2 marksOne or more correct options

With respect to the Lloyd’s algorithm, choose the correct statements:

Select all that apply.

  1. A

    The partition configurations cannot repeat themselves.

  2. B

    After doing the reassignments (consider at least one point reassigned to the new cluster), we might get the same means for all clusters.

  3. C

    Objective function after making the re-assignments strictly reduces.

  4. D

    Objective function after making the re-assignments strictly increases.

Show answer

Correct answers

  • A

    The partition configurations cannot repeat themselves.

  • C

    Objective function after making the re-assignments strictly reduces.

Question 9

+3 marksNumerical answer

Consider a naive Bayes classification problem with three binary features f1,f2,f3f_1, f_2, f_3 for a binary classification problem. We have a total of 8 training samples given in the table below:

Samplef1f_1f2f_2f3f_3yy
x1x_11100
x2x_21000
x3x_31100
x4x_41000
x5x_51001
x6x_61101
x7x_71001
x8x_81101

If a test point has label 0, what is the probability of xtest=[111]Tx_{test} = \begin{bmatrix} 1 & 1 & 1 \end{bmatrix}^T? Assume that the Laplacian smoothing is done, (i.e., add two pseudo training exmaples xpseudo0=[111]Tx_{pseudo}^0 = \begin{bmatrix} 1 & 1 & 1 \end{bmatrix}^T for class 0 and xpseudo1=[111]Tx_{pseudo}^1 = \begin{bmatrix} 1 & 1 & 1 \end{bmatrix}^T for class 1). Enter the answer correct to two decimal places.

Show answer

Correct answer: 0.12 (accepted within ±0.02)

Question 10

+4 marksNumerical answer

Consider a binary classification problem with three data points, denoted by {(xi,yi)}\{(x_i, y_i)\}, where xix_i represents a one-dimensional feature and yiy_i is the corresponding class label, as given below:

{(1,+1),(2,−1),(3,+1)}\{(1, +1), (2, -1), (3, +1)\}

Each data point gets uniform initial weights w1(0)=w2(0)=w3(0)=13w_1^{(0)} = w_2^{(0)} = w_3^{(0)} = \frac{1}{3}, where wi(t)w_i^{(t)} denotes the weight of ii-th data point for ttht^{th} iteration. Following are the two decision stumps given to us:

h1(x)={+1,if x≤2−1,if x>2,h2(x)={+1,if x≤1−1,if x>1.h_1(x) = \begin{cases} +1, & \text{if } x \leq 2 \\ -1, & \text{if } x > 2 \end{cases}, \quad h_2(x) = \begin{cases} +1, & \text{if } x \leq 1 \\ -1, & \text{if } x > 1 \end{cases}.

We run the AdaBoost algorithm for one iteration by selecting the decision stump with the lowest training error. Then, find the value of w1(1)+w2(1)w_1^{(1)} + w_2^{(1)}. Enter the answer correct to one decimal place.

Show answer

Correct answer: 0.5

Question 11

+4 marksNumerical answer

Suppose we are solving a binary classification task using a neural network with the following architecture:

  • Input: x=[11]x = \begin{bmatrix} 1 \\ 1 \end{bmatrix}
  • Hidden layer: 2 neurons (ReLU activation)
  • Output layer: 1 neuron (sigmoid activation)

The weight parameters of the network are given as:

W(1)=[w1(1)w2(1)w1(2)w2(2)]=[1−120],W(out)=[w1(out)w2(out)]T=[10]T,W^{(1)} = \begin{bmatrix} w_1^{(1)} & w_2^{(1)} \\ w_1^{(2)} & w_2^{(2)} \end{bmatrix} = \begin{bmatrix} 1 & -1 \\ 2 & 0 \end{bmatrix}, \quad W^{(out)} = \begin{bmatrix} w_1^{(out)} & w_2^{(out)} \end{bmatrix}^T = \begin{bmatrix} 1 & 0 \end{bmatrix}^T,

where wi(j)w_i^{(j)} represents the weight associated with the jj-th neuron for the ii-th input feature. Compute the cross-entropy loss LL. Write the answer to correct to three decimal places.

Loss function: L=−[ylog⁡e(y^)+(1−y)log⁡e(1−y^)]L = -[y\log_e(\hat{y}) + (1 - y)\log_e(1 - \hat{y})], where y^\hat{y} is the network output and y=1y = 1 is the true label.

Show answer

Correct answer: 0.693 (accepted within ±0.003)

Question 12

+4 marksOne correct option

Based on the above data, answer the given subquestions.

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

Correct answer

  • D

Question 13

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    The coefficients shrinks towards zero.

  2. B

    The coefficients increases in magnitude.

  3. C

    The coefficients remain unchanged.

Show answer

Correct answer

  • A

    The coefficients shrinks towards zero.

Question 14

+3 marksNumerical answer

Based on the above data, answer the given subquestions.

What is the probability that a 60-year-old patient with a cholesterol level of 200 mg/dL has the disease? Enter the answer correct to two decimal places.

Show answer

Correct answer: 0.73 (accepted within ±0.02)

Question 15

+3 marksNumerical answer

Based on the above data, answer the given subquestions.

How high should the cholesterol level be for the patient mentioned in the previous question to have a 50% chance of being diagnosed with the disease?

Show answer

Correct answer: 150

Question 16

+2 marksOne correct option

Consider the datapoints (−2,−2) with label +1 and (2, 2) with label −1. A hard margin SVM is applied on this dataset. Answer the given subquestions:

Which of the following is the decision boundary for the given dataset?

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

Correct answer

  • B

Question 17

+2 marksNumerical answer

Consider the datapoints (−2,−2) with label +1 and (2, 2) with label −1. A hard margin SVM is applied on this dataset. Answer the given subquestions:

The solution to the dual problem is given by α∗=[116116]T\alpha^* = \begin{bmatrix} \frac{1}{16} & \frac{1}{16} \end{bmatrix}^T. Find the width of the widest margin for this dataset. Enter the answer correct to two decimal places.

Note: Width of the widest margin is given by 2∣∣w∣∣\frac{2}{||w||}.

Show answer

Correct answer: 5.66 (accepted within ±0.02)