Lesson 3.2 · Stage 03: The maths behind machine learning
Maths from school basics: start here
How to use the eleven maths chapters that take you from class 6 ideas to the maths machine learning runs on.
This book teaches the four maths topics behind machine learning, starting from class 6 ideas and ending where Mathematics for Machine Learning (Deisenroth, Faisal, Ong) begins. It is a first pass: read it once, try every small example, and you will recognise every word in that book.
The four topics:
- Linear algebra and geometry (Chapters 2–5): lists of numbers (vectors), tables of numbers (matrices), distances and angles, eigenvectors and SVD.
- Calculus (Chapters 6–7): how fast things change, the gradient, and backpropagation.
- Probability (Chapters 8–9): chance, Bayes’ rule, and the bell curve.
- Optimization (Chapter 10): finding the best answer, gradient descent, convexity, and Lagrange multipliers.
Chapter 1 is a short warm-up on school algebra. Chapter 11 joins all four topics in one small machine learning example.
How each chapter works:
- The idea: what it is, in plain words.
- Worked example: small numbers you can check by hand.
- Why ML needs it: one or two lines.
- Try it: a few practice questions. Answers are at the end.
You need only a pencil, paper and patience. A calculator helps for square roots.
The chapters
- Chapter 1: Warm-up: the school algebra you need
- Chapter 2: Vectors: lists of numbers
- Chapter 3: Matrices: tables of numbers
- Chapter 4: Analytic geometry: distance, angle and shadow
- Chapter 5: Matrix decompositions: eigenvectors and SVD
- Chapter 6: Calculus basics: how fast things change
- Chapter 7: Many variables: gradients and backpropagation
- Chapter 8: Probability: measuring chance
- Chapter 9: Random variables and distributions
- Chapter 10: Optimization: finding the best answer
- Chapter 11: Putting it together: linear regression