Mathematics for MLΒΆ

Mathematical foundations for the rest of the curriculum. The goal is enough fluency to understand optimization, probability, embeddings, attention, and evaluation without treating them as magic.

Folder MapΒΆ

Folder

Notebooks

Level

What It Covers

foundational/

13

Beginner

Core math: linear algebra, calculus, probability, gradient descent, info theory, neural net math

3blue1brown/

42

Beginner

Visual intuition: calculus (12), linear algebra (13), differential equations (8), neural networks (9)

mml-book/

24

Intermediate

Mathematics for Machine Learning: course (10), exercises (4), practice labs (10)

cs229-course/

18

Intermediate

Stanford CS229: regression, classification, SVMs, learning theory, clustering, RL

islp-book/

15

Intermediate

Intro to Statistical Learning: 13 chapters + practice exercises

mlpp-book/

13

Intermediate

ML: A Probabilistic Perspective: Bayesian inference, graphical models, MCMC, EM

dli-book/

6

Intermediate

Deep Learning Interviews: practice labs for logistic regression, info theory, CNNs

slp-book/

6

Intermediate

Speech & Language Processing: NLP labs from tokenization to transformers

advanced/

16

Advanced

Research topics: learning theory, PAC-Bayes, NTK, variational inference, state space models

ml-problem/

β€”

Reference

ML problem-solving reference PDF

Total: 153 notebooks across 10 folders

Quick StartΒΆ

# Start here
jupyter notebook foundational/01_linear_algebra_fundamentals.ipynb

Learning PathsΒΆ

Path 1: Beginner (start here)ΒΆ

Work through the foundational notebooks first. These cover the essentials:

  1. foundational/01 - Linear Algebra

  2. foundational/02 - Calculus

  3. foundational/03 - Probability

  4. foundational/04 - Gradient Descent

  5. foundational/05 - Information Theory

  6. foundational/06 - Statistical Inference

  7. foundational/07 - Neural Network Math

Supplement with 3blue1brown/ notebooks for visual intuition on any topic that feels abstract.

Path 2: ML EngineerΒΆ

After the foundational pass, build depth in ML theory and algorithms:

  1. mml-book/course/ β€” rigorous math foundations (linear algebra through optimization)

  2. cs229-course/ β€” Stanford ML algorithms (regression, SVMs, neural nets, RL)

  3. mml-book/practice-labs/ β€” hands-on implementation of MML concepts

  4. dli-book/ β€” deep learning interview math

Path 3: Data ScientistΒΆ

Statistical and probabilistic foundations:

  1. islp-book/ β€” statistical learning (regression, classification, resampling, trees, SVMs)

  2. mlpp-book/ β€” probabilistic perspective (Bayesian inference, graphical models, MCMC)

  3. slp-book/ β€” NLP and language model foundations

Path 4: ResearcherΒΆ

Graduate-level theory (requires Path 1 + Path 2 as prerequisites):

  1. advanced/ β€” learning theory, concentration inequalities, PAC-Bayes, NTK

  2. foundational/08 - Advanced Linear Algebra

  3. foundational/12 - Optimization from Scratch

Topic Cross-ReferenceΒΆ

Find the same topic at different depths across folders:

Topic

Beginner

Intermediate

Advanced

Practice

Linear Algebra

foundational/01, 3b1b/linear-algebra/

mml-book/01

foundational/08

mml-labs/01

Calculus

foundational/02, 3b1b/calculus/

mml-book/04

β€”

mml-labs/04

Probability

foundational/03

mml-book/05, mlpp/01

β€”

mml-labs/05, dli/04

Optimization

foundational/04

mml-book/06, cs229/02

advanced/09

mml-labs/06

Information Theory

foundational/05

β€”

β€”

dli/02

Regression

β€”

mml-book/07, cs229/01, islp/03

β€”

mml-labs/07

Classification

β€”

cs229/04, islp/04

β€”

dli/01

SVMs

β€”

mml-book/10, cs229/06, islp/09

β€”

mml-labs/10

PCA

β€”

mml-book/08, cs229/14

β€”

mml-labs/08

Neural Networks

foundational/07, 3b1b/neural-networks/

cs229/10-11, islp/10

β€”

slp/04

Transformers/LLMs

β€”

β€”

β€”

slp/05-06

Bayesian Methods

β€”

mlpp/04, mml-book/07

advanced/07

dli/04

Clustering/GMM

β€”

mml-book/09, cs229/13, mlpp/11

β€”

mml-labs/09

Source PDFsΒΆ

Each book folder contains its own PDF:

PDF

Location

Mathematics for Machine Learning

mml-book/mml-book.pdf

Stanford CS229 Notes

cs229-course/cs229.pdf

Intro to Statistical Learning with Python

islp-book/ISLP.pdf

ML: A Probabilistic Perspective

mlpp-book/ML-Machine-Learning-A-Probabilistic-Perspective.pdf

Deep Learning Interviews

dli-book/2201.00650v2.pdf

Speech & Language Processing

slp-book/ed3book_jan26.pdf

ML Problem Solving

ml-problem/ml-problem.pdf

Practical RulesΒΆ

  • Learn the intuition before the notation

  • Re-derive small examples by hand when possible

  • If a symbol-heavy notebook feels abstract, reconnect it to one use case: gradient descent, cosine similarity, cross-entropy, PCA, or attention

  • Do not try to finish every notebook before continuing the curriculum

  • Do not spend weeks on theorem-level depth if your goal is applied AI engineering

Next StepΒΆ

After the foundational notebooks, continue into 05-embeddings/ and 06-neural-networks/, then come back here as needed.