Mathematics for Machine Learning
Master the math behind ML with interactive 2D and 3D visualizations
Twelve chapters, one story
0 of 142 lessons touched. Tap a chapter to open its lessons below.
Why every ML model is a search for parameters that minimize a loss — the framing the rest of the course operationalizes.
- loss landscapes
- gradient descent
- model fitting
Vectors, matrices and linear maps are how every model — from logistic regression to transformers — stores parameters and moves data forward.
- MLPs
- embeddings
- linear layers
- Step 2~20m35⚡Challenge
Systems of Linear Equations
A system of linear equations is a collection of equations in which each unknown appears only to the first power and is never multiplied by a…
Start Lesson - Step 3~20m35⚡Challenge
Matrices
A matrix is a rectangular array of numbers arranged into rows and columns. We denote an matrix as , where is the number of rows and is the n…
Start Lesson - Step 4~15m15⚡Challenge
Solving Systems of Linear Equations
Now that we have matrices, we can formalize how to solve . The canonical algorithm is Gaussian elimination. The idea: apply a sequence of el…
Start Lesson - Step 5~20m3D · 115⚡Challenge
Vector Spaces
So far we have worked with concrete vectors in . The true power of linear algebra, however, comes from abstracting: a vector space over the…
Start Lesson - Step 6~20m25⚡Challenge
Linear Independence
A set of vectors is linearly independent if the only way to form the zero vector as is with all . If any non-trivial combination gives zero,…
Start Lesson - Step 7~20m25★Most cinematic⚡Challenge
Basis and Rank
A basis of a vector space is a set of vectors that is both linearly independent and spanning — every vector in can be written as a unique li…
Start Lesson - Step 8~20m25⚡Challenge
Linear Mappings
A linear mapping (or linear transformation) between vector spaces and is a function that respects both vector operations: for all and scalar…
Start Lesson - Step 9~20m25⚡Challenge
Affine Spaces
An affine space is, roughly, a vector space that has forgotten where its origin is. Formally, an affine subspace of a vector space is a set…
Start Lesson