uiz Space

September 2025 term · Machine Learning Techniques · BSCS2007

Machine Learning Techniques Quiz 2: 23 November 2025 (September 2025 term)

The IIT Madras BS Machine Learning Techniques (MLT) Quiz 2 paper sat on 23 Nov 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
3
MCQ
7
Numerical
4

Updated

Official paper: IIT M DIPLOMA AN EXAM QDD2 23 Nov 2025 NEW · No negative marking.

Question 1

+3 marksOne or more correct options

Based on the above data, answer the given subquestions.

Which of the following equations correctly represents the maximum likelihood problem for

estimating
?

Select all that apply.

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

Correct answers

  • A
  • B
  • D

Question 2

+4 marksOne correct option

Based on the above data, answer the given subquestions.

Derive the maximum likelihood estimate of the parameter
in terms of the training examples

.

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

Correct answer

  • A

Question 3

+2 marksOne correct option

Consider the following dataset with 4 features {f1,f2,f3,f4}\{f_1, f_2, f_3, f_4\} and three labels y=0,−1,+1y = 0, -1, +1. Assume the features to be binary. Answer the given subquestions under the Naive Bayes assumptions.

Samplef1f_1f2f_2f3f_3f4f_4yy
110100
201010
31100+1+1
41110+1+1
50011−1-1
60001−1-1

Find the maximum likelihood estimate
and
of
,
, and , respectively.

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

Correct answer

  • B

Question 4

+3 marksNumerical answer

Consider the following dataset with 4 features {f1,f2,f3,f4}\{f_1, f_2, f_3, f_4\} and three labels y=0,−1,+1y = 0, -1, +1. Assume the features to be binary. Answer the given subquestions under the Naive Bayes assumptions.

Samplef1f_1f2f_2f3f_3f4f_4yy
110100
201010
31100+1+1
41110+1+1
50011−1-1
60001−1-1

What class would
belong to? Assume that no Laplacian smoothing has been done.

Show answer

Correct answer: 0

Question 5

+4 marksNumerical answer

Consider the following dataset:

Samplex1x_1x2x_2yy
1102
2013
3114

Suppose we fit a linear regression model of the form y^=w1x1+w2x2\hat{y} = w_1x_1 + w_2x_2. Compute the mean squared error for the training data. Enter the answer correct to two decimal places.

Show answer

Correct answer: 0.11 (accepted within ±0.02)

Question 6

+3 marksNumerical answer

Consider the following trained decision tree learned for the dataset in Figure 1.

Find the training error of the decision tree for the given dataset. Enter the answer correct to one decimal place.

Show answer

Correct answer: 0.4

Question 7

+4 marksNumerical answer

Consider the email filtering problem. Suppose an email can be either spam or ham with probabilities pΘ(1)p_\Theta(1) and pΘ(2)p_\Theta(2) respectively. Let {u1,u2,…,un}\{u_1, u_2, \ldots, u_n\} denote a collection of special words whose appearance suggests that the message is likely to be spam. Define the random variable XiX_i as

Xi={1,if the word ui appears in the message,0,otherwise.X_i = \begin{cases} 1, & \text{if the word } u_i \text{ appears in the message,} \\ 0, & \text{otherwise.} \end{cases}

Assume that the features X1,X2,…,XnX_1, X_2, \ldots, X_n are conditionally independent given the class label Θ\Theta. Assume that the probability of an email being spam is 0.4. Suppose there are three special words with the following conditional probabilities:

WordP(Xi=1∣Θ=1)P(X_i = 1 \mid \Theta = 1)P(Xi=1∣Θ=2)P(X_i = 1 \mid \Theta = 2)
u1u_10.80.1
u2u_20.70.2
u3u_30.60.3

A new email represented as X=(X1,X2,X3)X = (X_1, X_2, X_3) contains the words u1u_1 and u3u_3, but not u2u_2, then compute P(Θ=1∣X)P(\Theta = 1 \mid X). Enter the answer correct to two decimal places.

Show answer

Correct answer: 0.8 (accepted within ±0.03)

Question 8

+2 marksOne or more correct options

Consider a dataset of 1000 points for a classification problem using k-NN algorithm. Select the correct statements from the following:

Select all that apply.

  1. A

    If k = 5, it is enough if we store any 5 points in the training dataset.

  2. B

    If k = 5, we need to store the entire dataset.

  3. C

    The number of data-points that we have to store increases as k increases.

  4. D

    The number of data-points that we have to store is independent of the value of k.

Show answer

Correct answers

  • B

    If k = 5, we need to store the entire dataset.

  • D

    The number of data-points that we have to store is independent of the value of k.

Question 9

+2 marksOne or more correct options

Select all that apply.

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

Correct answers

  • C
  • D

Question 10

+3 marksOne correct option
  1. A

    n

  2. B

    2

  3. C

    6

  4. D

    4

Show answer

Correct answer

  • B

    2

Question 11

+2 marksOne correct option

Suppose we observe data sampled from the model
. Since
is unknown, we

would like to estimate it using linear regression. Adding priors to the parameter
, i.e.

is equivalent to adding a
penalty on the parameters in the objective function defined by the log-likelihood.

  1. A

    True

  2. B

    False

Show answer

Correct answer

  • A

    True

Question 12

+3 marksOne correct option

Consider a training dataset of nn points for a regression problem. Suppose that the model is linear. Let w1w_1 and w2w_2 be the optimal weight obtained from solving the following optimization problems:

w1=arg minw∑i=1n(wTxi−yi)2w_1 = \text{arg min}_w \sum_{i=1}^{n} (w^Tx_i - y_i)^2

w2=arg minw∑i=1n(wTxi−yi)3w_2 = \text{arg min}_w \sum_{i=1}^{n} (w^Tx_i - y_i)^3

Which among the following will be true?

  1. A

    will generalize better than
    on the test dataset.

  2. B

    will generalize better than
    on the test dataset.

  3. C

    Both the models will show similar performance on the test dataset.

Show answer

Correct answer

  • A

    will generalize better than
    on the test dataset.

Question 13

+2 marksOne correct option

Consider four regression models (A, B, C, and D) fitted on the same dataset using Ridge or Lasso regression with different regularization parameters.
Match each model with its corresponding regularization description given below.
Models:

A. Ridge regression with

B. Ridge regression with

C. Lasso regression with

D. Ridge regression with
Regularization Effects:
1. No regularization — same as Ordinary Least Squares (OLS)
2. Strong shrinkage — coefficients are small but non-zero
3. Moderate shrinkage — coefficients are reduced but not zero
4. Some coefficients are exactly zero due to sparsity.
Which of the following correctly matches the models with their effects?

  1. A

    A–1, B–3, C–4, D–2

  2. B

    A–1, B–2, C–4, D–3

  3. C

    A–1, B–3, C–2, D–4

  4. D

    A–2, B–1, C–3, D–4

Show answer

Correct answer

  • A

    A–1, B–3, C–4, D–2

Question 14

+3 marksOne correct option

Consider a linear regression problem for the dataset
, where and

for all
. Let
be the least square solution for this problem. Then, which of the following will hold?

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

Correct answer

  • A