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.
there actually is. think about it this way: if the first throw is heads, I can hit HTH immediately, which is odd. if the first throw is tails, THTH is even. There is actually a difference.
The problem is asking about a conditional probability ("given that X is odd"). If you run the experiment a large number of times and throw out all the runs in which X is even, the first toss will be H in more than half of the remaining ones.
Of course you can. If I roll a die 5 times and get three 6s, what is the probability that the first roll was a 6? It isn’t just 1/6 because you know that 3 of the 5 rolls came up 6. There are only 5 possible positions for those 6s to go which means the first position is more likely to be a 6 than simply the odds of rolling a 6 in a single roll. That is a simpler example but it shows that you can absolutely condition something happening first given a later result.
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.
1
u/NomaTyx 2d ago
...the first toss? like the first toss out of all tosses?