A Mass Transport Proof of the Ergodic Theorem
Abstract.
It is known that a gambler repeating a game with positive expected value has a positive probability to never go broke. We use the mass transport method to prove the generalization of this fact where the gains from the bets form a stationary, rather than an i.i.d., sequence. Birkhoff’s ergodic theorem follows from this by a standard argument.
Let be (real-valued) random variables, and write
In this note, we write .
It is known [Chi22] that a gambler that repeats a game with positive expected value has a positive chance to never go broke. More precisely, if are i.i.d. and , then
In this note, we show that this holds whenever are stationary and (Lemma 1) using the “mass transport” method. Although no knowledge of the method will be needed, one might want to take a look at the short paper [Häg99] to get a flavor of mass transport.
Birkhoff’s ergodic theorem (Theorem 3) then follows by a standard argument. We include the derivation of the ergodic theorem for completeness.
Lemma 1.
If the sequence is stationary and , then
Proof.
By Kolmogorov’s extension theorem, we may assume without loss of generality the existence of a doubly-infinite stationary sequence
Define for every so that and for all .
Let . We call a record after if
Notice that is always a record after . We now introduce the “mass” that sends to each as follows. If , then for all . If , then let (this might be finite in length) be the enumeration of the records after , and let
(1) |
For all , let . See Figure 1 for a visualization of the mass transport.

Since is stationary and for all , we have
(2) |
This simple equality is at the heart of the mass transport method. Suppose that . We will derive a contradiction by evaluating each side of (2).
Assume that , and let . Notice that a.s. Let be the records after up to . Then we have
Thus, the left side of (2) equals .
Let us examine the sum on the right side of (2). See Figure 2 for a visualization. If , then is not a record after any number below , and thus the sum is . Assume , and let (which might be finite in length) be the enumeration of the numbers such that
Let and let us compute . First assume that for some , and consider the cases (a) and (b) . If (a) is the case, then is not a record after , and thus . Assume that (b) is the case. By the definition of , we have for all . This implies that is a record after . Since
we see that and are consecutive records after . Thus,
Combining (a) and (b) yields
If for all , and is the largest number such that , then . Since is a record after , the definition of tells us that ; the two maximums in (1) are both even if is a record after . We now know what is for all , and this yields

Remark 2.
Our argument actually proves the maximal ergodic theorem [Bil12, Theorem 24.2], which says that if is a stationary sequence, then
Indeed, the left side of (2) is bounded below by
while the right side of (2) is bounded above by . Thus,
and therefore .
There is a short proof of the maximal ergodic theorem which however lacks in intuition; see [Bil12, Theorem 24.2], for example. Our proof is an attempt to remedy this problem by utilizing the intuitive principle of mass transport.
We now prove Birkhoff’s ergodic theorem. Let be the underlying probability space, and a measurable map be measure-preserving in the sense that for all . An event is invariant under if , and we denote the -field of all invariant events by .
Theorem 3 (Birkhoff’s ergodic theorem).
Let be a random variable with finite mean, and write for . If for all , then
Proof.
References
- [Bil12] Patrick Billingsley. Probability and measure. Wiley Series in Probability and Statistics. John Wiley & Sons, Inc., Hoboken, NJ, 2012. Anniversary edition [of MR1324786], With a foreword by Steve Lalley and a brief biography of Billingsley by Steve Koppes.
- [Chi22] Calvin Wooyoung Chin. A gambler that bets forever and the strong law of large numbers. Amer. Math. Monthly, 129(2):183–185, 2022.
- [Häg99] Olle Häggström. Invariant percolation on trees and the mass-transport method. 1999.