start
Next task →
Core path

Start here: nineteen lessons that teach their subject

A short, ordered path through the hand-authored lessons. Each stage uses only what earlier stages introduced. Generated pages are deliberately excluded: they are labelled outlines, not lessons.
Browse all reference lessons
Lessons on the path
19
hand-authored, in order
Stages
4
each builds on the last
Reading + exercises
64 h
estimates, not a promise
Excluded
879
generated templates
How to use this page. Work one lesson at a time. Read the derivation with the page closed and reproduce it; run the code; answer the exercises before opening the assessment. If a lesson takes twice the estimate, that is normal. Skipping the proof and reading only the summary is not completion.
Stage 1 of 4

1 · The language of mathematics

Before calculus or linear algebra, learn to read and negate a precise statement. Most errors in later proofs are quantifier errors.

Stage 2 of 4

2 · Approximation and inference

Five tools that recur everywhere: local linearisation, descent, quadratic convergence, conditional probability, and a measure of disagreement.

2.1calculusintermediate150 minOpen lesson →

Taylor Expansion and Local Approximation

Every gradient method is a statement about a local polynomial model. Without the remainder term, the step-size proofs are guesswork.

After this lesson: You can expand a function to second order and bound the error of the linear model.

requires: Limits And Continuity · Derivatives · Higher Order Derivatives · Partial Derivatives · Mean Value Theorem · Big O Notation · Gradient And Hessian

2.2optimizationfoundational480 minOpen lesson →

Gradient Descent

The canonical minimisation algorithm, derived from the Taylor model, with a real convergence proof and a worked quadratic.

After this lesson: You can choose a step size from L, predict divergence, and explain why the negative gradient is the steepest descent direction.

requires: Partial Derivatives · Directional Derivatives · Taylor Expansion and Local Approximation · Convex Functions

2.3optimizationadvanced200 minOpen lesson →

Newton's Method and Second-Order Optimization

Second-order information gives quadratic local convergence and a clear failure mode. It shows what curvature buys and costs.

After this lesson: You can derive the update from the quadratic model and explain when it diverges or stalls.

requires: Taylor Expansion and Local Approximation · Gradient And Hessian · Positive Definite Matrices · Cholesky Decomposition · Gradient Descent · Convex Functions · Line Search Methods

2.4probability-statisticsintermediate180 minOpen lesson →

Bayes' Theorem and Bayesian Inference

The rule for updating a belief with evidence. Base rates are the most common source of wrong conclusions in ML evaluation.

After this lesson: You can compute a posterior, distinguish P(A|B) from P(B|A), and explain why a 99% test can still be wrong.

requires: Probability Axioms · Conditional Probability · Random Variables · Probability Distributions · Expectation And Variance · Joint Distributions

2.5information-theoryadvanced190 minOpen lesson →

KL Divergence and Cross Entropy

The directed divergence behind cross-entropy, variational inference and RL regularisation. It is not a distance.

After this lesson: You can derive it from entropy, prove it is non-negative, and explain its asymmetry.

requires: Shannon Entropy · Expectation And Variance · Jensen's Inequality · Convex Functions · Maximum Likelihood · Gaussian Distribution

Stage 3 of 4

3 · Learning from data

Now the machinery: how a model represents data, how gradients reach the parameters, and how training stays stable.

3.1linear-algebraadvanced210 minOpen lesson →

Singular Value Decomposition and Principal Component Analysis

The decomposition that explains variance, compression and low-rank adaptation. Rank–nullity tells you what is lost.

After this lesson: You can derive PCA from the SVD and compute a low-rank approximation with a stated error.

requires: Matrix Factorization · Eigendecomposition · Orthogonal Matrices · Rayleigh Quotient · Covariance Matrix · Spectral Theorem

3.2deep-learningintermediate200 minOpen lesson →

Backpropagation and Computational Graphs

Reverse-mode automatic differentiation on the computation graph. The chain rule made cheap.

After this lesson: You can backpropagate through a small network by hand and verify it against finite differences.

requires: Partial Derivatives · Chain Rule · Gradient Descent · Computational Graphs · Matrix Calculus

3.3deep-learningintermediate160 minOpen lesson →

Softmax and Cross-Entropy Loss

The standard classification loss, derived rather than memorised, including the log-sum-exp stability trick.

After this lesson: You can derive the gradient, implement a stable version, and explain why accuracy is not loss.

requires: Logarithms · Probability Distributions · Maximum Likelihood · Backpropagation and Computational Graphs · Gradient Descent · Information Theory

