ML Study Hub

Home / Past papers / MLF End Term / this paper

IIT M DIPLOMA AN EXAM QDD3 13 Apr 2025 - 13 Apr 2025

MLF End Term14 questions40 marks7 MSQ · 5 SA · 2 MCQDiploma / afternoon / QDD3
Elapsed 00:00
Q1MCQ2 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q2MCQ3 marks
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q3MSQ3 marksselect all that apply
Which of the following statements about singular value decomposition (SVD) is/are true?
  1. Singular value decomposition is possible only for a square matrix.
  2. Singular value decomposition is possible only for a symmetric matrix.
  3. The singular values of a matrix are always non-negative.
  4. The singular values of matrices A and AT are the same.
Q4MSQ3 marksselect all that apply
In the context of Linear Algebra, which of the following statements about Principal Component Analysis (PCA) is/are true?
  1. The principal components of a matrix are given by the eigenvectors of itscovariance matrix.
  2. The principal components of a matrix are given by the singular values of itscovariance matrix.
  3. PCA finds the principal components by maximizing the variance along eachcomponent.
  4. The principal components form a basis that is not necessarily orthogonal.
Q5MSQ3 marksselect all that apply
Which of the following options is/are true?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q6MSQ3 marksselect all that apply
Which of the following options is/are true ?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q7MSQ3 marksselect all that apply
question figure
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q8SA3 marks
question figure
Q9SA3 marks
question figure
Q10SA4 marks
question figure
Q11SA2 marks
question figure
Comprehension passage - the questions below it refer to this
Based on the above data, answer the given subquestions. question figure
Q12MSQ2 marksselect all that apply
Which of the following statements correctly represent the Karush-Kuhn-Tucker (KKT) conditions for the given optimization problem?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q13MSQ3 marksselect all that apply
Which of the following statements are correct based on the KKT conditions and the solution to the optimization problem?
  1. question figure
  2. question figure
  3. question figure
  4. question figure
Q14SA3 marks
question figure

Answer key

  1. Q1 (MCQ, 2 marks): A
  2. Q2 (MCQ, 3 marks): A
  3. Q3 (MSQ, 3 marks): C, D
  4. Q4 (MSQ, 3 marks): A, C
  5. Q5 (MSQ, 3 marks): A, B
  6. Q6 (MSQ, 3 marks): B, C
  7. Q7 (MSQ, 3 marks): A, D
  8. Q8 (SA, 3 marks): 12
  9. Q9 (SA, 3 marks): 0.2
  10. Q10 (SA, 4 marks): 46
  11. Q11 (SA, 2 marks): -0.2
  12. Q12 (MSQ, 2 marks): A, C
  13. Q13 (MSQ, 3 marks): A, C
  14. Q14 (SA, 3 marks): 0.25

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 exam, followed by Mermaid knowledge graphs to visualize relationships.


1. Core Topics & Key Concepts

A. Probability & Statistics

  1. Exponential Distribution

    • PDF: fX(x)=λe−λxf_X(x) = \lambda e^{-\lambda x} (for x≥0x \geq 0)
    • CDF: FX(x)=1−e−λxF_X(x) = 1 - e^{-\lambda x}
    • Key Property: Memoryless (P(X>s+t)=P(X>t)P(X > s + t) = P(X > t)).
    • Example: For λ=1\lambda = 1, FX(5)=1−e−5F_X(5) = 1 - e^{-5}.
  1. Gaussian (Normal) Distribution

    • PDF: N(μ,σ2)\mathcal{N}(\mu, \sigma^2)
    • Linear Transformation: If y∼N(μ,σ2)y \sim \mathcal{N}(\mu, \sigma^2) and z=Cy+ϵz = Cy + \epsilon where ϵ∼N(0,σ2Id)\epsilon \sim \mathcal{N}(0, \sigma^2 I_d), then p(z∣y)=N(Cy,σ2Id)p(z \mid y) = \mathcal{N}(Cy, \sigma^2 I_d).
  1. Poisson Distribution

    • PMF: P(X=k)=λke−λk!P(X = k) = \frac{\lambda^k e^{-\lambda}}{k!}
    • Expectation: E[X]=λE[X] = \lambda.
    • Linearity of Expectation: For independent X1∼N(2,1)X_1 \sim N(2,1) and X2∼Poisson(3)X_2 \sim \text{Poisson}(3), E[3X1+2X2]=3E[X1]+2E[X2]=3(2)+2(3)=12E[3X_1 + 2X_2] = 3E[X_1] + 2E[X_2] = 3(2) + 2(3) = 12.
  1. Markov’s Inequality

    • For non-negative YY with E[Y]=20E[Y] = 20, P(Y≥100)≤E[Y]100=0.2P(Y \geq 100) \leq \frac{E[Y]}{100} = 0.2.

