Question 1
Based on the above data, answer the given subquestions.
Which of the following equations correctly represents the maximum likelihood problem for
estimating
?

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.
Based on the above data, answer the given subquestions.
Which of the following equations correctly represents the maximum likelihood problem for
estimating
?
Correct answers
Based on the above data, answer the given subquestions.
Derive the maximum likelihood estimate of the parameter
in terms of the training examples
.
Correct answer
Consider the following dataset with 4 features and three labels . Assume the features to be binary. Answer the given subquestions under the Naive Bayes assumptions.
| Sample | |||||
|---|---|---|---|---|---|
| 1 | 1 | 0 | 1 | 0 | 0 |
| 2 | 0 | 1 | 0 | 1 | 0 |
| 3 | 1 | 1 | 0 | 0 | |
| 4 | 1 | 1 | 1 | 0 | |
| 5 | 0 | 0 | 1 | 1 | |
| 6 | 0 | 0 | 0 | 1 |
Find the maximum likelihood estimate
and
of
,
, and , respectively.
Correct answer
Consider the following dataset with 4 features and three labels . Assume the features to be binary. Answer the given subquestions under the Naive Bayes assumptions.
| Sample | |||||
|---|---|---|---|---|---|
| 1 | 1 | 0 | 1 | 0 | 0 |
| 2 | 0 | 1 | 0 | 1 | 0 |
| 3 | 1 | 1 | 0 | 0 | |
| 4 | 1 | 1 | 1 | 0 | |
| 5 | 0 | 0 | 1 | 1 | |
| 6 | 0 | 0 | 0 | 1 |
What class would
belong to? Assume that no Laplacian smoothing has been done.
Correct answer: 0
Consider the following dataset:
| Sample | |||
|---|---|---|---|
| 1 | 1 | 0 | 2 |
| 2 | 0 | 1 | 3 |
| 3 | 1 | 1 | 4 |
Suppose we fit a linear regression model of the form . Compute the mean squared error for the training data. Enter the answer correct to two decimal places.
Correct answer: 0.11 (accepted within ±0.02)
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.
Correct answer: 0.4
Consider the email filtering problem. Suppose an email can be either spam or ham with probabilities and respectively. Let denote a collection of special words whose appearance suggests that the message is likely to be spam. Define the random variable as
Assume that the features are conditionally independent given the class label . Assume that the probability of an email being spam is 0.4. Suppose there are three special words with the following conditional probabilities:
| Word | ||
|---|---|---|
| 0.8 | 0.1 | |
| 0.7 | 0.2 | |
| 0.6 | 0.3 |
A new email represented as contains the words and , but not , then compute . Enter the answer correct to two decimal places.
Correct answer: 0.8 (accepted within ±0.03)
Consider a dataset of 1000 points for a classification problem using k-NN algorithm. Select the correct statements from the following:
If k = 5, it is enough if we store any 5 points in the training dataset.
If k = 5, we need to store the entire dataset.
The number of data-points that we have to store increases as k increases.
The number of data-points that we have to store is independent of the value of k.
Correct answers
If k = 5, we need to store the entire dataset.
The number of data-points that we have to store is independent of the value of k.
Correct answers
n
2
6
4
Correct answer
2
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.
True
False
Correct answer
True
Consider a training dataset of points for a regression problem. Suppose that the model is linear. Let and be the optimal weight obtained from solving the following optimization problems:
Which among the following will be true?
will generalize better than
on the test dataset.
will generalize better than
on the test dataset.
Both the models will show similar performance on the test dataset.
Correct answer
will generalize better than
on the test dataset.
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?
A–1, B–3, C–4, D–2
A–1, B–2, C–4, D–3
A–1, B–3, C–2, D–4
A–2, B–1, C–3, D–4
Correct answer
A–1, B–3, C–4, D–2
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?
Correct answer