Central idea
If A is an m × n matrix, then it maps vectors from n-dimensional input space to m-dimensional output space.
1. Build a matrix and transform one vector
Blue is the input vector. The second vector is the output Ax. The transformed basis directions Ae₁ and Ae₂ are also shown from the origin.
2. The grid test
A matrix transforms the whole plane, not only one vector. Move the sliders above and watch the grid change.
3. Standard matrix machines
4. Feature mixer
This small data machine turns three raw features into two summary features.
Raw student vector: [study hours, sleep hours, practice problems]
5. Information loss
A projection matrix can collapse a whole plane onto a line. Once this happens, many different inputs have the same output.
6. Image as points, matrix as visual transformer
The letter below is a cloud of points. The same matrix sliders from Section 1 transform it.
7. Reflection prompts
- What is the difference between the row view and the column view of matrix-vector multiplication?
- Why do the columns of a matrix tell us where the standard basis vectors go?
- Give one example where a matrix preserves information and one example where it loses information.
- How is a neural network layer related to the matrix machine idea?