The question
An election ends 52 to 48. The ballots are counted one at a time in a random order. What is the chance that the winner led at every moment of the count, from the first ballot to the last?
Most people guess something large, since 52 against 48 is a clear win, but the answer is 4%.
Record the count as a walk. Each vote for A is a step up and each vote for B a step down. After all 100 votes the walk sits at . "A always strictly ahead" means the walk stays above at every step after the start. The ballot theorem says that if A gets votes and B gets , then
That is the final margin divided by the total number of votes. For 52 and 48 it is . A landslide of 70 to 30 gives , and a narrow win of 501 to 499 gives . In a close race the loser almost always draws level at some point.
A small case you can check by hand: A gets 3 votes and B gets 2. There are equally likely orders, and only AAABB and AABAB keep A strictly in front, so the probability is .