The Central Limit Theorem

April 12, 2026

Problem

Roll a die 10,000 times. Plot sample means of size 30. Show convergence to normal.

Explanation

The Central Limit Theorem (CLT)

The distribution of sample means approaches a normal distribution as sample size increases, regardless of the original population's shape.

XˉN(μ,σ2n) as n\bar{X} \sim N\left(\mu, \frac{\sigma^2}{n}\right) \text{ as } n \to \infty

Step-by-step demonstration

Step 1: Roll a die (uniform distribution, not normal at all). Single rolls: equally likely 1-6.

Step 2: Take samples of size n=30n = 30 and compute the mean of each sample.

Step 3: Repeat thousands of times and plot the distribution of sample means.

Result: The histogram of sample means is bell-shaped (approximately normal), centered at μ=3.5\mu = 3.5, with SD=σ/n=1.71/300.31\text{SD} = \sigma/\sqrt{n} = 1.71/\sqrt{30} \approx 0.31.

Why the CLT matters

  • It justifies using the normal distribution for hypothesis tests and confidence intervals, even when the population isn't normal.
  • Larger nn → better approximation → narrower spread.
  • Rule of thumb: n30n \geq 30 is usually sufficient.

Try it in the visualization

Select a source distribution (uniform, skewed, bimodal). Watch sample means accumulate into a histogram that becomes increasingly bell-shaped, regardless of the source shape.

Interactive Visualization

Parameters

30.00
500.00
Uniform
25.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
The Central Limit Theorem | MathSpin