Central limit theorem
Thousands of real samples, live: from a die, a bus wait or a loaded coin. Their means (or sums) pile up and form a bell N(μ, σ/√n), whatever the shape of the population. It runs in your browser, on your phone too.
How to use it
- Start with the die lesson: n = 1, 2, 5 and 30, and you will see the flat shape turn into a bell.
- Choose another population, change the sample size n and whether the mean or the sum is kept.
- Draw 1 sample to see where each mean comes from, or +100 and +1000 to see the shape; the coral curve is the normal the theorem predicts.
What it works out
Each sample is n values from the population; its mean x̄ (or its sum S) is kept. The histogram of those means is compared with N(μ, σ/√n), and that of the sums with N(nμ, σ√n). Next to it, the mean and standard deviation of what came out against what the theory says.
The rules it follows
- The populations have known μ and σ: the die (3.5 and 1.71), the uniform between 0 and 10, the exponential wait with mean 6 minutes, the coin that gives 1 with probability 0.2 and a mixture of two bells.
- In R it would be
replicate(1000, mean(sample(1:6, 30, replace = TRUE))): the call at the top changes with your choices.
For the exam
The CLT lets you approximate probabilities of means and sums with the normal: with the mean and standard deviation of the mean (σ/√n) or of the sum (σ√n), not those of a single value. The challenge below gives you new calculations.
