uiz Space

January 2025 term · Machine Learning Techniques · BSCS2007

Machine Learning Techniques End Term: 13 April 2025, Set QDD1 (January 2025 term)

The IIT Madras BS Machine Learning Techniques (MLT) End Term paper sat on 13 Apr 2025, in the January 2025 term, set QDD1: 18 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
18
Marks
50
Duration
180 min
MCQ
6
MSQ
5
Numerical
7

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD3 13 Apr 2025 · No negative marking.

Question 1

+3 marksOne correct option

For a given dataset, a 1-Nearest Neighbor (1-NN) and a 3-Nearest Neighbor (3-NN) classifier are applied. Which classifier is likely to exhibit a higher Leave-One-Out Cross Validation (LOOCV) error? In case of tie-breaker, assign a positive class (+) to the data point.

  1. A

    1-NN

  2. B

    3-NN

  3. C

    Both have the same error.

Show answer

Correct answer

  • A

    1-NN

Question 2

+3 marksOne correct option

Consider the following three weight vectors obtained by minimizing the ridge regression objective with penalty parameters λ=0.1,10,50\lambda = 0.1, 10, 50.

θ1=[0.50.562.5]T\theta_1 = \begin{bmatrix} 0.5 & 0.56 & 2.5 \end{bmatrix}^T
θ2=[0.050.11.23]T\theta_2 = \begin{bmatrix} 0.05 & 0.1 & 1.23 \end{bmatrix}^T
θ3=[1.20.843.15]T\theta_3 = \begin{bmatrix} 1.2 & 0.84 & 3.15 \end{bmatrix}^T

Select the most appropriate match for each weight vector corresponding to penalty parameter λ\lambda from the following options:

  1. A
  2. B
  3. C
Show answer

Correct answer

  • C

Question 3

+4 marksOne correct option

Consider the following dataset with two features and the corresponding labels:

x1x_1x2x_2yy
101.5
224
304.5
427

Fit the linear regression model y=w1x1+w2x2y = w_1 x_1 + w_2 x_2 using the normal equation obtained from the squared error loss.

Hint: The normal equation for linear regression is:

w=(XXT)−1Xyw = (XX^T)^{-1} X y

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

Correct answer

  • B

Question 4

+4 marksOne correct option

Consider a dataset with 4 datapoints:

{(x1,y1),(x2,y2),(x3,y3),(x4,y4)},\{(\mathbf{x}_1, y_1), (\mathbf{x}_2, y_2), (\mathbf{x}_3, y_3), (\mathbf{x}_4, y_4)\},

where yi∈{+1,−1}y_i \in \{+1, -1\} and xi∈R2\mathbf{x}_i \in \mathbf{R}^2. In the first iteration of the AdaBoost algorithm, suppose a decision stump f1f_1 is chosen, which correctly classifies the first three data points and incorrectly classifies the last data point. Assume the initial distribution of the dataset assigns equal weights to all data points, i.e., D0(i)=14D_0(i) = \frac{1}{4}, for i=1,2,3,4i = 1, 2, 3, 4. What will be the updated distribution of the weights of the data points after the first iteration?

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

Correct answer

  • B

Question 5

+3 marksOne or more correct options

Which of the following statements correctly differentiates PCA and Kernel PCA?

Select all that apply.

  1. A

    PCA maximizes variance in the original feature space, while Kernel PCA maximizes variance in a higher-dimensional transformed space.

  2. B

    PCA finds principal components using linear transformations in the original space, while Kernel PCA uses non-linear transformations to find principal components in a higher- dimensional space.

  3. C

    Kernel PCA can capture non-linear patterns in data, making it useful when PCA fails to represent complex structures in a linear space.

  4. D

    PCA and Kernel PCA always yield identical results regardless of the dataset structure.

Show answer

Correct answers

  • A

    PCA maximizes variance in the original feature space, while Kernel PCA maximizes variance in a higher-dimensional transformed space.

  • B

    PCA finds principal components using linear transformations in the original space, while Kernel PCA uses non-linear transformations to find principal components in a higher- dimensional space.

  • C

    Kernel PCA can capture non-linear patterns in data, making it useful when PCA fails to represent complex structures in a linear space.

Question 6

+3 marksOne or more correct options

Consider the following formualtion of the soft margin SVM:

min⁡w,ϵ12∣∣w∣∣2+C∑i=1nϵi,C≥0\min_{w, \epsilon} \frac{1}{2} ||w||^2 + C \sum_{i=1}^{n} \epsilon_i, \qquad C \geq 0

subject to (wTxi)yi+ϵi≥1, ∀i\text{subject to } (w^T x_i) y_i + \epsilon_i \geq 1, \ \forall i

ϵi≥0, ∀i.\epsilon_i \geq 0, \ \forall i.

Which of the following statements is/are correct?

Select all that apply.

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

Correct answers

  • B
  • D
  • E

Question 7

+2 marksOne or more correct options

