I first saw this riddle on social media and I didn’t have a good way of coming up with a solution. The riddle reads
Flip a fair coin 100 times—it gives a sequence of heads (H) and tails (T). For each HH in the sequence of flips, Alice gets a point; for each HT, Bob does, so e.g. for the sequence THHHT Alice gets 2 points and Bob gets 1 point. Who is most likely to win? Alice, Bob, or equally likely?
My first thought was, the probability is 50/50, but surprisingly there was a lot of debate. Since my background is not in mathematics and probability (and I wanted to know for certain) I decided to run a simulation. After a short period of trial and error I created a Python script that showed that the long run average (1,000,000 simulated events) favored Bob. Out of 1,000,000 simulations Bob won 542,733 times and Alice won 457,267 times. There seems to be a lot of discussion happening on Reddit which seem to agree that Bob wins more, but not sure there is a reason why Bob wins more.