2.3.1 problem 41
Let Gi be the event that
the i-th door contains a
goat, and let Di be the event
that Monty opens door i.
P(G1∣∣∣D2,G2)=P(G1)P(D2,G2|G1)P(D2,G2).
P(G1)P(D2,G2|G1)=23(P(G2|G1)P(D2|G1,G2))=23(12(p+(1−p)12))=23(12p+14−14p)=16(p+1).
Thus,
P(G1|D2,G2)=16(p+1)16(p+1)+13×12=p+1p+2.
Note that when p=1,
the result matches that of the basic Monty Hall problem.