B. Linear Algebra

  1. Singular Value Decomposition (SVD)

    • Definition: For any matrix A∈Rm×nA \in \mathbb{R}^{m \times n}, A=UΣVTA = U \Sigma V^T, where:

      • UU: Left singular vectors (orthogonal).
      • Σ\Sigma: Diagonal matrix of singular values (σi≥0\sigma_i \geq 0).
      • VV: Right singular vectors (orthogonal).
    • Properties:

      • Singular values are non-negative (always true).
      • AA and ATA^T share the same singular values.
      • SVD exists for any matrix (not just square/symmetric).
  1. Principal Component Analysis (PCA)

    • Goal: Find orthogonal directions (principal components) that maximize variance.
    • Steps:

      1. Compute the covariance matrix Σ\Sigma of the data.
      2. Perform eigendecomposition of Σ\Sigma: Σ=VΛVT\Sigma = V \Lambda V^T, where:

        • Columns of VV: Principal components (eigenvectors).
        • Λ\Lambda: Eigenvalues (variances along PCs).
      3. Project data onto top-kk eigenvectors.
    • Key Points:

      • PCs are eigenvectors of the covariance matrix.
      • PCs form an orthogonal basis.
      • Maximizes variance sequentially.
  1. Convex Sets & Functions

    • Convex Set: A set SS where for any x,y∈Sx, y \in S and θ∈[0,1]\theta \in [0,1], θx+(1−θ)y∈S\theta x + (1-\theta)y \in S.

      • Examples:

        • Hyperplanes (∑aixi=b\sum a_i x_i = b) are convex.
        • Lines in R2\mathbb{R}^2 are convex.
        • Non-examples: Unions of convex sets, arbitrary curves.
    • Convex Function: A function ff where for any x,yx, y and θ∈[0,1]\theta \in [0,1], f(θx+(1−θ)y)≤θf(x)+(1−θ)f(y)f(\theta x + (1-\theta)y) \leq \theta f(x) + (1-\theta)f(y).

      • Examples:

        • exe^x, ex2+2e^{x^2+2}, x2x^2.
        • Non-examples: cos⁡(x)\cos(x), compositions of convex functions (not always convex).

C. Optimization

  1. Gradient Descent

    • Update Rule: xk+1=xk−η∇f(xk)x_{k+1} = x_k - \eta \nabla f(x_k), where η\eta is the learning rate.
    • Example: For f(x,y)=x2+2y2−6x+8yf(x,y) = x^2 + 2y^2 -6x +8y, ∇f=(2x−6,4y+8)\nabla f = (2x -6, 4y +8). At (x0,y0)=(1,−2)(x_0, y_0) = (1, -2), ∇f=(−4,−8)\nabla f = (-4, -8). With η=0.2\eta = 0.2: x1=1−0.2(−4)=1.8x_1 = 1 - 0.2(-4) = 1.8, y1=−2−0.2(−8)=−0.4y_1 = -2 - 0.2(-8) = -0.4. Thus, x1+y1=1.4x_1 + y_1 = 1.4. (Note: The answer in Q12 seems incorrect; the correct sum is 1.4.)
  1. Lagrange Multipliers & KKT Conditions

    • General Form: For min⁡f(x)\min f(x) subject to g(x)=0g(x) = 0 and h(x)≤0h(x) \leq 0, the Lagrangian is: L(x,α,β)=f(x)+αg(x)+βh(x)L(x, \alpha, \beta) = f(x) + \alpha g(x) + \beta h(x).
    • KKT Conditions:

      1. Stationarity: ∇L=0\nabla L = 0.
      2. Primal Feasibility: g(x)=0g(x) = 0, h(x)≤0h(x) \leq 0.
      3. Dual Feasibility: β≥0\beta \geq 0.
      4. Complementary Slackness: βh(x)=0\beta h(x) = 0.
    • Example (Q13–Q15): For min⁡x2+y2+z2+w2+1\min x^2 + y^2 + z^2 + w^2 + 1 with x+y+z+w=1x + y + z + w = 1 and w≤δw \leq \delta, the KKT conditions imply:

      • x=y=α2x = y = \frac{\alpha}{2}, z=w=α2z = w = \frac{\alpha}{2}.
      • If δ>14\delta > \frac{1}{4}, the constraint w≤δw \leq \delta is inactive (β=0\beta = 0), so x=y=z=w=14x = y = z = w = \frac{1}{4}.

D. Multivariable Calculus

  1. Optimization with Constraints

    • Method: Use Lagrange multipliers or parameterization.
    • Example (Q11): Maximize f(x,y,z)=5x+7y+zf(x,y,z) = 5x + 7y + z on the intersection of:

      • Plane: x+y−z=4x + y - z = 4.
      • Cylinder: x2+y2=25x^2 + y^2 = 25 (parameterized as x=5cos⁡tx = 5\cos t, y=5sin⁡ty = 5\sin t).
      • Substitute into ff and find critical points via f′(t)=0f'(t) = 0.
      • Maximum value: 46.

2. Key Equations

TopicEquation
Exponential CDFFX(x)=1−e−λxF_X(x) = 1 - e^{-\lambda x}
Gaussian Conditionalp(z∣y)=N(Cy,σ2Id)p(z \mid y) = \mathcal{N}(Cy, \sigma^2 I_d)
SVDA=UΣVTA = U \Sigma V^T
PCAΣ=VΛVT\Sigma = V \Lambda V^T (eigendecomposition of covariance matrix)
Gradient Descentxk+1=xk−η∇f(xk)x_{k+1} = x_k - \eta \nabla f(x_k)
Lagrange MultipliersL(x,α,β)=f(x)+αg(x)+βh(x)L(x, \alpha, \beta) = f(x) + \alpha g(x) + \beta h(x)
Markov’s InequalityP(Y≥a)≤E[Y]aP(Y \geq a) \leq \frac{E[Y]}{a}
KKT Complementary Slackβ(h(x))=0\beta (h(x)) = 0

Graph 2: Linear Algebra

Graph 3: Optimization

Graph 4: Convexity


4. Exam Tips

  1. Probability: Focus on CDF/PDF properties, linear transformations of Gaussians, and expectation rules.
  2. Linear Algebra: SVD/PCA properties are high-yield (e.g., singular values, eigenvectors).
  3. Optimization: Know KKT conditions cold (stationarity, complementary slackness).
  4. Convexity: Test functions using the definition (e.g., exe^x is convex; cos⁡(x)\cos(x) is not).
  5. Calculus: Parameterization (e.g., cylinders) and gradient descent updates are key.