—
PCA direction and explained variance
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.
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/item/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 with recorded_by agent, include agent_session_id when available, and read it back.