Printed from https://danginteresting.com/appendices/monty-hall-simulator/
This simple Javascript simulator runs Monty Hall Problem scenarios. On each test, it randomly determines the winning door and the selected door. Contestant A never switches doors, Contestant B always switches doors. If switching doors was irrelevant to the outcome, their success rates would be the same over time.
As long as the test is running, it will update the results every half-second. To start the test from all zeroes, simply reload this page. To see the source code for this simulator, download the Javascript source file.
Contestant A (never switches)
Wins | 0 |
Losses | 0 |
Total | 0 | Success Rate |
0% |
Contestant B (always switches)
Wins | 0 |
Losses | 0 |
Total | 0 | Success Rate |
0% |
Printed from https://danginteresting.com/appendices/monty-hall-simulator/
Since you enjoyed our work enough to print it out, and read it clear to the end, would you consider donating a few dollars at https://danginteresting.com/donate ?