Compute and interpret principal components for dimension reduction
A correlation matrix or set of standardized variables is given and you must compute the first few principal components and interpret them.
PCA finds eigenvectors of the covariance (or correlation) matrix sorted by eigenvalue. Each principal component is a linear combination of the original variables; the first explains the most variance. Use a scree plot or cumulative variance threshold (e.g., 80%) to pick the number of components. Interpret each PC by its dominant loadings.
PCs are eigenvectors of Σ; variance explained = eigenvalues / trace(Σ).