Skip to content

Matrix Decompositions — Overview

Chapters 2 and 3 gave us matrices and the geometry around them. Chapter 4 asks the deepest question yet: can we break a matrix into simpler, more revealing pieces? Just as 12=2×2×312 = 2 \times 2 \times 3 exposes a number’s structure, a matrix decomposition factors a matrix into parts that expose its structure — the directions it stretches, the amount it scales, whether it can be inverted.

These factorizations are not academic. The SVD compresses images and powers recommender systems; eigendecomposition is the heart of PCA and Google’s PageRank; Cholesky makes Gaussian sampling and covariance math fast. This chapter is where linear algebra becomes the engine room of machine learning.

The concept map

diagram Diagram mermaid

(Adapted from Figure 4.1 of the book.)

The through-line

  1. Determinant and Trace — two single numbers that summarize a matrix: signed volume and the sum of the diagonal. They test invertibility and stay fixed under basis change.
  2. Eigenvalues and Eigenvectors — the special directions a matrix only stretches, and the stretch factors. The “eigen-analysis” of a transformation.
  3. Cholesky Decomposition — a “square root” for symmetric positive-definite matrices, A=LLA = LL^\top, used for covariance and sampling.
  4. Eigendecomposition and DiagonalizationA=PDP1A = PDP^{-1}: change to the eigenbasis, scale, change back. The clean form of a matrix.
  5. Singular Value DecompositionA=UΣVA = U\Sigma V^\top, the universal decomposition that works for any matrix, square or not.
  6. Matrix Approximation — keep the top singular values to get the best low-rank approximation (Eckart-Young); this is compression and PCA.
  7. Matrix Phylogeny — a family tree tying every matrix type together: square, invertible, normal, symmetric, orthogonal, diagonal.

Where each idea shows up in ML

Decomposition ideaMachine learning payoff
DeterminantInvertibility, Jacobians in normalizing flows, Gaussian densities
Eigenvalues/vectorsPCA directions, PageRank, spectral clustering, stability
CholeskySampling from Gaussians, fast covariance solves, the reparameterization trick
EigendecompositionPCA, spectral methods, matrix powers
SVDRecommender systems, LSA/topic models, pseudo-inverse, whitening
Low-rank approximationImage/model compression, denoising, latent factors

Prerequisites

Start with Determinant and Trace.

If this helped you, consider buying me a coffee ☕

Buy me a coffee

Was this page helpful?

Let us know how we did