Entropy, Relative Entropy, and Information
Scrollable formula. Use Left and Right arrow keys to reveal hidden content.
Scrollable table. Use Left and Right arrow keys to reveal additional columns.
Scrollable figure. Use Left and Right arrow keys to inspect hidden content.
Entropy is not one undifferentiated substance. Several quantities use “minus an average logarithm,” but their inputs, units, invariances, and operational questions differ. Relative entropy is more distinct still: it compares two probability assignments and quantifies distinguishability rather than the uncertainty of one assignment.
Required background. Calculus and Linear Algebra supplies eigenvalues and linear-map language; logarithms, probability, and entropy conventions are defined below. Helpful background. Classical and Variational Mechanics supplies phase-space evolution; Quantum States, Observables, and Measurement supplies state and observable language, while Density Operators, Entanglement, and Reduced States supplies density operators, traces, and partial traces.
Four entropy notions and their jobs
Section titled “Four entropy notions and their jobs”Thermodynamic entropy is an equilibrium state function. Reversible heat exchange defines differences through , while the second law constrains irreversible processes. No microscopic model is required to use it.
For a discrete classical ensemble with probabilities ,
Terms with are assigned . With this Gibbs entropy is dimensionless; restoring physical units multiplies it by . A uniform microcanonical distribution over states gives . Identifying that quantity with thermodynamic entropy additionally requires an equilibrium interpretation, a specified shell convention, and the appropriate large-system assumptions. Tong develops the microcanonical count in Tong, current notes, §§1.2–1.2.2, printed pp. 2–10.
For a discrete random variable with law , Shannon entropy applies the same functional. Base-two logarithms give bits; natural logarithms give nats. It controls average lossless coding uncertainty under a specified probability law Médard 2010, Lecture 1, printed pp. 3–4. Differential entropy for a continuous variable is a different, reference-measure-dependent object: it may be negative, infinite, or coordinate dependent. No continuous formula is being used on this page.
For a density operator in finite dimension,
Here is defined spectrally with the same convention . The von Neumann entropy is the Shannon entropy of the eigenvalues of , not generally the entropy of an arbitrary preparation ensemble representing the same operator. A reduced state may have nonzero von Neumann entropy even when the total bipartite state is pure; in that setting it measures entanglement across the chosen bipartition. Preskill develops these properties in Preskill, Chapter 5, §5.2, equations (5.42)–(5.58), printed pp. 14–18.
| Quantity | Input | Units here | Operational role | Typical evolution statement |
|---|---|---|---|---|
| Thermodynamic | equilibrium macrostate | dimensionless with | heat, work, and allowed macroscopic processes | nondecreasing for an isolated spontaneous process |
| Gibbs | discrete classical ensemble | nats | uncertainty in a microscopic probability law | unchanged by a bijective relabeling of discrete microstates |
| Shannon | discrete random variable | bits or nats | coding uncertainty | depends on the channel and reported variable |
| von Neumann | density operator | nats | mixedness; for a pure bipartite state, entanglement of a chosen part | constant under unitary evolution of the closed state |
The table prevents a shared formula from erasing physical meaning. A Shannon entropy becomes thermodynamic only after one specifies a physical ensemble, coarse graining, constraints, and units. Conversely, thermodynamic entropy need not be interpreted as an observer’s subjective ignorance.
Coarse graining must name the map
Section titled “Coarse graining must name the map”A coarse graining discards specified distinctions: phase-space cells, unresolved observables, a subsystem, or a macroscopic projection. Replacing a fine state by the maximum-entropy state compatible with retained data can increase an assigned coarse-grained Gibbs or von Neumann entropy. Calling that increase thermodynamic requires an additional equilibrium argument.
Other operations behave differently. If a reported discrete label deterministically merges outcomes, its Shannon entropy can decrease. The continuous phase-space Gibbs functional, when defined relative to Liouville measure, is conserved by Hamiltonian flow, while von Neumann entropy is constant under unitary evolution. A monotonicity claim is therefore incomplete until it names the state, the map, the reference measure when one is needed, and the entropy functional.
Relative entropy measures distinguishability
Section titled “Relative entropy measures distinguishability”Let and be distributions on the same finite or countable alphabet . Their relative entropy is
Terms with contribute zero. If for some with , then . Thus finiteness requires . These conventions appear in Polyanskiy and Wu 2016, §1.2, printed pp. 15–17; Kullback and Leibler introduced the hypothesis-discrimination interpretation in Kullback and Leibler 1951, §2, pp. 80–82.
When the support inclusion holds, apply only for indices with :
Equality in every step holds exactly when as distributions. Relative entropy is nevertheless asymmetric and fails the triangle inequality, so it is not a distance metric.
Its decisive monotonicity is data processing. If the same stochastic channel is applied to both hypotheses, then
Discarding observations cannot make two hypotheses easier to distinguish. Polyanskiy and Wu prove positivity and channel data processing in Polyanskiy and Wu 2016, §§2.1–2.2, printed pp. 20–22.
For a finite alphabet, the proof makes the information loss explicit. Write for the probability of reporting given , with . Define and . The log-sum inequality applied separately to each reported outcome gives
Summing over , the left side is because the same channel occurs in both hypotheses; the right side is . The log-sum inequality itself follows from the positivity proof above after normalizing the two nonnegative lists. The support conventions handle zero entries. Thus the theorem describes precisely the loss caused by hiding the input label .
Mutual information is a useful consequence:
It vanishes exactly when and are independent, and it cannot increase when either variable is passed through a local channel. This gives “information” an operational meaning: correlation available for inference, rather than a synonym for thermodynamic entropy.
Exercise: a biased coin and an erasing channel
Section titled “Exercise: a biased coin and an erasing channel”Let describe a biased coin and a fair one. Compute , then pass both laws through a channel that reports only “a toss occurred.”
Solution
Direct substitution gives
The erasing channel maps both outcomes to one symbol, so the two processed distributions are both . Their relative entropy is zero, consistent with data processing. The loss is not a change in either physical coin; it is a loss of data with which to discriminate the hypotheses.
The gravitational boundary
Section titled “The gravitational boundary”Bekenstein–Hawking entropy, Wald entropy, generalized entropy, fine-grained radiation entropy, and the thermodynamic entropy of matter are distinct gravitational or semiclassical constructions. Their definitions, hypotheses, and regimes are supplied in later volumes; no identification among them is made here. This page provides only the probability and quantum-information language. Gravitational definitions belong to Black-Hole Thermodynamics and Semiclassical Gravity, while claims about unitary recovery belong to Black-Hole Information.
Fluctuations, Response, and Susceptibilities next shows how an equilibrium probability law turns uncertainty in an observable into measurable static response.
References
Section titled “References”- Kullback, Solomon, and Richard A. Leibler. “On Information and Sufficiency.” Annals of Mathematical Statistics 22 (1951): 79–86, §2, pp. 80–82. doi:10.1214/aoms/1177729694.
- Médard, Muriel. “Introduction, Entropy, and Mutual Information.” MIT 6.441 Information Theory (Spring 2010), Lecture 1, printed pp. 3–6. MIT OpenCourseWare PDF.
- Polyanskiy, Yury, and Yihong Wu. Information Theory: From Coding to Learning. MIT 6.441 course notes (Spring 2016), §§1.2 and 2.1–2.2, printed pp. 15–22. MIT OpenCourseWare PDF.
- Preskill, John. Quantum Information Theory, Chapter 5, §5.2, equations (5.42)–(5.58), printed pp. 14–18. California Institute of Technology lecture notes. Official PDF.
- Tong, David. Statistical Physics. University of Cambridge Part II Mathematical Tripos lecture notes, current official undated-cover PDF, §§1.2–1.2.2, printed pp. 2–10. Open PDF.