flies_simulation


fly_simulation, a Python code which simulates an experiment in which two flies land on a plate of radius 1. By repeating the experiment many times, the average distance between the flies is to be estimated.

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

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

Related Data and codes:

python_simulation, a Python 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. Paul Nahin,
    Dueling Idiots and Other Probability Puzzlers,
    Princeton, 2012,
    ISBN: 978-0691155005.

Source Code:


Last revised on 09 August 2022.