Matrices are maps
An matrix maps vectors to vectors. Its determinant is the factor by which it scales volumes, with a sign for orientation. is invertible exactly when , i.e. when it does not squash space flat. For matrices:
Useful rules: , , for an matrix.
Eigenvalues and eigenvectors
An eigenvector is a direction that only stretches: . The eigenvalues are the roots of . Two shortcuts save time:
For a matrix the eigenvalues therefore solve .
If (diagonalisable), then , so the largest eigenvalue controls long-run growth. The Fibonacci recursion is ; the matrix has eigenvalues , so grows like .
Worked example
a symmetric 2×2
Find the eigenvalues and eigenvectors of , and compute .
Show solutionHide solution
and , so , giving and . The eigenvectors are for and for .
Write . Then
Symmetric matrices
Covariance and correlation matrices are symmetric, and symmetric matrices are the nicest kind. The spectral theorem says a real symmetric matrix has real eigenvalues and an orthonormal basis of eigenvectors:
is positive semi-definite (PSD) when for all , which for symmetric matrices is equivalent to all eigenvalues being non-negative. A symmetric matrix is PSD exactly when its diagonal entries and its determinant are non-negative.
A handy family: the matrix of all ones, , has eigenvalue (eigenvector ) and eigenvalue with multiplicity . So has eigenvalues (once) and ( times).
Knowledge check
What are the eigenvalues of ?
Knowledge check
A matrix has eigenvalues 1, 2 and 3. What is ?
Knowledge check
What is the largest eigenvalue of the matrix with 1 on the diagonal and everywhere else?
Practice problems
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).