Question 1
NOTE: Enter the answer correct to one decimal place
The IIT Madras BS Machine Learning Techniques (MLT) End Term paper sat on 22 Dec 2024, in the September 2024 term, set QDF3: 22 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.
NOTE: Enter the answer correct to one decimal place
Correct answer: 2.5
Consider a dataset of 200 points where the -th data point is given by:
where and are real numbers such that
Standard PCA is performed on this dataset. If the top two principal components are retained and used to reconstruct the dataset, what is the reconstruction error?
Correct answer: 0
A train running between two stations A and B will be late on any day by a random amount , where . Suppose the train is late by random amounts (in minutes)
independently on 10 days. Consider a prior for the parameter . Find the maximum aposteriori (MAP) estimate of .
Recall that , where is the posterior distribution.
Correct answer: 52
Consider a logistic regression model trained to detect spam emails. Emails containing harmful phishing links are labeled as spam (1), while regular emails are labeled as not spam (0). A good spam detector should correctly identify almost all emails with phishing links. Even a single phishing email incorrectly classified as not spam could expose users to significant risks. However, the detector may classify some regular emails as spam. This trade-off is acceptable to ensure safety.
To ensure user safety, if the threshold is set to a low value to prioritize the detection of phishing emails, type 1. If the threshold is set to a high value to minimize false positives (misclassifying regular emails as spam), type 0.
Correct answer: 1
Select the correct statements from the following for k-means algorithm:
In k-means algorithm, all cluster initializations lead to the same result.
k-means algorithm is sensitive to outliers.
One initialization may converge while another may not.
The initialization of cluster centres may affect the number of iterations k- means takes to converge.
Correct answers
k-means algorithm is sensitive to outliers.
The initialization of cluster centres may affect the number of iterations k- means takes to converge.
Curve (A) represents the training loss.
Curve (B) represents the training loss.
Curve (A) represents the validation loss.
Curve (B) represents the validation loss.
Correct answers
Curve (A) represents the training loss.
Curve (B) represents the validation loss.
Perform one round of the gradient descent algorithm for the linear regression on the below data
with the initial weight vector and learning rate . Find the updated weight vector after one iteration of gradient descent.
Note: The objective function is given by .
Correct answer
While training a perceptron model, the weight vector at some iteration is . The next two data points picked up by the perceptron algorithm in the course of its execution are and , where is the true label:
What are the values of and ?
Correct answer
Consider the following dataset for a binary classification problem in which the features are from and the labels are from .
A Naive Bayes classifier is trained on this dataset. The parameters to be estimated are represented as , which are presented in the form of the table given below:
| 1 | ||
| 2 | ||
| 3 |
Assume that there is no smoothing. Answer the given sub-questions.
Correct answer: 1
Consider the following dataset for a binary classification problem in which the features are from and the labels are from .
A Naive Bayes classifier is trained on this dataset. The parameters to be estimated are represented as , which are presented in the form of the table given below:
| 1 | ||
| 2 | ||
| 3 |
Assume that there is no smoothing. Answer the given sub-questions.
Correct answer: 2
Consider the following dataset for a binary classification problem in which the features are from and the labels are from .
A Naive Bayes classifier is trained on this dataset. The parameters to be estimated are represented as , which are presented in the form of the table given below:
| 1 | ||
| 2 | ||
| 3 |
Assume that there is no smoothing. Answer the given sub-questions.
Correct answer: 1
Given a training set , let denote the set obtained by removing the label of the -th training example. Leave one out cross validation (LOOCV) is performed as follows: for each in the training set, we train the model on the remaining points of and test the prediction on . The error is defined as
where denote the predicted value of using the model trained on . Now, for the dataset:
fit the model and find . Enter the answer correct to two decimal places.
Correct answer: 0.35 (accepted within ±0.05)
Consider the following optimization problem involving the variable :
What is the output of the following expression for ? Here, is the Lagrangian function for this optimization problem evaluated at .
Correct answer
Which of the following options are not correct? Select all that apply.
Underfitted models generally have less bias and high variance.
A decision tree with the maximum possible length may lead to overfitting.
Weak learners are those whose performance is slightly better than the random classifier.
All the estimators in bagging can be trained parallelly.
Correct answer
Underfitted models generally have less bias and high variance.
If we remove all the non-support vectors from the dataset, what will be the impact on the model using SVM algorithm?
Model will overfit.
The model will not be changed.
Model will underfit.
Accuracy of the model will increase.
Correct answer
The model will not be changed.
In each round of AdaBoost, the weight for a particular training observation is decreased from round t to round t + 1 if the observation was:
classified incorrectly by the weak learner trained in the round.
classified correctly by the weak learner trained in the round.
classified incorrectly by a majority of the weak learners trained up to the round.
classified correctly by a majority of the weak learners trained up to the round.
Correct answer
classified correctly by the weak learner trained in the round.
Is the following statement true or false?
For a fixed size of the training and the test set, increasing the complexity of the model always leads to an increment in the test error.
True
False
Correct answer
False
Correct answer: 1
Correct answer: 0
Correct answer: 0
Correct answer: 2
Which of the following is correct ?
Correct answers