3
$\begingroup$

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?

$\endgroup$
3
  • 4
    $\begingroup$ I suggest you make a state transition diagram for a Markox chain with states $$\big\{\emptyset,H,HT,HH,HTH,HHT,HTHT,HHTT\big\}$$ with $HTHT,HHTT$ absorbing. You're trying to find the probability of being absorbed into the state $HTHT.$ $\endgroup$
    – user801306
    Commented May 29, 2023 at 15:45
  • $\begingroup$ Thanks, I followed your advice. However, I fail to compute the probability of being absorbed into $HHTT$. I guess I could follow every path and use Chapman-Kolmogorov ... Is there a trick for computing the absorption probability? $\endgroup$
    – Analysis
    Commented May 29, 2023 at 16:43
  • $\begingroup$ I've seen several questions that compute the expectation by "divide et impera" using conditional expectation. I'll try approaching this too. $\endgroup$
    – Analysis
    Commented May 29, 2023 at 18:58

1 Answer 1

1
$\begingroup$

This solution is an elaboration on the comment by @MatthewH.

Let $P_i$ denote the probability of hitting $HTHT$ first when in state $i$. The equations relating the probabilities are

\begin{align*} P_{\emptyset} &= \frac 12(P_H + P_{\emptyset}) \\ P_H &= \frac 12 (P_{HH}+P_{HT}) \\ P_{HT} &= \frac 12 (P_{HTH}+P_{\emptyset}) \\ P_{HH} &= \frac 12 (P_{HH} + P_{HHT}) \\ P_{HTH} &= \frac 12 (P_{HH} + P_{HTHT}) \\ P_{HHT} &= \frac 12 (P_{HTH} + P_{HHTT}) \\ P_{HTHT} &= 1 \\ P_{HHTT} &= 0. \end{align*} This is a large linear system, but it can be solved fairly easily by substitution. The solution I found is \begin{align*} P_{\emptyset} = P_H &= \frac 49 \\ P_{HT} &= \frac 59 \\ P_{HH} &= \frac 13 \\ P_{HTH} &= \frac 23 \\ P_{HHT} &= \frac 13, \end{align*} but please double check to make sure I didn't make a mistake.

$\endgroup$
3
  • $\begingroup$ Using $P_{\emptyset}=a$, $P_H=b$, $P_{HT}=c$, $P_{HH}=d$, $P_{HTH}=w$, $P_{HHT}=x$, $P_{HTHT}=y$ and $P_{HHTT}=z, your result is verified by: wolframalpha.com/… $\endgroup$
    – Analysis
    Commented May 29, 2023 at 18:56
  • $\begingroup$ How can I combine these probabilities to obtain the probability in question? @user6247850 $\endgroup$
    – Analysis
    Commented May 29, 2023 at 18:57
  • $\begingroup$ @Analysis The probability in question is $P_{\emptyset}$: The probability of reaching $HTHT$ when not conditioning on being in any state. $\endgroup$ Commented May 29, 2023 at 19:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .