Lesson 5 of 10 8 min · 127 words
The covariance matrix
How every pair of features varies together.
For centred data (), the covariance matrix is , a matrix. Entry is the variance of feature ; entry is the covariance between features and .
It is symmetric () and positive semi-definite ( for any ). Those two facts guarantee real, non-negative eigenvalues and orthogonal eigenvectors — exactly what PCA needs.
The variance of the data projected onto a unit direction is . That single expression connects the covariance matrix to 'how spread out the data is along '.
Formula to remember
SVD
Columns of V are the principal directions of centred X.
Quick check · +5 XP