The Stochastic Urn

This page demonstrates the stochastic urn model originally proposed by Eggenberger and Polya in 1923 to model disease contagion. The general idea is that an urn contains two marbles, one red and one black. A random marble is removed from the urn, and then put back, along with an additional marble of the same color. As this cycle continues the proportion of red marbles to black marbles will converge to a stable value. However, this value is random, and will differ from run to run.

Refresh this page to begin a new run.

Runs Red Black Portion Red


GitHub project page: https://github.com/hollasch/stochastic-urn