Tool

Galton board

Each ball meets one peg in every row and bounces right with probability p or left otherwise, each bounce independent of the others. The bin it lands in counts its bounces to the right, so the bins fill up to the binomial distribution: the dots show how many balls the binomial expects in each bin.

Goes with chapter 5. The binomial distribution

Set up

rows of pegs = 10

rows of pegs

p = 0.5

chance of a bounce to the right, p

Number of balls

Run number 1
Open B(10, 0.5) in the explorer
Playback speed

  • Balls in each bin
  • What the binomial expects

Where this run ends: 500 balls with an average bin of 5, against np = 5.

The bins in numbers
Bin (bounces to the right)BallsThe binomial expects
000.5
174.9
22322.0
35858.6
486102.5
5142123.0
6101102.5
75758.6
82022.0
964.9
1000.5

What to look for

A ball ends in bin k when k of its bounces go right, and there are many more paths to the middle bins than to the edges: one path reaches bin 0, but 252 reach bin 5 of a board with 10 rows. That count of paths is the binomial coefficient, and it is why the pile is highest in the middle.

Move p away from 0.5 and the pile leans: most balls bounce the likelier way, and the long tail points to the other side. Add rows and the pile widens and looks more and more like a bell, which is where the normal distribution comes from.

An unhandled error has occurred. Reload ๐Ÿ—™

Reconnecting…

Your connection to Introduction to Probability Lab dropped, probably a Wi-Fi blip. Hold on while it reconnects.

The connection could not be restored. The page will reload in a few seconds.