ML Study Hub

Home / Past papers / MLT End Term / this paper

IIT M DEGREE AN EXAM QDB4 31 Aug 2025 - 31 Aug 2025

MLT End Term17 questions50 marks7 MCQ · 6 SA · 4 MSQafternoon / QDB4
Elapsed 00:00
Q1MCQ3 marks
question figure
  1. Yes
  2. No
Q2MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q3MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q4MCQ2 marks
question figure
  1. Greedy initialization always achieves F = Foptimal by maximizing the distancebetween initial centers.
  2. Greedy initialization may achieve F = Foptimal or a larger value depending onthe dataset and the initial choice.
  3. Greedy initialization does not ensure convergence for K-means clustering.
  4. Greedy initialization ensures convergence to a unique solution for any dataset.
Q5MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6MSQ3 marksselect all that apply
Which of the following statements are true about the decision tree algorithm?
  1. Decision trees are prone to overfitting if the maximum depth is set tooshallow.
  2. Decision trees are not affected by the order of features in the dataset.
  3. Decision trees are sensitive to small perturbations in the dataset and canresult in different tree structures.
  4. Decision trees can handle both numerical and categorical features.
Q7MSQ3 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q8MSQ3 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
Q9MSQ4 marksselect all that apply
Given a two-dimensional data set where points from class 1 are: {(−2, 3), (−1, 1)} and points from class 0 are: {(1, 3), (1, 4)}. Which of the following statements are true?
  1. The given data points from classes 1 and 0 can be linearly separated using ahard-margin SVM.
  2. A perceptron model and a hard-margin SVM can give different decisionboundary for this dataset.
  3. A soft-margin SVM would be a more robust choice than a hard-margin SVM forthis dataset as the dataset is not linearly separable.
  4. The width of the separation between the two supporting hyperplanes is 4.
Q10SA3 marks
question figure
Q11SA3 marks
question figure
Q12SA3 marks
question figure
Q13SA4 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q14MCQ4 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q15MCQ2 marks
question figure
  1. The coefficients shrinks towards zero.
  2. The coefficients increases in magnitude.
  3. The coefficients remain unchanged.
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q16SA1 mark
question figure
Q17SA3 marks
question figure

Answer key

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

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 the core topics, concepts, principles, and equations essential for the Diploma Level: Machine Learning Techniques exam, along with Mermaid knowledge graphs to visualize relationships.



1. Core Topics & Concepts

A. Supervised Learning

  1. Perceptron Algorithm

    • Concept: Linear classifier for binary classification. Updates weights iteratively if misclassification occurs.
    • Key Equation:

      • Update rule: w←w+η⋅yi⋅xiw \leftarrow w + \eta \cdot y_i \cdot x_i (if yi(wTxi)≤0y_i(w^T x_i) \leq 0).
      • Convergence: Guaranteed if data is linearly separable (Novikoff’s theorem).
    • Example: Question 2 (convergence analysis), Question 9 (scaling data).
  1. Support Vector Machines (SVM)

    • Concept: Maximizes the margin between classes. Hard-margin (no misclassification) vs. soft-margin (allows slack variables ξi\xi_i).
    • Key Equations:

      • Hard-margin: min⁡w12∥w∥2\min_w \frac{1}{2} \|w\|^2 s.t. yi(wTxi)≥1y_i(w^T x_i) \geq 1.
      • Soft-margin: min⁡w,ξ12∥w∥2+C∑ξi\min_{w,\xi} \frac{1}{2} \|w\|^2 + C \sum \xi_i s.t. yi(wTxi)≥1−ξiy_i(w^T x_i) \geq 1 - \xi_i.
      • Kernel trick: K(xi,xj)=ϕ(xi)Tϕ(xj)K(x_i, x_j) = \phi(x_i)^T \phi(x_j).
    • Example: Question 3 (kernel transformation), Question 4 (support vectors), Question 8 (soft-margin SVM), Question 10 (decision boundary).
  1. Logistic Regression

    • Concept: Probabilistic classifier using sigmoid activation.
    • Key Equation:

      • P(y=1∣x)=11+e−wTxP(y=1|x) = \frac{1}{1 + e^{-w^T x}}.
    • Example: Question 12 (probability threshold).
  1. Neural Networks

    • Concept: Multi-layer perceptron (MLP) with activation functions (ReLU, sigmoid).
    • Key Equations:

      • Forward pass: h=ReLU(W(1)x)h = \text{ReLU}(W^{(1)}x), y^=σ(W(out)h)\hat{y} = \sigma(W^{(out)} h).
    • Example: Question 6 (probability prediction).
  1. Linear Regression & Ridge Regression

    • Concept: Fits a linear model to data. Ridge adds L2 regularization.
    • Key Equations:

      • OLS: w^ML=(XTX)−1XTY\hat{w}_{ML} = (X^T X)^{-1} X^T Y.
      • Ridge: w^Ridge=(XTX+λI)−1XTY\hat{w}_{Ridge} = (X^T X + \lambda I)^{-1} X^T Y.
    • Example: Question 15 (coefficient calculation), Question 16 (effect of λ\lambda).

