Unit 9 · SVD, PCA and factorization

Lesson 78 · Available to read

The SVD

Every matrix = rotate × stretch × rotate (A = UΣVᵀ), even non-square ones.

Every matrix, of any size or shape, does just three things in a row:

  1. Rotate (Vᵀ)
  2. Stretch along the axes (Σ)
  3. Rotate again (U)

That's the singular value decomposition: A = UΣVᵀ.

Watch a circle. The first rotation just spins it. The stretch turns it into an ellipse lined up with the axes. The last rotation tilts that ellipse into place.

The stretch amounts are the singular values. They show which directions a matrix cares about most, the key to compression and PCA.

A circle going through rotate, stretch and rotate to become a tilted ellipse

The takeaway

Any matrix = rotate, stretch, rotate.

Practice

0 of 4 attempted

  1. 1Recall

    Name the three steps every matrix performs according to the SVD, in order.

    Saved in this browser

  2. 2Multiple choice

    In A = UΣVᵀ, which factor acts on a vector first?

  3. 3Calculate

    A matrix has singular values 3 and 1. What does it turn the unit circle into, and what is the area of the result?

    Saved in this browser

  4. 4Explain in your own words

    Why are the singular values useful for compression?

    Saved in this browser