An urn contain two balls. It is known that the urn was filled by tossing a fair coin twice and putting a white ball for each head, and putting a black ball for each tail. A ball is drawn from the urn and is found to be white. What is the probability that the other ball in the urn is also white.
My Attempt:- Recently I encountered a similar problem where I applied Bayes Theorem. This question was actually asked in an interview. I was asked to write my answers in board. I tried in this way:-
Let $E_1, E_2,E_3$ be the events that the urn contains (1)two white balls, (2)two black balls and (3)a black and a white ball respectively. All three are mutually exclusive. Now, $$P(E_1)=\frac{1}{2}\times \frac{1}{2}=\frac{1}{4}$$ $$P(E_2)=\frac{1}{2}\times \frac{1}{2}=\frac{1}{4}$$ $$P(E_3)=2\times \frac{1}{2}\times \frac{1}{2}=\frac{1}{2}$$ (I may get white in the first throw and black in the second. Or, black in the first and white in second.)
Let $A$ be the event that a ball is chosen and it is found to be white
$$P(A/E_1)=1$$ $$P(A/E_2)=0$$ $$P(A/E_3)=\frac{1}{2}$$ Now, we need $P(E_1/A)$. By Bayes theorem, $$P(E_1/A)=\frac{\frac{1}{4}\times 1}{\frac{1}{4}\times 1+\frac{1}{4}\times 0+\frac{1}{2}\times \frac{1}{2}}=\frac{1}{2}$$
Am I correct ?