Central Limit Theorem Demo

Pick a population distribution, set sample size and number of draws, then watch the sampling distribution of the mean become bell-shaped as the CLT predicts.

Simulation Settings

1200
1005,000
1080

Population Shape

Sampling Distribution of the Mean

Observed CLT Normal

Click Run Simulation to generate the sampling distribution.

What you are seeing

Set the controls and run the simulation. Each bar in the histogram represents how often a sample mean fell in that range across all repetitions. The red curve is the normal distribution the CLT predicts for those means. As n grows, the histogram and the curve align more closely.

Summary

Pick a population distribution, set sample size and number of draws, then watch the sampling distribution of the mean become bell-shaped as the CLT predicts.

How it works

  1. Select a population distribution from the dropdown (uniform, exponential, bimodal, or custom).
  2. Adjust the sample size n — larger n produces faster convergence to normality.
  3. Set the number of samples to draw (up to 5,000 repetitions).
  4. Click "Run Simulation" — the tool draws that many samples of size n, computes each mean, and plots the histogram.
  5. A red normal-curve overlay shows the CLT prediction: N(μ, σ²/n).
  6. Compare the histogram shape to the population shape shown in the left panel.

Use cases

  • Statistics students visualizing why sample means are normally distributed even from skewed populations.
  • Teaching hypothesis testing foundations — the CLT justifies z-tests and t-tests.
  • Demonstrating how sample size n controls the spread of the sampling distribution.
  • Exploring convergence speed for different population shapes (symmetric vs. highly skewed).
  • Quality control: understanding why sample mean control charts assume normality.
  • Data science onboarding — intuitive proof that averages behave predictably at scale.
  • Checking how many repetitions are needed before the histogram stabilizes.
  • Research review: sanity-checking simulation designs for Monte Carlo studies.

Frequently Asked Questions

Last updated: 2026-06-13 · Reviewed by Nham Vu