|
$$$ The Monty Hall Problem $$$
==============================
In the Monty Hall game show, you can pick one of three doors. One
door has a brand new car for a prize. The other two doors have
worthless goats:
+------+ +------+ +------+
| | | | | |
| 1 | | 2 | | 3 |
| | | | | |
| | | | | |
| | | | | |
+------+ +------+ +------+
Say you pick Door #1.
Before the door you choose is opened, another door with a goat is
opened:
+------+ +------+ +------+
| | | | | (( |
| 1 | | 2 | | oo |
| | | | | /_/|_|
| | | | | | |
| | | | |GOAT|||
+------+ +------+ +------+
You can choose to either open the door you originally picked, or
switch to the other unopened door.
It may seem like it doesn't matter if you switch or not, but your
odds do improve if you switch doors! This program demonstrates the
Monty Hall problem by letting you do repeated experiments.
|