Skip to content

SafalPandey/monty-hall-simulator

Repository files navigation

monty-hall-simulator

To demonstrate how switching or not switching your first pick in the Monty Hall problem affects your chances to win the game. Read here for more info on the Monty Hall problem itself.

Additional inputs

  1. Max iterations:

    Defines how many iterations of the simulation/game to run before showing results. This helps to demonstrate how the strategy doesn't affect a single game. Also, demonstrates the probability distribution for different max iterations.

  2. Randomize revealed door (checkbox):

    Controls how the revealed door is selected. This helps to demonstrate if the door is revealed randomly, then the advantage of switching is nullified.

Screenshots

  1. Results with 1000 iterations and no ramdomization:

1000 iterations

  1. Results with 1000000 iterations and no ramdomization:

1000000 iterations

  1. Results with 1000000 iterations and with ramdomization:

1000000 iterations with randomization

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published