🧮 Brain Teaser
Probability
Ties in Matching Pennies
2026-09-09
✏︎

The Ballot Box Surprise: Ties in Matching Pennies

Players A and B flip a fair coin N=2nN = 2n times. They tally their gains and losses: A wins a point on heads, B wins a point on tails. After the first flip, what is the probability that at no point during the remaining 2n−12n-1 flips does the score return to a tie (0-0)?

For concreteness, compute this for N=4N = 4 (n=2n = 2), then state the general formula.

ballot problemreflection principlecombinatoricsrandom walkMosteller

Answer: Ties in Matching Pennies

Key Idea / Intuition

After the first flip, one player is ahead by 1. For the score to never return to even, the leading player must stay strictly ahead the entire time — this is exactly the ballot problem in disguise. The key insight is a reflection/symmetry argument: sequences that do reach a tie can be paired with sequences that don't in a way that lets us count exactly. Surprisingly, the probability depends only on the binomial coefficient (2nn)\binom{2n}{n}, and it equals the same value for N=2nN = 2n and N=2n+1N = 2n+1.


Formal Proof / Solution

Setup. We have N=2nN = 2n flips. After the first flip (say A is ahead), we need A to stay strictly ahead for all 2n−12n - 1 remaining flips. By symmetry, the probability doesn't depend on who wins the first flip.

Reduction to ballot problem. After flip 1, A leads 1–0. We need: among all 2n−12n - 1 remaining flips, A never drops to the level of B. This is equivalent to asking: in a sequence of 2n−12n - 1 coin flips (each ±1), a running sum starting at +1 never hits 0.

Counting via the ballot problem result.

The full 2n2n flips produce a sequence of ±1\pm 1 values. Define SkS_k = cumulative score difference (A minus B) after kk flips, with S0=0S_0 = 0.

The probability that A leads B throughout (i.e., Sk>0S_k > 0 for all k=1,…,2nk = 1, \ldots, 2n) equals, by the ballot problem:

P(Sk>0 for all k=1,…,2n∣S2n=2m)=2m2n=mn,m≥1.P(S_k > 0 \text{ for all } k = 1, \ldots, 2n \mid S_{2n} = 2m) = \frac{2m}{2n} = \frac{m}{n}, \quad m \geq 1.

But we want: after the first flip, never a tie. So we want Sk≠0S_k \neq 0 for k=2,3,…,2nk = 2, 3, \ldots, 2n, given that S1=+1S_1 = +1 (or −1-1, by symmetry — the condition is the same).

Direct computation using Mosteller's formula. The probability of no tie after the first flip, over all N=2nN = 2n flips, is:

P(no tie)=(2nn)22n⋅11... let’s derive carefully.P(\text{no tie}) = \frac{\binom{2n}{n}}{2^{2n}} \cdot \frac{1}{1} \quad \text{... let's derive carefully.}

The 22n2^{2n} equally likely sequences of nn heads and nn tails... actually let xx = number of heads for A in 2n2n flips, x∼Binomial(2n,12)x \sim \text{Binomial}(2n, \tfrac{1}{2}).

  • If x≠nx \neq n (no tie possible at end): by the ballot problem, P(tie occurs)=2min⁡(x,2n−x)2nP(\text{tie occurs}) = \frac{2\min(x, 2n-x)}{2n}.
  • So P(no tie∣x)=1−2min⁡(x,n)2nP(\text{no tie} \mid x) = 1 - \frac{2\min(x,n)}{2n} for x≠nx \neq n.
  • If x=nx = n: a tie must occur, so P(no tie∣x=n)=0P(\text{no tie} \mid x = n) = 0.

P(no tie)=∑x=02n(2nx)122n⋅(1−min⁡(x,2n−x)n)P(\text{no tie}) = \sum_{x=0}^{2n} \binom{2n}{x} \frac{1}{2^{2n}} \cdot \left(1 - \frac{\min(x,2n-x)}{n}\right)

By symmetry and careful summation (as worked out by Mosteller), this simplifies beautifully to:

P(no tie)=(2nn)22n\boxed{P(\text{no tie}) = \frac{\binom{2n}{n}}{2^{2n}}}

Verification for N=4N = 4 (n=2n = 2):

P(no tie)=(42)24=616=38.P(\text{no tie}) = \frac{\binom{4}{2}}{2^4} = \frac{6}{16} = \frac{3}{8}.

Let's verify by enumeration. The 16 equally likely sequences (A = heads, B = tails):

| Sequence | Score after each flip | Tie after flip 1? | |---|---|---| | AAAA | 1,2,3,4 | No ✓ | | AAAB | 1,2,3,2 | No ✓ | | AABA | 1,2,1,2 | No ✓ | | AABB | 1,2,1,0 | Tie | | ABAA | 1,0,... | Tie | | ABAB | 1,0,... | Tie | | ABBA | 1,0,... | Tie | | ABBB | 1,0,... | Tie | | BAAA | -1,0,... | Tie | | BAAB | -1,0,... | Tie | | BABA | -1,0,... | Tie | | BABB | -1,0,... | Tie | | BBAA | -1,-2,-1,0 | Tie | | BBAB | -1,-2,-1,-2 | No ✓ | | BBBA | -1,-2,-3,-2 | No ✓ | | BBBB | -1,-2,-3,-4 | No ✓ |

Sequences with no tie: AAAA, AAAB, AABA, BBAB, BBBA, BBBB → 6 sequences.

P=616=38=(42)24.✓P = \frac{6}{16} = \frac{3}{8} = \frac{\binom{4}{2}}{2^4}. \checkmark

The beautiful surprise: The answer (2nn)4n\dfrac{\binom{2n}{n}}{4^n} is exactly the probability that in 2n2n fair coin flips, exactly nn are heads — the central binomial probability. And remarkably, the same probability holds for N=2n+1N = 2n+1 (an odd number of flips).

Source: Fifty Challenging Problems in Probability with Solutions, Frederick Mosteller, Problem 23

Type: ProbabilitySource: Fifty Challenging Problems in Probability with Solutions, Frederick Mosteller, Problem 23Edit on GitHub ↗