I'm not quite grasping what exactly the A and B events are.
I didn't have anything particular in mind when I wrote that. I just wanted to show that the prior probability always matters.
For the Monty Hall problem, A will be something like "the car is behind the door you originally picked" or "the car is behind the door you're thinking about switching to." B will generally be "Monty does what he did."
PS Post #356 doesn't seem to give sensible answers for n = 4.
#356 does work for
n = 4.
But #354 doesn't, which I neglected to mention. In that case, the probabilities are 2/5 for the door you originally picked, and 3/5 for the door you switched to. The general formula doesn't work when
n = 4 because Monty might not be able to open any door the second time. There's only one door left and it might hide the car. So, the problem is different.
How about considering a 4 door version for a moment: If you choose door 1 and Monty opens door 2, then door 1 has probability 1/4 of winning and doors 3 & 4 have p = 3/4 between them. So 3 and 4 have p = 3/8 each.
Yes.
If you switch to, say, 3 and Monty opens either 1 or 4, then door 3 still has p = 3/8 [...]
Why?
Door 3 has whatever probability Bayes's Theorem says it has. So let's figure it out.
Suppose Monty opens door 1.
Let c1 mean "the car is behind door 1", and similarly for c2, c3, and c4. Let m1 mean "Monty chooses door 1 as his second door to open". We know that before Monty opens his second door, we have P(c1) = 1/4 and P(c3) = P(c4) = 3/8. What we want to figure out is the probability of c3 after Monty opens door 1, that is, we're looking for P(c3 | m1).
P(c3 | m1) = P(c3) P(m1 | c3) / P(m1)
= (3/8) (1/2) / [P(m1 | c1) P(c1) + P(m1 | c2) P(c2) + P(m1 | c3) P(c3) + P(m1 | c4) P(c4)]
= (3/8)(1/2) / [(0)(...) + (...)(0) + (1/2)(3/8) + (1)(3/8)]
= 1/3.
Some explanation: If the car is behind door 3, Monty has a choice between doors 1 and 4. I assume that he chooses randomly in that case, so P(m1 | c3) = 1/2. If the car is behind door 4, Monty has no choice---the only door left is door 1---so P(m1 | c4) = 1. Monty won't show the car, so P(m1 | c1) = 0. And, finally, P(c2) = 0 because Monty already opened door 2 to show a goat.