We have $3$ modified coins: $M_1$ which has tails on the both sides, $M_2$ which has heads on the both sides and $M_3$ which is a fair coin. We extract a coin from the urn and we flip it $3$ times.
- What is the probability that if I flip the coin $3$ times I will get all tails?
- If I got all tails at all $3$ flips what is the probability that the extracted coin is $M_3$?
My attempt:
I have tried this way: There is a $\frac{1}{3}$ chance to get $M_1$ or $M_2$ or $M_3$. If we get $M_1$ the probability to get tails is $1$, for $M_2$ is $0$ and for $M_3$ is $\frac{1}{2}$. Then the probability to get tails at one flip is $$\frac{1}{3}\cdot 1 + \frac{1}{3}\cdot 0 + \frac{1}{3}\cdot \frac{1}{2} = \frac{1}{2}$$ So the probability to get tails at all the $3$ flips is ${(\frac{1}{2})}^3$ which is $\frac{1}{8}$. Is this right?
The probability seems to be intuitively $\frac{1}{3}$, but I don't know how to formally prove it.
By Bayes' theorem \begin{align}P(M_3\mid TTT)=\frac{P(TTT\mid M_3)P(M_3)}{P(TTT)}=\frac{\left(\frac12\right)^3\cdot\frac13}{\frac38}=\frac19\end{align}
Note: The denominator was calculated using the Law of total probability as is common when applying the Bayes rule. You did this in part 1. but not correctly. To see this write \begin{align}P(TTT)&=P(TTT\mid M_1)P(M_1)+P(TTT\mid M_2)P(M_2)+P(TTT\mid M_3)P(M_3)\\[0.2cm]&=1\cdot\frac13+0\cdot\frac13+\left(\frac12\right)^3\frac13\\[0.2cm]&=\frac13\left(1+\frac18\right)=\frac38\end{align}