Show the worked solutionA fair coin is tossed $n = 3$ times. Each toss is an independent Bernoulli trial with probability of heads $p = \frac{1}{2}$ and tails $q = 1 - p = \frac{1}{2}$.Let $X$ denote the number of heads obtained in 3 tosses. $X$ follows a Binomial distribution:$$X \sim \text{Binomial}\left(n = 3, \, p = \frac{1}{2}\right)$$The probability of obtaining exactly $k = 2$ heads is given by:$$P(X = 2) = \binom{n}{k} p^k (1 - p)^{n - k} = \binom{3}{2} \left(\frac{1}{2}\right)^2 \left(\frac{1}{2}\right)^{3 - 2}$$$$P(X = 2) = 3 \times \frac{1}{4} \times \frac{1}{2} = \frac{3}{8}$$Alternatively, listing the $2^3 = 8$ equally likely outcomes:$$\{HHH, \mathbf{HHT}, \mathbf{HTH}, \mathbf{THH}, HTT, THT, TTH, TTT\}$$There are exactly 3 favorable outcomes ($HHT, HTH, THH$), so $P = \frac{3}{8}$.Correct Answer: Option D ($3/8$).
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com