Consider this thing as a Markov chain with states 0, H, HT, and HTH. Let p be the probability that it takes an odd number of steps to get to HTH if you start from 0, let q be the probability it takes an even number if you start from H, and let r be the probability it takes an odd number if you start from HT.
First step analysis gives us p=q/2+(1-p)/2, q=r/2+(1-q)/2, and r=1/2+(1-p)/2. Re-arranging these gives us a way to write q in terms of p, r in terms of q, and p in terms of r, so we can easily solve for each of them. We get p=10/19, q=11/19, and r=14/19.
The conditional probability we're looking for is P(1st is H and X is odd)/P(X is odd) = (1/2 * q)/p = 11/20.
View all comments
6
u/comoespossible 2d ago
Consider this thing as a Markov chain with states 0, H, HT, and HTH. Let p be the probability that it takes an odd number of steps to get to HTH if you start from 0, let q be the probability it takes an even number if you start from H, and let r be the probability it takes an odd number if you start from HT.
First step analysis gives us p=q/2+(1-p)/2, q=r/2+(1-q)/2, and r=1/2+(1-p)/2. Re-arranging these gives us a way to write q in terms of p, r in terms of q, and p in terms of r, so we can easily solve for each of them. We get p=10/19, q=11/19, and r=14/19.
The conditional probability we're looking for is P(1st is H and X is odd)/P(X is odd) = (1/2 * q)/p = 11/20.