ML Study Hub

Home / Past papers / MLT End Term / this paper

IIT M FOUNDATION FN EXAM QDF1 13 Apr - 13 Apr 2025

MLT End Term18 questions50 marks7 SA · 6 MCQ · 5 MSQFoundation / forenoon / QDF1
Elapsed 00:00
Q1MCQ3 marks
For a given dataset, a 1-Nearest Neighbor (1-NN) and a 3-Nearest Neighbor (3-NN) classifier are applied. Which classifier is likely to exhibit a higher Leave-One-Out Cross Validation (LOOCV) error? In case of tie-breaker, assign a positive class (+) to the data point. question figure For a given dataset, a 1-Nearest Neighbor (1-NN) and a 3-Nearest Neighbor (3-NN) classifier are applied. Which classifier is likely to exhibit a higher Leave-One-Out Cross Validation (LOOCV) error? In case of tie-breaker, assign a positive class (+) to the data point.
  1. 1-NN
  2. 3-NN
  3. Both have the same error.
Q2MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
Q3MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q4MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q5MSQ3 marksselect all that apply
Which of the following statements correctly differentiates PCA and Kernel PCA?
  1. PCA maximizes variance in the original feature space, while Kernel PCAmaximizes variance in a higher-dimensional transformed space.
  2. PCA finds principal components using linear transformations in the originalspace, while Kernel PCA uses non-linear transformations to find principal components in a higher-dimensional space.
  3. Kernel PCA can capture non-linear patterns in data, making it useful when PCAfails to represent complex structures in a linear space.
  4. PCA and Kernel PCA always yield identical results regardless of the datasetstructure.
Q6MSQ3 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
  5. question figure
Q7MSQ2 marksselect all that apply
Which of the following statements are true for bagging?
  1. The final model has lesser variance than the individual learners.
  2. The final model has a higher variance than the individual learners.
  3. Estimators in bagging can be trained parallely.
  4. If the number of data points is large, typically two-third of the data pointsremain unselected in bags.
Q8MSQ2 marksselect all that apply
question figure
  1. It penalizes large coefficients to reduce overfitting.
  2. It shrinks the coefficients but does not set them to zero.
  3. It forces more coefficients to be exactly zero, performing feature selection.
  4. It has no effect on the regression model.
Q9SA2 marks
For a decision tree, each node has exactly two child nodes (balanced tree). If the tree has a depth of 3, how many leaf nodes are there?
Q10SA3 marks
question figure
Q11SA3 marks
question figure
Q12SA3 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q13SA3 marks
question figure
Q14MCQ2 marks
Will the algorithm converge after this update?
  1. YES
  2. NO
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q15MCQ2 marks
question figure
  1. It is a circle.
  2. It is a straight line.
  3. It is an ellipse.
  4. It is a parabola.
Q16MSQ3 marksselect all that apply
Which of the following training data points are certainly not support vectors?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q17SA3 marks
question figure
Q18SA2 marks
question figure

Answer key

  1. Q1 (MCQ, 3 marks): A
  2. Q2 (MCQ, 3 marks): C
  3. Q3 (MCQ, 4 marks): B
  4. Q4 (MCQ, 4 marks): B
  5. Q5 (MSQ, 3 marks): A, B, C
  6. Q6 (MSQ, 3 marks): B, D, E
  7. Q7 (MSQ, 2 marks): A, C
  8. Q8 (MSQ, 2 marks): A, C
  9. Q9 (SA, 2 marks): 8
  10. Q10 (SA, 3 marks): 24
  11. Q11 (SA, 3 marks): 20
  12. Q12 (SA, 3 marks): 11
  13. Q13 (SA, 3 marks): 1
  14. Q14 (MCQ, 2 marks): A
  15. Q15 (MCQ, 2 marks): C
  16. Q16 (MSQ, 3 marks): A, C
  17. Q17 (SA, 3 marks): 0.64 to 0.68
  18. Q18 (SA, 2 marks): 1

Concepts this paper tests

Auto-generated summary from the source site. Handy as a checklist; the lessons above explain each idea from scratch.

Here’s a structured summary of core topics, concepts, principles, and equations for the Diploma-Level Machine Learning Techniques Exam, followed by Mermaid knowledge graphs to visualize relationships.


Core Topics & Key Concepts

1. Supervised Learning

A. k-Nearest Neighbors (k-NN)

d(x,x′)=∑i=1n(xi−xi′)2d(\mathbf{x}, \mathbf{x}') = \sqrt{\sum_{i=1}^n (x_i - x_i')^2}

B. Linear Regression

