Maths WorkshopMaths problems with full solutions
Exercise 2116Combinatorics › Counting principlesOlympiadAdded 3 Nov 2026

Bertrand's ballot problem

#ballot problem#lattice paths#Catalan

Statement

In an election, candidate AA receives pp votes and BB receives qq votes with p>qp>q. Show that the probability AA is always strictly ahead is p−qp+q\frac{p-q}{p+q}.

Hint

Reflection principle: bad paths correspond to paths from (0,−1)(0,-1).

Show solutionHide solution

Solution

Total. (p+qp)\binom{p+q}{p} orderings.

Bad paths. By reflection, the count of "A falls behind at some point" equals paths starting at (0,−1)(0,-1) ending at (p−q,0)(p-q,0): (p+qq−1)\binom{p+q}{q-1}.

Good. (p+qp)−(p+qq−1)=p−qp+q(p+qp)\binom{p+q}{p}-\binom{p+q}{q-1}=\frac{p-q}{p+q}\binom{p+q}{p}.

Probability. p−qp+q\frac{p-q}{p+q}.

Conclusion. The ballot theorem.