Engineering MathematicsHardGATE CS (PYQ pattern)

A fair coin is tossed until the same face appears three times in a row (HHH or TTT). What is the expected number of tosses?

  1. A. 14
  2. B. 8
  3. C. 6
  4. D. 7

Correct answer: D. 7

After the first toss we have a run of length 1. Let eₖ be the expected further tosses from a run of length k: e₁ = 1 + ½e₂ + ½e₁, e₂ = 1 + ½·0 + ½e₁. Then e₁ = 6, e₂ = 4, and the answer is 1 + 6 = 7. (14 is the wait for HHH alone.)

More Engineering Mathematics (GATE) questions

Exams that ask this topic