urn_simulation


urn_simulation, an Octave code which simulates an experiment in which k colored marbles are drawn from an urn containing a total of n marbles. The quantity of interest is the number of marbles of each color.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

urn_simulation is available in a MATLAB version and an Octave version and a Python version.

Related Data and codes:

urn_simulation_test

octave_simulation, an Octave code which uses simulation to study card games, contests, and other processes which have a random element. Usually, the purpose is to try to predict the average behavior of the system over many trials.

Reference:

  1. Nick Berry,
    Sampling and Confidence Levels,
    https://datagenetics.com/blog/june12014/index.html

Source Code:


Last revised on 13 November 2022.