ML Study Hub

Home / Past papers / MLT Quiz 1 / this paper

IIT M DIPLOMA AN EXAM QDD3 26 Oct 2025 - 26 Oct 2025

MLT Quiz 114 questions40 marks6 SA · 5 MSQ · 3 MCQDiploma / afternoon / QDD3
Elapsed 00:00
Q1MSQ2 marksselect all that apply
Which among the following is true with respect to the Lloyds’ algorithm?
  1. It always converges.
  2. It may fail to converge for an initialization while it may converge for otherinitialization.
  3. It is sensitive to outliers.
  4. The solution produced is always the optimal.
Q2MSQ4 marksselect all that apply
question figure
  1. There will be 50 non-zero eigenvalues of the covariance matrix.
  2. There will be 6 non-zero eigenvalues of the covariance matrix.
  3. Using the first 5 principal components, the dataset can be reconstructed withzero residue.
  4. The variance captured by the top 6 principal components equals the totalvariance of the dataset.
Q3MSQ4 marksselect all that apply
question figure
  1. The points (0, 2), (2, 0), and (2, 2) have the equal probability of being chosen asthe second cluster center.
  2. The probability of selecting (2, 2) as the second cluster center is twice that ofselecting (0, 2).
  3. If (2, 2) is chosen as the second cluster center, the algorithm will alwaysconverge in one iteration.
  4. The tie-breaking rule will affect the final cluster centers.
Q4MSQ4 marksselect all that apply
question figure
  1. Posterior mean for Beta(1, 1) is 0.039.
  2. Posterior mean for Beta(1, 1) is 0.03.
  3. Posterior mean for Beta(0.5, 0.5) is 0.025.
  4. Posterior mean for Beta(0.5, 0.5) is 0.034.
Q5MSQ3 marksselect all that apply
Which of the following are valid kernel functions? Select all that apply.
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6SA3 marks
question figure
Q7SA3 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q8MCQ2 marks
What is the covariance matrix of the dataset?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q9SA2 marks
If standard PCA is performed on this dataset, what is the variance along the first principal component? Enter the answer correct to one decimal place.
Q10SA2 marks
If standard PCA is performed on this dataset, what is the variance along the second principal component? Enter the answer correct to one decimal place.
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q11MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. 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
Q13MCQ3 marks
Perform K-means clustering with K = 2 and initial cluster centers at (−2, 3) and (2,−1). What are the final means of clusters after convergence?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q14SA2 marks
Suppose we introduce a new data point (0, 0) to the existing dataset and perform K means with the same initial cluster centers. How many iterations would it require now for convergence?

