From Singular Values to Explained Variance

Mixed: SVD & PCAHard+30 XP+30

From Singular Values to Explained Variance

A dataset has n=26n = 26n=26 samples and d=4d = 4d=4 features. The data matrix XXX is 26×426 \times 426×4 and has already been mean-centred (every column sums to zero).

Its singular value decomposition X=UΣV⊤X = U\Sigma V^\topX=UΣV⊤ gives singular values

σ1=12,σ2=6,σ3=4,σ4=2\sigma_1 = 12, \qquad \sigma_2 = 6, \qquad \sigma_3 = 4, \qquad \sigma_4 = 2σ1​=12,σ2​=6,σ3​=4,σ4​=2

You run PCA using the sample covariance matrix

S=1n−1X⊤XS = \frac{1}{n-1}X^\top XS=n−11​X⊤X

What is the largest eigenvalue λ1\lambda_1λ1​ of SSS, and what is the smallest number of principal components kkk you must keep to retain at least 85%85\%85% of the total variance?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.