Learn / Library / Probability
Coin bag, streak observed
A bag holds coins whose probabilities of heads are , and . One coin is chosen uniformly at random and flipped times independently, giving heads. What is the probability that the next flip of the same coin is heads?
Checking an answer needs JavaScript. The hint and the solution open without it.
Hint
Update the weight of each coin by the likelihood of heads, then average the heads probabilities with the new weights.
Solution
- The likelihoods of heads are , and , so the posterior weights are proportional to , , .
- The weights sum to , so the posterior probabilities are , and .
- The next-flip heads probability is .
- The numerator is , so the result is .
- The answer is .
Answer: