/monty-hall-paradox

A simulation demonstrating the Monty Hall paradox.

Primary LanguagePythonMIT LicenseMIT

The Monty Hall Paradox

A simulation illustrating the Monty Hall paradox.

Simulation results

The simulation conterunituitively demonstrates that you get an extra third of probabilities of getting the prize by changing your initial choice.

Installing

You need Python tu run the simulation.

You need to install pandas and matplotlib, as in:

$ pip install --upgrade pandas matplotlib

Execution

Just execute the py program:

$ python monty_hall.py