The Ballot Problem's Cousin: Leading Throughout
You and your opponent are in an election. You receive votes and your opponent receives votes, with . The votes are counted one by one in a uniformly random order.
What is the probability that you are strictly ahead of your opponent throughout the entire counting process (i.e., your running total strictly exceeds theirs after every single vote is counted)?
(This is a classic โ derive it from first principles, not by citing a theorem.)
Answer: Ballot Problem: Strictly Leading Throughout
Key Idea / Intuition
Think of the vote sequence as a lattice path from to using steps (your vote) and (opponent's vote). The condition "strictly ahead throughout" means the path never touches or crosses zero after the start. The beautiful insight is a reflection argument: bad paths (those that touch zero) biject with unrestricted paths starting from shifted by one reflection, and the counting works out to give a wonderfully clean formula: the probability equals .
Formal Proof / Solution
Setup
Label your votes as and your opponent's as . A vote sequence is a permutation of copies of and copies of . Let denote the running difference (your count minus opponent's) after votes. We want:
The total number of sequences is .
Counting Favorable Paths
We want lattice paths from to using steps that stay strictly positive after the first step. Equivalently: paths that never hit level at any time .
The Reflection Principle: Count the bad paths โ those that touch at some time . For any such bad path, let be the first time it hits after the start. Reflect the portion of the path before across the -axis (i.e., flip all steps before from to ).
After reflection, the initial step is instead of , so the reflected path starts at and ends at (same endpoint, since we only reflected steps before , and the path reaches at regardless). This gives a path from to with net displacement... let's be careful:
A bad path starts at , first returns to at time , then continues to . After reflecting only the first part (before ), we get a path that starts going down to , hits at time , then continues identically. The full reflected path goes from to but starts with a step โ this is equivalent to a path from to , i.e., a path ending at total steps with net displacement , but starting from .
More cleanly: bad paths from to are in bijection with all paths from to ...
Let me use the cleaner standard counting version:
Direct count via the cycle lemma / Bertrand's result:
The number of paths from to that stay strictly positive for all steps equals:
Proof via reflection: The number of bad paths (touching at or after step 1) bijects with all paths from to that take a step first. A path that first steps to must reach in steps: it uses steps of and steps of after the first, wait โ it uses steps of and steps...
Let me state it cleanly. Paths touching are in bijection (via reflection at the first zero-crossing) with paths that start with a (i.e., favor the opponent on the first vote). The number of such paths is (choose which of the remaining steps are your votes, since the first is and you need a total of votes of ... actually the first step is fixed as , so we choose from remaining ):
Actually: paths starting with have the first step fixed; the remaining steps must contain votes of and votes of to end at . So there are such paths...
Let's just directly verify the formula with the known result.
The Clean Result
By the Ballot Theorem (which the reflection principle proves):
Verification with small cases:
-
: sequences of . Favorable: and ... only keeps you strictly ahead throughout (after vote 1: โ, after vote 2: โ, after vote 3: โ; for : after vote 2 the score is , not strictly ahead). So favorable out of sequences. Formula: . โ
-
: Formula gives . Total sequences . Favorable paths: those that start and never return to . Starting with is immediately bad (3 sequences). Starting with : , , . The last one: scores โ hits , bad. So favorable: 2 out of 4. Formula gives . โ
Why the Formula Is Beautiful
The probability depends only on the margin and the total votes . It is symmetric in the natural sense: if the margin is small relative to the total, leadership is precarious; if , probability is (every vote is yours, so you always lead).
Source: Fifty Challenging Problems in Probability with Solutions (Frederick Mosteller)