Artificial intelligence · lesson 3 of 4
PCA, variance and dimensionality reduction
Principal component analysis finds orthogonal directions of high variance in centred data under its standard formulation.
Learn the ideas
Prerequisites: Linear algebra, covariance and orthogonal projections.
Purpose
Principal component analysis finds orthogonal directions of high variance in centred data under its standard formulation.
Computation
Principal directions can be obtained from covariance eigenvectors or a singular-value decomposition of centred data.
Variance
Explained-variance ratios summarize variance captured, not predictive accuracy or importance to every task.
Scale
PCA is sensitive to units and scaling. High variance can reflect nuisance variation, and low-variance directions can still be useful for prediction.
Worked examples
Covariance eigenvalues are 6,3,1. Find the explained-variance ratio of the first component.
6/(6+3+1)=0.6.
0.6
For eigenvalues 6,3,1, find the first two components' cumulative ratio.
(6+3)/10=0.9.
0.9
Check your understanding
8 questionsDecimals or fractions are accepted for numeric answers. Proofs and written responses use sample answers and require human marking. This is practice, not a protected examination.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.