Interactive math

Worked examples you can drag, scrub and play with. Every plot is computed live in your browser from the underlying equations.

Differential equations

One jump in, a fan of waves out.

The Riemann problem

Shocks, rarefactions and contacts for Burgers, traffic, oil recovery and a dam break, next to Godunov’s method.

Machine learning

Find the best axis by hand, then break it.

Principal component analysis

Variance vs reconstruction error, eigenvectors, and why units and outliers swing the answer.

Perfect data makes the weights run to infinity.

Logistic regression

Live gradient descent, log-loss, regularisation, and feature maps that solve XOR.

Only the circled points matter.

Support vector machines

Maximum margin, the C trade-off, RBF and polynomial kernels, solved live by SMO.

Statistics that surprise, and are worth knowing

Better in every group, worse overall.

Simpson’s paradox

The real kidney-stone data, a picture that makes the reversal obvious, and when to trust which number.

Why the attractive actors seem worse at acting.

Berkson’s paradox

How filtering on a combination of traits manufactures a negative correlation.

A 99% accurate test, right 1 time in 6.

Base rates and Bayes

10,000 people take a test. See why the positives are mostly false alarms, and why a retest fixes it.

Averages turn bell-shaped, unless they don’t.

Central limit theorem

Skewed sources, slow convergence, and the Cauchy distribution that never averages out.

Estimate unrelated things better by mixing them.

Stein’s paradox

The James–Stein estimator beats the obvious one in three or more dimensions, wherever the truth is.

Buses every 10 min, yet you wait 10, not 5.

The inspection paradox

Length-biased sampling, from bus stops to class sizes to “your friends have more friends”.