终结了:
The problem is same as asking for the probability of seeing HHT before HTT when the current state is H because you need an H to jumpstart both sequences. Let such probability be P。
Current State: H
There are 2 cases:
1. next flip=H (with 1/2 probability). We have HH. No matter what the next flips are, we will always have a string of ,,,HHHHH(HH). We will always see HHT before HTT as the first T will complete the HHT sequence.
2. next flip=T (with 1/2 probability). We have HT.
If the next flip is T (total probability 1/2*1/2=1/4) then we see HTT before HHT.
If the next flip is H (total probability 1/4) then we get back to the original state H.
Therefore, P=1/2+1/4*0+1/4*P , or P=2/3
The problem is same as asking for the probability of seeing HHT before HTT when the current state is H because you need an H to jumpstart both sequences. Let such probability be P。
Current State: H
There are 2 cases:
1. next flip=H (with 1/2 probability). We have HH. No matter what the next flips are, we will always have a string of ,,,HHHHH(HH). We will always see HHT before HTT as the first T will complete the HHT sequence.
2. next flip=T (with 1/2 probability). We have HT.
If the next flip is T (total probability 1/2*1/2=1/4) then we see HTT before HHT.
If the next flip is H (total probability 1/4) then we get back to the original state H.
Therefore, P=1/2+1/4*0+1/4*P , or P=2/3