Eigenvalues & Eigenvectors
The invariant directions of a linear map, the spectral theorem for symmetric matrices, diagonalization as a change to the natural basis, and power iteration, the algorithm that turns eigen-structure into PCA and PageRank.
Prerequisites: Linear Algebra for Quants
An eigenvector is a direction a matrix does not rotate, it only stretches. Finding these invariant directions is how you discover the natural coordinate system of a linear system, in which a tangled transformation becomes a simple set of independent scalings. For quants this is the whole content of principal component analysis, factor models, covariance structure, and the convergence of Markov Chains: the eigenvalues tell you the risk concentrations and the eigenvectors tell you the directions they live in. It is the payoff of the Linear Algebra for Quants machinery.
Definition and the characteristic equation
For a square matrix , a nonzero vector is an eigenvector with eigenvalue if Applying to just rescales it. Rearranging, has a nonzero solution iff is singular, i.e. This characteristic polynomial is degree , so there are eigenvalues (with multiplicity, possibly complex). Two invariants read off the roots without solving: the trace equals the sum of eigenvalues, , and the determinant equals their product, . These give instant sanity checks and, for a covariance matrix, connect total variance (trace) to the eigenvalues that partition it.
The spectral theorem: symmetry is everything
General matrices can have complex eigenvalues, defective (non-diagonalizable) structure, and non-orthogonal eigenvectors. But the matrices quants care about most, covariance matrices, correlation matrices, Hessians, are symmetric, and symmetry buys the cleanest theorem in linear algebra.
Spectral theorem. A real symmetric matrix has (i) all real eigenvalues and (ii) an orthonormal basis of eigenvectors. Hence it factorises as where is orthogonal () and . The second form, a sum of rank-one projections weighted by eigenvalues, is the one to internalise: a symmetric matrix is a superposition of orthogonal "modes", each a direction with a strength . For a covariance matrix these are exactly the principal components: is the -th uncorrelated risk direction and is the variance along it. This is why the top eigenvector of an equity covariance matrix is "the market", the direction of greatest common variance.
Diagonalization: computing in the natural basis
Diagonalization is the operational value of eigenvectors. If (with in the symmetric case), then in the eigenbasis acts as independent scalings, which makes matrix functions trivial: because just raises each diagonal entry to the . This is how you compute matrix powers (transition-matrix limits, for a Markov Chains chain), matrix exponentials (continuous-time generators), and matrix square roots (, used to generate correlated Gaussians). The dynamics of are governed entirely by the eigenvalues: components along evolve as , so directions explode, decay, and the spectral radius decides stability. The gap between the top two eigenvalues sets the rate, precisely the mixing rate of a Markov chain.
Worked example, the eigenvalues of a 2×2 covariance
Take the correlation-like matrix The characteristic equation is , so and the eigenvalues are and . The eigenvectors are (the "common mode", both assets moving together, variance ) and (the "spread mode", variance ). Notice: as the spread-mode eigenvalue , the matrix becomes singular and rank-one, meaning the two assets are effectively one risk factor. This tiny example is PCA: the first principal component is the market direction with the larger eigenvalue, and a small second eigenvalue signals redundancy and an ill-conditioned covariance, the seed of unstable optimisation. It also foreshadows Positive Semidefinite Matrices: eigenvalues stay only while .
Power iteration: the algorithm behind PCA and PageRank
You rarely need all eigenpairs; often just the dominant one. Power iteration exploits diagonalization directly: start with a random and repeatedly apply and normalise, Writing in the eigenbasis, ; the largest term dominates as grows, so (the top eigenvector) and the associated Rayleigh quotient . Convergence speed is governed by the ratio , the spectral gap again. This is how the leading principal component of a huge covariance matrix is extracted without a full decomposition, how Google's original PageRank found the dominant eigenvector of the web's link matrix, and (with deflation or shifts) how successive components follow. For symmetric matrices, more robust variants (Lanczos, QR algorithm) are production standard, but power iteration is the conceptual core.
Failure modes and subtleties
- Non-symmetric matrices misbehave. They can have complex eigenvalues, non-orthogonal eigenvectors, or be defective (fewer independent eigenvectors than , so no diagonalization, only Jordan form). Transition matrices of Markov Chains are non-symmetric; their eigenvectors are not orthogonal, so PCA intuition does not transfer directly.
- Eigenvalues are unstable under noise for close spectra. When two eigenvalues are nearly equal, their individual eigenvectors are extremely sensitive to sampling error, a real problem for estimated covariance matrices where trailing eigenvalues are dominated by noise (random matrix theory / Marchenko–Pastur describes the noise floor).
- Sign and ordering are conventions. Eigenvectors are defined up to sign (and scale); PCA loadings can flip sign between samples, which is not instability, just convention. Order by eigenvalue explicitly.
- Multiplicity gives eigen-spaces, not eigen-vectors. A repeated eigenvalue has a whole subspace of eigenvectors; any orthonormal basis of it is valid, so individual directions are not identified.
- Trace/determinant checks catch errors. If your computed eigenvalues don't sum to the trace or multiply to the determinant, the computation is wrong, a cheap, always-available validation.
In interviews
Expect to compute the eigenvalues of a small (often ) matrix from the characteristic equation, and to use trace-and-determinant as a shortcut. The symmetric-matrix facts are prized: "what do you know about the eigenvalues and eigenvectors of a covariance matrix?", real, non-negative, orthogonal eigenvectors, and they are the principal components. Be ready to explain diagonalization as computing in the eigenbasis and why it makes easy, connecting to Markov-chain convergence via the spectral gap. Power iteration is a favourite "how would you find the top principal component of a giant matrix?" answer. The unifying message: eigen-decomposition finds the coordinate system in which risk is a set of independent variances, which is the direct on-ramp to Singular Value Decomposition and PCA (Principal Component Analysis).
Related concepts
Practice in interviews
Further reading
- Strang, Introduction to Linear Algebra
- Horn & Johnson, Matrix Analysis
- Golub & Van Loan, Matrix Computations