Setup
Where eigendecomposition appears in quant finance
Three workflows on a quant desk depend directly on eigendecomposition:
-
Principal component analysis (PCA) of yield curves. The covariance matrix of daily rate changes is decomposed into eigenvectors: the first three principal components (level, slope, curvature) typically explain over 95% of the variance. Traders hedge using these components rather than individual maturities.
-
Risk factor decomposition. A covariance matrix for equity returns is decomposed as . The eigenvalues are the variances of uncorrelated risk factors; the eigenvectors are the factor loadings. The smallest eigenvalues flag near-arbitrage portfolios; the largest flag dominant market risk.
-
Stability of calibration. The condition number of a matrix (treated in Module 4) is the ratio of its largest to smallest eigenvalue. A large condition number signals that small perturbations in input data produce large swings in calibrated parameters — a failure mode PMs care about.
Why this matters on a rates desk. In PCA-based yield curve risk, each bucket DV01 is projected onto the principal component basis. The level component (, approximately the flat vector) captures parallel shifts; the slope component () captures steepening/flattening. A trader who hedges only the level exposure while ignoring slope is exposed to a curve twist — which the spectral decomposition makes mathematically explicit.
Assumptions and conventions
- Matrices are real and square: .
- For the Spectral Theorem, is symmetric: .
- Eigenvectors are normalised to unit length: .
- Eigenvalues of a real symmetric matrix are real (proved below) and eigenvectors can be chosen orthonormal.
- The eigendecomposition uses orthogonal () and diagonal.
numpy.linalg.eighis used for symmetric matrices (faster, guaranteed real eigenvalues);numpy.linalg.eigis the general (possibly complex) version.
Theory
1. Eigenvalues and Eigenvectors
Definition 1.1 (Eigenvalue/eigenvector). A scalar and non-zero vector satisfying are called an eigenvalue and its associated eigenvector of .
The equation rewrites as , which has a non-zero solution iff is singular, i.e., iff .
Definition 1.2 (Characteristic polynomial). The characteristic polynomial of is This is a degree- polynomial in . Its roots (counting multiplicity in ) are the eigenvalues of .
Algebraic vs. geometric multiplicity. The algebraic multiplicity of an eigenvalue is its multiplicity as a root of . The geometric multiplicity is — the dimension of the eigenspace. Always: geometric algebraic. Equality for every eigenvalue is the condition for diagonalisability.
Example 1.3 (2×2 covariance matrix). Let .
Characteristic polynomial: .
Eigenvalues: , so , .
Both positive — confirming (positive eigenvalues positive definite for symmetric matrices, proved via the spectral theorem below).
2. Diagonalisation
Definition 2.1 (Diagonalisation). A matrix is diagonalisable if there exists an invertible and diagonal such that The columns of are the eigenvectors of .
Theorem 2.2 (Sufficient condition for diagonalisability). If has distinct eigenvalues, then is diagonalisable. Eigenvectors corresponding to distinct eigenvalues are linearly independent.
Proof sketch. Suppose with eigenvectors for distinct . Apply repeatedly and subtract to eliminate terms, eventually showing all .
Distinct eigenvalues are sufficient but not necessary. A matrix with repeated eigenvalues may still be diagonalisable (if geometric multiplicity equals algebraic multiplicity for every eigenvalue) — or it may not (Jordan form is needed in the latter case, but this is rarely relevant in finance practice where matrices are symmetric).
3. The Spectral Theorem
The Spectral Theorem is the cornerstone result for symmetric matrices. It guarantees not just diagonalisability, but orthogonal diagonalisation — the eigenvectors form an orthonormal basis of .
Theorem 3.1 (Spectral Theorem for real symmetric matrices). If is symmetric (), then:
- All eigenvalues of are real.
- Eigenvectors corresponding to distinct eigenvalues are orthogonal.
- There exists an orthogonal matrix (i.e., ) such that The columns of are orthonormal eigenvectors of .