I have two identical looking coins, one is fair and has an equal chance of coming up heads or tails, but the other is weighted and will always land on heads. You pick one of the coins at random, toss it three times and get three heads. Given this, what is the chance that you've picked the weighted coin?
My way of solution is the following one.
With the fair coin, the probability that you get heads triple times is $1/8$.
With the biased coin, it is $1$. What's the total probability that you get three heads on three tosses? $1/8 + 1 = 9/8$
Now, assume you got your three heads. $\dfrac{\dfrac{1}{8}}{\dfrac{9}{8}} = 0.1111$ for fair coin and $0.888$ for biased one.
So the chance that I pick up biased coin is $0.888$.
Is my solution is correct?
Let $W$ denote the event that you pick the weighted coin.
Let $E$ denote the event that you get $3$ heads by $3$ tossings.
To be found is $P(W\mid E)$ and this can be calculated on base of:$$\left[P(W)P(E\mid W)+P(W^{\complement})P(E\mid W^\complement)\right]P(W\mid E)=P(E)P(W\mid E)=P(W\cap E)=P(W)P(E\mid W)$$
Substitution on LHS and RHS gives:$$\left[\frac12\cdot1+\frac12\cdot\frac18\right]P(W\mid E)=\frac12\cdot1$$leading to: $$P(W\mid E)=\frac89$$
(This is application of Bayes rule but I try to avoid fractions with a probability in the denumerator as most as I can)
Here $\frac12$ is the factor that cancels out mentioned by lulu in his comments.