B. Unsupervised Learning

  1. K-Means Clustering

    • Concept: Partitions data into KK clusters by minimizing within-cluster variance.
    • Key Equation:

      • Objective: min⁡∑i=1n∥xi−μzi∥2\min \sum_{i=1}^n \|x_i - \mu_{z_i}\|^2.
    • Example: Question 5 (greedy initialization).
  1. Principal Component Analysis (PCA)

    • Concept: Dimensionality reduction via eigen decomposition of covariance matrix.
    • Key Equation:

      • Covariance matrix: C=1nXTXC = \frac{1}{n} X^T X.
      • Total variance: ∑λi\sum \lambda_i.
    • Example: Question 11 (eigenvalues and variance).

C. Probabilistic Models

  1. Naive Bayes

    • Concept: Assumes feature independence given the class. Uses MLE for parameter estimation.
    • Key Equation:

      • P(y∣x)∝P(y)∏iP(xi∣y)P(y|x) \propto P(y) \prod_i P(x_i|y).
    • Example: Question 17 (parameter counting), Question 18 (prediction with Laplace smoothing).
  1. Maximum A Posteriori (MAP) Estimation

    • Concept: Bayesian parameter estimation with a prior.
    • Key Equation:

      • λ^MAP=arg⁡max⁡λP(λ∣X)\hat{\lambda}_{MAP} = \arg \max_\lambda P(\lambda|X).
    • Example: Question 14 (exponential distribution with uniform prior).

D. Ensemble Methods

  1. Random Forest

    • Concept: Aggregates predictions from multiple decision trees via averaging (regression) or voting (classification).
    • Example: Question 13 (probability averaging).

E. Decision Trees

  1. Decision Tree Algorithm

    • Concept: Recursively splits data based on feature thresholds. Prone to overfitting if unconstrained.
    • Key Points:

      • Handles numerical/categorical features.
      • Sensitive to data perturbations.
    • Example: Question 7 (properties of decision trees).


2. Key Equations Summary

TopicEquationNotes
Perceptron Updatew←w+ηyixiw \leftarrow w + \eta y_i x_i (if misclassified)Converges if linearly separable.
SVM (Hard-Margin)min⁡w12∥w∥2\min_w \frac{1}{2} \|w\|^2 s.t. yi(wTxi)≥1y_i(w^T x_i) \geq 1Support vectors lie on margin.
SVM (Soft-Margin)min⁡w,ξ12∥w∥2+C∑ξi\min_{w,\xi} \frac{1}{2} \|w\|^2 + C \sum \xi_i s.t. yi(wTxi)≥1−ξiy_i(w^T x_i) \geq 1 - \xi_iCC: Trade-off between margin and error.
Logistic RegressionP(y=1∣x)=11+e−wTxP(y=1|x) = \frac{1}{1 + e^{-w^T x}}Sigmoid activation.
Kernel TrickK(xi,xj)=ϕ(xi)Tϕ(xj)K(x_i, x_j) = \phi(x_i)^T \phi(x_j)Enables non-linear decision boundaries.
K-Means Objectivemin⁡∑i=1n∥xi−μzi∥2\min \sum_{i=1}^n \|x_i - \mu_{z_i}\|^2NP-hard; sensitive to initialization.
Ridge Regressionw^=(XTX+λI)−1XTY\hat{w} = (X^T X + \lambda I)^{-1} X^T Yλ\lambda: Regularization strength.
Naive BayesP(y∣x)∝P(y)∏iP(xi∣y)P(y|x) \propto P(y) \prod_i P(x_i|y)Assumes conditional independence.
MAP Estimationθ^MAP=arg⁡max⁡θP(θ∣X)\hat{\theta}_{MAP} = \arg \max_\theta P(\theta|X)Combines likelihood and prior.
PCA Total VarianceVartotal=∑i=1dλi\text{Var}_{\text{total}} = \sum_{i=1}^d \lambda_iλi\lambda_i: Eigenvalues of covariance.


Graph 2: Unsupervised Learning & Probabilistic Models

Graph 3: Ensemble Methods & Decision Trees

Graph 4: Key Equations Flow



4. Exam-Specific Tips

  1. Perceptron/SVM:

    • For convergence (Question 2), cycle through data points and update weights manually.
    • For kernels (Question 3), match terms in k(x,y)k(x, y) to ϕ(x)Tϕ(y)\phi(x)^T \phi(y).
    • Support vectors (Question 4) are points where yi(wTxi)=1y_i(w^T x_i) = 1.
  1. K-Means:

    • Greedy initialization (Question 5) does not guarantee optimality but can achieve FoptimalF_{optimal} depending on data.
  1. Neural Networks:

    • Compute hidden layer outputs step-by-step (Question 6). ReLU: max⁡(0,z)\max(0, z); Sigmoid: 1/(1+e−z)1/(1 + e^{-z}).
  1. Decision Trees:

    • Overfitting (Question 7) is controlled by max depth/pruning. Trees handle mixed feature types.
  1. Probabilistic Models:

    • For Naive Bayes (Questions 17–18), count parameters as (d+1)×c(d + 1) \times c (where dd = features, cc = classes).
    • MAP estimation (Question 14) for exponential distribution: Posterior∝Likelihood×Prior\text{Posterior} \propto \text{Likelihood} \times \text{Prior}.
  1. Regression:

    • Ridge regression (Questions 15–16): As λ↓\lambda \downarrow, coefficients approach OLS solution.
  1. PCA:

    • Total variance (Question 11) is the sum of eigenvalues. Solve the system of equations for λi\lambda_i.