About this model — Lines, Coin Flips, and the Bell Curve
This simulator replaces the physical pegs of the classic Galton Board with horizontal decision lines. Each time a ball crosses a line, a fair coin is flipped. If the result is right, the ball’s cumulative deflection angle increases by Δ°; if left, it decreases by Δ°. The ball then travels in a straight line at its new angle until the next decision.
Because there are no pegs, there is no collision physics to complicate the model. Every ball makes exactly n independent binary decisions — one at each line — making this a purer demonstration of the binomial probability model. With trails enabled you can watch each ball’s path trace out a tree diagram: every branch point is a line crossing, every branch is a deflection.
Mathematical note: The final x position of a ball depends on the sum of its x-displacements across all segments. For small Δ° this is approximately proportional to the sum of a random walk, whose distribution converges to Normal by the CLT but has variance proportional to n³/3 rather than n. The gold overlay uses the binomial PMF as an approximation; exact agreement improves as Δ° approaches 0.
Try enabling Trails with a small number of lines (4–6) and dropping balls one at a time — the tree structure of Pascal’s Triangle appears in the background.
Binomial: resets to ±Δ° each line — exact binomial distribution.
Cumulative: deflections add up — wider random-walk-sum distribution.
The gold curve shows the exact binomial PMF
P(k) = C(n,k)×(½)n
for the current line count.
It is an approximation for this model — exact agreement requires
Δ° → 0. See the chatlog for the mathematics.