ML Study Hub

Home / Past papers / MLT Quiz 2 / this paper

Machine Learning Techniques 06 Apr 26 - 12 Apr 2026

MLT Quiz 215 questions40 marks7 MCQ · 6 SA · 2 MSQ
Elapsed 00:00
Q1MCQ3 marks
Consider a linear regression model applied to a dataset in which each data-point is described by two features. The first feature is always . The data-point's feature-label pair is represented as . Let be the optimal weight vector that minimizes the sum of squared errors. Consider two scenarios: : , for each data-point . : , for each data-point . Which of the following is true?
  1. is possible, but is impossible.
  2. is impossible, but is possible.
  3. One of or is possible.
  4. Both and are impossible.
Q2MCQ3 marks
In Ridge Regression, the optimal weight vector is given by . The regularization parameter is determined using 5-fold cross-validation. The following table summarizes the average Training Error and Validation Error (Mean Squared Error) obtained for various values of : question figure Based on the cross-validation results provided, what is the most appropriate choice for ?
  1. 0.001
  2. 0.1
  3. 1.0
  4. 10.0
  5. 100
Q3MCQ3 marks
Consider a training dataset where all input points are distinct. Which of the following models is to achieve a training error of zero?
  1. question figure
Q4MCQ3 marks
Consider the following classification models and their geometric properties: question figure Select the correct many-to-one matching:
Q5MCQ3 marks
Consider a training dataset for a classification problem with four data-points. Red circles represent data-points with label and green squares represent data-points with label . A test-point is located at . Dotted circles centered at with radii and are drawn for your convenience. question figure KNN with Euclidean distance and is the classifier. Now, a new training data-point with label is added somewhere inside the outermost circle of radius such that it leaves the predicted label of the test data-point unchanged. Let be the set of all points that could be the potential location of this new training data-point. Find the area of the region corresponding to . : We use KNN with for both datasets.
Q6MSQ3 marksselect all that apply
A dataset is said to be if we can find a linear classifier that achieves zero error for that dataset. Select all linearly separable datasets. The red circles represent data-points with label while the green squares represent data-points with label . The sizes of the squares and circles are blown up for clarity; the data-point sits at the center of the square/circle. : The options are independent of each other. We are not looking for a single classifier that will work for multiple options. question figure
  1. Dataset-1
  2. Dataset-2
  3. Dataset-3
  4. Dataset-4
Q7MSQ3 marksselect all that apply
A researcher is modeling a dataset using linear regression of the form . They are considering two different probabilistic assumptions for the independent and identically distributed (i.i.d.) noise term : • Assumption A: The noise follows a Gaussian distribution, . • Assumption B: The noise follows a Laplace distribution, . The training dataset is known to contain several extreme outliers resulting from sensor malfunctions. Which of the following statements correctly describes the behavior of the Maximum Likelihood Estimation (MLE) for the parameter vector ?
  1. Under Assumption A, the MLE is equivalent to minimizing Mean Squared Error (MSE), which is highly sensitive to outliers because the penalty grows quadratically.
  2. Under Assumption B, the MLE is equivalent to L1 regularization, which is more robust to outliers because the penalty for large residuals grows linearly.
  3. Both Assumption A and Assumption B lead to the same optimal parameter vector regardless of the presence of outliers.
  4. All the given options are correct
Comprehension passage - the questions below it refer to this
Consider a node in a decision tree that has 5 data-points. The data-point is represented by a feature-label pair , where { , }. question figure Consider the split at the parent node resulting in left and right child nodes. The left child node has all data points for which is true. Entropy is used to determine the purity of the nodes.Recall that the formula for the entropy of a node is: where is the fraction of positive data-points in the node. Use at least three digits after the decimal point in all intermediate calculations. Based on the above data, answer the given subquestions.
Q8SA2 marks
Find the entropy of the parent node. Enter your answer correct to two decimal places.
Q9SA2 marks
Find the entropy of the right child. Enter your answer correct to two decimal places.
Q10SA2 marks
Find the information gain. Enter your answer correct to two decimal places.
Comprehension passage - the questions below it refer to this
You are provided with a training set of 5 observations, each consisting of four binary features and a binary target label . question figure . Based on the above data, answer the given subquestions.
Q11SA3 marks
Using the Naive Bayes assumption and the data provided, calculate the joint probability for a new test instance . Enter your answer correct to two decimal places.
Q12SA3 marks
To address zero-probability estimates using Laplace smoothing, the dataset is augmented with synthetic observations. Specifically, add the following two samples to the original table: 1. One sample in which all features ( (X1, X2, X3, X4) ) take the value 1 and the class label is Y = 1. 2. One sample in which all features ( (X1, X2, X3, X4) ) take the value 1 and the class label is Y = 0. Based on this new augmented dataset of 7 samples, calculate the updated conditional probability .
Q13MCQ2 marks
For the Naive Bayes model described in the main data with binary features and a binary class label, how many independent parameters are required to fully specify the model? Answer for the original dataset with 5 training examples.
  1. 5
  2. 8
  3. 9
  4. 10
Q14MCQ2 marks
Let the linear regression model's solution be written as , where . Let be a valid kernel function. What will be the prediction for an unseen data point ?
Q15SA3 marks
Perform a 3-NN regressor for the following dataset: question figure 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.

Answer key

  1. Q1 (MCQ, 3 marks): D
  2. Q2 (MCQ, 3 marks): C
  3. Q3 (MCQ, 3 marks): D
  4. Q4 (MCQ, 3 marks): B
  5. Q5 (MCQ, 3 marks): A
  6. Q6 (MSQ, 3 marks): C, D
  7. Q7 (MSQ, 3 marks): A, B
  8. Q8 (SA, 2 marks): 0.87 to 1.07
  9. Q9 (SA, 2 marks): 0.71 to 0.91
  10. Q10 (SA, 2 marks): 0.22 to 0.42
  11. Q11 (SA, 3 marks): 0.15 to 0.21
  12. Q12 (SA, 3 marks): 0.5
  13. Q13 (MCQ, 2 marks): C
  14. Q14 (MCQ, 2 marks): C
  15. Q15 (SA, 3 marks): 4.5