Puzzles/Decision puzzles/Monty Hall/Solution: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>Pi zero
{{BookCat}}
 
(No difference)

Latest revision as of 22:34, 20 December 2017

Puzzles | Puzzles/Decision puzzles | Monty Hall | Solution



There is a prior 1/3 chance of the door you picked being the door with the prize, and a 2/3 chance of a different door being the door with the prize.

Therefore, if you want the prize, it is better to switch, and if you want a nice goat, it is better to stick with the door you chose.

Reasoning

There are three doors: the door you first chose, the door that Monty opened, and the third door. Because there are two doors left, one with the prize, then one might want to believe that there is a 1/2 chance of obtaining the prize either way.

However, before Monty opened any door, there was a 1/3 chance that the door contained the prize. When Monty opens a different door, you learn nothing about the door that you first chose. Thus, the chance of the door you first chose containing the prize remains 1/3, not 1/2.

However, when Monty opens a door with the goat, the probability of that door containing the prize drops to 0. As the probabilities must sum to 1, and the probability of a prize at the door you first chose remains 1/3, the probability of a prize at the third door rises to 2/3. This rise in probability results only because you learned that Monty decided not to open that particular door.

Calculations

Let Dp be the door you first picked; let Do be the door which Monty opened; let Dr be the third and remaining door. C is a car or other prize and G is any goat. Suppose you choose the third door Dr, then what is the probability p that this door contains the prize?

p=P(Dr=C|Do=G)=P(Dr=C,Dp=C|Do=G)+P(Dr=C,Dp=G|Do=G)=P(Dr=C|Dp=C,Do=G)P(Dp=C|Do=G)+P(Dr=C|Dp=G,Do=G)P(Dp=G|Do=G)=P(Dr=C|Dp=C,Do=G)=0P(Dp=C)=13+P(Dr=C|Dp=G,Do=G)=1P(Dp=G)=23=0*13+1*23=23

Line-by-line, these equations state:

  1. p is equal to the probability that your door Dr contains a goat on condition that Monty opens a door with a goat.
  2. We partition p into two cases, one where the door you first picked Dp has a prize C, and one where it has a goat G. Now p is the probability that both Dr and Dp have prizes on condition that Monty reveals a goat, plus the probability that Dp has a prize and Dp has a goat, on condition that Monty reveals goat.
  3. Using the formula P(A,B)=P(A|B)P(B), we state for the second partition that the probability of Dr having a prize and Pp having a goat, on condition that Monty reveals a goat, is equal to the probability of Dr having a prize on condition that both other doors have goats, times the probability that that Dp has a goat on condition that Monty reveals a goat. We act likewise for the first partition.
  4. Monty always reveals a goat, and never a prize, so Do=G is a condition that is always true. We remove that condition from the equations. We then make some substitutions: the probability of door Dp (or any door) is 1/3 for a prize, and 2/3 for a goat. We know that door Dr cannot contain a prize if door Dp already has it, so that probability is 0. But if doors Dp and Do both contain goats, then Dr must contain the prize for probability one.
  5. We calculate zero times 1/3 plus one times 2/3, giving p=13.

Intuitively this means that in 2/3 of the cases we initially pick a goat and the entertainer shows us where the car is by revealing the other goat. Only in 1/3 of the cases we picked the car initially and by changing our decision we pick a goat.

Template:BookCat