Curated · Principal Component Analysis (PCA)

MCQ · 1 mark · Problem ML-PCA-0010

Let \(\Sigma\) be the covariance matrix of a dataset, and suppose \(\lambda_1 \geq \lambda_2 \geq \dots \geq \lambda_d\) are the eigenvalues of \(\Sigma\). If we keep only the first \(k\) principal components, what is the fraction of total variance preserved by these \(k\) components?
  1. A
    \(\cfrac{\lambda_1 + \lambda_2 + \dots + \lambda_k}{\lambda_1 + \lambda_2 + \dots + \lambda_d}\)
  2. B
    \(\cfrac{\lambda_1^2 + \lambda_2^2 + \dots + \lambda_k^2}{\lambda_1^2 + \lambda_2^2 + \dots + \lambda_d^2}\)
  3. C
    \(\cfrac{\lambda_k}{\lambda_1}\)
  4. D
    \(\cfrac{\lambda_k}{\lambda_1 + \lambda_2 + \dots + \lambda_d}\)

Solve it on GATE DA practice →More Dimensionality Reduction problems

Show the worked solutionStep 1: The total variance in the data equals the trace of the covariance matrix \(\Sigma\), which is the sum of its eigenvalues: \(\text{Total variance} = \operatorname{tr}(\Sigma) = \sum_{i=1}^{d} \lambda_i\) Step 2: The variance captured by the first \(k\) principal components is the sum of the top \(k\) eigenvalues: \(\text{Variance captured by first } k = \sum_{i=1}^{k} \lambda_i\) Step 3: The fraction of total variance preserved by the first \(k\) components is therefore: \(\frac{\sum_{i=1}^{k} \lambda_i}{\sum_{i=1}^{d} \lambda_i}\) Final Answer: \(\boxed{\dfrac{\lambda_1+\lambda_2+\cdots+\lambda_k}{\lambda_1+\lambda_2+\cdots+\lambda_d}}\) Which matches option: \(\dfrac{\lambda_1+\lambda_2+\cdots+\lambda_k}{\lambda_1+\lambda_2+\cdots+\lambda_d}\)

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com