What is the probability that $THTH$ occurs before $HTHH$ in an infinite sequence of coin flips?
The expected number of flips until you first see $THTH$ is $6$, while the expected number until you first see $HTHH$ is $10$. Intuitively, I would guess that the probability that $THTH$ occurs before $HTHH$ is $3/4$. Is there a formal argument to compute this probability?
Probabilistic model: We denote by $(X_{n})_{n \geq 1}$ the random variable of coin flips, taking values in $\{H,T\}^{\mathbb{N}}$. We let $t_{THTH}$ be the first time that $THTH$ occurs in the sequence. We have $$ \mathbb{E}[t_{H}] = \frac{1}{2} \mathbb{E}[t_{H} | X_{1} = H] + \frac{1}{2} \mathbb{E}[t_{H} | X_{1} = T] = \frac{1}{2} + \frac{1}{2} (\mathbb{E}[t_{H}] + 1 ). $$
$$ \mathbb{E}[t_{TH}] = \frac{1}{2} \mathbb{E}[t_{TH} | X_{1} = H] + \frac{1}{2} \mathbb{E}[t_{TH} | X_{1} = T] $$
Discern $p,p_{T},p_{H},p_{TH},p_{HT},p_{THT},p_{HTH}\in\left[0,1\right]$ where $p$ denotes the probability that $THTH$ occurs before $HTHH$ and e.g. $p_{TH}$ denotes the probability that $THTH$ occurs before $HTHH$ under the extra condition that we start with $TH$.
Then we have the following equalities:
(I avoided fractions, but things might become more clear if you divide both sides by $2$)
I find the solutions:
and finally:$$p=\frac9{14}$$
Check me on mistakes, though.