Code Monkey home page Code Monkey logo

galton-board's Introduction

Galton Board

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".

Description

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.

Online Demonstration

You can view the functioning of the Galton board online at phitter.io/galton-board.

References

All information is sourced from Galton Board.

Alt text

Running the Project with Vite and Vue

To run the project using Vite and Vue, follow these steps:

Prerequisites

Ensure you have Node.js and npm (Node Package Manager) installed on your system.

Setup

  1. Clone the Repository:

    git clone https://github.com/phitterio/galton-board.git
    cd https://github.com/phitterio/galton-board.git
  2. Install Dependencies: Make sure you are in the root directory of your project, then run:

    npm install
  3. Start the Development Server with Vite:

    npm run dev

galton-board's People

Contributors

sebastianherreramonterrosa avatar

Stargazers

 avatar

Watchers

Phitter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.