3.4computer-visionintermediate200 minOpen lesson →

Convolution and Convolutional Neural Networks

Weight sharing and locality, with an explicit output-shape and parameter-count calculation.

After this lesson: You can compute shapes and parameters, and explain the inductive bias a convolution imposes.

requires: Linear Algebra · Matrix Multiplication · Signal Processing Basics · Backpropagation and Computational Graphs · Feedforward Neural Networks

3.5optimizationadvanced190 minOpen lesson →

Adam and AdamW: Adaptive Moment Estimation

Moment estimates plus decoupled weight decay. The default optimiser, with the bias-correction step often skipped in explanations.

After this lesson: You can write the update, explain each state tensor, and say why AdamW differs from Adam + L2.

requires: Gradient Descent · SGD · Momentum · Rmsprop · Adagrad · Exponential Moving Average

3.6generative-aiadvanced150 minOpen lesson →

Normalization Layers: LayerNorm and RMSNorm

A normalisation that drops mean-centering and is cheaper than LayerNorm. Small change, real numerical consequences.

After this lesson: You can implement it, compare it with LayerNorm, and explain the invariance each one has.

requires: Backpropagation and Computational Graphs · Gradient Descent · Scaled Dot-Product Self-Attention · Activation Functions · Batch Normalization

Stage 4 of 4

4 · Sequence models and decision making

The two settings that dominate current research: attention over sequences, and value-based or policy-based control.

4.1generative-aiadvanced210 minOpen lesson →

Scaled Dot-Product Self-Attention

Queries, keys and values as a differentiable lookup, derived from the desire for content-based mixing.

After this lesson: You can write the attention equation, explain the scaling, and prove permutation equivariance.

requires: Linear Algebra · Softmax and Cross-Entropy Loss · Backpropagation and Computational Graphs · Sequence Modeling · Matrix Multiplication

4.2generative-aiintermediate240 minOpen lesson →

Transformer Architecture

The full block: multi-head attention, residuals, normalisation, FFN, positions, causal masks and the parameter count.

After this lesson: You can implement a causal block, count its parameters, and explain the KV-cache and attention complexity.

requires: Scaled Dot-Product Self-Attention · Softmax and Cross-Entropy Loss · Backpropagation and Computational Graphs · Matrix multiplication · Normalization

4.3reinforcement-learningadvanced200 minOpen lesson →

Markov Decision Processes and Bellman Equations

The recursive consistency condition that makes sequential decisions tractable.

After this lesson: You can derive the expectation and optimality equations and explain the contraction argument.

requires: Probability Theory · Conditional Expectation · Markov Chains · Dynamic Programming · Discounted Returns

4.4reinforcement-learningadvanced190 minOpen lesson →

Q-Learning and Temporal Difference Control

Off-policy value learning from bootstrapped targets, with the overestimation and deadly-triad failure modes.

After this lesson: You can write the update, explain target networks, and diagnose divergence.

requires: Markov Decision Processes and Bellman Equations · Markov Decision Processes · Stochastic Approximation · Monte Carlo Methods · Epsilon Greedy Exploration

4.5reinforcement-learningresearch240 minOpen lesson →

Proximal Policy Optimization

A policy-gradient method with a clipped surrogate objective. The clip is not a trust region, and the page says so.

After this lesson: You can derive the policy gradient, explain the ratio and clip, and implement a minimal update.

requires: Policy Gradient Theorem · Markov Decision Processes and Bellman Equations · Importance Sampling · Advantage Estimation · KL Divergence and Cross Entropy · Actor Critic Methods

4.6generative-airesearch260 minOpen lesson →

Denoising Diffusion Probabilistic Models

Generation as iterative denoising, with the forward process, the training objective and the sampler derived.

After this lesson: You can write the noising process, derive the simplified loss, and explain the sampling trade-off.

requires: Gaussian Distributions · KL Divergence and Cross Entropy · Variational Inference · Markov Chains · Unet Architectures · Denoising Autoencoders

What is not on this path

The other 879 concept pages are generated templates. They exist so the taxonomy is navigable, but their prose is shared boilerplate and is not a lesson. They are marked “generated template · not reviewed” wherever they appear. Do not count reading them as progress. The quality page explains what the structural score does and does not measure.

The four full reference studies — LLM-as-a-Judge, and three others — are longer, research-level treatments. Take them after Stage 4 if your goal is evaluation, or after Stage 2 if you want the statistics first.