Mathematics — Probability · absorbing-markov-chains
Problem
A coin is tossed repeatedly. We are interested in finding the expected number of tosses until a particular pattern, say B=HTH, occurs for the first time. If, for example, the outcomes of the tosses are HHTTHTH we say that the pattern B has occurred for the first time after 7 tosses. Let TB be the time to obtain pattern B for the first time.
Using the associated Markov chain (with states HTH, HT, H, and ∅, where ∅ is the empty set, and transition matrix
HTHHTH∅HTH1.500HT00.50H00.5.5∅0.50.5,
show that the values E(TB)=10 and E(TB)=14 are correct for the expected time to reach the patterns HTH and HHH, respectively.