ML Study Hub

Home / Past papers / MLT Quiz 1 / this paper

Machine Learning Techniques 16 Jul 26 - 19 Jul 2026

MLT Quiz 111 questions40 marks6 MCQ · 3 MSQ · 2 SA
Elapsed 00:00
Q1MCQ4 marks
Consider a mean-centred dataset consisting of 5000 points in with features .Every data point satisfies The independent base feature has variance . The remaining features are mutually uncorrelated, uncorrelated with , and each has variance .Standard PCA is performed on this dataset. Let denote the eigenvalues of the covariance matrix in descending order. Which of the following statements is strictly true?
  1. Exactly 3 eigenvalues are zero: , and
  2. Exactly 4 eigenvalues are zero( ), and
  3. Exactly 4 eigenvalues are zero( ), and
  4. Exactly 2 eigenvalues are zero( ), and lies somewhere in the - - subspace.
Q2MCQ4 marks
Let .Define question figure Which of the following is the correct expression for ?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q3MCQ4 marks
Consider the one-dimensional dataset Suppose -means is run with clusters. At iteration , the centroids are The assignment step is performed using these centroids to produce new assignments for each point. Compute question figure
  1. 4
  2. 8
  3. 24
  4. 44
Q4MCQ3 marks
Which of the following statements is true for the -means algorithm with cluster centres, between consecutive iterations and ?
  1. If ,then at least one data point will change its cluster assignment from iteration to .question figure
  2. If , then no data point will change its cluster assignment from iteration to .question figure
  3. If a data point changes its cluster assignment from cluster to cluster , it is guaranteed that the centroid of cluster strictly changes, i.e., .
  4. It is not possible for the -means algorithm to revisit a configuration, where a configuration corresponds to the -way partition generated by clustering at the end of each iteration.
Q5MCQ3 marks
A dataset containing 1,000 points is clustered using the -means algorithm. Which of the following values of is most likely to yield the value of objective function of -means?
Q6MCQ3 marks
Consider the following kernel function defined for scalar inputs : Which of the following feature maps satisfies for all ?
Q7MSQ4 marksselect all that apply
Let be a convex function.Which of the following choices of that holds for convex function and ?
  1. question figure
Q8MSQ4 marksselect all that apply
Assume that question figure are valid (positive semi-definite) kernels. Which of the following are valid kernels?
  1. question figure
  2. question figure
Q9MSQ4 marksselect all that apply
Consider a GMM with components.During the E-step for a single data point , you are given only the following two quantities for the first component: where is the prior mixing weight and is the posterior responsibility. All other component parameters and densities are unknown. Based strictly on these two values and the mathematical definition of the E-step responsibility, question figure which of the following quantities can be uniquely determined as exact numerical values?
  1. The marginal probability density of the data point, .
  2. The ratio of the conditional density to the marginal density for component : .question figure
  3. The ratio of the joint probability of component to the sum of joint probabilities of all other components: .question figure
  4. The sum of posterior responsibilities for all components other than component :question figure
Q10SA4 marks
Inscript Consider a two-component Gaussian Mixture Model (GMM) with mixing weights and .For a particular observation , the component conditional densities satisfy During the E-step of the EM algorithm, the posterior responsibility of component is computed as .Determine the value of , correct to two decimal places.
Q11SA3 marks
Let be a dataset of observations where each .It is given that question figure The covariance matrix computed from has eigenvalues Let be the direction of maximum variance with . Find the value of question figure .

Answer key

  1. Q1 (MCQ, 4 marks): B
  2. Q2 (MCQ, 4 marks): B
  3. Q3 (MCQ, 4 marks): C
  4. Q4 (MCQ, 3 marks): D
  5. Q5 (MCQ, 3 marks): D
  6. Q6 (MCQ, 3 marks): D
  7. Q7 (MSQ, 4 marks): B, E
  8. Q8 (MSQ, 4 marks): A, B, C
  9. Q9 (MSQ, 4 marks): B, C, D
  10. Q10 (SA, 4 marks): 0.30 to 0.36
  11. Q11 (SA, 3 marks): 100

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 summary of the core topics, concepts, principles, and equations essential for the exam, based on the provided questions.

Summary of Core Topics and Concepts

The questions cover fundamental aspects of Data Science, Machine Learning, Linear Algebra, and Optimization, crucial for understanding and implementing various algorithms.

1. Linear Algebra for Data Science

2. Principal Component Analysis (PCA)

3. Optimization

4. K-Means Clustering

5. Kernel Methods

6. Gaussian Mixture Models (GMM)

