PCA direction and explained variance

Problem

A centered two-dimensional dataset has covariance diag(9,1)\operatorname{diag}(9,1). Give the first principal direction, the fraction of variance it explains, and the reconstruction-error variance after projection to one dimension.

Reveal answer or reference solution

The first direction is (1,0)(1,0), it explains

99+1=0.9\frac{9}{9+1}=0.9

of the variance, and the discarded, or reconstruction-error, variance is 11.

Local history

Loading attempts saved in this browser…

Use with your agent

Share this URL and your attempt. Ask the agent to start with a clarifying question or the smallest useful hint.

Tutor me on https://mlprep.iwase.dev/machine-learning/dimensionality-reduction/original-ml-pca/. If window.mlPrepAgent is available, read attempts for item original-ml-pca before tutoring. Inspect my attempt, keep the item ID, and do not reveal the full answer first. After a real attempt, append its record and read it back.

Appears in