Galton board
Balls fall through a triangle of pegs. At every peg a ball bounces left or right, as if by the toss of a coin. Each path is pure chance, yet together the balls pile up in the shape of a bell. That shape is the binomial distribution, and with many rows it becomes the normal curve.
How it works
- Open this page and the balls start falling. Watch the middle bins fill first and the bell curve grow.
- Set Rows and Balls, or move Bias to make every bounce lean to one side. Turn on Pascal's triangle to count the paths.
- Read the mean and the standard deviation against their expected values, then save a PNG.
Left or right, twelve times
With 12 rows a ball meets 12 pegs, and at each one it goes left or right. Its bin is simply the number of times it went right: from 0 at the far left to 12 at the far right. Six rights and six lefts, in any order, end in the middle.
Why the middle fills first
There is only one path to the far left bin: left every time. There are 924 paths to the middle bin, because 6 rights can be spread over 12 bounces in 924 ways. Those numbers are Pascal's triangle, and they give the bins their bell shape.
Mean and spread
With a fair bounce the average bin is half the rows: 6 for 12 rows. The spread, the standard deviation, is \(\sqrt{n\cdot p\cdot (1-p)}\), about 1.73 for 12 rows. Set Bias to 70% and the bell slides to the right, to 8.4.
Using the app
Balls drop through the pegs and bounce left or right at each one. Most paths end near the middle, so the bins fill into a bell curve. Turn on Pascal's triangle to count the paths, or set Bias to tilt every bounce.
Frequently asked questions
What is a Galton board?
A board with rows of pegs and bins at the bottom. Francis Galton built one in the 1870s to show how chance builds a bell curve. It is also called a bean machine or a quincunx.
Why is it a bell curve?
Each bin collects the paths with a certain number of right bounces. Paths with about as many rights as lefts are by far the most common, so the middle bins fill most. With many rows the binomial distribution looks just like the normal curve.
What does Bias do?
It sets the chance that a ball bounces right at each peg. At 50% the bell sits in the middle. At 70% every bounce leans right and the bell moves over, but it keeps its shape.
Why don't the bins match the curve exactly?
Every ball is a new random path. With few balls the bins scatter around the curve. The more balls you drop, the closer they follow it.
What does Pascal's triangle have to do with the Galton board?
Each number in Pascal's triangle counts the paths from the top to a peg, as the sum of the two above it. The bottom row counts the paths into each bin: for 12 rows the middle bin has 924 of the 4,096, so it catches about 22.6% of the balls. Turn on Pascal's triangle to see the counts.
高爾頓板: how do I record a video?
Press the red Record button in the playback bar: it films what the stage shows. Press it again to stop, and the video is saved to your device.Recording is free; you only need to sign in. Without a subscription the video carries a small PictorX logo in a corner.The button beside Record opens the video options: the shape (as shown, square, story 9:16 or wide 16:9), the length (until you stop, or 5, 10, 15 or 30 seconds for social media) and the file: MP4, WebM or an animated GIF.For the sound, choose the app's own sounds or one of three music tracks: calm, bright or beat.
Ready to try it?
Open PictorX in your browser — no install, no credit card required to start.
前往編輯器