Bayes' Theorem on Sequential Die Roll and Biased Coin Tosses
Board: JEE Foundation | Grade: Class 12 | Chapter: Probability
Problem
A fair six-sided die is rolled once. If the face shows $k \in {1, 2, 3, 4, 5, 6}$, a biased coin with probability of Heads $p_k = \frac{k}{6}$ is tossed independently two times. Given that both coin tosses result in Heads, find the probability that the die showed a prime number.
Step-by-Step Textbook Solution
Step 1: Set up prior and likelihoods
For each $k \in {1, 2, 3, 4, 5, 6}$, $P(D = k) = \frac{1}{6}$.
Given $D = k$, the probability of two independent Heads ($HH$) is:
$$P(HH \mid D = k) = \left(\frac{k}{6}\right)^2 = \frac{k^2}{36}.$$
Step 2: Total probability of $HH$
$$P(HH) = \sum_{k=1}^{6} \frac{1}{6}\cdot\frac{k^2}{36} = \frac{1^2 + 2^2 + 3^2 + 4^2 + 5^2 + 6^2}{216} = \frac{91}{216}.$$
Step 3: Sum over prime outcomes
The prime numbers in ${1, 2, 3, 4, 5, 6}$ are $k \in {2, 3, 5}$ (note $1$ is not prime).
$$P(\text{Prime} \cap HH) = \frac{2^2 + 3^2 + 5^2}{216} = \frac{4 + 9 + 25}{216} = \frac{38}{216}.$$
Step 4: Apply Bayes' Theorem
$$P(\text{Prime} \mid HH) = \frac{38/216}{91/216} = \frac{38}{91}.$$
Final Answer: $\frac{38}{91}$.
NityaDhi Solution (Intuitive Method)
NityaDhi Proportional-Weights Shortcut:
Since the prior $P(D = k) = \frac{1}{6}$ and denominator $\frac{1}{36}$ are identical across all $k$, the posterior probability is simply the ratio of squared face values:
$$P(\text{Prime} \mid HH) = \frac{2^2 + 3^2 + 5^2}{\sum_{k=1}^6 k^2} = \frac{4 + 9 + 25}{\frac{6 \cdot 7 \cdot 13}{6}} = \frac{38}{91}.$$
Common Mistakes to Avoid
- Counting $1$ as a prime number, which gives $\frac{39}{91} = \frac{3}{7}$ instead of $\frac{38}{91}$.
- Using $p_k = \frac{k}{6}$ instead of $p_k^2$ (forgetting that two independent Heads occurred).