ML Study Hub

Home / Past papers / MLT End Term / this paper

Machine Learning Indian Institute Of Technology, Madras - Bs In Data Science And Applications Techniques 06 May 26 - 10 May 2026

MLT End Term16 questions50 marks6 MCQ · 6 SA · 4 MSQ
Elapsed 00:00
Q1MCQ4 marks
Consider a dataset with two data-points for a binary classification problem with features in . is a data-point from the positive class while is from the negative class. We now consider three linear classifiers: perceptron, logistic regression and SVM. question figure If is the weight vector with the largest margin, which of the following is true? question figure
  1. All three classifiers output
  2. Only SVM outputs
  3. Only SVM and perceptron output
  4. Only perceptron and logistic regression output
Q2MSQ4 marksselect all that apply
Consider a dataset in defined as . Which of the following weight vectors can correctly separate the two classes using a linear decision boundary? (Select all that apply.)
Q3MSQ4 marksselect all that apply
Consider a dataset consisting of datapoints , where each . Let the four features be denoted by and . Suppose the features satisfy the following linear relationship: That is, one of the features is an exact linear combination of others. A linear regression model is trained to predict a target variable using these features. Consider the following statements: Which of the following is (are) true.
  1. Linear regression without regularization will achieve training MSE less than or equal to that of ridge regression.
  2. The solution for linear regression without regularization may not be unique.
  3. Ridge regression (L2 regularization) will always set at least one coefficient exactly to zero.
  4. Lasso regression (L1 regularization) can force some feature weights to become exactly zero.
Q4MSQ3 marksselect all that apply
Consider a binary classification dataset in that is linearly separable. Suppose there exist two distinct weight vectors and that both correctly classify all training points with a positive margin. The Perceptron algorithm is applied to this dataset. Which of the following statements are correct? (Select all that apply.)
  1. The Perceptron algorithm is guaranteed to converge to .
  2. The final weight vector obtained by the Perceptron algorithm depends on the initialization and the order in which the data points are presented.
  3. The Perceptron algorithm is guaranteed to converge to some separating hyperplane in a finite number of updates.
  4. The Perceptron algorithm always converges to the maximum margin separator among all possible separating hyperplanes.
Q5SA4 marks
Consider a hard-margin SVM trained on a linearly separable dataset. The optimal Lagrange multipliers are . The training dataset is given by Given the test point , determine the predicted label . Enter the answer as either or The prediction for a test point is given by
Q6SA4 marks
Consider a binary classification problem using logistic regression. The model predicts the probability of class as: question figure A threshold of is used for classification. The predicted class label is given by: question figure The values of for the following datapoints are: How many datapoints will be classified as class ?
Q7SA4 marks
A coin is flipped 100 times, and it lands on heads 60 times. You use a Beta(10, 40) prior to estimate the true probability of heads. Given these observations, calculate the posterior mean of the probability of heads. Enter the answer correct to three decimal places. • Pdf of Beta distribution is question figure where is the Beta function. • The mean of the Beta distribution is: .
Comprehension passage - the questions below it refer to this
Consider the following soft-margin Support Vector Machine (SVM) classifier. The solid line represents the decision boundary , and the dotted lines represent the margin boundaries and . Red points correspond to the negative class, and green points correspond to the positive class. question figure Based on the above data, answer the given subquestions.
Q8SA2 marks
How many datapoints will incur a penalty (i.e., have non-zero slack variables )?
Q9SA2 marks
How many datapoints will definitely have in the dual formulation of SVM?
Comprehension passage - the questions below it refer to this
Consider the given 2D diagram. The datapoints are slightly exaggerated for better visualization. Red points represent the negative class ( ) and green points represent the positive class ( ). A test point is shown. Use the K-Nearest Neighbors (KNN) algorithm with . question figure Based on the above data, answer the given subquestions.
Q10MCQ2 marks
Using Euclidean distance, what is the predicted class of ?
  1. Tie
  2. Cannot be determined
Q11MSQ2 marksselect all that apply
Which of the following best explains the classification of ?
  1. The nearest neighbors are dominated by positive class points.
  2. The nearest neighbors are dominated by negative class points.
  3. Positive class points are closer in all directions.
  4. The classification is determined by majority voting among the nearest neighbors.
Q12MCQ3 marks
Consider the two decision trees shown in the figure. question figure Which of the following statements is correct?
  1. Tree 1 has higher information gain than Tree 2
  2. Tree 2 has higher information gain than Tree 1
  3. Both trees have equal information gain
  4. Cannot be determined without further splits
Q13MCQ3 marks
Which of the following statements is correct?
  1. Bagging reduces variance, Boosting reduces bias
  2. Bagging reduces bias, Boosting reduces variance
  3. Both reduce only variance
  4. Both reduce only bias
Q14MCQ3 marks
Consider the datapoints with label and with label . A hard margin SVM is applied on this dataset. Which of the following is the decision boundary for the above dataset?
Q15MCQ3 marks
Consider a dataset , where each . Principal Component Analysis (PCA) is applied to this dataset and all the five principal components are retained. Which of the following statements is correct?
  1. PCA has reduced the dimensionality of the dataset because the combinations of features are de-correlated
  2. PCA has not reduced the dimensionality of the dataset because all principal components are retained.
  3. PCA always reduces the dimensionality of the dataset regardless of the number of components retained.
  4. PCA can never be used for dimensionality reduction.
Q16SA3 marks
Consider a regression problem in which we use a neural network with the following architecture: • Input layer has neurons • Three hidden layers, each with neurons • Output layer with one neuron Find the total number of parameters in the network. Ignore the biases.

Answer key

  1. Q1 (MCQ, 4 marks): A
  2. Q2 (MSQ, 4 marks): A, C
  3. Q3 (MSQ, 4 marks): A, B, D
  4. Q4 (MSQ, 3 marks): B, C
  5. Q5 (SA, 4 marks): 1
  6. Q6 (SA, 4 marks): 1
  7. Q7 (SA, 4 marks): 0.44 to 0.49
  8. Q8 (SA, 2 marks): 5
  9. Q9 (SA, 2 marks): 6
  10. Q10 (MCQ, 2 marks): B
  11. Q11 (MSQ, 2 marks): B, D
  12. Q12 (MCQ, 3 marks): A
  13. Q13 (MCQ, 3 marks): A
  14. Q14 (MCQ, 3 marks): B
  15. Q15 (MCQ, 3 marks): B
  16. Q16 (SA, 3 marks): 260