Essential Equations and Principles (in LaTeX)

  1. Covariance Matrix (for mean-centered data xˉ=0\bar{x} = \mathbf{0}):

    S=1n∑i=1nx(i)(x(i))TS = \frac{1}{n} \sum_{i=1}^n x^{(i)} (x^{(i)})^T
  2. Eigenvalue Decomposition: For a square matrix SS, an eigenvector vv and eigenvalue λ\lambda satisfy:

    Sv=λvS v = \lambda v
  3. Variance Explained by a Principal Component: For a mean-centered dataset and a unit eigenvector uu (principal component), the variance of the projections of data points onto uu is its corresponding eigenvalue λ\lambda:

    1n∑i=1n(uTx(i))2=λ\frac{1}{n} \sum_{i=1}^n (u^T x^{(i)})^2 = \lambda

    The sum of all eigenvalues equals the total variance (trace of the covariance matrix):

    Trace(S)=∑j=1dλj=∑j=1dVar(xj)\text{Trace}(S) = \sum_{j=1}^d \lambda_j = \sum_{j=1}^d \text{Var}(x_j)

    The number of non-zero eigenvalues equals the rank of the covariance matrix.

  4. Minimization of Sum of Squared Errors: To minimize J(v)=∑i=1n∥Cxi−Dv∥2J(v) = \sum_{i=1}^n \|C x_i - D v\|^2 with respect to vv, set the gradient to zero:

    ∇vJ(v)=∑i=1n−2DT(Cxi−Dv)=0\nabla_v J(v) = \sum_{i=1}^n -2D^T (C x_i - D v) = \mathbf{0}

    For the specific problem v∗=arg⁡min⁡v∈Rd∑i=1n∥3xi−2v∥2v^* = \arg \min_{v \in \mathbb{R}^d} \sum_{i=1}^n \|3x_i - 2v\|^2:

    v∗=32n∑i=1nxiv^* = \frac{3}{2n} \sum_{i=1}^n x_i
  5. K-Means Algorithm:

    • Objective Function (WCSS):

      J(C,μ)=∑k=1K∑xi∈Ck∥xi−μk∥2J(C, \mu) = \sum_{k=1}^K \sum_{x_i \in C_k} \|x_i - \mu_k\|^2
    • Assignment Step (E-step):

      Zi=arg⁡min⁡k∥xi−μk∥2Z_i = \arg \min_k \|x_i - \mu_k\|^2
    • Update Step (M-step):

      μknew=1∣Ck∣∑xi∈Ckxi\mu_k^{\text{new}} = \frac{1}{|C_k|} \sum_{x_i \in C_k} x_i
  6. Kernel Functions:

    • Linear Kernel: K1(x,y)=xTyK_1(x,y) = x^T y
    • Gaussian (RBF) Kernel: K2(x,y)=exp⁡(−∥x−y∥22σ2)K_2(x,y) = \exp\left(-\frac{\|x-y\|^2}{2\sigma^2}\right)
    • Properties of Valid Kernels (Ka,KbK_a, K_b):

      • Sum: Ka(x,y)+Kb(x,y)K_a(x,y) + K_b(x,y) is a valid kernel.
      • Product: Ka(x,y)⋅Kb(x,y)K_a(x,y) \cdot K_b(x,y) is a valid kernel.
      • Scaling (c≥0c \ge 0): cKa(x,y)c K_a(x,y) is a valid kernel.
      • Normalization (if K(x,x)>0K(x,x) > 0): K(x,y)K(x,x)K(y,y)\frac{K(x,y)}{\sqrt{K(x,x)K(y,y)}} is a valid kernel.
  7. Gaussian Mixture Models (GMM) - E-Step:

    • Posterior Responsibility (γk\gamma_k):

      γk=πkf(x∣z=k)p(x)\gamma_k = \frac{\pi_k f(x | z=k)}{p(x)}
    • Marginal Probability Density (p(x)p(x)):

      p(x)=∑j=1Kπjf(x∣z=j)p(x) = \sum_{j=1}^K \pi_j f(x | z=j)
    • Properties of Responsibilities:

      ∑j=1Kγj=1\sum_{j=1}^K \gamma_j = 1
      ∑j≠kγj=1−γk\sum_{j \neq k} \gamma_j = 1 - \gamma_k
      πkf(x∣z=k)∑j≠kπjf(x∣z=j)=γk1−γk\frac{\pi_k f(x | z=k)}{\sum_{j \neq k} \pi_j f(x | z=j)} = \frac{\gamma_k}{1 - \gamma_k}