I'm studying probability and came across the following problem:
Alice and Bob are playing a game in which each of them chooses a 4-letter string of $\{H,T\}$ (heads/tails), following which a coin is tossed repeatedly until one of the players' chosen strings appears. When that happens, that player has won.
If Alice chooses the string $THTH$, is there any string Bob can choose with which his probability of winning is greater than $50\%$?
I know that if I'm given a specific string for Bob, I can calculate each player's probability of winning by doing recursive conditional probability, but short of checking each of Bob's 15 possible choices for a string this way I'm not sure how to prove or disprove the assertion that Bob's chance to win can be more than $50\%$.
(I can't find a problem like this anywhere on SE so if this is a duplicate I apologize in advance).
Turns out that HTTH gives player B a larger chance of winning — I ascertained this by looking for strings that have no prefixes in common with THTH but could potentially capitalize on player A’s losses.
It was mostly guess and check... Solving the system of equations given by following the conditional probability through to A’s win and B’s win gives us $P(B)=\frac{9}{16}$.