Before you readCovariance matrices are symmetric. What might be special about the eigenvectors of a symmetric matrix?
A matrix is symmetric if A=AT. Symmetric matrices are the best-behaved kind, and they appear everywhere in ML (covariance matrices, XTX, kernel matrices). The spectral theorem says:
their eigenvalues are real, and
their eigenvectors can be chosen orthogonal.
So A=QΛQT: rotate into the eigenvector axes, stretch by the eigenvalues, rotate back. If every eigenvalue is ≥0, the matrix is positive semi-definite (xTAx≥0 for all x). Covariance matrices always are.
The SVD
Non-symmetric and even non-square matrices have a similar decomposition, the singular value decomposition:
A=UΣVT.
VT rotates, Σ stretches along the axes by the singular valuesσ1≥σ2≥⋯≥0, and U rotates again. Every matrix maps the unit circle to an ellipse; the singular values are the ellipse’s semi-axes.
A = [[2, 1], [0, 1]]σ₁ = 2.29, σ₂ = 0.87
A maps the unit circle (dashed) to an ellipse, or to a segment or point when det A = 0. The arrows σ₁u₁ and σ₂u₂ are its semi-axes.
The singular values are the square roots of the eigenvalues of ATA. Keeping only the largest few gives the best low-rank approximation of A, which is how PCA compresses data (see Dimensionality reduction).
Recall
What does the spectral theorem say about a symmetric matrix?
Recall
When is a symmetric matrix positive semi-definite?
Recall
What do the three factors of A=UΣVT do geometrically?