// learn.shawon.ch / math-for-ai TRACK
← index

AI Mastery Path

Mathematics for AI

The exact mathematics you need to master AI — machine learning, deep learning, and large language models — and the computer science under them. It starts at counting and assumes nothing. Every lesson is here because something in AI demands it: nothing more, nothing less, each one resting on the last.

Curriculum · 13 areas, 100 lessons

Part I · Arithmetic & number sense

Start from zero — what numbers are and how they combine. The ground everything else stands on.

Part II · Algebra — the language of patterns

Letters for numbers: the notation every later idea is written in, and the function — the object ML is built from.

Part III · Logic, sets & counting

The discrete foundation under both probability and computer science — how to reason, and how to count.

Part IV · Functions, exponentials & logarithms

The specific functions ML runs on — exponentials, logs, sigmoids — and the rate-of-change idea that opens calculus.

Part V · Single-variable calculus

The mathematics of change. The derivative and the chain rule are the literal machinery of how networks learn.

Part VI · Linear algebra — the engine of ML

Vectors, matrices, and the operations on them. This is the single most-used branch of math in all of AI.

Part VII · Multivariable & matrix calculus

Calculus and linear algebra meet. Gradients, Jacobians, and the chain rule on a computation graph: this is backprop.

Part VIII · Optimization — how models learn

Turning learning into minimizing a loss, and the algorithms — gradient descent and its kin — that actually do it.

Part IX · Probability — reasoning under uncertainty

AI is probabilistic to the core. Distributions, expectation, and Bayes' theorem are the language of every model's predictions.

Part X · Statistics & data analysis

Learning from data: estimation, maximum likelihood, the bias–variance tradeoff, and the first models that come straight out of statistics.

Part XI · Information theory — the math of LLMs

Entropy, cross-entropy, and KL divergence: the quantities that define how language models are trained and scored.

Part XII · Algorithms & computation

The math under computer science and data structures — how to measure cost and reason about programs. Builds on Part III; take it any time after.

Part XIII · Numerical & computational methods

Where the math meets the machine — floating point, numerical stability, and how autodiff actually computes every gradient.

Learn · Shawon Chowdhury · back to all subjects