Consider a 2-dimensional dataset with the population covariance matrix\[ \mathbf{\Sigma} = \begin{bmatrix} 5 & 2 \\ 2 & 2 \end{bmatrix}. \]The fraction of the total variance explained by the first principal component is (round off to two decimal places).
Show the worked solution\[\boxed{\text{fraction explained by PC1}=\frac{\lambda_1}{\lambda_1+\lambda_2}=\frac{\lambda_1}{\operatorname{tr}(\mathbf{\Sigma})}}\]The eigenvalues of \(\mathbf{\Sigma}\) solve \(\lambda^2-\operatorname{tr}(\mathbf{\Sigma})\,\lambda+\det(\mathbf{\Sigma})=0\):\[\lambda^2-7\lambda+6=(\lambda-6)(\lambda-1)=0,\qquad \lambda_1=6,\ \lambda_2=1.\]The total variance is \(\operatorname{tr}(\mathbf{\Sigma})=7\), so\[\frac{6}{7}\approx0.857\approx0.86.\]Taking the larger diagonal entry instead of the largest eigenvalue gives the wrong value \(5/7\approx0.71\): the covariance \(2\) tilts the first principal component away from the \(x_1\)-axis and lets it capture more variance.Answer: 0.86
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com