All Modules

Statistics

Any set of data could have come out differently: another sample, another day, another shuffle of who got the treatment. Statistics is the craft of saying something reliable anyway. This module teaches it the way statisticians convince themselves — by building a world where the truth is known and running the experiment thousands of times. Its 36 interactive demonstrations let you watch a hundred confidence intervals try to catch one true value, build a p-value by shuffling labels, and p-hack your way to a discovery in pure noise. Pull a regression line about by a single point. Untangle the Berkeley admissions paradox, refit the Challenger data, and set a Markov chain loose on a posterior. The data, wherever possible, are the real ones.

See also: Probability for distributions and the central limit theorem, Machine Learning for regression as projection and PCA, Information Theory for entropy and KL divergence, Linear Algebra for least squares, and Optimization for maximizing a likelihood.

  1. 01

    Looking at Data

    Before any formula, look. Histograms that change their story with the bin width, averages dragged about by one outlier, and four datasets with identical summaries that could not be more different

    3 demos
  2. 02

    Samples and Populations

    A few thousand people can speak for a hundred million — if chance picks them. Sampling distributions, the square-root law, and the 1936 poll of 2.4 million that got it wrong

    3 demos
  3. 03

    Estimators and Likelihood

    An estimator is a recipe for guessing, and some recipes are better. Bias against variance, counting tanks from serial numbers, and Fisher’s idea of choosing the parameter that makes the data most likely

    3 demos
  4. 04

    Confidence Intervals

    What “95% confident” promises and what it does not. Watch a hundred intervals try to catch the truth, see why small samples need Student’s t, and pull yourself up by the bootstrap

    3 demos
  5. 05

    Hypothesis Tests

    Could chance alone have done this? Shuffle the labels and see. The lady tasting tea, permutation tests, the t-test on Student’s own data, and what a p-value is the probability of

    3 demos
  6. 06

    When Tests Mislead

    Power, false alarms, and twenty jelly beans. How testing many things, peeking early, or publishing only the hits turns noise into findings — and how to stop it

    3 demos
  7. 07

    Counts and Chi-Squared

    When the data are counts in boxes. Pearson’s statistic built from dice, tables that test independence, and Mendel’s peas, which fit his theory a little too well

    3 demos
  8. 08

    Regression

    The line that minimises squared error, why tall parents have shorter children, and how a single point with leverage can swing the whole fit

    3 demos
  9. 09

    Models and Overfitting

    A model flexible enough to fit anything predicts nothing. Polynomial wiggles, cross-validation, logistic regression, and the cold morning the Challenger launched

    3 demos
  10. 10

    Correlation and Causation

    Admissions that favour men overall and women in every department. Confounders, colliders, Simpson’s paradox, and why a coin flip is the best tool science has

    3 demos
  11. 11

    Designing Experiments

    Randomise, block, and decide the sample size before you look. The Salk vaccine trial, A/B tests, and why checking the results every day manufactures false wins

    3 demos
  12. 12

    Bayesian Statistics

    Start with a belief, update it with data. Priors and posteriors, a Markov chain exploring a posterior live, and why pulling every estimate toward the average beats treating each alone

    3 demos

Search