Problem 5. Coin tosses revisited
A fair coin is tossed repeatedly and independently. We want to determine the expected number of tosses until we first observe Tails immediately preceded by Heads. To do so, we define a Markov chain with four states, {S, H, T, HT}, where S is a starting state, H indicates Heads on the current toss, T indicates Tails on the current toss (without Heads on the previous toss), and HT indicates Heads followed by Tails over the last two tosses. This Markov chain is illustrated below:
Note: State S is in fact unnecessary, and is only included to facilitate understanding. Having the process start at state T, rather than S, makes no difference on what the next state will be; in both cases, the next state is equally likely to be H or T. Therefore S can be dispensed with.
1. What is the expected number of tosses until we first observe Tails immediately preceded by Heads? Hint: Solve the corresponding mean first passage time problem for our Markov chain.