—
PCA direction and explained variance
Tutor me on https://mlprep.iwase.dev/item/original-ml-pca/. This is a practice item. 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 with recorded_by agent, include agent_session_id when available, and read it back.Problem
A centered two-dimensional dataset has covariance . Give the first principal direction, the fraction of variance it explains, and the reconstruction-error variance after projection to one dimension. Explain why PCA should first center raw observations.
Reveal answer or reference solution
The first direction is , it explains
of the variance, and the discarded, or reconstruction-error, variance is . Centering removes the mean offset so that the principal directions describe variation around the mean rather than the mean location itself.
Previous attempts
Loading attempts saved in this browser…