In an infinite sequence of flipping a fair coin - $0.5$ probability to get heads/tails. (every flip is independent from the others).
What is the expected value of number of flips until we get Heads then Tails?
My Attempt:
I tried to think about the event HT as my R.V success. So let $X$ be the number of flips until we get HT.
The probability to get HT in a row is $\frac{1}{4}$, as we need the coin to land on H and then immediately on T.
But I thought to myself that a geometric RV doesn't really count those two as two flips, so I thought that for example:
TTTHHHT -> My random variable $X$ would be $6$.
So I set $Y=X+1$ and my answer was $E(X+1)=4+1=5$.
But turns out the real answer is $4$. Why my method is wrong? where does my logic/understanding fall?
Is it that $X$ is just the answer for this problem? but I can't see how that's right, or maybe I have issues in my geometric random variable understanding.
Would appreciate any help, Thanks in advance!