Maths for machine learning
The maths behind the models, starting from the symbols themselves. If a paper loses you at ∑, ∇ or ‖x‖₂, begin with the notation explorer.
- Look up a symbolNotation explorer94 symbols with how to say them, what they mean, NumPy and PyTorch equivalents, and the look-alikes people mix up. Flashcards included.
- Seven questionsRead an equationA routine for taking any equation apart, tried out on 6 equations from machine learning that you can point at and change.
- Start at lesson 1Maths for ML, step by stepShort interactive lessons: reading notation, then vectors, matrices, calculus, probability and optimization.
Maths for ML, module by module
One idea per lesson, five to ten minutes each, with something to play with and a short quiz.
Module 0 · Reading maths
Module 1 · Vectors
Module 2 · Matrices
Module 3 · Decompositions
Module 4 · Calculus for ML
Module 5 · Probability and statistics
Coming soon
Module 6 · Optimization
Coming soon
Module 7 · Putting it together
Coming soon
Reference notes
Condensed summaries of the maths behind modern models, for readers who already know the basics.
- 1Linear Algebra, Vector Spaces & Matrix Calculus
- 2Probability Distributions, Maximum Likelihood & MAP
- 3Information Theory, Entropy & Divergence Measures
- 4Convexity, Optimization Dynamics & Duality
- 5Matrix Decompositions, SVD & Low-Rank Adaptation (LoRA)
- 6Deep Neural Representations & Normalization Mathematics
- 7Transformer Mathematics: Attention Scaling, RoPE & Latent Projections
- 8Continuous Flow Matching ODEs & Post-Training RL Mathematics