On this page
Follow one molecule for a long time, or look at every molecule at one instant: do you learn the same thing? The ergodic theorem says when the answer is yes.
What does the ergodic theorem say?
Take a space X, a rule T that moves each point, and a measure of region sizes that T does not change (an invariant measure). Pick a quantity f, such as 1 if a point is inside some region and 0 if not.
The time average follows one start x: average f(x), f(Tx), f(T²x) and so on over n steps, and let n grow.
The space average is the average of f over the whole space, weighted by the measure.
The Ergodic theory article on Wikipedia states the result in one line: if the transformation is ergodic and the measure is invariant, then the time average equals the space average almost everywhere. George D. Birkhoff published the proof as Proof of the Ergodic Theorem in the Proceedings of the National Academy of Sciences in December 1931. His paper, the article adds, covered only systems arising from differential equations on a smooth manifold, not the abstract general case.
Ergodic means the space cannot be split into two invariant pieces that both have positive size. Almost every means the starting points where the equality fails form a set of measure zero.
Why does an irrational rotation of a circle obey it?
Think of a circle as the interval from 0 to 1 with its ends glued, and let T(x) = x + α, keeping only the fractional part. The Wikipedia article on irrational rotation notes that for irrational α this map is ergodic, and uniquely ergodic, with ordinary length as its only invariant probability measure.
The matching fact about numbers is the equidistribution theorem: α, 2α, 3α and so on, taken mod 1, spread uniformly around the circle when α is irrational. According to the Wikipedia article on the equidistribution theorem, Hermann Weyl, Wacław Sierpiński and Piers Bohl proved it separately in 1909 and 1910, and it is a special case of the ergodic theorem.
Here is a worked example you can check with a calculator. Take α = √2 − 1 ≈ 0.41421, start at 0, and let f be 1 on the arc from 0 to 1/4.
List the orbit: 0, 0.414, 0.828, 0.243, 0.657, 0.071, 0.485, 0.899, 0.314, 0.728.
Among these first 10, steps 0, 3 and 5 fall below 0.25, so the time average is 3/10 = 0.3.
Continue to 40 steps. The orbit lands in the arc at steps 0, 3, 5, 10, 15, 17, 22, 27, 29, 34 and 39, so the time average is 11/40 = 0.275.
The space average is the arc's length, 0.25. The theorem says the running fraction settles there; after 40 steps it is within 0.025.
Why so slow? Five steps move the point by 5α ≈ 2.071, almost a whole number of turns, so the orbit creeps forward only 0.071 every five steps.
What happens when the system is not ergodic?
Rotate by 1/3 instead. Start at 0 and the orbit is 0, 1/3, 2/3, repeating; one point in three is in the arc, so the time average is 1/3. Start at 0.3 and the orbit is 0.3, 0.633, 0.967, never in the arc, so the time average is 0. Neither equals 1/4.
The Ergodic theory article explains: a rotation by p/q is periodic with period q, so it cannot be ergodic. The invariant piece is visible: three arcs of length 0.1 starting at 0, 1/3 and 2/3 map onto each other, forming an invariant set of size 0.3, neither empty nor the whole circle.
Before you trust 'time average equals space average', check:
Does the map preserve the measure you average with?
Is there an invariant region of size strictly between 0 and the whole space? Then it is not ergodic.
Is f integrable?
Do you need every start, or only almost every start?
The same long-run idea appears in our guide to the stationary distribution of a Markov chain. For maps that stretch and fold, see how the tent map produces chaos and the Lyapunov exponent with worked values.
What does ergodicity mean for statistical mechanics?
An instrument measures a time average; a textbook calculation gives an average over all states with the same energy. The ergodic hypothesis, which Wikipedia traces to Ludwig Boltzmann, says the time a system spends in a region of phase space at fixed energy is proportional to that region's volume, so the two averages agree. It was used to prove equipartition of energy in the kinetic theory of gases.
The same article notes that assuming time and ensemble averages agree is not always correct, and that ferromagnets below the Curie temperature and spin glasses break ergodicity. Birkhoff's theorem tells you what you gain if a system is ergodic; it does not prove that a given gas is.
If phase space or measure needs a refresher, the Fermi Concept Library covers every concept in physics, chemistry, biology, mathematics and computing. For ideas easier to see than read, the Fermi Simulation Lab has interactive simulations. Then try the worked example again with α = √3 − 1.