y=w1x1+w2x2+⋯+wnxn+by = w_1 x_1 + w_2 x_2 + \dots + w_n x_n + b
w=(XTX)−1XTy\mathbf{w} = (X^T X)^{-1} X^T \mathbf{y}
min⁡θ∥y−Xθ∥22+λ∥θ∥22\min_{\theta} \|\mathbf{y} - X\theta\|_2^2 + \lambda \|\theta\|_2^2

C. Logistic Regression & Perceptron

w←w+η⋅yixi\mathbf{w} \leftarrow \mathbf{w} + \eta \cdot y_i \mathbf{x}_i

D. Support Vector Machines (SVM)

min⁡w,ξ12∥w∥2+C∑i=1nξi\min_{w, \xi} \frac{1}{2} \|w\|^2 + C \sum_{i=1}^n \xi_i

Subject to:

yi(wTxi+b)≥1−ξi,ξi≥0y_i (w^T x_i + b) \geq 1 - \xi_i, \quad \xi_i \geq 0

E. AdaBoost

ϵt=∑i=1nDt(i)⋅I(yi≠ht(xi))\epsilon_t = \sum_{i=1}^n D_t(i) \cdot \mathbb{I}(y_i \neq h_t(x_i))
Dt+1(i)=Dt(i)⋅e−αtyiht(xi)ZtD_{t+1}(i) = \frac{D_t(i) \cdot e^{-\alpha_t y_i h_t(x_i)}}{Z_t}

where αt=12ln⁡(1−ϵtϵt)\alpha_t = \frac{1}{2} \ln \left( \frac{1 - \epsilon_t}{\epsilon_t} \right).


2. Unsupervised Learning

A. K-Means Clustering

B. Principal Component Analysis (PCA) & Kernel PCA


3. Ensemble Methods

A. Bagging (Bootstrap Aggregating)

B. Boosting (AdaBoost, Gradient Boosting)


4. Neural Networks

h=σ(W(1)x+b(1)),y=σ(W(2)h+b(2))h = \sigma(W^{(1)} x + b^{(1)}), \quad y = \sigma(W^{(2)} h + b^{(2)})

5. Probabilistic Models

A. Naïve Bayes

B. Maximum Likelihood Estimation (MLE)

f(x;θ)={1θ,0≤x≤θ0,otherwisef(x; \theta) = \begin{cases} \frac{1}{\theta}, & 0 \leq x \leq \theta \\ 0, & \text{otherwise} \end{cases}

6. Model Evaluation & Regularization

A. Bias-Variance Tradeoff

B. Cross-Validation


7. Decision Trees


Graph 2: Unsupervised Learning & Ensemble Methods

Graph 3: Probabilistic Models & Neural Networks

Graph 4: Model Evaluation & Regularization


Key Equations Summary

TopicEquation
Linear Regressionw=(XTX)−1XTy\mathbf{w} = (X^T X)^{-1} X^T \mathbf{y}
Ridge Regressionmin⁡θ∥y−Xθ∥22+λ∥θ∥22\min_{\theta} \|\mathbf{y} - X\theta\|_2^2 + \lambda \|\theta\|_2^2
Perceptron Updatew←w+η⋅yixi\mathbf{w} \leftarrow \mathbf{w} + \eta \cdot y_i \mathbf{x}_i
SVM (Soft-Margin)min⁡w,ξ12∥w∥2+C∑i=1nξi\min_{w, \xi} \frac{1}{2} \|w\|^2 + C \sum_{i=1}^n \xi_i
AdaBoost Weight UpdateDt+1(i)=Dt(i)⋅e−αtyiht(xi)ZtD_{t+1}(i) = \frac{D_t(i) \cdot e^{-\alpha_t y_i h_t(x_i)}}{Z_t}
Gaussian Naïve BayesP(x∣y)=12πσy2e−(x−μy)22σy2P(x|y) = \frac{1}{\sqrt{2\pi\sigma_y^2}} e^{-\frac{(x-\mu_y)^2}{2\sigma_y^2}}
MLE (Uniform Dist.)θ^=max⁡(X1,X2,…,Xn)\hat{\theta} = \max(X_1, X_2, \dots, X_n)
K-Means Objectivemin⁡∑i=1k∑x∈Ci∥x−μi∥2\min \sum_{i=1}^k \sum_{x \in C_i} \|x - \mu_i\|^2
PCACovariance Matrix=1nXTX\text{Covariance Matrix} = \frac{1}{n} X^T X
Kernel PCAK(x,x′)=ϕ(x)Tϕ(x′)K(x, x') = \phi(x)^T \phi(x') (e.g., polynomial kernel)