Born to visualize regression
Sir Francis Galton built the “bean machine” in the 1880s to show how random variation regresses toward the mean—literally dropping beads to form a bell curve.
Tip: Increase rows to see the distribution approach a bell curve. Adjust bias to skew left/right.
A Pachinko (Galton) board turns many small random choices into a distribution. At each peg the ball “chooses” to go left or right. With a fair board (p = 0.5 to the right), the total number of rights in n rows follows a binomial distribution \( \mathrm{Binomial}(n,p) \). The landing bin is exactly that count. As n grows, the binomial begins to resemble a normal distribution (Central Limit Theorem).
Use the Bias control to set the probability p of going right on each bounce. Values above 0.5 skew the distribution to the right; below 0.5 skews left. The overlay shows the theoretical binomial probabilities for comparison with the live histogram.
The animation uses smooth parabolic arcs between peg centers for clarity and performance (pseudo-physics), while the left/right decision remains random according to your chosen bias.
This interactive Pachinko / Galton board (also called a bean machine or Quincunx) turns many small, independent decisions into a big picture: a probability distribution. Each ball travels row by row, “bouncing” left or right at every peg. If the chance of going right is p (set with the Bias control), then after n rows the number of right bounces follows a binomial distribution with parameters (n, p). The landing bin corresponds to that count of right steps. With p = 0.5 the distribution is symmetric and, as rows increase, the familiar bell shape appears.
The peg layout mirrors Pascal’s triangle: the number of distinct paths to each bin is exactly the binomial coefficient C(n, k). In a STEM classroom, this simulator links combinatorics, probability, and statistics with an engaging visual. In biology, it can illustrate sampling and noise; in engineering, it motivates tolerance stacking and reliability; in computer science, it provides intuition for randomized algorithms.
For clarity and performance, the motion uses pseudo-physics: smooth parabolic arcs between peg centers, while each left/right choice is randomized with probability p. The statistics you see (mean, SD, histogram) always reflect the true underlying binomial model, making this both accurate and easy on the browser.
Tip: Increase Rows to see the bell curve emerge. Then adjust Bias to explore skewed distributions. This “Pachinko probability” simulator is perfect for demonstrations, homework, and quick intuition building.
Sir Francis Galton built the “bean machine” in the 1880s to show how random variation regresses toward the mean—literally dropping beads to form a bell curve.
The number of paths to each bin is exactly C(n,k) from Pascal’s triangle. A Galton board is the triangle turned vertical and sprinkled with gravity.
Nudge p from 0.50 to 0.55 and the whole histogram slides right. Small biases add up across rows—great for showing how manufacturing tolerances stack.
As rows increase, the binomial curve hugs a normal curve tighter (Central Limit Theorem). You can watch “approximation” happen live as more balls fall.
Real pachinko machines mix fixed pegs with player-controlled launch speed and tilt, turning a Galton board into a game of skill-plus-chaos beloved in Japan.