SVD / PCA / ICA
Chapter 01 of 07
01 / The geometryStart here

First, watch a matrix
move space.

SVD, PCA, and ICA each select directions in a matrix or dataset. Start by watching how a matrix changes a vector’s direction and length.

A vector is an arrow, described by coordinates. A matrix is a rule for moving that arrow. For a two-dimensional vector, the rule is

\[\begin{bmatrix}a&b\\c&d\end{bmatrix}\begin{bmatrix}x_1\\x_2\end{bmatrix}=\begin{bmatrix}ax_1+bx_2\\cx_1+dx_2\end{bmatrix}.\]The first column tells us where the horizontal unit arrow goes. The second column tells us where the vertical unit arrow goes. Every other arrow follows by combining those two results.

The space-moving machine

Experiment 01
Before · input space
After · output space
First basis arrowSecond basis arrowYour chosen vector

Try “Shear,” then sweep the angle. Some unit arrows grow much more than others. SVD will find the most- and least-stretched directions.

Chosen input
Moved to Ax
Area scale |det A|

How a shear changes the basis arrows

The original basis arrows are perpendicular. Under the Shear preset, their images tilt toward each other, changing the angle between them. The matrix is still linear: it respects addition and scaling, so the origin stays put.

Rank counts surviving directions.

“Flatten” sends a two-dimensional circle onto a line. The map has rank 1. A zero matrix collapses everything to a point and has rank 0. Rank measures dimension, rather than physical size.