I'm having trouble working out the conditional probabilities in this problem.
I tell you that I'm about to toss a coin, which is either fair, or will land heads every time.
You are told there is a 0.5 chance I pick either coin. Given this information, your subjective probability of the toss landing heads should be 0.75.
If I toss the coin 3 times for you, and it lands heads each time, how should you adjust your subjective probability, and to what value?
Thanks!
Let $X$ be the event that the coin being flipped is fair. Let $Y$ be the event that you have $3$ starting flips all landing on heads.
We can calculate $P(X|Y)$, the probability that the coin being flipped is the fair coin given you have $3$ flips all landing with heads. $$P(X|Y)=\dfrac{P(X\cap Y)}{P(Y)}$$
$P(X\cap Y)=\dfrac{1}{2^3}\bigg(\dfrac{1}{2}\bigg)=\dfrac{1}{16}$. This is the probability that the coin is fair and you flipped heads thrice.
$P(Y)=\bigg(\dfrac{1}{2}\bigg)1+\bigg(\dfrac{1}{2}\bigg)\dfrac{1}{8}=\dfrac{9}{16}$. This is the total probability that we got heads thrice (either from the all-heads coin or the fair coin).
Hence $P(X|Y)=\dfrac{1}{9}$.
Since there is a $\dfrac{1}{9}$ chance that the coin is fair, and a $\dfrac{8}{9}$chance that the coins is all-heads, the probability of the next flip also being heads is $\bigg(\dfrac{1}{2}\bigg)\dfrac{1}{9}+\dfrac{8}{9}=\dfrac{17}{18}$.