Galton Board JS Model Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Galton Board JS Model 

written by Wolfgang Christian
content provider: Anne Cox

A Galton board is a vertical board with n rows of pegs onto which a ball is dropped.   Each time a ball hits a peg, it has a probability p of bouncing to the left and a probability of 1-p of bouncing to the right. The simulation's histogram shows the distribution of x-coordinates as the balls leave the board and are collected into bins.

The JavaScript simulation gives rise to the binomial distribution if the probabilities of left and right bounces are equal. At first there does not seem to be any pattern but after many trials the familiar "bell curve" shape begins to emerge.

The Galton Board JavaScript Model was developed using version 5 of the Easy Java/JavaScript Simulations (EjsS) modeling tool and is distributed as a ready-to-run html page and requires only a browser or tablet with JavaScript support.

Last Modified December 14, 2014

Source Code Documents

Galton Board Source Code 

This source code zip archive contains an XML representation of the Galton Board JavaScript Model.   Unzip this archive in your EJS workspace to compile and run this model using EjsS ver 5.1.  Although EjsS is a Java program, it creates a platform independent stand-alone JavaScript program that runs on most browsers from this source code.

Last Modified December 14, 2014