The Sampling Lab

You never see the whole population, only a sample. Watch thousands of samples fall, and see why their means end up on a predictable curve.

Each sample is n values (white dots) drawn from the skewed population at the top. Its mean, a yellow tick, drops into the pile below. What grows as you watch is the number of samples: more samples only fill in and smooth the pile, they never narrow it. A larger n narrows it, to a width of σ/√n, and brings it closer to the dashed normal curve. At n = 1 each mean is one draw, so the pile copies the population’s shape.

Statistics begins with an uncomfortable fact: you only ever see a sample. The mean you compute, the spread you measure and the p-value you report would all have come out differently with a different handful of data. This site treats that fact as an experiment you can run. Draw a sample, draw another, draw ten thousand, and watch what the numbers do.

Six experiments follow. The first two give you the vocabulary: spread, the normal curve and the z-score, each with an exact calculator built into the explanation. The middle two show where the familiar shapes come from. The last two use everything to answer the questions people actually ask of data: how sure can I be, and could this just be chance?

A dot is one measurement. A short tick is a statistic: a number computed from a sample, such as its mean. Ticks from many samples stack up into a histogram, as the yellow ones do above. A dashed line is the truth: a property of the whole population, or a curve that theory predicts from it, which in real life you never get to see.

Tables and calculators

Each one shows its working and draws the answer, and links back to the chapter that explains it.

How this is made and checked

Every figure is driven by a small, tested engine: exact formulas where they exist (the normal and Student t distributions, the binomial and Poisson probabilities), and seeded simulations everywhere else, so the same link always reproduces the same samples. An independent test suite, written from the published equations without reading the engine, checks the numbers. Every equation, number and historical claim on the site is listed with its source in a claims register, and each figure says what it simplifies. More about how the site is checked.