- Published on
Ergodic Theory and Metric Entropy
What is Entropy?
Entropy is a central quantity in many different fields, and accordingly there are a bunch of "derivations" to arrive at the same formula. At the very basic level, entropy is commonly used to mean the "uncertainty" or "disorder" of a system.
Entropy via Physics
But what does that actually mean? On one hand we can take the physics route. In stat mech, we have the idea of a "microstates," which define the particular configuration of particles in a system, and these configurations give rise to "macrostates," which is what we can observe. In general, a macrostate consists of many microstates. So for example, a system may be defined by particles, each with some sort of 3D momentum, spin, etc. The particular configuration of those particles would be the microstate, but macrostates of the system would be something like energy, pressure, number of particles, etc. So many microstates can correspond to the same macrostate: if our macrostate is the system at a particular energy , many microstates (ie. particular configurations of the particles) correspond to the same total energy .
Suppose we fix a macrostate, that is we fix the system to be at energy with generalized coordinates (taking from Kardar's language). The central postulate of stat mech is that given this conditioning, all valid microstates are equally likely. That is, our distribution over microstates is
where represents the Hamiltonian. We want some sort of function which describes how much "uncertainty" over microstates this particular macrostate has. What sort of properties should this function have?
- If two systems with and microstates are independent, the combined system has microstates (this just follows from counting), so we want -- entropy should be "extensive" (additive over independent systems). This requirement is a bit hand-wavy but given "phenomologically" by classical thermodynamics. I'm not fully convinced I understand the additivity requirement, and any "derivation" I see online starts with the fact that entropy is log-based, which puts the cart before the horse.
- should be monotonically increasing in : more microstates means more uncertainty. I can get by this!
- : a system with only one possible microstate has no uncertainty. This also makes sense!
These three properties uniquely determine up to a constant. The functional equation on positive integers, combined with monotonicity, forces for some (cauchy's log equation). And in physics, the constant that makes the units work out is , Boltzmann's constant, giving
Setting , this says entropy is the log-number of accessible microstates -- or equivalently, how many bits you'd need to specify the system's microstate. Alternatively, it's also the entropy of a uniform probability distribution over a state space of size , going back to our central postulate of stat mech that all microstates for a particular macrostate are equally likely.
Entropy via Information Theory
The above derivation holds for the specific case of the uniform microcanonical distribution, but what we really want is some measure of uncertainty over general probability distributions. This sort of thing lies outside the purview of physics (as wonderful as it is) and leads us to the info theory derivation of entropy. Specifically, the Shannon-Kinchin theorem derives the entropy formula from a few guiding principles (similar to above): given any distribution over outcomes, we want a function satisfying:
- Continuity: is continuous in all .
- Maximality: -- uniform has maximum entropy.
- Expandability: -- adding an impossible outcome doesn't change entropy.
- Chain rule: Entropy decomposes over groupings:
WE usually learn the chain rule as a side effect of the entropy formula, but I guess it's one of the axioms under which it's built.
Theorem (Shannon-Khinchin): The only functions satisfying these four axioms are
for some .
Proof sketch. First consider the uniform case , which is what we did in the stat mech microcanonical ensemble example. Applying the chain rule, a uniform distribution over outcomes decomposes into choosing one of equal blocks, then one of outcomes within the block -- both uniform -- so
This is the same equation we saw above, which with continuity it forces .
For a non-uniform distribution with rational (where ), we can think of it as a uniform distribution over outcomes grouped into blocks of sizes . The chain rule gives
(the on the left is the uniform distribution entropy, and the rhs is the expected within-block entropy).Then rearranging gives
Continuity extends this to all reals.
Note this recovers the physics formula: in the microcanonical ensemble for all , so . The starting axioms are also very similar in flavor.
What is Entropy, Really?
The last place I expected to see entropy resurface was in our stat 205b (Berkeley probability theory class) unit on ergodic theory (to be fair, I had no prior knowledge of ergodic theory, so I guess I couldn't really expect anything). Broadly speaking, ergodic theory deals with "long-term behavior of dynamical systems."
When we say dynamical systems, the easiest way to think of it is as some space (say a set ) that undergoes a transformation (ie. "dynamics") every timestep, which can be given by some map . We care about how our initial space "evolves" as we keep applying . This idea gives rise to the notion of "orbits." For a particular point , we can define its orbit as . If we think of this as a physical system with as some initial position, this orbit describes what kind of "path" over the space this point will trace out as we keep applying our dynamics. Metric entropy then arises as a notion of "orbit complexity" for a particular map . This is all sounding too general, so lets formalize everything.
Ergodic Theory
The first phenomenon that's of interest is the idea of recurrence: if we take a set , what can we say about the behavior of the orbits of points ? For a particular type of map (measure preserving), we have the following result:
Definition: Poincare Recurrence: If is measure preserving and and is measurable, for almost every , there are infinitely many such that .
I tried to draw this out until I realized the all-powerful Claude can just generate a much better looking diagram:

Ergodicity then gives an idea of "indecomposability" of sorts for invariant sets -- a system is ergodic if for any for a measure preserving , all invariant sets (ie. ) must be measure zero or one. In this sense, we cannot take an invariant subset and "decompose" it further into smaller sets.
The whole point of talking about ergodic theory in this writeup is to see how the idea of entropy evolves as a natural measure of "orbit complexity" -- that is, for different ergodic systems, we'll see a difference in roughly speaking how "complex" the orbits generated by these systems are.
First, it's helpful to look at a couple of examples of ergodic systems:
Example 1: The Bernoulli Shift
Let with the product measure
and let be the left shift: . This is basically the canonical model for an i.i.d. coin-flip sequence, and just slides our view of the sequence one step forward.
Why is this ergodic? Suppose is a -invariant set, so . Because the sequence is invariant under the shift, membership in can only depend on the "tail" of the sequence. By Kolmogorov's 0-1 law, any tail event has probability 0 or 1 -- so .
Example 2: The Irrational Rotation
Let (the circle), with Lebesgue measure , and fix . Define
Unlike the last example which has some stochasticity in the Bernoulli measure choice per point, here the map is completely deterministic and simply just rotations around the circle.
Proof of ergodicity: This is a bit more involved. We start with proving a useful intermediate formula, namely that there is some interval such that for small ,
that is, intersects with at least fraction of this interval.
Subproof: A useful tool here is the inner regularity of Lebesgue measure: that is, any measurable satisfies .
So inner regularity gives us some . Likewise by outer regularity we can get an open set where (choose a big enough and small enough where ). But the subset identity implies that so it follows that
And every open set on can be expressed as disjoint subset of intervals , so . At least one must satisfy the original identity by (else sum them and won't satisfy the original inequality, a contradiction). This completes the subproof.
Return to main proof: Now with this interval , take the orbit , which is dense in . By density, now select so (mod 1) cover the whole circle up to some .
Because is invariant under , it occupies at least fraction of . For , and is measure preserving, so
and likewise and so the same inequality holds for any iterate of . If covers at least of all the , then it must cover at least of their union, but their union was chosen such that they cover at least measure , and so . Both variables were chosen arbitrarily, so it follows that .
So both of these systems are ergodic, but have very different "structure": in the first example, it is the tail behavior of probabilistic events that provide ergodicity. But in the above case, it is instead this "uniformity" of orbits across the circle that bring ergodicity.
Comparing Orbit Complexity
Seeing both of the previous systems suggests the idea that perhaps there should be a way to quantify how "complex" a system's orbits are. With this goal in mind, we can try and come up with ways to formalize this idea. One intuition we might have is that a more "complex" system should somehow generate a much more diverse set of orbits that all look different from one another. From an info theory perspective (which is sort've cheating by already knowing the end result), the idea of a "typical set" might be useful here, in particular what is the size (or number of orbits) that comprise a certain amount of probability space.
To formalize this idea, we will think of the "diversity of space that each orbit traverses through." Suppose we take a partition of , then we can encode the orbit of any point as a symbolic sequence: record which partition element the orbit visits at each time step. For time through , we get a word of length :
Now a clear definition of complexity arises from this, namely the number of distinct words of length that would show up from orbits. We can take our two systems from before as case studies:
Bernoulli shift: We can do our partition based on the 0th coordinate (so points and points). Then , just a binary string of length .
By the law of large numbers, most of the measure is on sequences with about ones.Specifically, if we take , then LLN gives us that almost surely (each is sampled iid from Bernoulli(p)), meaning it also converges in measure.
The total measure carried by blocks (reminiscent of typical set in info theory) is
Then, Stirling's approximation gives that the number of such sequences is roughly , where
is the binary entropy. Each individual typical sequence has measure , so you need roughly of them to account for a fixed fraction of the total measure. What we see here is that the number of distinct length- blocks grows exponentially with .
Irrational rotation: Fix a partition into intervals . The word occurs for initial point iff for each , meaning sits in the intersection . Each such intersection is an interval (or empty), and the endpoints of all these intervals come from at most points on . So there are at most distinct words of length . For this is at most . So here, the number of distinct orbit words only grows linearly in .
So even though both systems are ergodic (time averages = space averages), the Bernoulli shift generates exponentially many distinguishable orbit patterns, while the rotation generates barely any. This is the qualitative picture of "orbit complexity."
Note on Initial Conditions
When going through the stat 205b notes, one thing that was unclear is how this discussion depends on the choice of initial partitions.
Metric Entropy
The above formalization of orbit complexity suggests a sort of invariant: the exponential growth rate of distinct orbit words. This is exactly where metric entropy comes in:
For a finite partition and a measure-preserving system , the Shannon entropy of the joined partition (which encodes length- words) grows at most linearly in . So define
and then take the supremum over all finite partitions:
This limit always exists (the sequence is subadditive), and doesn't depend on the choice of representative for the system.
For our two examples:
- Bernoulli shift: . Taking gives , ie. a full "bit" of entropy that is generated per step by a fair coin.
- Irrational rotation: for any irrational . Despite being ergodic, the orbit is in some sense so "geometrically constrained" that no new information is generated each step.
Putting it all Together
still figuring this out
References
- Stat 205b notes by Prof. Alan Hammond
- Statistical Physics of Particles (Kardar)
- A Mathematical Theory of Communication
![[Image goes here]](/static/images/thing.jpg)