(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:math]]
 
[[Category:math]]
 
[[Category:tutorial]]
 
[[Category:tutorial]]
 +
[[Category:math squad]]
 +
 +
 +
[[Math_squad |Math Squad]]
 +
 +
:↳ [[Bayes_theorem_S13|Bayes' Theorem]]
 +
::↳ [[Bayes_theorem_eg1_S13|Example 1: Quality Control]]
 +
::↳ [[Bayes_theorem_eg2_S13|Example 2: False Positives]]
 +
::↳ [[Bayes_theorem_eg3_S13|Example 3: Monty Hall Problem]]
 +
 +
----
 +
 
== Example 3: Monty Hall ==
 
== Example 3: Monty Hall ==
by Maliha Hossain
+
by [[User:Mhossain|Maliha Hossain]], proud Member of [[Math_squad | the Math Squad]].
 +
----
 
<pre>keyword: probability, Monty Hall, Bayes' Theorem, Bayes' Rule </pre>
 
<pre>keyword: probability, Monty Hall, Bayes' Theorem, Bayes' Rule </pre>
  
  
The Monty Hall problem is based on the television game show ''Let's Make a Deal''. The problem is named after the show's original host, Monty Hall. The problem was published by Marilyn vos Savant in Parade Magazine as follows:
+
The Monty Hall problem is based on the television game show ''Let's Make a Deal''. The problem is named after the show's original host, Monty Hall. The problem was published by Marilyn vos Savant in Parade Magazine. It was also solved by the protagonist of Mark Haddon's ''A Curious Incident of the Dog in the Night-Time'' where he asks:
  
Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice?
+
''"You are on a game show on television. On this game show the idea is to win a car as a prize. The game show host shows you three doors. He says that there is a car behind one of the doors and there are goats behind the other two doors. He asks you to pick a door. You pick a door but the door is not opened. Then the game show host opens one of the doors you didn't pick to show a goat (because he knows what is behind the doors). Then he says that you have one final chance to change your mind before the doors are opened and you get a car or a goat. So he asks you if you want to change your mind and pick the other unopened door instead. What should you do?"''
  
Many readers, including scholars holding PhD's, refused to believe that switching would be to the contestant's advantage even though it can be demonstrated using proofs and computer simulation.
+
Many readers of vos Savant's column, including scholars holding PhD's, refused to believe that switching would be to the contestant's advantage even though it can be demonstrated using proofs and computer simulation.
  
 
We will use Bayesian inference to show that contestants have a 2/3 chance of winning the car by switching whereas contestants who do not switch only have a 1/3 chance of winning.
 
We will use Bayesian inference to show that contestants have a 2/3 chance of winning the car by switching whereas contestants who do not switch only have a 1/3 chance of winning.
Line 22: Line 35:
 
Let <math>c</math> be the event that the car is behind door number 3.
 
Let <math>c</math> be the event that the car is behind door number 3.
  
The prize is equally likely to behind any one of the three doors, so
+
This problem assumes that Monty knows where the car is hidden. From your point of view however, the prize is equally likely to be behind any one of the three doors. So
  
 
<math>P[a] = P[b] = P[c] = \frac{1}{3}</math>  
 
<math>P[a] = P[b] = P[c] = \frac{1}{3}</math>  
  
Let C be the event that Monty Hall opens door number 3 after you have chosen door number 1.
+
Let C be the event that Monty Hall opens door number 3 to reveal a goat after you have chosen door number 1.
  
 
Given that the car is behind door number 1, the door you have chosen, Monty has a 1/2 chance of picking door 3 from the remaining two doors to reveal a goat. So we have that
 
Given that the car is behind door number 1, the door you have chosen, Monty has a 1/2 chance of picking door 3 from the remaining two doors to reveal a goat. So we have that
Line 34: Line 47:
 
Given that the car is behind door number 2, and you have chosen door 1, that leaves Monty with only one choice. He can't reveal the door with the car and he also can't reveal what's behind the door you've chosen. So he has to pick door number 3.
 
Given that the car is behind door number 2, and you have chosen door 1, that leaves Monty with only one choice. He can't reveal the door with the car and he also can't reveal what's behind the door you've chosen. So he has to pick door number 3.
  
<math>P[C|b] = 1</math>
+
<math>P[C|b] = 1 \ </math>
  
 
Given that the car is behind door number 3, and you have chosen door 1,  Monty will not choose door 3 since in doing so, he will reveal the car. Monty can not reveal the car before he's given you a chance to revise your decision. So
 
Given that the car is behind door number 3, and you have chosen door 1,  Monty will not choose door 3 since in doing so, he will reveal the car. Monty can not reveal the car before he's given you a chance to revise your decision. So
  
<math>P[C|c] = 0</math>
+
<math>P[C|c] = 0 \ </math>
  
 
By the theorem of total probability, we have that  
 
By the theorem of total probability, we have that  
Line 72: Line 85:
 
Since the assignment of door numbers that the you pick and the event C is arbitrary, you will arrive at the same results regardless of which door you pick first and which Monty opens later.  
 
Since the assignment of door numbers that the you pick and the event C is arbitrary, you will arrive at the same results regardless of which door you pick first and which Monty opens later.  
  
 +
There are many other methods to solve the Monty Hall problem that seem more intuitive to some people. I however like to use Bayes' Theorem since the result can be derived analytically.
 
----
 
----
  
Line 87: Line 101:
  
 
----
 
----
 +
 +
[[Bayes_theorem_S13|Back to tutorial]]
  
 
[[Math_squad|Back to Math Squad page]]
 
[[Math_squad|Back to Math Squad page]]
 +
 +
<div style="font-family: Verdana, sans-serif; font-size: 14px; text-align: justify; width: 70%; margin: auto; border: 1px solid #aaa; padding: 2em;">
 +
The Spring 2013 Math Squad 2013 was supported by an anonymous [https://www.projectrhea.org/learning/donate.php gift] to [https://www.projectrhea.org/learning/about_Rhea.php Project Rhea]. If you enjoyed reading these tutorials, please help Rhea "help students learn" with a [https://www.projectrhea.org/learning/donate.php donation] to this project. Your [https://www.projectrhea.org/learning/donate.php contribution] is greatly appreciated.
 +
</div>

Latest revision as of 12:09, 25 November 2013

Math Squad

Bayes' Theorem
Example 1: Quality Control
Example 2: False Positives
Example 3: Monty Hall Problem

Example 3: Monty Hall

by Maliha Hossain, proud Member of the Math Squad.


keyword: probability, Monty Hall, Bayes' Theorem, Bayes' Rule 


The Monty Hall problem is based on the television game show Let's Make a Deal. The problem is named after the show's original host, Monty Hall. The problem was published by Marilyn vos Savant in Parade Magazine. It was also solved by the protagonist of Mark Haddon's A Curious Incident of the Dog in the Night-Time where he asks:

"You are on a game show on television. On this game show the idea is to win a car as a prize. The game show host shows you three doors. He says that there is a car behind one of the doors and there are goats behind the other two doors. He asks you to pick a door. You pick a door but the door is not opened. Then the game show host opens one of the doors you didn't pick to show a goat (because he knows what is behind the doors). Then he says that you have one final chance to change your mind before the doors are opened and you get a car or a goat. So he asks you if you want to change your mind and pick the other unopened door instead. What should you do?"

Many readers of vos Savant's column, including scholars holding PhD's, refused to believe that switching would be to the contestant's advantage even though it can be demonstrated using proofs and computer simulation.

We will use Bayesian inference to show that contestants have a 2/3 chance of winning the car by switching whereas contestants who do not switch only have a 1/3 chance of winning.

Let's assume you are the contestant on Let's Make a Deal and you initially choose door number 1.

Let $ a $ be the event that the car is behind door number 1.

Let $ b $ be the event that the car is behind door number 2.

Let $ c $ be the event that the car is behind door number 3.

This problem assumes that Monty knows where the car is hidden. From your point of view however, the prize is equally likely to be behind any one of the three doors. So

$ P[a] = P[b] = P[c] = \frac{1}{3} $

Let C be the event that Monty Hall opens door number 3 to reveal a goat after you have chosen door number 1.

Given that the car is behind door number 1, the door you have chosen, Monty has a 1/2 chance of picking door 3 from the remaining two doors to reveal a goat. So we have that

$ P[C|a] = \frac{1}{2} $

Given that the car is behind door number 2, and you have chosen door 1, that leaves Monty with only one choice. He can't reveal the door with the car and he also can't reveal what's behind the door you've chosen. So he has to pick door number 3.

$ P[C|b] = 1 \ $

Given that the car is behind door number 3, and you have chosen door 1, Monty will not choose door 3 since in doing so, he will reveal the car. Monty can not reveal the car before he's given you a chance to revise your decision. So

$ P[C|c] = 0 \ $

By the theorem of total probability, we have that

$ \begin{align} P[C] &= P[C|a]P[a] + P[C|b]P[b] + P[C|c]P[c] \\ &= \frac{1}{2} \times \frac{1}{3} + 1\times\frac{1}{3} + 0\times\frac{1}{3}\\ &= \frac{1}{2} \end{align} $

What is the probability that you've lost by switching to door number 2? In other words, what is $ P[a|C] $? By Bayes' Theorem, we have that

$ \begin{align} P[a|C] &= \frac{P[C|a]P[a]}{P[C]} \\ &= \frac{\frac{1}{2} \times \frac{1}{3}}{\frac{1}{2}}\\ &= \frac{1}{3} \end{align} $

Now what is the probability that you've won by switching? That is to say, what is $ P[b|C] $? By Bayes' Theorem, we have that

$ \begin{align} P[b|C] &= \frac{P[C|b]P[b]}{P[C]} \\ &= \frac{1 \times \frac{1}{3}}{\frac{1}{2}}\\ &= \frac{2}{3} \end{align} $

Since the assignment of door numbers that the you pick and the event C is arbitrary, you will arrive at the same results regardless of which door you pick first and which Monty opens later.

There are many other methods to solve the Monty Hall problem that seem more intuitive to some people. I however like to use Bayes' Theorem since the result can be derived analytically.


References

  • Mark Haddon, The Curious Incident of the Dog in the Night-Time

Questions and comments

If you have any questions, comments, etc. please post them below:

  • Comment / question 1



Back to tutorial

Back to Math Squad page

The Spring 2013 Math Squad 2013 was supported by an anonymous gift to Project Rhea. If you enjoyed reading these tutorials, please help Rhea "help students learn" with a donation to this project. Your contribution is greatly appreciated.

Alumni Liaison

Questions/answers with a recent ECE grad

Ryne Rayburn