Galton BoardStatLens

Every ball meets a peg and goes left or right, over and over, and ends up in the bin that counts how many times it went right. That count is a binomial random variable — so the pile that builds up underneath is the binomial distribution, one ball at a time.

0.50
Board:
Balls

Before you drag p: the board is symmetric when p = 0.5. Slide it to 0.25 and predict — which bin fills up, and does the pile stay the same shape?

Galton Board — Help

A ball meets n pegs on the way down and goes right at each one with probability p. The bin it lands in is the number of rights — so the pile is a Binomial(n, p) distribution being drawn by hand.

Two boards

Ideal decides each bounce with a coin and then draws the path. The counts are exactly Binomial(n, p), which is what makes it the board to point at when you mean “this is the binomial distribution”. The motion is still honest — projectile arcs, a squash at each peg — but nothing is being simulated.

Physical pours real beads into a real little world: a full field of pins, gravity, bounces off the pins, bounces off each other. Nothing decides where a bead should land — it falls, it gets knocked about, and it comes out of the bottom somewhere. Where it comes out is what the bars underneath count. The histogram this produces is not binomial, and that is the point of having both boards. The curve stays drawn over the bars, and a line underneath reports how far the spread has drifted from √(npq).

Watch the stream rather than the bars for a moment: the plume of beads widens as it falls, and it has stopped widening by the time it reaches the bottom. That shape is the distribution, being drawn in beads before any counting happens.

The knobs in Physical mode each break a different thing the binomial model assumes:

Slow motion quarters the speed without changing the physics, which is the way to actually see a bounce.

Both boards are reproducible: ?seed= gives the identical run every time, including in Physical mode — the world advances in fixed steps and the balls are released against its own clock rather than yours, so a slow machine gets the same pile, just drawn less often.

For the same distribution as a calculator rather than a pile, see the Binomial Distribution Calculator. For why the normal curve shows up at all, see Sampling Distributions and the Law of Large Numbers.

Instructors: there is a printable guide, and ?mode=present hides the student prompt.

Keyboard