Two players, A and B, toss a fair coin times. Each head is a point for A and each tail a point for B, so A’s lead after tosses, A’s points minus B’s, is
a simple random walk started at .
For what fraction of the game is A ahead?
The players are interchangeable, so the answer is symmetric about one half, and the natural guess is that it also concentrates there: in a fair game the lead should change hands regularly, and each player should be ahead about half the time. The exact distribution does not concentrate there. The fraction of the game spent in the lead is most likely to be near or near , and one half is its least likely value. In the limit of a long game:
- With probability , one of the two players is ahead for more than 85.4% of the game.
- With probability , one of the two players is ahead for more than 97.6% of the game.
- The probability that the lead is shared anywhere between 45% and 55% is 6.4%.
The limiting density of the fraction is , a U shape with integrable singularities at both ends, and the corresponding distribution function is : this is the arcsine law. The derivation needs one identity about paths, a product formula that follows from it, and Stirling’s approximation.
Ties are rare
The score is tied at time with probability
the asymptotic form coming from Stirling’s formula; ties at odd times are impossible. The decay is slow: after a million tosses the chance of an exact tie at that moment is still . Summing over the even times gives the expected number of ties in tosses,
where the closed form follows by induction from . A game of 10,000 tosses has about 79 ties on average. The lead can change hands only at a tie, so it changes at most a few dozen times in ten thousand tosses. The U shape also needs the stretches between ties to be heavy-tailed, which the next section quantifies.
Reflection principle
Lemma. The probability that the score is never tied during tosses equals the probability that it is tied at the end:
The two signs are symmetric, so it suffices to show , which is a count of paths. Write for the number of paths of steps from to . A path that stays positive begins with an up-step to and then runs from to for some even without touching the axis. Among all paths from to , the ones that do touch the axis are in bijection with the paths from to : reflect the initial segment, up to the first visit to , in the axis.
So the number of paths from to that avoid the axis is . Summing over telescopes to , and dividing by the equally likely paths gives .
The same count gives a second form that is needed below: . Deleting the first step of a strictly positive path of steps and shifting it down by one gives a non-negative path of steps, and this is a bijection, so ; and since is odd, forces , hence automatically.
The lemma also describes the stretches between ties. The probability that the first tie occurs at time is , and the probability that a stretch lasts longer than tosses is itself, of order . A tail this heavy has infinite mean, and in a game of tosses the longest stretch occupies a positive fraction of the whole game. Whoever is ahead during that stretch is ahead for a large part of the game.
The last tie
Let be the time of the last tie, with if the score is never tied. For the walk must be at zero at time and then avoid zero for the remaining steps; the steps after time form a fresh walk, so by the lemma
This is the discrete arcsine law. Two features follow directly. The formula is symmetric under : the last tie is as likely to fall at time as at time , so a last tie inside the first tenth of the game and a last tie inside the final tenth are equally probable. And since decreases in , the two ends and are the most probable values, each with probability , while the middle is the least probable: for even , , below the endpoint value by a factor of . The 20-toss game, to four decimals, with only the first half listed since the second half mirrors it:
| last tie at toss | 0 | 2 | 6 | 10 |
|---|---|---|---|---|
| probability | .1762 | .0927 | .0655 | .0606 |
Inserting and writing ,
so the fraction of the game elapsed before the last tie has, in the limit, the density . The substitution integrates it:
The limiting density is the beta distribution with both parameters equal to .
Time in the lead has the same distribution
Call the interval between tosses and an interval where A is ahead if or . A tie is credited to the player who was ahead just before or just after it, so all the intervals between two consecutive ties go to one player, and A’s count is always even. Theorem. The number of intervals where A is ahead equals with probability , for : exactly the distribution of the last tie.
The derivation conditions on the first tie. Write for the probability in question. The two boundary cases are the lemma in its second form: , and by symmetry. For the score must be tied at some time . If the first tie comes at and the stretch before it was A’s (probability ), that stretch contributes intervals to A and the remaining tosses must contribute ; if the stretch was B’s, the remaining tosses must contribute all :
Induction on turns the probabilities on the right into and , and the renewal identity (a tie at time has a first tie at some time ) collapses both sums, leaving .
Restrict attention to the games that end tied. Chung and Feller proved in 1949 that among the paths with , exactly of them, a Catalan number, have A ahead for intervals, and this holds for every from to . Conditioned on a tie at the end, the time in the lead is uniformly distributed. The U shape therefore comes from the games that end with someone ahead, and within those games the distribution of the time in the lead is more concentrated at the two ends than the unconditional one.
The widget draws a random game on the left, with A’s intervals in blue and B’s in red. On the right is the exact distribution of A’s number of intervals, computed from the recursion rather than sampled, with the arcsine density overlaid. Ticking the box conditions both panels on a tie at the end and replaces the U with the flat Chung–Feller law.
Quantiles of the limit
The event that the player who spends longer in the lead does so for at least a fraction of the game has limiting probability :
| 70% | 80% | 90% | 99% | |
|---|---|---|---|---|
| probability | .738 | .590 | .410 | .128 |
Setting the probability to and to and solving for gives and , the two figures quoted at the start. A trading strategy that stays above its benchmark for 90% of a year, or a team that leads for 90% of a match, is showing an event that a fair coin produces one time in five ( for a specified side). Time spent in the lead is weak evidence of an edge, and the margin at the end is the quantity that carries the information.
The law is not specific to coin tossing. Lévy (1939) proved the arcsine law for Brownian motion, where it holds exactly at every time horizon; for Brownian motion the same law describes the fraction of time spent positive, the last zero, and the location of the maximum. Erdős and Kac (1947) showed that the fraction of positive partial sums has the same arcsine limit for independent steps with mean zero and finite variance whenever the central limit theorem applies to them, in particular for all i.i.d. steps with finite variance, an early instance of the invariance principle (a limit law that depends on the step distribution only through its mean and variance, because the rescaled walk converges to Brownian motion). Sparre Andersen (1953, 1954) found the exact finite- version: for i.i.d. steps with any symmetric continuous distribution, the number of positive partial sums among equals with probability for every , the same numbers as in the coin-tossing case, and the argument is purely combinatorial. The U shape is a property of sums of independent symmetric steps, not of steps in particular.
References
- William Feller. An Introduction to Probability Theory and Its Applications, Volume I. 3rd edition, Wiley, 1968. Chapter III: the reflection principle, the last tie, and the time-in-the-lead theorem, with the derivation followed above.
- Paul Lévy. Sur certains processus stochastiques homogènes. Compositio Mathematica, 7:283–339, 1939. The arcsine laws for Brownian motion.
- Paul Erdős, Mark Kac. On the number of positive sums of independent random variables. Bulletin of the American Mathematical Society, 53(10):1011–1020, 1947. The arcsine limit for general steps with finite variance.
- Kai Lai Chung, William Feller. On fluctuations in coin-tossing. Proceedings of the National Academy of Sciences, 35(10):605–608, 1949. The uniform distribution of the time in the lead among paths that end tied.
- Erik Sparre Andersen. On the fluctuations of sums of random variables. Mathematica Scandinavica, 1:263–285, 1953, and part II, 2:194–222, 1954. The distribution-free finite- law for symmetric continuous steps.
- William Feller. An Introduction to Probability Theory and Its Applications, Volume II. 2nd edition, Wiley, 1971. Chapter XII: the combinatorial lemma and the arcsine laws for general random walks, including Sparre Andersen’s theorem.