—
Connect SVD to PCA
Tutor me on https://mlprep.iwase.dev/item/ml-screen-dimensionality-standard-svd/. This is a screening item. If window.mlPrepAgent is available, read attempts for item ml-screen-dimensionality-standard-svd 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
For the centered matrix
compute , the singular values, the first PCA direction, and the first-component explained-variance fraction.
Reveal answer or reference solution
The Gram matrix is
so the singular values are and . The right singular vector for the larger value is , up to sign, and is the first PCA direction. The explained fraction is
Previous attempts
Loading attempts saved in this browser…