
Machine Learning Techniques Quiz 2: 3 August 2025 (May 2025 term)
The IIT Madras BS Machine Learning Techniques (MLT) Quiz 2 paper sat on 3 Aug 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.
- 15
- 40
- 120 min
- 7
- 2
- 6
Show answer
Correct answer
Question 2
In the Bayesian modeling for linear regression, we assume the following:
Under this setup, the maximum aposteriori (MAP) estimator of the weights is given by:
Using the given information, find the expression for the regularization parameter .
Show answer
Correct answer
Question 3
You are evaluating the performance of a linear regression model using different hyperparameter settings (learning rate and number of iterations). Below are the results:
| Setting | Learning Rate | Iterations | Training Error | Validation Error |
|---|---|---|---|---|
| 1 | 0.05 | 1000 | 150 | 160 |
| 2 | 0.10 | 800 | 145 | 150 |
| 3 | 0.15 | 500 | 140 | 190 |
| 4 | 0.25 | 350 | 170 | 180 |
Which hyperparameter setting would you choose based on the training and validation errors? Why?
Setting 3, because it has the lowest training error, indicating the best fit to the training data.
Setting 2, because it has the lowest validation error and a relatively low training error, indicating a good generalization.
Setting 1, because it has the highest number of iterations and therefore likely to be more stable.
Setting 4, because it uses the highest learning rate and converges the fastest.
Show answer
Correct answer
Setting 2, because it has the lowest validation error and a relatively low training error, indicating a good generalization.
Question 4
Consider the linear regression model:
where .
Note:
- : Maximum Likelihood Estimator (MLE) of
- : Maximum A Posteriori (MAP) estimator of
- : Mean Squared Error (MSE) between an estimator and the true parameter
Which of the following statements is/are true?
Show answer
Correct answer
Question 5
TRUE
FALSE
Show answer
Correct answer
TRUE
Question 6
TRUE
FALSE
Show answer
Correct answer
TRUE
Question 7
Show answer
Correct answers
Question 8
Which among the following are true?
Show answer
Correct answers
Question 9
Perform a 3-NN regressor for the following dataset:
| 1 | 2 | 3.5 |
| 2 | 1 | 2.8 |
| 3 | 3 | 5.1 |
| 4 | 2 | 4.7 |
| 5 | 3 | 6.2 |
| 6 | 1 | 5.9 |
where, is a feature vector and is the label. What will be the predicted value for the test data point ? Enter the answer correct to one decimal place.
Show answer
Correct answer: 4.2
Question 10
Based on the above data, answer the given subquestions.
Which among the following represents the correct decision boundary for the decision tree? Note: Here + represents the label 1 and − represents the label 0.
Show answer
Correct answer
Question 11
Based on the above data, answer the given subquestions.
What will be the prediction for the new datapoint (2, 2)?
Show answer
Correct answer: 0
Question 12
Consider a 2-class Naive Bayes classifier with first feature as binary and the second feature as Gaussian. Following are the information that are provided to us:
Estimate of
Estimate of ,
Estimate of ,
Based on the above data, answer the given subquestions.
Show answer
Correct answer: 0.24 (accepted within ±0.02)
Question 13
Consider a 2-class Naive Bayes classifier with first feature as binary and the second feature as Gaussian. Following are the information that are provided to us:
Estimate of
Estimate of ,
Estimate of ,
Based on the above data, answer the given subquestions.
Show answer
Correct answer: 1
Question 14
Suppose you want to build a decision tree to help diagnose a certain disease based on patient data. You have a dataset of 1000 patients labeled as either “positive” or “negative”. Here, positive represents patients with the disease and negative represents no disease. One of the feature used to diagnose is headache.
Below is the breakdown of the patients reporting headache:
Headache present: 300 positive, 50 negative
Headache not present: 100 positive, 550 negative
Use the following values if required:
Note: Use for the entropy calculations.
Based on the above data, answer the given subquestions.
What is the entropy of the root node? Enter the answer correct to two decimal places.
Show answer
Correct answer: 0.97 (accepted within ±0.02)
Question 15
Suppose you want to build a decision tree to help diagnose a certain disease based on patient data. You have a dataset of 1000 patients labeled as either “positive” or “negative”. Here, positive represents patients with the disease and negative represents no disease. One of the feature used to diagnose is headache.
Below is the breakdown of the patients reporting headache:
Headache present: 300 positive, 50 negative
Headache not present: 100 positive, 550 negative
Use the following values if required:
Note: Use for the entropy calculations.
Based on the above data, answer the given subquestions.
What is the information gain for choosing the feature “headache” for splitting at the root node? Enter the answer correct to two decimal places.
Show answer
Correct answer: 0.36 (accepted within ±0.02)