What's the probability of $HTHT$ occuring before $HHTT$ in a stream of $H$'s and $T$'s (both equally likely) that will stop if either of those occur? What's the mean number of throws such that $HHTT$ occurs?
Hello, I figured out that this is an instance of Penney's game.
This question is also related. What makes this question hard for me is the fact that I have to somehow account for the fact that $HTHT$ occures before $HHTT$. I have to solve this using Markov chains, does someone have an idea?