Central Limit Theorem Calculator

Central Limit Theorem Calculator

Watch sample averages from flat, lumpy or heavily skewed populations pile up into a bell curve. Simulate 2,000 samples and compare the results with what the theorem predicts.

x̄ ≈ N(μ, σ ÷ √n) for large n

Population: Exponential, mean 1 minute: strongly right-skewed. μ = 1, σ = 1, skewness = 2.

Pick a population and enter a sample size to simulate

What Is the Central Limit Theorem?

The central limit theorem says that the average of many independent random values follows a roughly normal distribution, whatever the shape of the population they come from. The only requirement is that the population has a finite standard deviation.

That's why the bell curve turns up everywhere in statistics. Confidence intervals, t-tests and margins of error all rely on sample means being close to normal, even when individual values are lopsided.

How large n must be depends on the population. Symmetric populations converge within a handful of values. Skewed ones, like waiting times or rare events, need far more, because the skewness of x̄ only shrinks with √n.

Central Limit Theorem Formula

As given in OpenStax Introductory Statistics, section 7.1, and the NIST/SEMATECH e-Handbook, section 1.3.5.11. See Sources.

1. Centre of the sample means

mean of x̄ = μ

2. Spread of the sample means

SD of x̄ = σ ÷ √n

3. Remaining skewness

skewness of x̄ = population skewness ÷ √n

This is the practical gauge of "large enough": once it is below about 0.25, the normal curve fits well.

Worked Example: Averaging Skewed Waiting Times

Given:
Call-centre waits are exponential with mean 1 minute and SD 1 minute: most calls are answered quickly, a few take ages. A manager averages 30 calls.
Step 1:
Centre of the averages:
μ = 1 minute
Step 2:
Spread of the averages:
1 ÷ √30 = 0.1826 minutes
Step 3:
Leftover skewness:
2 ÷ √30 = 0.365
Result:
x̄ ≈ N(1, 0.183), with a slight right lean

The famous "n = 30" rule leaves skewness of 0.37 here, so tail probabilities from the normal curve will be a little off. Try the Waiting time population above at n = 30 and n = 100 to see the difference.

How Fast Each Population Becomes Normal

Skewness of the sample mean, population skewness ÷ √n. Symmetric populations start at 0, though their shape still changes.

Skewness of the sample mean for each population at several sample sizes, with the n needed to get below 0.25
Populationn = 5n = 30n = 100n for skew < 0.25
Waiting time0.890.370.264
Rare event1.850.750.41273

Common Central Limit Theorem Mistakes

  • Thinking the data become normal. The individual values keep their shape. Only the averages become normal.
  • Treating n = 30 as a magic threshold. A die converges well before 30. A 5% rare event needs nearly 300 values per sample before its averages look normal.
  • Applying it to dependent values. Daily sales in the same week or pupils in the same class are correlated, and averages converge more slowly or not at all.
  • Forgetting the finite-variance condition. Some heavy-tailed quantities, like the Cauchy distribution, never settle: their averages are as wild as single values.

Central Limit Theorem FAQs

Why does the simulation differ slightly from theory?

It uses 2,000 samples, not infinitely many. Its SD is typically within about 2% of σ ÷ √n; the skewness estimate is noisier.

What does “Draw new samples” do?

Reruns the simulation with fresh random numbers. The histogram changes a little each time, but its shape and spread stay the same.

Does the CLT apply to sums too?

Yes. Sums are just n times the mean, so they’re approximately normal with centre nμ and spread σ√n.

Why does the die look normal so fast?

It’s symmetric with no extreme values. Even the average of 2 dice is triangular, and of 5 dice is close to a bell.

Why does the two-humped population matter?

It shows a population with no peak in the middle still gives averages that peak in the middle, once n is a few values.

Does the CLT apply to proportions?

Yes. A proportion is the mean of 0s and 1s, which is what the Rare event option simulates.

What about medians?

Sample medians are also approximately normal for large n, but with a different spread formula.

Who proved the CLT?

De Moivre showed it for coin tosses in 1733, Laplace extended it, and Lyapunov gave a general proof in 1901.

Sources

Related Tools