Understanding the Central Limit Theorem with a Simulator
What the central limit theorem says, why the standard error is sigma over root n, and how to see it work with any population shape in a simulation.

Understanding the Central Limit Theorem with a Simulator
The central limit theorem (CLT) is the hinge of introductory statistics. It explains why confidence intervals and many hypothesis tests use the normal distribution even when the data themselves are not normal. Yet most students meet it as a formula to memorise. Watching it happen is far more convincing, and the free central limit theorem simulator makes that easy.
The idea in one paragraph
Take a population with mean μ and standard deviation σ. Draw a random sample of size n and work out its mean, x̄. Do it again and again. The collection of all those sample means is called the sampling distribution of the mean. The CLT says that as n grows, this distribution gets closer to a normal distribution with mean μ and standard deviation σ/√n, whatever the shape of the population, as long as σ is finite.
Three facts to remember
First, the centre does not move: the mean of the sample means equals μ. Sample means are unbiased estimates of the population mean.
Second, the spread shrinks with √n. The standard deviation of x̄ is called the standard error, σ/√n. Quadrupling the sample size halves it. Going from 25 to 100 observations makes your estimate twice as precise, not four times.
Third, the shape becomes normal. For a symmetric population this happens quickly; for a heavily skewed one it takes longer.
Running the simulation
Choose a population in the simulator. A right-skewed one is a good start because it is obviously not normal. Set n = 1 and press +100: the histogram simply copies the population. Now set n = 5 and run again. The histogram is already a hump, though still a little skewed. At n = 30 it sits almost exactly under the red normal curve.
Watch the statistics panel as you go. The observed standard deviation of the means tracks σ/√n closely, and the skewness of the means moves towards 0. Then draw your own odd population with the sliders, a U shape or two separate peaks, and test whether the theorem still holds. It does.
Comparing sample sizes
The compare tab runs 3,000 samples each for n = 1, 2, 5, 10, 30 and 50 and lists the standard deviation of the means next to σ/√n. This table is a great one to copy into notes, because it shows both the square-root law and the diminishing return of larger samples.
Using the CLT in calculations
Exam questions usually ask for a probability about a sample mean. Suppose a fair die is rolled 25 times. A single roll has μ = 3.5 and σ ≈ 1.708, so the standard error is 1.708 ÷ 5 = 0.342. The probability that the average roll exceeds 4 is P(Z > (4 − 3.5) ÷ 0.342) = P(Z > 1.46) ≈ 0.072. The practice tab generates questions of exactly this type with full working.
Common misunderstandings
The CLT does not say the data become normal; it is about the means of samples. It does not say n = 30 is magic; that is a rule of thumb. And it does not apply to distributions without a finite variance, such as the Cauchy distribution, which statistics courses sometimes mention as a warning.
Limits
The simulator samples with replacement from a list of values, which mimics a very large population, so it does not apply the finite population correction used when sampling a large share of a small population. Results vary slightly between runs unless you fix the seed. It is designed for learning and classroom demonstrations, not for analysing research data.


