Free, interactive, works offline
Math for ML. The math behind machine learning, made visual.
Drag the figures until the ideas click, answer questions that show you the working, run real Python right in your browser, and prove it on full-length tests.
6modules live
76chapters
89interactive figures
1,114quiz questions
149Python problems
25full-length tests
Modules. Each one self-contained, with figures, quizzes, Python and full-length tests.
Module 1Available
Linear Algebra
All 16 chapters of 3Blue1Brown's Essence of Linear Algebra: vectors, matrices as transformations, determinants, inverses, dot and cross products, change of basis, eigenvectors, and abstract vector spaces, each linked to where it shows up in ML.
0 of 16 chapters done
Open16 chapters · 10 tests
Module 2Available
Calculus & Backpropagation
Derivatives, gradients, Jacobians and Hessians, built up visually until you can write backpropagation yourself.
0 of 12 chapters done
Open12 chapters · 3 tests
Module 3Available
Probability, Statistics & Information Theory
Probability, Bayes, Gaussians, maximum likelihood, entropy and KL divergence: the math that explains why ML losses look the way they do.
0 of 12 chapters done
Open12 chapters · 3 tests
Module 4Available
Optimization
How models actually learn: loss landscapes, gradient descent, momentum, Adam, convexity, regularization, constraints and Newton's method, with figures you can drag.
0 of 12 chapters done
Open12 chapters · 3 tests
Module 5Available
Linear Algebra II
Orthogonality, projections, least squares, the spectral theorem, the SVD, PCA, conditioning and tensor shapes: the linear algebra that machine learning actually runs on.
0 of 12 chapters done
Open12 chapters · 3 tests
Module 6Available
Deep Learning & Transformer Math
The math inside neural networks and transformers: layers, activations, softmax, backprop, initialization, normalization, residuals, convolution, embeddings, attention and RoPE, with figures you can drag and Python you can run.
0 of 12 chapters done
Open12 chapters · 3 tests
Suggested path. Each module builds on the ones before it, so transformers come last.
Linear AlgebraCalculus & BackpropagationProbability, Statistics & Information TheoryOptimizationLinear Algebra IIDeep Learning & Transformer Math
How it works. Four steps for every idea.
See itEvery idea has a figure you can drag, on desktop or phone.
Check itSingle-answer quizzes with full worked solutions, from warm-ups to challenges.
Code itReal Python runs in your browser and is graded by test cases, many problems ML-flavoured.
Prove itFull-length tests mixing single- and multi-concept questions with coding.