Galton board (bean machine)
Realizes: Gaussian / binomial distribution
Balls dropped through a triangular array of pegs deflect left or right at each level. The distribution of balls in the output bins converges to a Gaussian as Nāā. Each peg is an independent Bernoulli trial. Speed: minutes to hours (depending on ball count). Capacity: statistical sampling (scales with number of balls).
Examples
Default Galton board (bean machine) implementation
Basic implementation
SAMPLE
hours
medium
mJ