Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

Question: In this exercise we will use Bayes' theorem to solve the Monty Hall puzzle (Example 10 in Section 7.1). Recall that in this puzzle you are asked to select one of three doors to open. There is a large prize behind one of the three doors and the other two doors are losers. After you select a door, Monty Hall opens one of the two doors you did not select that he knows is a losing door, selecting at random if both are losing doors. Monty asks you whether you would like to switch doors. Suppose that the three doors in the puzzle are labeled 1, 2, and 3. Let W be the random variable whose value is the number of the winning door: assume that \(p\left( {W = k} \right) = \frac{1}{3}\) for k=1,2,3. Let M denote the random variable whose value is the number of the door that Monty opens. Suppose you choose door i

a) What is the probability that you will win the prize if the game ends without Monty asking you whether you want to change doors?

b) Find \(p\left( {M = j\left| {W = k} \right.} \right)\) for j=1,2,3 and k= 1.2.3

e) Use Bayes' theorem to find \(p\left( {M = j\left| {M = k} \right.} \right)\) where i and j and are distinct values d) Explain why the answer to part (c) tells you whether you should change doors when Monty gives you the chance to do so,

Short Answer

Expert verified

Answer:

a) The probability that you will win the prize if the game ends without Monty asking you whether you want to change door or not is 1/3

b)\(p\left( {M = j\left| {W = k} \right.} \right) = 1\)if i, j, k are distinct

\(p\left( {M = j\left| {W = k} \right.} \right) = 0\)if j=k or j=i

\(p\left( {M = j\left| {W = k} \right.} \right) = \frac{1}{2}\)if i=k and \(j \ne i\)

c) \(p\left( {W = 3\left| {M = 2} \right.} \right) = \frac{2}{3}\)

d) Hence you should change doors

Step by step solution

Achieve better grades quicker with Premium

  • Unlimited AI interaction
  • Study offline
  • Say goodbye to ads
  • Export flashcards

Over 22 million students worldwide already upgrade their learning with Vaia!

01

Given data  

Monty Hall puzzle

02

Formula used   

\(p\left( {\frac{{{F_j}}}{E}} \right) = \frac{{p\left( {\frac{{{E_1}}}{{{F_j}}}} \right)p\left( {{F_j}} \right)}}{{\sum\limits_j^n {p\left( {\frac{E}{{{F_j}}}} \right)p\left( {{F_j}} \right)} }}\)

\(p\left( {\frac{E}{{{E_1}}}} \right) = \frac{{p\left( {\frac{{{E_1}}}{E}} \right)p\left( E \right)}}{{p\left( {\frac{{{E_1}}}{E}} \right)p\left( E \right) + p\left( {\frac{{{E_2}}}{F}} \right)p\left( F \right)}}\)

03

Calculating (a)

Consider the following event

W = number of winning door

M = number of door Monty opens

because the winning door was chosen uniformly at random, your chance of winning, p(W=i), is 1/3, no matter which door you choose

The probability that you will win the prize if the game ends without Monty asking you whether you want to change door or not is 1/3

04

Calculating (b)  

If you have chosen other than winning door, then Monty opens the other non-winning door.

If you have chosen the winning door, then Monty opens the other two doors with equal likelihood.

Thus

\(p\left( {M = j\left| {W = k} \right.} \right) = 1\) if i, j, k are distinct

\(p\left( {M = j\left| {W = k} \right.} \right) = 0\)if j=k or j=i

\(p\left( {M = j\left| {W = k} \right.} \right) = \frac{1}{2}\) if i=k and \(j \ne i\)

05

Calculating (c)  

Without loss of generality assume that i=1, j=2 and k=3

By Bayes’ Theorem

\(p\left( {W = 3\left| {M = 2} \right.} \right) = \frac{{p\left( {M = 2\left| {W = 3} \right.} \right)p\left( {W = 3} \right)}}{{p\left( {M = 2\left| {W = 3} \right.} \right)p\left( {W = 3} \right) + p\left( {M = 2\left| {W = 2} \right.} \right)p\left( {W = 2} \right) + p\left( {M = 2\left| {W = 1} \right.} \right)p\left( {W = 1} \right)}}\)

\( = \frac{{1 \cdot \left( {\frac{1}{3}} \right)}}{{1 \cdot \left( {\frac{1}{3}} \right) + \left( {\frac{1}{2}} \right) \cdot \left( {\frac{1}{3}} \right) + 0 \cdot \left( {\frac{1}{3}} \right)}}\)

\( = \frac{1}{{\left( {\frac{3}{2}} \right)}}\)

\(p\left( {W = 3\left| {M = 2} \right.} \right) = \frac{2}{3}\)

06

Calculating (d)  

You should change doors because you have 2/3 chance of winning by switching.

(A similar calculation to that part(c) shows that your chance of winning if you do not switch door is 1/3)

Hence you should change doors

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Question: A space probe near Neptune communicates with Earth using bit strings. Suppose that in its transmissions it sends a 1 one-third of the time and a 0 two-thirds of the time. When a 0 is sent, the probability that it is received correctly is 0.9, and the probability that it is received incorrectly (as a 1) is 0.1. When a 1 is sent, the probability that it is received correctly is 0.8, and the probability that it is received incorrectly (as a 0) is 0.2

a) Find the probability that a 0 is received.

b) Use Hayes theorem to find the probability that a 0 was transmitted, given that a 0 was received.

Question:Ramesh can get to work in three different ways: by bicycle, by car, or by bus. Because of commuter traffic, there is a\({\bf{50}}\% \)chance that he will be late when he drives his car. When he takes the bus, which uses a special lane reserved for buses, there is a\({\bf{20}}\% \)chance that he will be late. The probability that he is late when he rides his bicycle is only\({\bf{5}}\% \). Ramesh arrives late one day. His boss wants to estimate the probability that he drove his car to work that day.

a) Suppose the boss assumes that there is a\({\bf{1}}/{\bf{3}}\)chance that Ramesh takes each of the three ways he can get to work. What estimate for the probability that Ramesh drove his car does the boss obtain from Bayes’ theorem under this assumption?

b) Suppose the boss knows that Ramesh drives\(3{\bf{0}}\% \)of the time, takes the bus only\({\bf{10}}\)% of the time, and takes his bicycle\({\bf{60}}\% \)of the time. What estimate for the probability that Ramesh drove his car does the boss obtain from Bayes’ theorem using this information?

Question: A pair of dice is loaded. The probability that a 4appears on the first die is2/7 , and the probability that a 3appears on the second die is2/7. Other outcomes for each die appear with probability1/7 . What is the probability of 7 appearing as the sum of the numbers when the two dice are rolled?

Question: Use pseudocode to write out the probabilistic primality test described in Example 16.

Question: What is the expected sum of the numbers that appear when three fair dice are rolled?

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free