Pages

Monday, February 5, 2018

Galton Board JavaScript Simulation Applet HTML5

This is a simulation of a Galton Board, a vertical board with n rows of pegs onto which a ball is dropped. Every time the ball hits a peg, it has a probability p of bouncing to the left, and a probability 1-p of bouncing to the right.
Once at the bottom of the board, the balls are collected into bins, with the frequency of the balls entering each bin represented by a histogram.

If p and 1-p are of equal values, then over repeated iterations of the Galton Board simulation, the binomial distribution should form.


No comments:

Post a Comment