HTH before HHT

You and a friend flip a fair coin repeatedly, recording the sequence. You win if the pattern HTHHTH appears before HHTHHT; otherwise your friend (who has HHTHHT) wins. What is the probability that your friend wins?

Show hints (2)+
  1. Set up a Markov chain on the recent flips (HH, HHHH, HTHT). Note that reaching HHHH guarantees HHTHHT eventually.
  2. Solve f=12+12gf=\tfrac12+\tfrac12 g, g=12fg=\tfrac12 f. Pattern races aren't symmetric!

Answer

Reveal answer →

0.6667 (± 0.001)

Want the full step-by-step worked solution? It's part of Premium - along with a worked solution for every question in the bank.

Asked at: Jane Street, Citadel

Related questions