Bertrand's Ballot Problem
Why it's beautiful: The answer is shockingly clean โ just โ and the proof uses a gorgeous geometric trick called the reflection principle: you count "bad" paths by reflecting them into "good" paths, creating a perfect bijection.
Problem
In an election, candidate A receives votes and candidate B receives votes, where .
The ballots are counted one by one in a uniformly random order.
What is the probability that A is strictly ahead of B throughout the entire counting process (i.e., at every point during the count, A has strictly more votes than B)?
Hint: Think about counting paths on a grid. Each vote for A is a step right (+1), each vote for B is a step left (-1). You want paths from 0 to that never touch 0 after the start.
Answer: Bertrand's Ballot Problem
Answer:
Step 1: Think of votes as a path
Imagine drawing a graph as you count votes one by one:
- Vote for A โ move up (+1)
- Vote for B โ move down (โ1)
You start at height 0 and end at height (since A wins by votes).
We want: the path never touches or goes below 0 after the very first step.
Step 2: Count the bad paths using the Cycle Lemma
Here is the key trick โ the Cycle Lemma.
Take any fixed ordering of the ballots (a specific sequence of A's and B's). Now consider all cyclic rotations of this sequence โ i.e., start the count from ballot 2, 3, 4, ... instead of ballot 1.
Claim: Among all rotations of any given sequence, exactly of them have A strictly ahead at every point.
This is a non-obvious but provable combinatorial fact. It follows because the path visits each "height level" in a regular pattern, and a simple counting argument shows exactly starting positions yield a "good" path.
Step 3: Compute the probability
Since every sequence has rotations, and exactly of those rotations are "good":
Example: ,
List all 4 orderings of (A, A, A, B):
| Sequence | Running tallies (A โ B) | A always ahead? | |----------|------------------------|-----------------| | A A A B | 1, 2, 3, 2 | โ | | A A B A | 1, 2, 1, 2 | โ | | A B A A | 1, 0, 1, 2 | โ (ties at step 2) | | B A A A | โ1, 0, 1, 2 | โ (B ahead at step 1) |
2 out of 4 = 1/2 โ
Intuition for the answer
- If : probability โ A is so far ahead, they're almost certainly always leading.
- If : probability โ surprisingly small! A barely wins overall, so there are many ways the lead could flip.
- If : probability โ A must tie at the very end, so A cannot be strictly ahead throughout.
Why it's beautiful
The answer is shockingly simple given how complex the question sounds. The proof uses pure rotational symmetry โ no heavy computation, just the insight that every cyclic rotation of a ballot sequence is equally likely, and exactly of them are "good."