Bertrand's ballot theorem

In combinatorics, Bertrand's ballot theorem is the solution to the question: "In an election where one candidate receives p votes and the other q votes with pq, what is the probability that the first candidate will be strictly ahead of the second candidate throughout the count?" The answer is

(pq)/(p+q).

It is related to random walks and can be proved several different ways. One is by mathematical induction:

{a \over (a+b)}{(a-1) \over (a+b-1)}+{b \over (a+b)}{a \over (a+b-1)}={a \over a+b}.

It can then be used to calculated the number of one-dimensional walks of n steps from the origin to the point m which do not return to the origin. Assuming n and m have the same parity and nm>0, it is {n \choose {n-m \over 2}}{m \over n}. When m=1 and n is odd, this gives the Catalan numbers.

See also: Bertrand's ballot theorem, Catalan number, Combinatorics, Election, Mathematical induction, Probability, Random walk