A general matrix can have complex eigenvalues and eigenvectors that are not perpendicular. A real symmetric matrix, A=AT, cannot. The spectral theorem says that such an A has only real eigenvalues, that eigenvectors for different eigenvalues are orthogonal, and that you can pick an orthonormal basis of eigenvectors. Collecting them as the columns of Q gives A=QΛQT with QTQ=I and Λ diagonal. Every covariance matrix is symmetric, so this theorem is the reason PCA works.
The sum form writes A as a stack of simple rank-one pieces, each stretching one orthogonal direction. It makes powers trivial: Ak=QΛkQT, and any function of A just acts on the eigenvalues. A symmetric matrix is positive semidefinite, wTAw≥0 for all w, exactly when all its eigenvalues are non-negative, and positive definite when they are all strictly positive. For a covariance matrix Σ the quadratic form wTΣw is the variance of the portfolio with weights w, so it can never be negative, and it is at least λmin times the squared length of w.
Diagonalising a 2 by 2 matrixTake A=(2112). Its eigenvalues are 3 and 1, with eigenvectors (1,1) and (1,−1), whose dot product is 1−1=0: they are orthogonal. Normalised, they are the columns of Q=21(111−1), and the first entry of each is 1/2≈0.707. Then A3=Qdiag(27,1)QT=21(28262628)=(14131314), found without multiplying A three times. Both eigenvalues are positive, so A is positive definite and could be a covariance matrix.
Spectral theorem: a real symmetric A has real eigenvalues and orthonormal eigenvectors, A=QΛQT.
Definiteness: positive semidefinite means all eigenvalues ≥0, positive definite all >0.
Powers and functions: Ak=QΛkQT; apply any function to the eigenvalues only.
A covariance matrix must pass this testA matrix assembled by hand or from pairwise estimates over different samples can be symmetric and still have a negative eigenvalue. It then claims that some portfolio has negative variance, and an optimiser will happily exploit that. Checking that the smallest eigenvalue of a symmetric matrix is non-negative (with a tiny tolerance for rounding) is the standard test, and clipping the negative eigenvalues is the standard repair.
Lab · what's graded
Facts about symmetric matrices15 pts
The larger eigenvalue15 pts
A unit eigenvector10 pts
A power through the eigendecomposition20 pts
A valid covariance matrix15 pts
A floor on portfolio variance15 pts
Why PCA works10 pts
0/ 7 answered
1Choice15 ptsNot answered
Select every statement that holds for every real symmetric matrix.
2Numeric answer15 ptsNot answered
Find the larger eigenvalue of the symmetric matrix (5222).
lambda=accepted: ± 0.01
3Numeric answer10 ptsNot answered
The matrix (2112) has the eigenvector (1,1). What is the first entry of the unit-length eigenvector pointing the same way? Give it to three decimals.
q1=accepted: ± 0.001
4Matrix · vector20 ptsNot answered
For A=(2112) with eigenvalues 3 and 1 compute A3=QΛ3QT.
A3=
5Choice15 ptsNot answered
Which of these symmetric matrices could be a covariance matrix? (Check the eigenvalues.)
6Numeric answer15 ptsNot answered
A covariance matrix has eigenvalues 0.09 and 0.01. What is the smallest possible variance wTΣw of a weight vector with ∥w∥=1?
minvariance=accepted: ± 0.0005
7Explain in words10 ptsNot answered
In one or two sentences, say what the spectral theorem guarantees about the principal components of a covariance matrix.
Math modeKeyboard or LaTeX inputTask 1 of 7 · Ctrl ⏎ to check