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
Results
Observed mean of means—
Observed SD of means—
Theoretical mean (μ)—
Theoretical SE (σ/√n)—
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
- Select a population distribution from the dropdown (uniform, exponential, bimodal, or custom).
- Adjust the sample size n — larger n produces faster convergence to normality.
- Set the number of samples to draw (up to 5,000 repetitions).
- Click "Run Simulation" — the tool draws that many samples of size n, computes each mean, and plots the histogram.
- A red normal-curve overlay shows the CLT prediction: N(μ, σ²/n).
- 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