GATE DA 2024 · Random Variables (Overview)

NAT · 2 marks · Problem EM-PROB-0014

A fair coin is tossed repeatedly until either two consecutive heads (HH) or two consecutive tails (TT) are obtained. The expected number of tosses required is .

Numerical answer (NAT).

Solve it on GATE DA practice →More Random Variables problems

Show the worked solutionAfter the first toss, each further toss ends the game with probability \(\tfrac12\) (it matches the previous toss) and otherwise leaves the game in the same situation, with the last toss now of the other face.Let \(E_1\) be the expected number of further tosses once one toss has been made. Then\[\boxed{E_1=\tfrac12(1)+\tfrac12(1+E_1)}\ \Rightarrow\ E_1=2 .\]Counting the first toss, \(E=1+E_1=3\). (Equivalently, \(N-1\) is geometric with success probability \(\tfrac12\), so \(E[N]=1+2=3\).)Answer: 3

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com