The Galton board, also known as the Galton box, quincunx, or bean machine, is a device invented by Sir Francis Galton to demonstrate the central limit theorem. Specifically, it illustrates that with a sufficient sample size, the binomial distribution approaches a normal distribution. This device has also provided insights into the concept of regression to the mean, often referred to as "reversion to mediocrity".
The Galton board is designed as a vertical board furnished with interleaved rows of pegs. When beads are released from the top and the apparatus is maintained level, they deflect either to the left or the right upon colliding with the pegs. Eventually, these beads settle in bins at the bottom, and the accumulated beads form columns whose heights closely resemble a bell curve.
Interestingly, by superimposing Pascal's triangle onto the pins, one can discern the diverse paths that a bead might follow to reach each specific bin.
You can view the functioning of the Galton board online at phitter.io/galton-board.
All information is sourced from Galton Board.
To run the project using Vite and Vue, follow these steps:
Ensure you have Node.js and npm (Node Package Manager) installed on your system.
-
Clone the Repository:
git clone https://github.com/phitterio/galton-board.git cd https://github.com/phitterio/galton-board.git
-
Install Dependencies: Make sure you are in the root directory of your project, then run:
npm install
-
Start the Development Server with Vite:
npm run dev