ML Study Hub

Home / Past papers / MLT End Term / this paper

Machine Learning Techniques 13 Sep 26 (Session 2) - 13 Sep 2026

MLT End Term19 questions50 marks8 MCQ · 7 MSQ · 4 SA
Elapsed 00:00
Q1MSQ4 marksselect all that apply
Let be points in that are linearly separable by a hyperplane through the origin. Construct where is a constant. The perceptron algorithm (initialised at , learning rate ) is run on both and , using the same ordering of points in both runs. Which of the following statements are true?
  1. The mistake bound of the perceptron on is strictly larger than its mistake bound on .
  2. may fail to be linearly separable.
  3. The perceptron is guaranteed to converge on .
  4. The perceptron produces exactly the same decision boundary on and on .
Q2MSQ4 marksselect all that apply
Consider binary classification on input features . Define the decision boundary of a trained classifier as the set of points at which its predicted label changes. For which of the following method(s) can this decision boundary be non-linear in ?
  1. Perceptron.
  2. Logistic regression, predicting the positive class when .
  3. -nearest-neighbour with Euclidean distance.
  4. A decision tree using axis-aligned splits.
  5. Gaussian Naïve Bayes in which the class-conditional feature variances differ between the two classes.
  6. A support vector machine with a linear kernel.
  7. A support vector machine with an RBF (Gaussian) kernel.
Q3MSQ2 marksselect all that apply
Let question figure be the sigmoid (logistic) function. Select all statements below that are true for every .
  1. .
  2. is a non-decreasing function but not strictly increasing.
  3. is a strictly increasing function.
  4. is convex on all of .
Q4MSQ2 marksselect all that apply
Identify the correct relationship(s) between bias, variance, and the hyperparameter in the - Nearest Neighbours algorithm.
  1. Increasing leads to an increase in bias.
  2. Decreasing leads to an increase in bias.
  3. Increasing leads to an increase in variance.
  4. Decreasing leads to an increase in variance.
Q5MSQ2 marksselect all that apply
Consider the effect of each operation below on a model's bias and variance. Which of the following statements are correct?
  1. Regularising the weights in a linear/logistic regression model increases bias and decreases variance.
  2. Increasing the maximum depth of a decision tree increases bias and decreases variance.
  3. Increasing the number of hidden units in a neural network decreases bias and increases variance.
  4. Removing all the non-support-vectors from the training set of an SVM leaves both bias and variance unchanged.
Q6SA2 marks
In logistic regression, a point is classified positive only if . What score threshold (with at the boundary of this rule) does this correspond to? (Round to 2 decimal places.)
Q7SA2 marks
You build a fully-connected feed-forward neural network for a classification task. The input is a - dimensional vector; the network has two hidden layers of neurons each, followed by an output layer of neurons. Every layer is densely (fully) connected to the next. Ignoring all bias terms, compute the total number of weight parameters in the network. (Enter if it cannot be determined.)
Q8MCQ4 marks
Let be the solution to the ordinary least-squares linear regression problem question figure . Which of the following is always satisfied at ? Note that here is your feature matrix and is the label vector.
Q9MCQ4 marks
Consider a scenario where we use leave-one-out cross-validation (LOOCV) with a Support Vector Machine (SVM) for binary classification. Given a dataset , the cross- validation error for a sample is if and otherwise, where is the prediction for produced by the SVM trained on . The overall cross-validation error is question figure . Let be the number of support vectors obtained by training on the full dataset . Which statement is true regarding the relationship between and ?
  1. question figure
  2. question figure
  3. question figure
  4. is independent of
Q10SA3 marks
Consider one-dimensional ridge regression with no bias term. Given question figure and question figure , with , compute the optimal . Note that is th data point and is th label. (Round to 2 decimal places.)
Q11MCQ1 mark
For the covariance matrix question figure , compute the variance captured along the first principal component.
Q12MCQ1 mark
Given a dataset with discrete attributes, each taking exactly 5 possible values (where ), for a three-class classification task, the number of parameters to be estimated for learning a naïve Bayes classifier is:
Q13MCQ2 marks
For an optimal soft-margin SVM solution (no bias term), a training point satisfies . Here denotes the slack variable for this point, and is the Lagrange multiplier on the constraint . Which statement is necessarily true?
  1. The point is misclassified by .
  2. .
  3. and .
  4. .
Q14MCQ2 marks
Consider a binary classification dataset in which the two classes are perfectly linearly separable. You are considering a Perceptron, Logistic Regression, and a Decision Tree. If the objective is to learn a linear decision boundary and no probability estimates are required, which of the following classifiers are appropriate choices?
  1. Perceptron only
  2. Logistic Regression only
  3. Both Perceptron and Logistic Regression
  4. Decision Tree only
Q15MCQ2 marks
A Euclidean-distance-based -means clustering algorithm was run on a dataset of points with . If the points and are both part of cluster , then which ONE of the following points is necessarily also part of cluster ?
Q16SA4 marks
Note: coordinates of x1 vector are intentionally not provided. question figure
Q17MSQ3 marksselect all that apply
Which of the following statements about entropy and information gain in decision-tree learning are correct?
  1. If a feature splits a node into perfectly pure children, its information gain at that node equals the entropy of that node.
  2. A node whose examples all belong to a single class has entropy and needs no further splitting.
  3. Information gain can be negative if a split increases impurity.
  4. After a parent node is split into child nodes, no individual child node can have entropy greater than the parent node's entropy.
Q18MSQ3 marksselect all that apply
Which of the following statements about bagging are correct?
  1. Bagging reduces the variance of the ensemble's prediction.
  2. Bagging substantially reduces the bias of the base learner.
  3. Bagging tends to help most when the base learners are diverse (weakly correlated with one another).
  4. Bagging tends to help most with high-variance, low-bias base learners such as deep, unpruned decision trees.
  5. averaging all base learner reduces variance, if every base learner produces identical predictions.
Q19MCQ3 marks
Suppose we model data as with a single unknown parameter and known variance (each ). You perform maximum-likelihood estimation of . The MLE of must satisfy which of the following equations? Note that is a feature and is a label.
  1. question figure
  2. question figure
  3. question figure
  4. question figure

Answer key

  1. Q1 (MSQ, 4 marks): C, D
  2. Q2 (MSQ, 4 marks): C, D, E, G
  3. Q3 (MSQ, 2 marks): A, C
  4. Q4 (MSQ, 2 marks): A, D
  5. Q5 (MSQ, 2 marks): A, C, D
  6. Q6 (SA, 2 marks): 1.08 to 1.10
  7. Q7 (SA, 2 marks): 180
  8. Q8 (MCQ, 4 marks): A
  9. Q9 (MCQ, 4 marks): A
  10. Q10 (SA, 3 marks): 0.19 to 0.21
  11. Q11 (MCQ, 1 marks): C
  12. Q12 (MCQ, 1 marks): B
  13. Q13 (MCQ, 2 marks): C
  14. Q14 (MCQ, 2 marks): C
  15. Q15 (MCQ, 2 marks): C
  16. Q16 (SA, 4 marks): 2.71 to 2.73
  17. Q17 (MSQ, 3 marks): A, B
  18. Q18 (MSQ, 3 marks): A, C, D
  19. Q19 (MCQ, 3 marks): A