Answer key

  1. Q1 (MSQ, 2 marks): A, C
  2. Q2 (MSQ, 4 marks): B, D
  3. Q3 (MSQ, 4 marks): B, C, D
  4. Q4 (MSQ, 4 marks): A, D
  5. Q5 (MSQ, 3 marks): A, B, D
  6. Q6 (SA, 3 marks): 3
  7. Q7 (SA, 3 marks): 0.45 to 0.50
  8. Q8 (MCQ, 2 marks): B
  9. Q9 (SA, 2 marks): 4.5
  10. Q10 (SA, 2 marks): 0.5
  11. Q11 (MCQ, 3 marks): B
  12. Q12 (SA, 3 marks): 0.64 to 0.68
  13. Q13 (MCQ, 3 marks): A
  14. Q14 (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 essential for the Diploma-Level Machine Learning Techniques exam, based on the provided question paper. The exam focuses on clustering (K-means, Lloyd’s algorithm), PCA, Bayesian inference, kernel methods, and basic linear algebra.



1. Core Topics & Key Concepts

A. Clustering (K-means & Lloyd’s Algorithm)

  1. Lloyd’s Algorithm (Standard K-means)

    • Steps:

      1. Initialize cluster centers (e.g., randomly or via k-means++).
      2. Assign points to the nearest center (Euclidean distance).
      3. Recompute centers as the mean of assigned points.
      4. Repeat until convergence (centers stabilize).
    • Convergence:

      • Guaranteed to converge (monotonically decreases within-cluster sum of squares, WCSS).
      • May converge to local optima (sensitive to initialization).
    • Sensitivity to Outliers: Yes (outliers can skew cluster means).
    • Optimality: Not guaranteed (depends on initialization).
  1. K-means++ Initialization

    • Probability of selecting a point as a center is proportional to its squared distance from existing centers.
    • Reduces sensitivity to initialization.
  1. Tie-Breaking in K-means

    • Affects final clusters if points are equidistant to multiple centers.
  1. Convergence in 1 Iteration

    • Happens if initial centers are already the final means (e.g., symmetric data).

B. Principal Component Analysis (PCA)

  1. Key Ideas:

    • Linear dimensionality reduction via orthogonal projection.
    • Maximizes variance along principal components (PCs).
    • PCs are eigenvectors of the covariance matrix, ordered by eigenvalues (variance).
  1. Covariance Matrix (Σ)

    • For a dataset X∈Rn×dX \in \mathbb{R}^{n \times d} (centered):
Σ=1n−1XTX\Sigma = \frac{1}{n-1} X^T X
  1. Number of Non-Zero Eigenvalues:

    • Equals the rank of the data matrix (≤ min(n, d)).
    • If data is d-dimensional but lies in a k-dimensional subspace, only k eigenvalues are non-zero.
  1. Variance Explained:

    • Total variance = sum of all eigenvalues.
    • Variance of the i-th PC = i-th eigenvalue (λi\lambda_i).
    • Reconstruction Error: Zero if all PCs are used; otherwise, equals the sum of discarded eigenvalues.
  1. Standard PCA Steps:

    1. Center the data (subtract mean).
    2. Compute covariance matrix Σ\Sigma.
    3. Eigendecomposition to get PCs and eigenvalues.
    4. Project data onto top-k PCs.

C. Bayesian Inference (Beta Distribution)

  1. Beta Distribution:

    • Prior for binomial/proportion data: θ∼Beta(α,β)\theta \sim \text{Beta}(\alpha, \beta).
    • Posterior Mean: For s successes and f failures:
E[θ∣data]=s+αs+f+α+β\mathbb{E}[\theta | \text{data}] = \frac{s + \alpha}{s + f + \alpha + \beta}
  1. Example Calculation:

    • Given data with 1 success and 24 failures:

      • For Beta(1,1)\text{Beta}(1,1): Posterior mean = 1+11+24+1+1=0.039\frac{1+1}{1+24+1+1} = 0.039.
      • For Beta(0.5,0.5)\text{Beta}(0.5,0.5): Posterior mean = 1+0.51+24+0.5+0.5=0.034\frac{1+0.5}{1+24+0.5+0.5} = 0.034.

D. Kernel Methods

  1. Kernel Trick:

    • Maps data to a higher-dimensional space where linear separation is possible.
    • Kernel function: K(xi,xj)=ϕ(xi)Tϕ(xj)K(x_i, x_j) = \phi(x_i)^T \phi(x_j).
  1. Valid Kernels (must satisfy Mercer’s condition):

    • Linear: K(xi,xj)=xiTxjK(x_i, x_j) = x_i^T x_j.
    • Polynomial: K(xi,xj)=(xiTxj+c)dK(x_i, x_j) = (x_i^T x_j + c)^d.
    • Gaussian (RBF): K(xi,xj)=exp⁡(−γ∥xi−xj∥2)K(x_i, x_j) = \exp(-\gamma \|x_i - x_j\|^2).
    • Sigmoid: K(xi,xj)=tanh⁡(αxiTxj+c)K(x_i, x_j) = \tanh(\alpha x_i^T x_j + c).

E. Linear Algebra Basics

  1. Covariance Matrix:

    • For 2D data X={(x1,y1),...,(xn,yn)}X = \{(x_1, y_1), ..., (x_n, y_n)\}:
Σ=[Var(x)Cov(x,y)Cov(x,y)Var(y)]\Sigma = \begin{bmatrix} \text{Var}(x) & \text{Cov}(x,y) \\ \text{Cov}(x,y) & \text{Var}(y) \end{bmatrix}
  1. Eigenvalues/Eigenvectors:

    • For a 2x2 matrix AA, solve det⁡(A−λI)=0\det(A - \lambda I) = 0.

2. Key Equations

TopicEquation
K-means ObjectiveMinimize ∑k=1K∑xi∈Ck∥xi−μk∥2\sum_{k=1}^K \sum_{x_i \in C_k} \|x_i - \mu_k\|^2
Covariance MatrixΣ=1n−1XTX\Sigma = \frac{1}{n-1} X^T X (centered data)
PCA ProjectionZ=XVkZ = X V_k (project onto top-k PCs)
Beta Posterior Means+αs+f+α+β\frac{s + \alpha}{s + f + \alpha + \beta}
Gaussian KernelK(xi,xj)=exp⁡(−γ∥xi−xj∥2)K(x_i, x_j) = \exp(-\gamma \|x_i - x_j\|^2)

Graph 2: Bayesian Inference & Kernels

Graph 3: Linear Algebra Foundations


4. Exam Tips

  1. K-means:

    • Remember it always converges but may not find the global optimum.
    • K-means++ reduces initialization bias.
  2. PCA:

    • Number of non-zero eigenvalues = rank of the data.
    • Total variance = sum of all eigenvalues.
  3. Bayesian Inference:

    • Posterior mean for Beta prior: plug in successes/failures.
  4. Kernels:

    • Valid kernels must be positive semi-definite.
  5. Covariance Matrix:

    • Diagonal elements = variances; off-diagonal = covariances.