Which of the following statements are true for bagging?

Select all that apply.

  1. A

    The final model has lesser variance than the individual learners.

  2. B

    The final model has a higher variance than the individual learners.

  3. C

    Estimators in bagging can be trained parallely.

  4. D

    If the number of data points is large, typically two-third of the data points remain unselected in bags.

Show answer

Correct answers

  • A

    The final model has lesser variance than the individual learners.

  • C

    Estimators in bagging can be trained parallely.

Question 8

+2 marksOne or more correct options

Select all that apply.

  1. A

    It penalizes large coefficients to reduce overfitting.

  2. B

    It shrinks the coefficients but does not set them to zero.

  3. C

    It forces more coefficients to be exactly zero, performing feature selection.

  4. D

    It has no effect on the regression model.

Show answer

Correct answers

  • A

    It penalizes large coefficients to reduce overfitting.

  • C

    It forces more coefficients to be exactly zero, performing feature selection.

Question 9

+2 marksNumerical answer

For a decision tree, each node has exactly two child nodes (balanced tree). If the tree has a depth of 3, how many leaf nodes are there?

Show answer

Correct answer: 8

Question 10

+3 marksNumerical answer
Show answer

Correct answer: 24

Question 11

+3 marksNumerical answer

Let X1,X2,…,XnX_1, X_2, \ldots, X_n be i.i.d. samples from a Uniform distribution on the interval [0,θ][0, \theta], where θ\theta is an unknown parameter. The probability density function (PDF) of continuous uniform distribution is given by:

f(x;θ)={1θ,0≤x≤θ0,otherwise.f(x; \theta) = \begin{cases} \frac{1}{\theta}, & 0 \leq x \leq \theta \\ 0, & \text{otherwise} \end{cases}.

Find the Maximum Likelihood Estimate (MLE) of θ\theta based on a given sample 10,15,12,20,1710, 15, 12, 20, 17.

Show answer

Correct answer: 20

Question 12

+3 marksNumerical answer
Show answer

Correct answer: 11

Question 13

+3 marksNumerical answer

Based on the above data, answer the given subquestions.

Find the squared length of the updated weight vector after one iteration (one pass through all the data points) of the perceptron algorithm, assuming w0=[00]Tw_0 = \begin{bmatrix} 0 & 0 \end{bmatrix}^T. While looking for mistakes, cycle through the data points form left to right.

Show answer

Correct answer: 1

Question 14

+2 marksOne correct option

Based on the above data, answer the given subquestions.

Will the algorithm converge after this update?

  1. A

    YES

  2. B

    NO

Show answer

Correct answer

  • A

    YES

Question 15

+2 marksOne correct option

Based on the above data, answer the given subquestions.

  1. A

    It is a circle.

  2. B

    It is a straight line.

  3. C

    It is an ellipse.

  4. D

    It is a parabola.

Show answer

Correct answer

  • C

    It is an ellipse.

Question 16

+3 marksOne or more correct options

Based on the above data, answer the given subquestions.

Which of the following training data points are certainly not support vectors?

Select all that apply.

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

Correct answers

  • A
  • C

Question 17

+3 marksNumerical answer

Consider a single-layer neural network with two neurons in the hidden layer. The weight parameters of the network are given as follows:

w1(1)=12, w2(1)=12w_1^{(1)} = \frac{1}{2},\ w_2^{(1)} = \frac{1}{2}

w1(2)=12, w2(2)=−12w_1^{(2)} = \frac{1}{2},\ w_2^{(2)} = -\frac{1}{2}

wout=[1−1]T,w^{out} = \begin{bmatrix} 1 & -1 \end{bmatrix}^T,

where wi(j)w_i^{(j)} represents the weight associated with the jj-th neuron for the ii-th input feature. Assume that we are solving a binary classification problem.

Based on the above data, answer the given subquestions.

The output layer of the neural network will return a probability pp for the input xtest=[24]Tx_{test} = \begin{bmatrix} 2 & 4 \end{bmatrix}^T. The sigmoid function is used as the activation function in both the hidden and the output layer of the neural network. Find the value of pp. Enter the answer correct to two decimal places.

Show answer

Correct answer: 0.66 (accepted within ±0.02)

Question 18

+2 marksNumerical answer

Consider a single-layer neural network with two neurons in the hidden layer. The weight parameters of the network are given as follows:

w1(1)=12, w2(1)=12w_1^{(1)} = \frac{1}{2},\ w_2^{(1)} = \frac{1}{2}

w1(2)=12, w2(2)=−12w_1^{(2)} = \frac{1}{2},\ w_2^{(2)} = -\frac{1}{2}

wout=[1−1]T,w^{out} = \begin{bmatrix} 1 & -1 \end{bmatrix}^T,

where wi(j)w_i^{(j)} represents the weight associated with the jj-th neuron for the ii-th input feature. Assume that we are solving a binary classification problem.

Based on the above data, answer the given subquestions.

Show answer

Correct answer: 1