How to read these notes
This page is a short orientation. The Preface explains why the book exists; this page explains how to find things.
One note per book section
Each note covers exactly one section of Mathematics for Machine Learning and is named after it, so the table of contents mirrors the book:
| Book section | Note |
|---|---|
| 2.1 Systems of Linear Equations | 2.1 Systems of Linear Equations |
Further notes are added as the corresponding sections are read. Coverage at any moment is
tracked in docs/state.md in the repository.
Each note is self-contained
A note contains the substance of the question that triggered it, any page images it rests on, the answer, how the idea is used in practice, and a worked example with concrete numbers. You should be able to read a single note in isolation without the conversation it came from.
Notes are compact and applied
Notes are study aids, not transcripts. Each one is expected to answer four things: what was
asked, the answer, where it shows up in real systems (MRP, ERP, scheduling,
optimisation), and a worked example with actual numbers rather than abstract
coefficients throughout. Numbers are reproducible from the scripts under scripts/.
Notes may be revised in place
Since 2026-09-30 a note may be rewritten into its best current form rather than keeping a layered history on the page — git history is the archive. When a later insight would confuse the main line, it can instead go in a dated Corrections and additions section that says what it supersedes. The first note has one of these, which is worth reading as an example of that convention: the original response contained an incorrect numerical illustration, and the correction states exactly what was wrong and what the verified result is.
Runnable claims
Where a note makes a numerical claim, a script under scripts/ reproduces it. The
scripts require only a Python 3 with numpy. See scripts/README.md.
python3 scripts/explore_example_2_1.py
Building this book locally
The book is built with mdBook and the
mdbook-katex preprocessor (which is what renders the mathematics):
make serve # live preview at http://localhost:3000
make build # static output in ./book
make check # build, then confirm ./book stays out of git
make help # all targets
Build through make (or plain mdbook build / mdbook serve). Nothing is
vendored: mdbook-katex injects the <link> for the KaTeX build it renders with,
so the page loads that one stylesheet from a CDN and the mathematics always
matches the stylesheet.