aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 14. Dimensionality Reduction
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

In high dimensions, distances between points tend to…

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser