Hot Links
The Monty Hall PuzzleBy: Hugin Expert The Monty Hall example demonstrates the use of a small Bayesian network to solve the Monty Hall Puzzle. Describing the Monty Hall PuzzleThe Monty Hall puzzle gets its name from an American TV game show, "Let's make a deal", hosted by Monty Hall. In this show, you have the chance to win some prize if you are lucky enough to find the prize behind one of three doors. The game goes like this:
The problem of the puzzle is: What should you do at your second selection? Some would say that it does not matter because it is equally likely that the prize is behind the two remaining doors. This, however, is not quite true. The right answer is that you have the best chance of winning if you redo your selection - odds 2/3 in stead of 1/3. In the following section, the solution is calculated through the use of a simple Bayesian network (BN). Finding the Solution Using a BNThe Monty Hall puzzle can be modeled in three random variables: Prize, First Selection, and Monty Opens.
The door containing the prize is known to Monty and thus Prize has impact on Monty Opens. Monty will never choose to open the door of your first selection so also First Selection has impact on Monty Opens. This gives us the BN shown in figure 1.
Figure 1: BN of the Monty Hall puzzle. The causal arrows describe that both Prize and First Selection have impact on which door Monty Opens. The conditional probability table (CPT) of Prize is shown in table 1.
The CPT of First Selection is shown in table 2 (this table is really not important since you will always select a specific state of this variable when you use the BN).
Table 3 shows the CPT of Monty Opens. This table states that if the prize is behind door 1 and you have chosen door 3, then Monty will open door 2 for sure since this door is the only possible door he can open which does not contain the prize. If you have selected the right door in your first selection, he will randomly choose one of the remaining doors.
The BN shown in figure 1 with nodes having the CPTs of table 1, 2, and 3 can be constructed in the Hugin GUI in less than 10 minutes. Right after compilation, the node list pane of the Hugin GUI will look as in figure 2. This network has been installed on your computer with the Hugin software. Open the network in the Hugin GUI. You can find the network in the Samples subdirectory of your Hugin installation. Testing the network shows that it will always be best for you to redo your selection when Monty has opened a door (gives you 66.67% chance of winning). An easy way to convince yourself that this is true goes like this: At first you have 33.33% chance of choosing the right door and there is 66.67% chance of the prize being somewhere else. You know that Monty is going to open an empty door so when he does, this should not change a thing about your belief of your door being the right one. You still have 33.33% chance of having selected the right door. Thus there must be 66.67% chance of the prize being somewhere else (behind the last door). |

