Probability

Central Limit Theorem

A Galton board sends balls through rows of pegs. Each left/right bounce is random, but the final pile forms a normal distribution.

6 minLevel 2/3The interactive stage stays ad-free.
Balls0Rows12Peak bin-1
0
1
2
3
4
5
6
7
8
9
10
11
12

Each row is a 50/50 left-or-right choice. With enough balls, the histogram approaches the normal distribution even though every individual bounce is random.

What you are seeing

1

Every peg gives the ball a 50/50 chance to go left or right. After many rows, the number of right turns is a binomial random variable.

2

The binomial distribution approaches a normal distribution as the number of rows grows.

3

The histogram of final positions becomes the familiar bell curve, centered on the middle.

Why it matters

The central limit theorem explains why averages of independent random variables tend to be normal. It underpins confidence intervals, A/B testing, and statistical inference.

Complexity & details

Simulation: O(balls × rows). The limiting distribution is normal with mean np and variance np(1-p).

Frequently asked questions

Does the original distribution need to be normal?+

No. The theorem applies to sums or averages of many independent variables with finite variance, regardless of the original shape.

What does the board actually simulate?+

Each ball takes a random walk through the pegs. Its final bin is the sum of many independent left/right choices.