GATE EC 2014 · Cumulative Distribution Function (CDF)
NAT · 2 marks · Problem EM-RVAR-0064
A fair coin is tossed repeatedly till both head and tail appear at least once. The
average number of tosses required is.
Numerical answer (NAT).
Solve it on GATE DA practice →More Random Variables problems
Show the worked solution
To get both head and Tail atleast once. We have to toss minimum two times. The random variable x represents first toss starting with Head.\[\begin{aligned} &\begin{array}{|r|r|r|r|r|r|} \hline x & 2 & 3 & 4 & 5 & \cdots \\ \hline(x) & \frac{1}{2^{2}} & \frac{1}{2^{3}} & \frac{1}{2^{4}} & \frac{1}{2^{5}} & \cdots\\ \hline \end{array} \\ E(x) &=\Sigma x \cdot P(x) & \\ &=2 \cdot \frac{1}{2^{2}}+3 \cdot \frac{1}{2^{3}}+4 \cdot \frac{1}{2^{4}}+\cdots \\ &=\frac{1}{2}\left(2 \cdot \frac{1}{2}+3 \cdot \frac{1}{2^{2}}+4 \cdot \frac{1}{2^{3}}+\cdots\right) \\ &=\frac{1}{2}\left(1+2 \cdot \frac{1}{2} \cdot 3 \frac{1}{2^{2}}+4 \cdot \frac{1}{2^{3}}+\cdots-1\right) \\ &=\frac{1}{2}\left[\left(1-\frac{1}{2}\right)^{-2}-1\right]=\frac{1}{2}\left[\left(\frac{1}{2}\right)^{-2}-1\right] \\ &=\frac{1}{2}(4-1)=\frac{3}{2} \end{aligned}\]Y represents first toss starting with Tail.\[\begin{aligned} &\begin{array}{|r|r|r|r|r|r|} \hline y & 2 & 3 & 4 & 5 & \cdots \\ \hline(y) & \frac{1}{2^{2}} & \frac{1}{2^{3}} & \frac{1}{2^{4}} & \frac{1}{2^{5}} & \cdots\\ \hline \end{array} \\ &=2 \cdot \frac{1}{2^{2}}+3 \cdot \frac{1}{2^{3}}+4 \cdot \frac{1}{2^{4}}+\cdots \\ &=\frac{1}{2}\left(2 \cdot \frac{1}{2}+3 \cdot \frac{1}{2^{2}}+4 \cdot \frac{1}{2^{3}}+\cdots\right) \\ &=\frac{1}{2}\left(1+2 \cdot \frac{1}{2} \cdot 3 \frac{1}{2^{2}}+4 \cdot \frac{1}{2^{3}}+\cdots-1\right) \\ &=\frac{1}{2}\left[\left(1-\frac{1}{2}\right)^{-2}-1\right]=\frac{1}{2}\left[\left(\frac{1}{2}\right)^{-2}-1\right] \\ &=\frac{1}{2}(4-1)=\frac{3}{2} \end{aligned}\]\(\therefore \quad\) The average number of tosses required
\(=E(x)+E(y)=\frac{3}{2}+\frac{3}{2}=3\)
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com