fly_simulation


fly_simulation, an Octave code which simulates an experiment in which a fly lands on a plate of radius 1. By repeating the experiment many times, the average distance of the fly from the center is to be estimated.

Licensing:

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

Languages:

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

Related Data and codes:

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

Source Code:


Last revised on 15 November 2022.