The Monty Hall problem is described this way:
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?
I am interested in finding the probability of winning when you switch. I already know it's $2/3$ but I want to show it with Bayes Rule.
I tried this:
$A$ = car behind door $1$
$B$ = goat is behind door $3$
$$P(A|B) = \frac{P(B|A)P(A)}{P(B)} = \frac{1 \cdot 1/3}{1-1/3} = \frac{1}{2}$$
$P(B|A)$ = the probability that a goat is behind door $3$ given that the car is behind door $1$. This is equal to $1$ because if we know where the car is, then any other door must have a goat.
$P(A)$ = the probability of the car being behind door $1$. Assuming any door is equally likely to contain a car before we open any doors, this is $1/3$.
$P(B)$ = the probability of a goat behind behind door $3$. This is equal to $1$ minus the probability that the car is behind door $3$, so $1-1/3$.
Where is my mistake?
Answering my own question but this appeared to work.
Define:
$A$ = car is behind door $1$, my chosen door
$B$ = presenter opened door $3$ to show a goat
$P(B) = P(B|A)P(A) + P(B|\neg A)P(\neg A)= (1/2)(1/3) + (1/2)(2/3)$
$$P(A|B) = \frac{P(B|A)P(A)}{P(B)} = \frac{(1/2)(1/3)}{(1/2)(1/3) + (1/2)(2/3)} = \frac{1}{3}$$
I hope I did not just get lucky, though.