Information Theory Inequalities

Jensen's Inequality, Log Sum Inequality, Data Processing Inequality and Sufficient Statistics, and Fano's Inequality

· 86 min read · 17,051 words

Jensen’s inequality

Motivation: Whenever we have a random variable XX, we often need to look at a function of that variable, f(X)f(X). If the function is perfectly linear (like f(x)=2xf(x) = 2x), the average of the function’s outputs exactly equals the function evaluated at the average input: E[f(X)]=f(E[X])\mathbb{E}[f(X)] = f(\mathbb{E}[X]). However, in nearly all branches of engineering and mathematics, systems are non-linear. In information theory, our entire framework is built on the highly non-linear logarithm function (f(x)=log⁡xf(x) = \log x). Because a curve bends, the “average of the curve at points” is not equal to the “curve of the average of those points.” We need a law that tells us exactly how a function’s geometric curvature biases its expected value. This is Jensen’s Inequality. By bounding how expected values behave inside non-linear functions, Jensen’s Inequality allows us to prove some limits of our communication systems.

Convex and concave functions

To be able to reason about functions on random variables in non-linear systems, we need to define the curvature of the functions more rigorously so we can analyze it.

DefinitionConvexity and concavity (geometric)

A function f(x)f(x) is convex over an interval (a,b)(a, b) if you pick any two points on its curve and draw a straight line (a chord) between them, and that chord always lies strictly above or on the curve. A function is concave if the chord always lies strictly below or on the curve. (Note: f(x)f(x) is concave if −f(x)-f(x) is convex).

DefinitionConvexity (algebraic)

Algebraically, drawing a chord means taking a weighted average of two inputs x1x_1 and x2x_2, using a weight λ\lambda where 0≤λ≤10 \le \lambda \le 1.

A function ff is convex if the function evaluated at the average of the inputs is less than or equal to the average of the function’s outputs:

f(λx1+(1−λ)x2)≤λf(x1)+(1−λ)f(x2)f(\lambda x_1 + (1 - \lambda)x_2) \le \lambda f(x_1) + (1 - \lambda)f(x_2)

DefinitionStrict convexity

A function is strictly convex if equality holds only when λ=0\lambda = 0, λ=1\lambda = 1, or x1=x2x_1 = x_2. (The chord never touches the curve except at the endpoints).

TheoremThe second derivative test

If a function ff has a second derivative that is non-negative (f′′≥0f'' \ge 0) over an interval, the function is convex. If it is strictly positive (f′′>0f'' > 0), it is strictly convex.

ProofUsing Taylor series

Expand f(x)f(x) around a point x0x_0:

f(x)=f(x0)+f′(x0)(x−x0)+f′′(x∗)2(x−x0)2f(x) = f(x_0) + f'(x_0)(x - x_0) + \frac{f''(x^*)}{2}(x - x_0)^2

Since f′′(x∗)≥0f''(x^*) \ge 0, the last term is always non-negative. Therefore, the curve always sits above its tangent line: f(x)≥f(x0)+f′(x0)(x−x0)f(x) \ge f(x_0) + f'(x_0)(x - x_0). If we let x0=λx1+(1−λ)x2x_0 = \lambda x_1 + (1-\lambda)x_2 and plug in x=x1x = x_1 and x=x2x = x_2 respectively, multiplying the resulting inequalities by λ\lambda and (1−λ)(1-\lambda) and adding them together algebraically yields the exact definition of convexity.

∎

Applications to information theory: f(x)=x2,exf(x) = x^2, e^x, and xlog⁡xx \log x (for x≥0x \ge 0) have positive second derivatives, making them strictly convex. f(x)=log⁡xf(x) = \log x has a second derivative of −1/x2-1/x^2. Since probability x>0x > 0, this is strictly negative. Therefore, log⁡x\log x is strictly concave and −log⁡x-\log x is strictly convex. The use case is usually to move both the summation and the probability inside the log in all the information theoretic terms.

We know a chord between two points on a convex curve sits above the curve. Jensen’s Inequality generalizes this algebraic definition from two points to an entire random variable.

TheoremJensen’s inequality

If ff is a convex function and XX is a random variable, then:

E[f(X)]≥f(E[X])\mathbb{E}[f(X)] \ge f(\mathbb{E}[X])

(If ff is strictly convex, equality implies X=E[X]X = \mathbb{E}[X] with probability 1, meaning XX is a deterministic constant with no randomness).

ProofBy induction on discrete distributions

Base case (2 mass points): Let XX take values x1,x2x_1, x_2 with probabilities p1,p2p_1, p_2. By the literal definition of convexity (replacing λ\lambda with p1p_1):

p1f(x1)+p2f(x2)≥f(p1x1+p2x2)p_1 f(x_1) + p_2 f(x_2) \ge f(p_1 x_1 + p_2 x_2)

This is exactly E[f(X)]≥f(E[X])\mathbb{E}[f(X)] \ge f(\mathbb{E}[X]).

Inductive step: Assume the theorem holds for k−1k-1 mass points. We prove it for kk points. Isolate the kk-th term, and re-weight the remaining k−1k-1 probabilities by defining pi′=pi/(1−pk)p_i' = p_i / (1 - p_k):

∑i=1kpif(xi)=pkf(xk)+(1−pk)∑i=1k−1pi′f(xi)\sum_{i=1}^k p_i f(x_i) = p_k f(x_k) + (1 - p_k) \sum_{i=1}^{k-1} p_i' f(x_i)

Apply the inductive hypothesis to the inner summation (since it has k−1k-1 terms), pulling ff outside:

≥pkf(xk)+(1−pk)f(∑i=1k−1pi′xi)\ge p_k f(x_k) + (1 - p_k) f \left( \sum_{i=1}^{k-1} p_i' x_i \right)

We now have exactly two weighted terms: pkp_k and (1−pk)(1-p_k). Apply the base-case convexity definition one final time to pull ff outside everything:

≥f(pkxk+(1−pk)∑i=1k−1pi′xi)=f(∑i=1kpixi)=f(E[X])\ge f \left( p_k x_k + (1 - p_k) \sum_{i=1}^{k-1} p_i' x_i \right) = f \left( \sum_{i=1}^k p_i x_i \right) = f(\mathbb{E}[X])

∎

Consequences of Jensen’s inequality

By passing our information measures through Jensen’s Inequality, we establish the fundamental physical bounds of communication theory.

TheoremInformation inequality (Gibbs’ inequality)

Let p(x)p(x) and q(x)q(x) be two probability mass functions.

D(p∣∣q)≥0D(p\vert{}\vert{}q) \ge 0

(Equality holds if and only if p(x)=q(x)p(x) = q(x) for all xx).

Intuition

You can never build an encoding mechanism for a general language and have it be more efficient than a language-specific encoding mechanism by chance.

ProofLet AA be the support set where p(x)>0p(x) > 0

−D(p∣∣q)=−∑x∈Ap(x)log⁡p(x)q(x)=∑x∈Ap(x)log⁡q(x)p(x)-D(p\vert{}\vert{}q) = - \sum_{x \in A} p(x) \log \frac{p(x)}{q(x)} = \sum_{x \in A} p(x) \log \frac{q(x)}{p(x)}

Because log⁡(t)\log(t) is strictly concave, E[log⁡(X)]≤log⁡(E[X])\mathbb{E}[\log(X)] \le \log(\mathbb{E}[X]). We apply this by bringing the logarithm outside the summation:

≤log⁡(∑x∈Ap(x)q(x)p(x))=log⁡(∑x∈Aq(x))\le \log \left( \sum_{x \in A} p(x) \frac{q(x)}{p(x)} \right) = \log \left( \sum_{x \in A} q(x) \right)

Because probabilities must sum to 1 (or less, if AA is a subset), ∑x∈Aq(x)≤1\sum_{x \in A} q(x) \le 1.

≤log⁡(1)=0\le \log(1) = 0

Therefore, −D(p∣∣q)≤0-D(p\vert{}\vert{}q) \le 0, meaning D(p∣∣q)≥0D(p\vert{}\vert{}q) \ge 0.

∎

CorollaryNon-negativity of mutual information

I(X;Y)≥0I(X; Y) \ge 0

Intuition

You can never have the wire noise be something where the receiver has less information about the sender’s message than random noise.

Proof

Since I(X;Y)=D(p(x,y)∣∣p(x)p(y))I(X;Y) = D(p(x,y) \vert{}\vert{} p(x)p(y)), and all relative entropies are ≥0\ge 0, mutual information is ≥0\ge 0. (Equality holds iff XX and YY are independent).

∎

TheoremMaximum entropy bound

H(X)≤log⁡∣X∣H(X) \le \log \vert{}\mathcal{X}\vert{}

(Entropy is maximized when every symbol is equally likely, i.e., a uniform distribution).

Proof

Let u(x)=1/∣X∣u(x) = 1/\vert{}\mathcal{X}\vert{} be the uniform distribution Calculate D(p∣∣u)=∑p(x)log⁡p(x)1/∣X∣=∑p(x)log⁡p(x)+∑p(x)log⁡∣X∣=−H(X)+log⁡∣X∣D(p\vert{}\vert{}u) = \sum p(x) \log \frac{p(x)}{1/\vert{}\mathcal{X}\vert{}} = \sum p(x) \log p(x) + \sum p(x) \log \vert{}\mathcal{X}\vert{} = -H(X) + \log \vert{}\mathcal{X}\vert{}.

Since D(p∣∣u)≥0D(p\vert{}\vert{}u) \ge 0, we have log⁡∣X∣−H(X)≥0\log \vert{}\mathcal{X}\vert{} - H(X) \ge 0.

∎

TheoremConditioning reduces entropy (information can’t hurt)

H(X∣Y)≤H(X)H(X\vert{}Y) \le H(X)

Intuition

Knowing a second variable YY can only decrease, never increase, your overall uncertainty about XX.

Proof

We know I(X;Y)=H(X)−H(X∣Y)I(X;Y) = H(X) - H(X\vert{}Y). We also know I(X;Y)≥0I(X;Y) \ge 0. Therefore, H(X)−H(X∣Y)≥0H(X) - H(X\vert{}Y) \ge 0.

∎

WarningImportant caveat

This is true on average. A specific, highly unusual observation (e.g., Y=yY=y) might temporarily increase your uncertainty about XX (H(X∣Y=y)>H(X)H(X\vert{}Y=y) > H(X)). However, when weighted across all possible observations of YY, the expected uncertainty mathematically must drop or remain equal.

Medical diagnosis example:

  • Let X∈{Healthy,Sick}X \in \{\text{Healthy}, \text{Sick}\} be a patient’s true state. A disease is very rare so prior probability is P(X=Sick)=0.01P(X=\text{Sick}) = 0.01 and P(X=Healthy)=0.99P(X=\text{Healthy}) = 0.99.

  • Because you are almost certain the patient is healthy, baseline uncertainty is tiny. H(X)=−(0.01log⁡20.01+0.99log⁡20.99)≈0.081 bitsH(X) = -(0.01 \log_2 0.01 + 0.99 \log_2 0.99) \approx 0.081\text{ bits}

  • You run a lab test Y∈{Negative,Positive}Y \in \{\text{Negative}, \text{Positive}\}.

  • The test is imperfect. If it comes back Positive (Y=posY = \text{pos}), the posterior probability updates to an ambiguous coin-flip: P(X=Sick∣Y=pos)=0.50P(X=\text{Sick} \mid Y=\text{pos}) = 0.50 and P(X=Healthy∣Y=pos)=0.50P(X=\text{Healthy} \mid Y=\text{pos}) = 0.50.

  • For the specific observation (Y=posY=\text{pos}): H(X∣Y=pos)=−(0.5log⁡20.5+0.5log⁡20.5)=1.0 bitH(X \mid Y=\text{pos}) = -(0.5 \log_2 0.5 + 0.5 \log_2 0.5) = 1.0\text{ bit} A positive result massively increases your confusion from 0.0810.081 to 1.0 bit1.0\text{ bit}. A calm default of most people being healthy is now a state of total doubt about people after getting a positive on the test.

  • On average across all test outcomes (H(X∣Y)H(X \mid Y)): Most people test negative (Y=negY = \text{neg}), which drives P(X=Sick∣Y=neg)≈0P(X=\text{Sick} \mid Y=\text{neg}) \approx 0, collapsing H(X∣Y=neg)≈0H(X \mid Y=\text{neg}) \approx 0. When weighted together: H(X∣Y)=∑yP(Y=y)H(X∣Y=y)≤H(X)H(X \mid Y) = \sum_y P(Y=y) H(X \mid Y=y) \le H(X) The overwhelming certainty gained on negative tests balances out the rare spike in doubt, ensuring that conditioning reduces entropy on average.

TheoremIndependence bound on entropy

H(X1,X2,…,Xn)≤∑i=1nH(Xi)H(X_1, X_2, \ldots, X_n) \le \sum_{i=1}^n H(X_i)

This means that the total uncertainty of a system is less than or equal to the sum of its individual parts. Equality holds only if all variables are completely independent.

ProofApply the Chain Rule for Entropy

H(X1,…,Xn)=∑i=1nH(Xi∣Xi−1,…,X1)H(X_1, \ldots, X_n) = \sum_{i=1}^n H(X_i \vert{} X_{i-1}, \ldots, X_1). By theorem above, conditioning reduces entropy, so H(Xi∣Xi−1,…,X1)≤H(Xi)H(X_i \vert{} X_{i-1}, \ldots, X_1) \le H(X_i) for every term. Substituting this bound into the summation proves the theorem.

∎

[!APPLICATION] Bounding the Entropy of Unseen Tails via Jensen’s Inequality A common challenge in data systems, from high-speed network telemetry to Natural Language Processing (NLP), is that distributions have massive or infinite supports, but hardware and memory constraints prevent tracking every rare tail event.

Jensen’s inequality gives a guaranteed ceiling on the uncertainty hiding inside an unprofiled tail without needing to store or identify the rare items.


The Setup: Heavy Hitters and the Tail

Suppose a system samples from a discrete distribution. We can afford fast memory to track exact counts for the top kk dominant outcomes (“heavy hitters”), leaving an unprofiled tail:

  • Tracked mass: Ptop=∑i=1kpiP_{\text{top}} = \sum_{i=1}^k p_i
  • Tail mass: Ptail=1−PtopP_{\text{tail}} = 1 - P_{\text{top}}
  • Tail cardinality: At most MM distinct possible items in the tail.

Total entropy splits into the tracked portion and the unobserved tail: H(X)=Htop+Htail=∑i=1k−pilog⁡2pi+∑x∈tail−p(x)log⁡2p(x)H(X) = H_{\text{top}} + H_{\text{tail}} = \sum_{i=1}^k -p_i \log_2 p_i + \sum_{x \in \text{tail}} -p(x) \log_2 p(x)


The Derivation via Jensen’s Inequality

Define the normalized conditional probability distribution over the MM tail items as wi=piPtailw_i = \frac{p_i}{P_{\text{tail}}}, such that ∑i=1Mwi=1\sum_{i=1}^M w_i = 1. The tail’s entropy is:

Htail=∑i=1M−pilog⁡2pi=Ptail∑i=1Mwilog⁡2(1pi)H_{\text{tail}} = \sum_{i=1}^M -p_i \log_2 p_i = P_{\text{tail}} \sum_{i=1}^M w_i \log_2 \left(\frac{1}{p_i}\right)

Because f(t)=log⁡2(t)f(t) = \log_2(t) is strictly concave, Jensen’s inequality states that E[f(T)]≤f(E[T])\mathbb{E}[f(T)] \le f(\mathbb{E}[T]):

∑i=1Mwilog⁡2(1pi)≤log⁡2(∑i=1Mwi1pi)\sum_{i=1}^M w_i \log_2 \left(\frac{1}{p_i}\right) \le \log_2 \left( \sum_{i=1}^M w_i \frac{1}{p_i} \right)

Substitute wi=piPtailw_i = \frac{p_i}{P_{\text{tail}}} into the inner sum:

∑i=1Mwi1pi=∑i=1M(piPtail)1pi=∑i=1M1Ptail=MPtail\sum_{i=1}^M w_i \frac{1}{p_i} = \sum_{i=1}^M \left(\frac{p_i}{P_{\text{tail}}}\right) \frac{1}{p_i} = \sum_{i=1}^M \frac{1}{P_{\text{tail}}} = \frac{M}{P_{\text{tail}}}

Multiplying through by PtailP_{\text{tail}} gives the fundamental tail bound:

Htail≤Ptaillog⁡2(MPtail)H_{\text{tail}} \le P_{\text{tail}} \log_2 \left( \frac{M}{P_{\text{tail}}} \right)

(Equality holds if and only if the tail is perfectly uniform, where every tail item has probability pi=PtailMp_i = \frac{P_{\text{tail}}}{M}.)

This gives an exact bounding bracket on the true source entropy:

Htop≤H(X)≤Htop+Ptaillog⁡2(MPtail)H_{\text{top}} \le H(X) \le H_{\text{top}} + P_{\text{tail}} \log_2 \left( \frac{M}{P_{\text{tail}}} \right)


Where This Is Used

  1. Streaming Network Telemetry (DDoS Detection):
    • The problem: High-speed routers monitor traffic entropy to detect DDoS attacks. Normal traffic is dispersed (high entropy), while flood attacks surge toward a single target (entropy drops sharply). However, on 100 Gbps fiber links, a switch cannot maintain per-flow hash tables for 2322^{32} IPv4 addresses in fast SRAM.
    • The streaming solution: Routers deploy the Misra-Gries heavy-hitter algorithm (keeping only kk board slots). If an IP arrives and is on the board, its count increments; if a slot is open, it takes it; if the board is full, every count decrements by 1. For NN packets, mass-subtractions occur at most Nk+1\frac{N}{k+1} times since we effectively discard k+1 previous observations on every board miss. Any flow exceeding 1k+1\frac{1}{k+1} of total traffic is mathematically guaranteed to stay on the board.
    • Bounding the tail: Packets decremented or unrecorded form the tail. The switch knows the exact residual packet fraction PtailP_{\text{tail}} and upper bounds MM by the total number of unrecorded packets. Using Jensen’s bound Ptaillog⁡2(M/Ptail)P_{\text{tail}} \log_2(M / P_{\text{tail}}), the router establishes certified anomaly thresholds without ever allocating RAM for millions of fleeting tail connections.
  2. Natural Language Processing & Language Model Vocabulary Truncation:
    • The problem: Real-world language vocabularies follow heavy-tailed Zipfian distributions. Language models and compression tools truncate vocabularies to the top KK frequent words (e.g., K=50,000K = 50,000), mapping every other rare word, typo, or foreign token into a single catch-all <UNK> (unknown) token.
    • Bounding perplexity: Evaluating a model’s true cross-entropy or perplexity over an open vocabulary requires accounting for the unseen tail lumped inside <UNK>. By tracking the total empirical probability mass assigned to <UNK> (Ptail=P(UNK)P_{\text{tail}} = P(\text{UNK})) and estimating the remaining vocabulary size MM, Jensen’s inequality guarantees the maximum possible surprise hiding inside that unresolved <UNK> bucket, establishing formal bounds on out-of-vocabulary perplexity.

The log sum inequality

We have used Jensen’s Inequality to prove the limits of a static communication system (e.g., the penalty of a wrong codebook is always ≥0\ge 0). But real telegraph networks are dynamic.

Suppose your telegraph operator operates smoothly in the morning (with source probability p1p_1) and gets highly erratic at night due to drinking (with source probability p2p_2). If an engineer is lazy and tries to build a single “daily average” model by mathematically blending the morning and night probabilities together, do they gain or lose precision?

To prove how uncertainty and penalties behave when we mix distributions, we need a tool that handles the sum of blended ratios. This is the Log Sum Inequality. It is the formal proof that blending distinct signals always destroys information.

TheoremThe log sum inequality

For any two sets of non-negative numbers, a1,a2,…,ana_1, a_2, \ldots, a_n and b1,b2,…,bnb_1, b_2, \ldots, b_n:

∑i=1nailog⁡aibi≥(∑i=1nai)log⁡∑i=1nai∑i=1nbi\sum_{i=1}^n a_i \log \frac{a_i}{b_i} \ge \left( \sum_{i=1}^n a_i \right) \log \frac{\sum_{i=1}^n a_i}{\sum_{i=1}^n b_i}

Conventionally, 0log⁡0=00 \log 0 = 0, alog⁡(a/0)=∞a \log (a/0) = \infty, and 0log⁡(0/0)=00 \log (0/0) = 0 based on continuity.

IntuitionWhy this solves the blending problem

The expression alog⁡(a/b)a \log(a / b) measures the coding penalty when reality (aa) diverges from the assumed probability (bb) used to design your codebook. When a symbol occurs more often than expected, the ratio a/b>1a/b > 1 makes the log term positive, driving up the wasted transmission overhead (because if it occurs more times, it has a higher prior probability and fewer bits could have been used to encode it).

Suppose a telegraph station operates across two shifts with different lengths (represented by weights w1w_1 and w2w_2, where w1+w2=1w_1 + w_2 = 1):

  • Morning (w1w_1): The true probability of a specific symbol is p1p_1, but your codebook assumed q1q_1.
  • Night (w2w_2): The true probability of that symbol shifts to p2p_2, but your codebook assumed q2q_2.

To map this to the Log Sum Inequality, we scale the probabilities by their shift weights: let a1=w1p1a_1 = w_1 p_1 and b1=w1q1b_1 = w_1 q_1.

If you evaluate the cost of this mismatched codebook during each shift individually, you get the left side of the inequality. The weights inside the fraction cancel out (w1p1/w1q1=p1/q1w_1 p_1 / w_1 q_1 = p_1 / q_1), leaving the pure weighted average of the isolated penalties:

Isolated Penalties=w1p1log⁡p1q1+w2p2log⁡p2q2\text{Isolated Penalties} = w_1 p_1 \log \frac{p_1}{q_1} + w_2 p_2 \log \frac{p_2}{q_2}

But suppose a lazy engineer only looks at the blended daily averages to check whether their codebook is good or not: the true blended probability P=w1p1+w2p2P = w_1 p_1 + w_2 p_2 versus the blended assumed probability Q=w1q1+w2q2Q = w_1 q_1 + w_2 q_2. The mismatch calculated on this blended average is the right side:

Blended Penalty=Plog⁡PQ=(w1p1+w2p2)log⁡w1p1+w2p2w1q1+w2q2\text{Blended Penalty} = P \log \frac{P}{Q} = (w_1 p_1 + w_2 p_2) \log \frac{w_1 p_1 + w_2 p_2}{w_1 q_1 + w_2 q_2}

The Log Sum Inequality guarantees:

∑ailog⁡aibi≥Plog⁡PQ\sum a_i \log \frac{a_i}{b_i} \ge P \log \frac{P}{Q}

Why the blended formula hides the physical truth: The core problem lies in when the math allows opposite errors to interact.

The penalty behaves like the function tlog⁡tt \log t. (We look at tlog⁡tt \log t because relative entropy plog⁡(p/q)p \log(p/q) can be algebraically rewritten as q⋅(p/q)log⁡(p/q)q \cdot (p/q) \log(p/q). If we let the ratio p/q=tp/q = t, the penalty for any symbol is driven entirely by the strictly convex shape of tlog⁡tt \log t.)

In the isolated sum, you calculate the penalty as it happens. If the drunk night operator violently overuses a symbol (p2≫q2p_2 \gg q_2), the ratio p2/q2p_2/q_2 is huge. Because tlog⁡tt \log t curves upward sharply, this triggers a big bit penalty. A quiet morning where the symbol was underused (p1<q1p_1 < q_1) cannot travel forward in time to undo those wasted bits. The physical penalty has already been paid.

But in the blended formula, you add the probabilities before calculating the penalty. The overused night symbols get dumped into the same mathematical bucket as the underused morning symbols. Inside the blended fraction PQ\frac{P}{Q}, the morning deficit algebraically cancels out the night excess.

This creates a mathematical illusion. By blending first, the ratio PQ\frac{P}{Q} artificially looks close to 11 (a perfect match). The Log Sum Inequality says that addition before division hides variance. An engineer looking at the blended daily model Plog⁡(P/Q)P \log(P/Q) will see a low theoretical penalty because the math allowed the morning and night errors to erase each other, rendering the engineer blind to the physical penalties the network actually paid during the night shift.

ProofVia Jensen’s inequality

To prove this, we first need to build a strictly convex function.

Let f(t)=tlog⁡tf(t) = t \log t.

First derivative: f′(t)=log⁡t+1f'(t) = \log t + 1 (if base ee; or 1ln⁡2log⁡2t+1ln⁡2\frac{1}{\ln 2} \log_2 t + \frac{1}{\ln 2}).

Second derivative: f′′(t)=1/tf''(t) = 1/t (times a positive constant depending on the log base).

Since our inputs tt will be strictly positive, 1/t>01/t > 0. Because the second derivative is strictly positive, the function f(t)=tlog⁡tf(t) = t \log t is strictly convex.

Now, we set up Jensen’s Inequality: ∑λif(ti)≥f(∑λiti)\sum \lambda_i f(t_i) \ge f(\sum \lambda_i t_i).

To use Jensen’s, we need our weights λi\lambda_i to act like a valid probability distribution (they must sum to 1).

Let A=∑aiA = \sum a_i and B=∑biB = \sum b_i.

We construct our valid probability weights using the bb terms: λi=biB\lambda_i = \frac{b_i}{B}.

We will feed the function the ratio of our terms: ti=aibit_i = \frac{a_i}{b_i}.

Evaluate the left side of Jensen’s (the expected value of the function).

∑iλif(ti)=∑ibiB(aibilog⁡aibi)\sum_i \lambda_i f(t_i) = \sum_i \frac{b_i}{B} \left( \frac{a_i}{b_i} \log \frac{a_i}{b_i} \right)

The bib_i in the numerator and denominator cancel out, leaving:

=1B∑iailog⁡aibi= \frac{1}{B} \sum_i a_i \log \frac{a_i}{b_i}

Evaluate the right side of Jensen’s (the function of the expected value). First, find the expected value inside the function:

∑iλiti=∑ibiBaibi=1B∑iai=AB\sum_i \lambda_i t_i = \sum_i \frac{b_i}{B} \frac{a_i}{b_i} = \frac{1}{B} \sum_i a_i = \frac{A}{B}

Now apply the function f(t)=tlog⁡tf(t) = t \log t to that result:

f(AB)=ABlog⁡ABf\left(\frac{A}{B}\right) = \frac{A}{B} \log \frac{A}{B}

Bring them together. Because f(t)f(t) is convex, Left Side ≥\ge Right Side.

1B∑iailog⁡aibi≥ABlog⁡AB\frac{1}{B} \sum_i a_i \log \frac{a_i}{b_i} \ge \frac{A}{B} \log \frac{A}{B}

Multiply both sides by BB, and you get the Log Sum Inequality:

∑i=1nailog⁡aibi≥Alog⁡AB\sum_{i=1}^n a_i \log \frac{a_i}{b_i} \ge A \log \frac{A}{B}

∎

Consequences: applying it to telecom

The Log Sum Inequality looks like a pretty random inequality, but substituting p(x)p(x) and q(x)q(x) for aa and bb instantly proves two physical properties of communication networks.

Convexity of relative entropy

CorollaryConvexity of relative entropy

If you mix two different communication environments together, the penalty of the blended system is less than or equal to the average penalty of the individual systems.

D(λp1+(1−λ)p2∣∣λq1+(1−λ)q2)≤λD(p1∣∣q1)+(1−λ)D(p2∣∣q2)D(\lambda p_1 + (1-\lambda)p_2 \vert{}\vert{} \lambda q_1 + (1-\lambda)q_2) \le \lambda D(p_1\vert{}\vert{}q_1) + (1-\lambda) D(p_2\vert{}\vert{}q_2)

Proof

We want to evaluate the blended Relative Entropy for a specific symbol xx. We map our variables to the Log Sum Inequality:

Let a1=λp1(x)a_1 = \lambda p_1(x) and a2=(1−λ)p2(x)a_2 = (1-\lambda)p_2(x). (These sum to the blended reality).

Let b1=λq1(x)b_1 = \lambda q_1(x) and b2=(1−λ)q2(x)b_2 = (1-\lambda)q_2(x). (These sum to the blended assumption).

Applying the Log Sum Inequality to these two terms:

a1log⁡a1b1+a2log⁡a2b2≥(a1+a2)log⁡a1+a2b1+b2a_1 \log \frac{a_1}{b_1} + a_2 \log \frac{a_2}{b_2} \ge (a_1 + a_2) \log \frac{a_1 + a_2}{b_1 + b_2}

Substituting our probabilities back in:

λp1(x)log⁡λp1(x)λq1(x)+(1−λ)p2(x)log⁡(1−λ)p2(x)(1−λ)q2(x)≥(λp1(x)+(1−λ)p2(x))log⁡λp1(x)+(1−λ)p2(x)λq1(x)+(1−λ)q2(x)\lambda p_1(x) \log \frac{\lambda p_1(x)}{\lambda q_1(x)} + (1-\lambda) p_2(x) \log \frac{(1-\lambda) p_2(x)}{(1-\lambda) q_2(x)} \ge \big( \lambda p_1(x) + (1-\lambda)p_2(x) \big) \log \frac{\lambda p_1(x) + (1-\lambda)p_2(x)}{\lambda q_1(x) + (1-\lambda)q_2(x)}

Notice the weights λ\lambda and (1−λ)(1-\lambda) cancel out inside the isolated logarithms on the left.

Summing this inequality over all symbols x∈Xx \in \mathcal{X} yields:

λD(p1∣∣q1)+(1−λ)D(p2∣∣q2)≥D(λp1+(1−λ)p2∣∣λq1+(1−λ)q2)\lambda D(p_1\vert{}\vert{}q_1) + (1-\lambda) D(p_2\vert{}\vert{}q_2) \ge D(\lambda p_1 + (1-\lambda)p_2 \vert{}\vert{} \lambda q_1 + (1-\lambda)q_2)

∎

Intuition

Relative entropy (DD) measures distinguishability, how easily you can tell reality (pp) apart from your baseline assumption (qq), so the higher the relative entropy, the louder the mismatch or anomaly screams.

This corollary basically says if we want to detect network issues, optimize codebooks, or spot fraud, should we evaluate our systems in isolated, context-specific chunks, or can we just aggregate everything into a single daily report?

  • The Right Side (Isolated): Because you look at the data in its specific context, every sharp deviation and localized anomaly is fully captured and heavily penalized.
  • The Left Side (Blended): You dump all the data into a single bucket and compare it against a single blended baseline.

The inequality proves that D(blended)≤Average of D(isolated)D(\text{blended}) \le \text{Average of } D(\text{isolated}).

The Practical Consequence: Averaging destroys resolution. When you mix different environments together, opposite extremes (like a morning shift that overuses ‘A’ and a night shift that underuses it) algebraically cancel each other out inside the blended bucket. The aggregate data will artificially look smooth and highly aligned with the generic baseline.

This gives us a rule for data analysis and network diagnostics: Never aggregate data across different contexts if you are trying to measure anomalies or optimize performance. The moment you pool data from different times, locations, or conditions, the convexity of relative entropy guarantees that the distinct “fingerprints” of those errors will mask each other, strictly reducing your ability to see the physical problems in the network.

Concavity of entropy

Claim: Blending predictable systems creates an unpredictable system. “Averaging destroys certainty.”

CorollaryConcavity of entropy

H(λp1+(1−λ)p2)≥λH(p1)+(1−λ)H(p2)H(\lambda p_1 + (1-\lambda)p_2) \ge \lambda H(p_1) + (1-\lambda) H(p_2)

Proof

We can prove this instantly using the convexity of Relative Entropy we just derived. Entropy is simply the maximum possible entropy (log⁡∣X∣\log \vert{}\mathcal{X}\vert{}) minus the relative entropy distance to the uniform distribution u(x)=1/∣X∣u(x) = 1/\vert{}\mathcal{X}\vert{}:

H(p)=log⁡∣X∣−D(p∣∣u)H(p) = \log \vert{}\mathcal{X}\vert{} - D(p\vert{}\vert{}u)

We substitute this definition into the convexity inequality, setting both q1q_1 and q2q_2 to the uniform distribution uu:

D(λp1+(1−λ)p2∣∣u)≤λD(p1∣∣u)+(1−λ)D(p2∣∣u)D(\lambda p_1 + (1-\lambda)p_2 \vert{}\vert{} u) \le \lambda D(p_1\vert{}\vert{}u) + (1-\lambda) D(p_2\vert{}\vert{}u)

Replace the DD terms with their entropy equivalents:

log⁡∣X∣−H(λp1+(1−λ)p2)≤λ(log⁡∣X∣−H(p1))+(1−λ)(log⁡∣X∣−H(p2))\log \vert{}\mathcal{X}\vert{} - H(\lambda p_1 + (1-\lambda)p_2) \le \lambda \big(\log \vert{}\mathcal{X}\vert{} - H(p_1)\big) + (1-\lambda) \big(\log \vert{}\mathcal{X}\vert{} - H(p_2)\big)

The log⁡∣X∣\log \vert{}\mathcal{X}\vert{} terms cleanly cancel out from both sides:

−H(λp1+(1−λ)p2)≤−λH(p1)−(1−λ)H(p2)-H(\lambda p_1 + (1-\lambda)p_2) \le - \lambda H(p_1) - (1-\lambda) H(p_2)

Multiply by −1-1 and flip the inequality:

H(λp1+(1−λ)p2)≥λH(p1)+(1−λ)H(p2)H(\lambda p_1 + (1-\lambda)p_2) \ge \lambda H(p_1) + (1-\lambda) H(p_2)

∎

Intuition

Imagine Operator 1 has a broken telegraph that only types ‘A’ (H(p1)=0H(p_1) = 0 bits). Operator 2 has a broken telegraph that only types ‘B’ (H(p2)=0H(p_2) = 0 bits). The average uncertainty of these two isolated systems is exactly 0. But suppose you walk into the telegraph office and you don’t know which operator is sitting at the desk today (a 50/50 blend, λ=0.5\lambda=0.5). The blended probability of getting an ‘A’ is now 50%, and ‘B’ is 50%. The entropy of this blended system instantly jumps to 1 bit. The math formally proves that when you blur distinct statistical signals together, you permanently destroy structure and inject uncertainty into the universe.

Data processing inequality

Suppose our sender XX transmits a message across a noisy copper wire, and the receiver gets a corrupted signal YY. The receiver decides to plug their machine into a secondary computer to “clean up” the signal, running it through a complex algorithm or a statistical filter to produce a final output ZZ.

In engineering, we model multi-stage pipelines, like running raw data through a software filter, or relaying a signal from a Mars rover (XX) to an orbiter (YY) to an Earth station (ZZ), using Markov chains.

Why do we need them? Without the Markov property, analyzing a set of outcomes in different parts of a multi-stage system requires using the chain rule of probability, where would have to condition every new event on the entire history of all events of the pipeline:

p(x,y,z)=p(x)p(y∣x)p(z∣x,y)p(x, y, z) = p(x) p(y \vert{} x) p(z \vert{} x, y)

If this pipeline had ten steps, the final probability would be conditioned on all nine previous variables, which becomes computationally heavy.

The Markov property lets us decouple complex systems into isolated, local hops. Instead of analyzing the whole network at once, we only need to understand the transition from one node to the very next.

By modeling our system as a step-by-step Markov chain, we can answer whether downstream processing can recover the original message? Can the final filtered output ZZ have more mutual information with the sender XX than the raw, corrupted signal YY originally did?

To prove why processing can never increase information, we first define our sequential pipeline.

Markov chains (X→Y→ZX \rightarrow Y \rightarrow Z)

DefinitionMarkov chain

A sequence of three random variables forms a Markov chain (denoted X→Y→ZX \rightarrow Y \rightarrow Z) if the distribution of ZZ depends only on its immediate predecessor YY, making it conditionally independent of XX.

Mathematically, conditioning on YY separates XX and ZZ into completely independent events: p(x,z∣y)=p(x∣y)p(z∣y)p(x, z \vert{} y) = p(x \vert{} y) p(z \vert{} y)

IntuitionThe physical pipeline

The downstream algorithm ZZ is only fed the received file YY. It has no secret, secondary wire connected directly to the sender XX. Therefore, every single bit of information ZZ knows about XX must have physically passed through the intermediate bottleneck of YY first.

Because of this conditional independence, the joint probability of the entire three-part system factors cleanly into a chain of local, step-by-step probabilities:

FormulaThe Markov property

p(x,y,z)=p(x)p(y∣x)p(z∣y)p(x, y, z) = p(x) p(y \vert{} x) p(z \vert{} y)

Which implies the local probability of ZZ only requires looking one step back: p(z∣x,y)=p(z∣y)p(z \vert{} x, y) = p(z \vert{} y)

Because knowing XX provides absolutely zero new statistical information about the behavior of ZZ once the intermediate bottleneck YY is known, their conditional mutual information is zero: I(X;Z∣Y)=0I(X ; Z \vert{} Y) = 0.

TheoremThe data processing inequality

If X→Y→Z forms a Markov chain, then the information that Z shares with X can never exceed the information that Y shares with X.

I(X;Y)≥I(X;Z)I(X;Y) \ge I(X;Z)

IntuitionPhysical meaning

No algorithm, function, or secondary physical process applied to a received signal can ever increase the amount of information it contains about the original source. Processing can only preserve information or destroy it.

ProofThrough the chain rule for mutual information

We want to calculate the total mutual information between the original sender XX and the entire receiver system (Y,Z)(Y, Z). We can expand this joint mutual information I(X;Y,Z)I(X; Y, Z) in two different directions.

Expansion 1 (start with YY). Using the chain rule, the information XX shares with the whole system is the information it shares with YY, plus the new information it shares with ZZ (given that we already know YY):

I(X;Y,Z)=I(X;Y)+I(X;Z∣Y)I(X; Y, Z) = I(X; Y) + I(X; Z \vert{} Y)

Expansion 2 (start with ZZ). Alternatively, we can expand it backwards. The information XX shares with the whole system is the information it shares with ZZ, plus the new information it shares with YY (given that we already know ZZ):

I(X;Y,Z)=I(X;Z)+I(X;Y∣Z)I(X; Y, Z) = I(X; Z) + I(X; Y \vert{} Z)

Equating and simplifying. Because both expansions equal the exact same total I(X;Y,Z)I(X;Y,Z), we set them equal to each other:

I(X;Y)+I(X;Z∣Y)=I(X;Z)+I(X;Y∣Z)I(X; Y) + I(X; Z \vert{} Y) = I(X; Z) + I(X; Y \vert{} Z)

Now, we apply our physical constraint. Because X → Y → Z is a Markov chain, we established that I(X;Z∣Y)=0I(X; Z \vert{} Y) = 0. (Once you have the raw signal Y, the processed signal Z tells you absolutely nothing new about X). Substitute 0 into the left side of the equation:

I(X;Y)=I(X;Z)+I(X;Y∣Z)I(X; Y) = I(X; Z) + I(X; Y \vert{} Z)

Finally, we proved via Jensen’s Inequality that all mutual information quantities are non-negative. Therefore, I(X;Y∣Z)≥0I(X; Y \vert{} Z) \ge 0. If I(X;Y)I(X;Y) is equal to I(X;Z)I(X;Z) plus some positive number, then I(X;Y)I(X;Y) must be greater than or equal to I(X;Z)I(X;Z).

I(X;Y)≥I(X;Z)I(X; Y) \ge I(X; Z)

∎

Consequences and corollaries

CorollaryDeterministic processing

What if the downstream processing isn’t a random variable, but a strict deterministic function (like a software algorithm)? Let Z=g(Y)Z = g(Y). Because ZZ is strictly calculated from YY, it perfectly forms the Markov chain X→Y→g(Y)X \rightarrow Y \rightarrow g(Y). Therefore:

I(X;Y)≥I(X;g(Y))I(X; Y) \ge I(X; g(Y))

This proves that you cannot gain information by applying a function to your data. If you take a noisy audio file and run it through a complex equalizer function, the resulting file might sound better to a human, but mathematically, it contains less (or equal) information about the original studio recording than the raw file did.

When does equality hold?

The only way for I(X;Y)=I(X;Z)I(X; Y) = I(X; Z) to be true is if the leftover term I(X;Y∣Z)I(X; Y \vert{} Z) is exactly 00. This means X→Z→YX \rightarrow Z \rightarrow Y must also form a Markov chain. In engineering terms, this means the processing step ZZ perfectly preserved every single detail of YY that was relevant to XX. (In statistics, a function that achieves this equality is called a Sufficient Statistic).

Sufficient statistics

In our communication systems, we don’t always know the exact physical reality of the wire. Often, there is a hidden parameter θ\theta governing the system (e.g., the exact probability θ\theta that a static burst flips a bit). We cannot observe θ\theta directly, we can only observe a raw sequence of received data XX.

To save bandwidth and storage, an engineer might want to compress that massive raw dataset XX into a small, calculated summary value, T(X)T(X), such as the sample mean or the total number of errors.

Because the parameter generates the data, and the data generates the summary, this forms a strict Markov chain:

θ→X→T(X)\theta \rightarrow X \rightarrow T(X)

By the Data Processing Inequality, we know that processing the raw data into a summary must destroy (or at best, preserve) information about the hidden parameter:

I(θ;T(X))≤I(θ;X)I(\theta; T(X)) \le I(\theta; X)

We need to know: is it mathematically possible to compress the raw data XX into a smaller footprint T(X)T(X) such that we hit exact equality, losing absolutely zero information about the hidden parameter θ\theta?

DefinitionSufficient statistic

A statistic T(X)T(X) is sufficient for θ\theta if it contains all the information in XX about θ\theta. Mathematically, this means it achieves perfect equality in the Data Processing Inequality:

I(θ;T(X))=I(θ;X)I(\theta; T(X)) = I(\theta; X)

By the equality condition of the Data Processing Inequality, for the information to remain perfectly intact, the Markov chain must be reversible. The sequence θ→T(X)→X\theta \rightarrow T(X) \rightarrow X must also form a valid Markov chain. This gives us the formal definition: T(X)T(X) is a sufficient statistic if the raw data XX is conditionally independent of the parameter θ\theta, given T(X)T(X).

IntuitionThe “Downstream” Trade-off

A sufficient statistic preserves 100% of the information about the macro state of the system (θ\theta). It intentionally destroys the micro history of the events (the exact sequence XX).

If you ask a downstream system, “What is the error rate of the wire?” (θ\theta), the aggregate T(X)T(X) provides a mathematically perfect answer. But if you ask, “Did a bit flip at exactly 12:01 PM?”, T(X)T(X) is useless. It cannot reconstruct the raw timeline but it proves the timestamped history was purely irrelevant combinatorial noise with respect to calculating θ\theta.

Examples of sufficient statistics

  1. The coin toss (discrete binary channel). Suppose a noisy wire flips bits with an unknown probability θ\theta. We send a sequence of nn zeroes, and receive a raw sequence of bits X1,X2,…,XnX_1, X_2, \ldots, X_n. Instead of storing the exact sequence of bits (e.g., 0, 1, 1, 0, 1), the engineer simply stores the total number of flipped bits: T(X)=∑Xi=3T(X) = \sum X_i = 3. Is TT a sufficient statistic? Yes. If you know exactly 3 bits flipped out of 5, every single permutation that contains three 1s (like 1,1,1,0,0 or 0,1,0,1,1) is equally likely. Knowing the actual physical parameter θ\theta does not give you any extra predictive power to guess which specific arrangement happened. The sum TT captured 100% of the useful information about θ\theta.

  2. The normal distribution (continuous). If XX is a sequence of normally distributed voltage readings with an unknown mean θ\theta and a known variance of 1, the sample mean Xˉ=1n∑Xi\bar{X} = \frac{1}{n}\sum X_i is a sufficient statistic.

NoteSufficiency does not mean Xˉ\bar{X} is perfectly accurate. If your

sample size nn is small, your sample mean will be a poor estimate of the true θ\theta. But the raw data was also a poor estimate. Sufficiency simply means Xˉ\bar{X} extracts 100% of the clues that actually existed in the raw data.

Once you know the sample mean, the exact scatter of the individual voltage spikes around that mean is driven entirely by the known variance (the system’s baseline noise). The specific pattern of the scatter contains absolutely zero additional mathematical evidence about the true location of θ\theta.

  1. The uniform distribution (continuous). If noise is distributed uniformly between an unknown floor θ\theta and a ceiling θ+1\theta + 1, the sample mean is actually not sufficient. If you only know the mean, θ\theta could still shift up or down depending on the extreme outliers. A sufficient statistic here is the pair of the absolute highest and lowest spikes: T(X)=(max⁡{Xi},min⁡{Xi})T(X) = (\max\{X_i\}, \min\{X_i\}), because they rigidly lock the possible bounds of θ\theta.

Minimal sufficient statistics

While a sufficient statistic guarantees no information about θ\theta is lost, it does not guarantee maximum compression.

For example, if we are tracking the probability of bit flips (θ\theta), storing the pair of values (sum of the first half of the sequence, sum of the second half of the sequence) is technically a sufficient statistic U(X)U(X). It preserves all information about θ\theta. But it is redundant. It stores two numbers when one would do the job.

DefinitionMinimal sufficient statistic

A statistic T(X)T(X) is a minimal sufficient statistic if it maximally compresses the information about θ\theta. Mathematically, T(X)T(X) is minimal if it can be computed as a direct function of every other possible sufficient statistic U(X)U(X).

In our pipeline, this means T(X)T(X) sits at the absolute end of the compression bottleneck: X→U(X)→T(X)X \rightarrow U(X) \rightarrow T(X)

Proving Minimality

To prove a sufficient statistic is minimal, you must show that any further attempt to compress it will strictly break the equality I(θ;T(X))=I(θ;X)I(\theta; T(X)) = I(\theta; X).

Let’s look at why our previous examples are minimal:

  1. The bit flip sum (T(X)=∑XiT(X) = \sum X_i): We saw that U(X)=(Sumfirst_half,Sumsecond_half)U(X) = (Sum_{first\_half}, Sum_{second\_half}) was sufficient. We can compute our single sum T(X)T(X) directly from U(X)U(X) by adding the two values together. However, we cannot go backwards. Knowing T(X)=3T(X) = 3 does not let us compute U(X)U(X) (was it 2+1, or 3+0?). This proves T(X)T(X) is a deeper compression. Why is T(X)T(X) minimal? Because if we compress it even one step further, for example, only storing whether the sum is Even or Odd, or capping the sum at a max of 10, we throw away the exact ratio of 1s to 0s, I(θ;T(X))I(\theta; T(X)) drops, and it is no longer sufficient. Therefore, the exact integer sum is the absolute floor of compression.

  2. The min/max pair for uniform noise (T(X)=(min⁡,max⁡)T(X) = (\min, \max)): Can we compress this pair into a single number, like the median or the difference (max⁡−min⁡)(\max - \min)? If we only store the difference between the highest and lowest spikes, we know the spread of the noise, but we lose the absolute location of the floor. Without the floor, we lose our exact lock on θ\theta. Thus, storing two distinct values is mathematically the smallest possible footprint that retains 100% of the information about a uniform boundary.

Fano’s inequality: the physical limits of guessing

The problem: translating abstract noise into physical error rates. Suppose you are transmitting English letters (∣X∣=26|\mathcal{X}| = 26) over a noisy telegraph wire. The sender types a letter XX, the wire corrupts it into a smudge YY, and the receiving machine runs a decoding algorithm to print a final guess X^=g(Y)\hat{X} = g(Y).

Because the machine calculates its guess strictly from the corrupted signal YY and has no secret line to the sender, this forms a Data Processing Markov chain:

X→Y→X^X \rightarrow Y \rightarrow \hat{X}

We know that physical noise permanently destroys information in the wire, quantified by the conditional entropy H(X∣Y)H(X|Y). But engineers do not measure success in “conditional entropy”, they measure it in the physical probability of an error, Pe=Pr⁡(X^≠X)P_e = \Pr(\hat{X} \neq X).

Fano’s Inequality translates the abstract mathematical noise of the wire directly into a hard, statistical floor for the machine’s error rate.

The theorem

TheoremFano’s inequality

For any estimator X^\hat{X} such that X→Y→X^X \rightarrow Y \rightarrow \hat{X} forms a Markov chain, with error probability Pe=Pr⁡(X^≠X)P_e = \Pr(\hat{X} \neq X), we have:

H(Pe)+Pelog⁡∣X∣≥H(X∣X^)≥H(X∣Y)H(P_e) + P_e \log |\mathcal{X}| \ge H(X|\hat{X}) \ge H(X|Y)

(Here, H(Pe)H(P_e) is the binary entropy of the error event itself: −Pelog⁡Pe−(1−Pe)log⁡(1−Pe)-P_e \log P_e - (1-P_e) \log (1-P_e), and ∣X∣|\mathcal{X}| is the total number of possible symbols in the sender’s alphabet).

Intuition

To understand this inequality, look at it as: Maximum Uncertainty of the Guessing System≥Baseline Noise of the Wire\text{Maximum Uncertainty of the Guessing System} \ge \text{Baseline Noise of the Wire}.

The right side, H(X∣Y)H(X|Y), is the raw baseline noise. It is the minimum uncertainty baked into the system by the physical wire.

The left side defines the maximum possible uncertainty of your machine’s guessing process. Why are there two terms summed together? By the chain rule of entropy, total uncertainty is calculated step-by-step:

  1. H(Pe)H(P_e) (Did the machine fail?): First, you look at the printed guess X^\hat{X}. Is it right or wrong? You don’t know. This is a binary coin flip with probability PeP_e. H(Pe)H(P_e) calculates the exact uncertainty of whether an error even occurred.
  2. Pelog⁡∣X∣P_e \log |\mathcal{X}| (What is the true letter?): If the machine did guess incorrectly (which happens PeP_e amount of the time), what was the sender’s actual letter? It could be any of the 26 letters in the alphabet. The maximum uncertainty of choosing from an alphabet is log⁡∣X∣\log |\mathcal{X}|. Multiplying this by the error rate PeP_e gives you the average uncertainty of the true symbol whenever a failure happens.

The Takeaway: When you add the uncertainty of whether the machine failed to the uncertainty of what the true letter is if it did fail, that total sum must be greater than or equal to the raw noise H(X∣Y)H(X|Y). If a wire has high physical noise, the right side is large. To keep the equation mathematically valid, the error rate PeP_e on the left side is forced to rise.

The proof

ProofVia an error indicator variable

We prove this by tracking the machine’s success using an artificial binary random variable, EE. Let E=1E = 1 if the machine failed (X^≠X\hat{X} \neq X), and E=0E = 0 if the machine succeeded (X^=X\hat{X} = X).

We want to calculate the joint conditional entropy H(E,X∣X^)H(E, X | \hat{X}). We expand this using the Chain Rule for Entropy in two different directions.

Expansion 1 (condition on X first). H(E,X∣X^)=H(X∣X^)+H(E∣X,X^)H(E, X | \hat{X}) = H(X | \hat{X}) + H(E | X, \hat{X}) If we know both the sender’s true symbol XX and the machine’s guess X^\hat{X}, there is absolutely zero uncertainty about whether an error occurred. Therefore, H(E∣X,X^)=0H(E | X, \hat{X}) = 0. H(E,X∣X^)=H(X∣X^)H(E, X | \hat{X}) = H(X | \hat{X})

Expansion 2 (condition on E first). H(E,X∣X^)=H(E∣X^)+H(X∣E,X^)H(E, X | \hat{X}) = H(E | \hat{X}) + H(X | E, \hat{X}) By Theorem 2.6.5 (Conditioning Reduces Entropy), we can drop X^\hat{X} from the first term to upper-bound it: H(E∣X^)≤H(E)H(E | \hat{X}) \le H(E). Since EE is a simple binary coin flip (error or no error), its entropy is just H(Pe)H(P_e). Now we bound the second term, H(X∣E,X^)H(X | E, \hat{X}), by averaging over the two possible states of the error indicator EE: H(X∣E,X^)=Pr⁡(E=0)H(X∣X^,E=0)+Pr⁡(E=1)H(X∣X^,E=1)H(X | E, \hat{X}) = \Pr(E = 0)H(X | \hat{X}, E=0) + \Pr(E = 1)H(X | \hat{X}, E=1)

  • Case E=0 (no error). If there is no error, XX is exactly X^\hat{X}. Since we are conditioning on X^\hat{X}, there is 0 uncertainty about XX.
  • Case E=1 (error). If an error occurred, we know XX must be one of the symbols in the alphabet. The absolute maximum uncertainty of any variable is the log of its total possible outcomes. We safely upper bound this by log⁡∣X∣\log |\mathcal{X}|.

Substituting these bounds back into the expansion gives: H(X∣E,X^)≤(1−Pe)(0)+Pelog⁡∣X∣H(X | E, \hat{X}) \le (1 - P_e)(0) + P_e \log |\mathcal{X}| Therefore, Expansion 2 is bounded by: H(E,X∣X^)≤H(Pe)+Pelog⁡∣X∣H(E, X | \hat{X}) \le H(P_e) + P_e \log |\mathcal{X}|

Equating and applying data processing. Equating Expansion 1 and our bound for Expansion 2, we get: H(Pe)+Pelog⁡∣X∣≥H(X∣X^)H(P_e) + P_e \log |\mathcal{X}| \ge H(X|\hat{X}) Finally, because X→Y→X^X \rightarrow Y \rightarrow \hat{X} is a Markov chain, the Data Processing Inequality guarantees the guess cannot have more information than the raw signal: I(X;X^)≤I(X;Y)I(X; \hat{X}) \le I(X; Y). Expanding this into entropies (H(X)−H(X∣X^)≤H(X)−H(X∣Y)H(X) - H(X|\hat{X}) \le H(X) - H(X|Y)) proves that H(X∣X^)≥H(X∣Y)H(X|\hat{X}) \ge H(X|Y). We chain this onto our proof to finish it: H(Pe)+Pelog⁡∣X∣≥H(X∣X^)≥H(X∣Y)H(P_e) + P_e \log |\mathcal{X}| \ge H(X|\hat{X}) \ge H(X|Y)

∎


Useful corollaries: Calculating the exact error floor

1. The absolute error floor: Because the binary entropy of the error event, H(Pe)H(P_e), can never exceed 1 bit (maximum uncertainty), we can replace H(Pe)H(P_e) with 1 to simplify the inequality:

1+Pelog⁡∣X∣≥H(X∣Y)1 + P_e \log |\mathcal{X}| \ge H(X|Y)

Algebraically rearranging this isolates PeP_e, giving an engineer a direct formula for the lowest possible error rate their network can ever achieve, regardless of their software:

Pe≥H(X∣Y)−1log⁡∣X∣P_e \ge \frac{H(X|Y) - 1}{\log |\mathcal{X}|}

2. A tighter bound (alphabet restriction): If your decoding software is smart enough to only guess valid letters (X^∈X\hat{X} \in \mathcal{X}), then when it makes an error (E=1E=1), we know the true symbol must be one of the other (∣X∣−1)(|\mathcal{X}| - 1) letters. We can shrink the penalty term:

H(Pe)+Pelog⁡(∣X∣−1)≥H(X∣Y)H(P_e) + P_e \log(|\mathcal{X}| - 1) \ge H(X|Y)

RemarkBlind guessing (the sharpness of Fano)

Does Fano’s Inequality actually happen in reality, or is it just a loose mathematical bound? Imagine the wire is completely cut. You have no YY at all. Your best algorithm is just blindly guessing the most common letter in the language (probability p1p_1). Your error rate is exactly Pe=1−p1P_e = 1 - p_1. If the rest of the letters are perfectly uniformly distributed, Fano’s inequality evaluates to exactly equal. This proves the theorem is “sharp”, the mathematical floor is a physical reality that can be perfectly reached.


A sidelight: Probability of Collision (The Birthday Paradox in Information Theory)

Fano’s inequality establishes the physical limits of a machine trying to calculate a match for a noisy signal. But what happens if we remove the wire entirely, and just look at two completely independent sources? What is the probability that they randomly “guess” each other, generating the exact same output at the exact same time?

This leads to a beautiful corollary about collisions, which forms the mathematical foundation for cryptography, hashing algorithms, and the Birthday Paradox.

Motivation. Suppose two independent systems (like two password generators) both output symbols using the exact same probability distribution p(x)p(x). What is the probability they randomly collide (Pr⁡(X=X′)\Pr(X = X'))?

To understand this, look at the classic Birthday Paradox. If a system picks uniformly from 1,000 possible passwords, the chance of two systems colliding is exactly 1/10001/1000. (System A picks some password, and System B has a 1/10001/1000 chance of matching whatever A picked).

But what if the system isn’t uniform? What if it is highly biased (low entropy), meaning it heavily favors picking “password123”? The collisions will skyrocket. Information theory formalizes this intuition: the lower the entropy of a system, the more frequently its independent outputs will crash into each other.

To find the total probability of a collision, we must sum up the probability of them colliding on the first symbol, plus colliding on the second symbol, and so on: Pr⁡(X=X′)=∑xPr⁡(X=x)Pr⁡(X′=x)=∑xp2(x)\Pr(X = X') = \sum_x \Pr(X = x)\Pr(X' = x) = \sum_x p^2(x)

LemmaCollision probability

If XX and X′X' are independent and identically distributed (i.i.d.) with entropy H(X)H(X), the absolute minimum probability that they randomly collide is bounded strictly by their entropy, not by the raw number of options:

Pr⁡(X=X′)≥2−H(X)\Pr(X = X') \ge 2^{-H(X)}

(Equality holds if and only if the generator is perfectly uniform. The lower the entropy, the higher the collision rate.)

IntuitionWhat does 2−H(X)2^{-H(X)} actually mean?

Raising 2 to the power of negative entropy might look like abstract algebra, but it just represents a very tangible physical concept: the effective alphabet size.

Think of 2H(X)2^{H(X)} as the number of “equally likely choices” the system acts like it has. If a highly biased password generator has an entropy of just 3 bits, it doesn’t matter if it can theoretically generate a million different passwords. Mathematically, it operates as if it only has exactly 23=82^3 = 8 equally likely options.

The value 2−H(X)2^{-H(X)} is just 12H(X)\frac{1}{2^{H(X)}}. So, if your effective pool of choices is 8, the chance of two independent systems randomly landing on the exact same choice is 1/81/8.

The lemma guarantees that the collision rate of any biased system is strictly greater than or equal to this “effective” uniform baseline. As a system becomes more predictable, its entropy shrinks, its effective pool of choices collapses, and the probability of a collision violently spikes.

ProofVia Jensen’s inequality

We want to find a lower bound for ∑p2(x)\sum p^2(x). Let’s rewrite this cleverly as an Expected Value. By definition, the expected value of a function g(x)g(x) is ∑p(x)g(x)\sum p(x)g(x). If we let our function simply be the probability itself, g(x)=p(x)g(x) = p(x), we get: E[p(X)]=∑p(x)p(x)=∑p2(x)\mathbb{E}[p(X)] = \sum p(x) p(x) = \sum p^2(x)

Next, notice that p(x)p(x) can be rewritten algebraically using a base-2 logarithm as 2log⁡p(x)2^{\log p(x)}. Therefore, our collision probability is perfectly equivalent to E[2log⁡p(X)]\mathbb{E}[2^{\log p(X)}].

The function f(y)=2yf(y) = 2^y curves upward sharply (it is strictly convex because its second derivative is positive). Therefore, by Jensen’s Inequality, the Expected Value of the function is always ≥\ge the function of the Expected Value:

E[2log⁡p(X)]≥2E[log⁡p(X)]\mathbb{E}[2^{\log p(X)}] \ge 2^{\mathbb{E}[\log p(X)]}

Now, look at the exponent on the right side. The expected value of log⁡p(X)\log p(X) is literally the definition of negative entropy: E[log⁡p(X)]=∑p(x)log⁡p(x)=−H(X)\mathbb{E}[\log p(X)] = \sum p(x) \log p(x) = -H(X). Substituting this back in proves the lemma:

∑p2(x)≥2−H(X)\sum p^2(x) \ge 2^{-H(X)}

∎

CorollaryCollision of mismatched systems

What if the two systems do not follow the same rules? Suppose operator XX types following English statistics p(x)p(x), but operator X′X' follows French statistics r(x)r(x). They are independent, but mismatched.

The probability they randomly collide is ∑p(x)r(x)\sum p(x)r(x). We apply the exact same Jensen’s Inequality proof, taking the Expected Value relative to operator XX‘s distribution (pp):

Ep[2log⁡r(X)]≥2Ep[log⁡r(X)]\mathbb{E}_p[2^{\log r(X)}] \ge 2^{\mathbb{E}_p[\log r(X)]}

The right side exponent is ∑p(x)log⁡r(x)\sum p(x) \log r(x). We can add and subtract the term p(x)log⁡p(x)p(x) \log p(x) to force it into recognizable information theory metrics:

∑p(x)log⁡r(x)=∑p(x)log⁡p(x)+∑p(x)log⁡r(x)p(x)=−H(p)−D(p∣∣r)\sum p(x) \log r(x) = \sum p(x) \log p(x) + \sum p(x) \log \frac{r(x)}{p(x)} = -H(p) - D(p||r)

The physical meaning: The collision probability between two mismatched systems is driven down by two distinct penalties. It is penalized by the baseline unpredictability of the first operator (H(p)H(p)), and it is penalized further by how far apart their languages are (Relative Entropy, D(p∣∣r)D(p||r)):

Pr⁡(X=X′)≥2−H(p)−D(p∣∣r)\Pr(X = X') \ge 2^{-H(p) - D(p||r)}

How Information Theory drives the Cryptographic Birthday Paradox

In cryptography, hash functions produce outputs of a fixed bit length, nn (like a 256-bit hash). This means there are theoretically 2n2^n possible unique hashes. The famous cryptographic rule of thumb states that a hacker only needs 2n/22^{n/2} random guesses to find a collision since we compare the guessed inputs hash output against all the previous hash outputs.

But this assumes the hash function is perfect. How does the math actually work if the algorithm is flawed? We can use our Information Theory lemma to prove exactly how many guesses an attack requires based on the system’s actual entropy.

1. The single-pair probability Our lemma proved that the probability of any two specific outputs randomly colliding is governed by the system’s entropy: Pr⁡(X=X′)≥2−H(X)\Pr(X = X') \ge 2^{-H(X)}. If a hash function is perfectly uniform, its entropy equals its bit length: H(X)=nH(X) = n. Therefore, the baseline probability of a single pair colliding is 2−n2^{-n}.

2. The explosive growth of pairs The Birthday Paradox occurs because a hacker making kk guesses doesn’t just make kk comparisons. They compare every new guess against every single previous guess. Generating kk outputs creates approximately k2k^2 unique pairs.

3. Equating pairs to the probability For a hacker to have a high probability of finding a collision, the total number of pairs they generate (k2k^2) must roughly equal the inverse of the single-pair collision probability (2H(X)2^{H(X)}): k2≈2H(X)k^2 \approx 2^{H(X)}

Take the square root of both sides to find kk (the number of guesses required): k≈2H(X)=2H(X)/2k \approx \sqrt{2^{H(X)}} = 2^{H(X) / 2}

IntuitionThe catastrophic failure of low entropy

The formula k=2H(X)/2k = 2^{H(X) / 2} perfectly bridges Information Theory and Cryptography.

If a 256-bit hash function is perfectly uniform, H(X)=256H(X) = 256. The hacker needs 2256/2=21282^{256 / 2} = 2^{128} guesses. This is the standard cryptographic security floor.

But suppose the algorithm has a slight mathematical bias. It still spits out 256 physical zeros and ones, but its true entropy H(X)H(X) is only 80 bits. The physical output looks the same, but our formula reveals the reality: the number of guesses required to break the system instantly collapses to 280/2=2402^{80 / 2} = 2^{40}. A system you thought would take supercomputers a billion years to crack can now be broken by a laptop in a few hours.

The lemma proves that raw bit length (nn) does not protect you from the Birthday Paradox, only true entropy (H(X)H(X)) does.

Nonnegativity of entropy

TheoremEntropy is sandwiched

0≤H(X)≤log⁡∣X∣0 \le H(X) \le \log \vert{}\mathcal{X}\vert{}

The upper bound was proved above (maximum entropy bound). The lower bound holds with equality if and only if XX is deterministic.

Proof

On the support, 0<p(x)≤10 < p(x) \le 1, so −log⁡p(x)≥0-\log p(x) \ge 0. Entropy is H(X)=E[−log⁡p(X)]H(X) = \mathbb{E}[-\log p(X)], an average of non-negative numbers, so it is non-negative. The average is zero only if every term is zero, i.e. p(x)=1p(x) = 1 for the single symbol in the support.

∎

Intuition

An operator can be completely boring (a broken key that only types ‘A’ costs 0 bits per symbol), but an operator can never deliver “negative surprise”. Hold on to this: it is the first property that breaks when we move from discrete letters to continuous voltages.

Equality conditions

NoteWhen are the inequalities above tight?

  • Jensen: for strictly convex ff, equality iff XX is constant with probability 1.
  • Information inequality: D(p∣∣q)=0D(p\vert{}\vert{}q) = 0 iff p(x)=q(x)p(x) = q(x) for all xx.
  • Log sum inequality: equality iff ai/bia_i / b_i is the same constant for every ii. (Jensen applied to the strictly convex tlog⁡tt \log t is tight only when all the ratios ti=ai/bit_i = a_i / b_i coincide.) In the telegraph story: blending the shifts loses nothing exactly when the morning and night shifts make the same proportional mistake, so there is no excess in one bucket for a deficit in the other to cancel.
  • Non-negativity of mutual information: I(X;Y)=0I(X;Y) = 0 iff XX and YY are independent.
  • Conditioning reduces entropy: H(X∣Y)=H(X)H(X\vert{}Y) = H(X) iff XX and YY are independent.
  • Independence bound: H(X1,…,Xn)=∑iH(Xi)H(X_1, \ldots, X_n) = \sum_i H(X_i) iff the XiX_i are mutually independent.

Mutual information identities

FormulaFour ways to write mutual information

I(X;Y)=H(X)−H(X∣Y)I(X;Y) = H(X) - H(X\vert{}Y) I(X;Y)=H(Y)−H(Y∣X)I(X;Y) = H(Y) - H(Y\vert{}X) I(X;Y)=H(X)+H(Y)−H(X,Y)I(X;Y) = H(X) + H(Y) - H(X,Y) I(X;X)=H(X)I(X;X) = H(X)

Proof

Start from I(X;Y)=∑x,yp(x,y)log⁡p(x,y)p(x)p(y)I(X;Y) = \sum_{x,y} p(x,y) \log \frac{p(x,y)}{p(x)p(y)} and write p(x,y)=p(x∣y)p(y)p(x,y) = p(x\vert{}y)p(y). The log becomes log⁡p(x∣y)p(x)=−log⁡p(x)+log⁡p(x∣y)\log \frac{p(x\vert{}y)}{p(x)} = -\log p(x) + \log p(x\vert{}y). Averaging over p(x,y)p(x,y) gives H(X)−H(X∣Y)H(X) - H(X\vert{}Y). Factoring the other way, p(x,y)=p(y∣x)p(x)p(x,y) = p(y\vert{}x)p(x), gives the second line. The third line follows by substituting the chain rule H(X∣Y)=H(X,Y)−H(Y)H(X\vert{}Y) = H(X,Y) - H(Y) into the first. The fourth sets Y=XY = X, where H(X∣X)=0H(X\vert{}X) = 0.

∎

Intuition

The third identity is the Venn diagram picture: two circles with areas H(X)H(X) and H(Y)H(Y), their union is H(X,Y)H(X,Y), and the overlap is I(X;Y)I(X;Y). The fourth says a perfect wire (the receiver sees exactly what was typed) carries the full entropy of the source. This is why entropy is sometimes called self-information.

The second law for Markov chains

The data processing inequality looked at one pipeline X→Y→ZX \rightarrow Y \rightarrow Z. Now suppose a message is relayed through a long chain of identical relay stations, X1→X2→X3→⋯X_1 \rightarrow X_2 \rightarrow X_3 \rightarrow \cdots, each with the same transition matrix. What happens to the signal as the number of hops grows? We need one more tool first.

LemmaChain rule for relative entropy

D(p(x,y)∣∣q(x,y))=D(p(x)∣∣q(x))+D(p(y∣x)∣∣q(y∣x))D(p(x,y)\vert{}\vert{}q(x,y)) = D(p(x)\vert{}\vert{}q(x)) + D(p(y\vert{}x)\vert{}\vert{}q(y\vert{}x))

where the conditional relative entropy is the average penalty of the conditional codebooks:

D(p(y∣x)∣∣q(y∣x))=∑x,yp(x,y)log⁡p(y∣x)q(y∣x)D(p(y\vert{}x)\vert{}\vert{}q(y\vert{}x)) = \sum_{x,y} p(x,y) \log \frac{p(y\vert{}x)}{q(y\vert{}x)}

Proof

Write p(x,y)q(x,y)=p(x)q(x)⋅p(y∣x)q(y∣x)\frac{p(x,y)}{q(x,y)} = \frac{p(x)}{q(x)} \cdot \frac{p(y\vert{}x)}{q(y\vert{}x)}, take the log of the product as a sum of logs, and average over p(x,y)p(x,y).

∎

TheoremSecond law of thermodynamics (for Markov chains)

Let X1→X2→⋯X_1 \rightarrow X_2 \rightarrow \cdots be a Markov chain with a fixed transition matrix.

  1. If μn\mu_n and μn′\mu_n' are the distributions of XnX_n obtained from two different starting distributions, then D(μn∣∣μn′)D(\mu_n\vert{}\vert{}\mu_n') is non-increasing in nn.
  2. If μ\mu is a stationary distribution, D(μn∣∣μ)D(\mu_n\vert{}\vert{}\mu) is non-increasing in nn.
  3. If the stationary distribution is uniform, H(Xn)H(X_n) is non-decreasing in nn.
  4. If the chain is stationary, H(Xn∣X1)H(X_n\vert{}X_1) is non-decreasing in nn.
Proof

(1) Let pp and qq be the joint distributions of (Xn,Xn+1)(X_n, X_{n+1}) under the two starting points. Expand the joint relative entropy with the chain rule in both directions:

D(p(xn,xn+1)∣∣q(xn,xn+1))=D(p(xn)∣∣q(xn))+D(p(xn+1∣xn)∣∣q(xn+1∣xn))D(p(x_n, x_{n+1})\vert{}\vert{}q(x_n, x_{n+1})) = D(p(x_n)\vert{}\vert{}q(x_n)) + D(p(x_{n+1}\vert{}x_n)\vert{}\vert{}q(x_{n+1}\vert{}x_n))

=D(p(xn+1)∣∣q(xn+1))+D(p(xn∣xn+1)∣∣q(xn∣xn+1))= D(p(x_{n+1})\vert{}\vert{}q(x_{n+1})) + D(p(x_n\vert{}x_{n+1})\vert{}\vert{}q(x_n\vert{}x_{n+1}))

Both chains use the same relay, so p(xn+1∣xn)=q(xn+1∣xn)p(x_{n+1}\vert{}x_n) = q(x_{n+1}\vert{}x_n) and the second term of the first line is 00. The second term of the second line is a relative entropy, so it is ≥0\ge 0. Therefore D(μn∣∣μn′)≥D(μn+1∣∣μn+1′)D(\mu_n\vert{}\vert{}\mu_n') \ge D(\mu_{n+1}\vert{}\vert{}\mu_{n+1}').

(2) Take μn′=μ\mu_n' = \mu for all nn. A stationary distribution is unchanged by the relay, so it is a valid second chain.

(3) With the uniform distribution uu, we computed in the maximum entropy proof that D(μn∣∣u)=log⁡∣X∣−H(Xn)D(\mu_n\vert{}\vert{}u) = \log \vert{}\mathcal{X}\vert{} - H(X_n). By (2) the left side decreases, so H(Xn)H(X_n) increases.

(4) Chain three facts:

H(Xn∣X1)≥H(Xn∣X1,X2)=H(Xn∣X2)=H(Xn−1∣X1)H(X_n\vert{}X_1) \ge H(X_n\vert{}X_1, X_2) = H(X_n\vert{}X_2) = H(X_{n-1}\vert{}X_1)

Conditioning reduces entropy, then the Markov property (given X2X_2, the older X1X_1 is irrelevant), then stationarity (shift every index by one).

∎

Intuition

Two telegraph offices start with different message habits and push their traffic through identical relay stations. Every hop scrubs away some of the fingerprints that distinguished them, so the two streams become steadily harder to tell apart. This is the data processing inequality applied to relative entropy, repeated over time.

WarningEntropy itself need not increase

“Entropy always increases” is only true when the stationary distribution is uniform. Picture a faulty relay that tends to turn every symbol into ‘E’. Start it with perfectly uniform traffic and the entropy drops hop after hop. The quantity that always shrinks is the distance to the stationary distribution, not the entropy.

Empirical distributions approach the truth on average

TheoremMonotonicity of the empirical divergence

Let X1,…,XnX_1, \ldots, X_n be i.i.d. ∼p(x)\sim p(x), and let p^n\hat{p}_n be the empirical pmf (the frequency table) of the first nn samples. Then

E D(p^n∣∣p)≤E D(p^n−1∣∣p)\mathbb{E}\, D(\hat{p}_n\vert{}\vert{}p) \le \mathbb{E}\, D(\hat{p}_{n-1}\vert{}\vert{}p)

ProofVia convexity of relative entropy

For each ii, let p^(i)\hat{p}^{(i)} be the empirical pmf of the n−1n-1 samples that remain after deleting XiX_i. Each sample XjX_j belongs to n−1n-1 of these leave-one-out sets, each time with weight 1n−1\frac{1}{n-1}, so averaging them gives back the full frequency table:

1n∑i=1np^(i)=p^n\frac{1}{n} \sum_{i=1}^n \hat{p}^{(i)} = \hat{p}_n

By the convexity of relative entropy (with both qq‘s equal to pp):

D(p^n∣∣p)≤1n∑i=1nD(p^(i)∣∣p)D(\hat{p}_n\vert{}\vert{}p) \le \frac{1}{n} \sum_{i=1}^n D(\hat{p}^{(i)}\vert{}\vert{}p)

Take expectations. Each p^(i)\hat{p}^{(i)} is the frequency table of n−1n-1 i.i.d. samples, so it has the same distribution as p^n−1\hat{p}_{n-1}, and the right side becomes E D(p^n−1∣∣p)\mathbb{E}\, D(\hat{p}_{n-1}\vert{}\vert{}p).

∎

Intuition

Logging one more symbol from the operator never, on average, pushes your frequency table further from the operator’s true habits. A single unlucky symbol can, which is exactly the same “on average” caveat as conditioning reduces entropy.

Differential entropy

Real wires do not carry letters, they carry voltages. To reason about continuous signals we replace sums with integrals and probability mass functions with densities f(x)f(x). Most of the toolkit survives the move, but not all of it.

DefinitionDifferential entropy

h(X)=−∫Sf(x)log⁡f(x) dxh(X) = -\int_S f(x) \log f(x)\, dx

where SS is the support of ff. For a random vector we write h(X1,…,Xn)h(X_1, \ldots, X_n) or h(f)h(f).

DefinitionRelative entropy between densities

D(f∣∣g)=∫f(x)log⁡f(x)g(x) dxD(f\vert{}\vert{}g) = \int f(x) \log \frac{f(x)}{g(x)}\, dx

WarningDifferential entropy can be negative

For XX uniform on [0,a][0, a], h(X)=log⁡ah(X) = \log a. With a=1/2a = 1/2 this is −1-1 bit. Differential entropy is not a count of bits: 2h(X)2^{h(X)} behaves like the side length of the effective support, so it changes when you change units (millivolts versus volts) and can dip below zero.

Relative entropy and mutual information do not have this problem. They compare two densities, the units cancel in the ratio, and the Jensen proof of D≥0D \ge 0 goes through unchanged with integrals in place of sums. So D(f∣∣g)≥0D(f\vert{}\vert{}g) \ge 0 and I(X;Y)≥0I(X;Y) \ge 0 still hold.

TheoremWhat carries over

  • Conditioning reduces entropy: h(X∣Y)≤h(X)h(X\vert{}Y) \le h(X), with equality iff XX and YY are independent.
  • Chain rule and independence bound:

h(X1,…,Xn)=∑i=1nh(Xi∣Xi−1,…,X1)≤∑i=1nh(Xi)h(X_1, \ldots, X_n) = \sum_{i=1}^n h(X_i\vert{}X_{i-1}, \ldots, X_1) \le \sum_{i=1}^n h(X_i)

with equality iff the XiX_i are independent.

Proof

Same as the discrete proofs: I(X;Y)=h(X)−h(X∣Y)=D(f(x,y)∣∣f(x)f(y))≥0I(X;Y) = h(X) - h(X\vert{}Y) = D(f(x,y)\vert{}\vert{}f(x)f(y)) \ge 0, and the independence bound follows by applying this term by term in the chain rule.

∎

LemmaAdding independent noise cannot sharpen a signal

If XX and YY are independent, then h(X+Y)≥h(X)h(X + Y) \ge h(X).

Proof

h(X+Y)≥h(X+Y∣Y)=h(X∣Y)=h(X)h(X+Y) \ge h(X+Y\vert{}Y) = h(X\vert{}Y) = h(X)

The first step is conditioning reduces entropy. The second holds because, once Y=yY = y is known, X+YX + Y is just XX shifted by yy, and shifting a density does not change its entropy. The third is independence.

∎

Intuition

If static that has nothing to do with the message is added to the voltage on the wire, the received signal is at least as unpredictable as the clean one. Independent noise can only smear things out.

Differential entropies of common densities

These come up constantly as reference points. All values are in nats (use ln⁡\ln; divide by ln⁡2\ln 2 for bits). Cover & Thomas Table 17.1 lists about twenty more (beta, chi, gamma, Weibull, Student’s tt, and others).

DistributionDensityhh (nats)
Uniform1b−a\frac{1}{b-a} on [a,b][a, b]ln⁡(b−a)\ln(b - a)
Normal12πσ2e−(x−μ)2/2σ2\frac{1}{\sqrt{2\pi\sigma^2}} e^{-(x-\mu)^2 / 2\sigma^2}12ln⁡(2πeσ2)\frac{1}{2}\ln(2\pi e \sigma^2)
Exponential1λe−x/λ\frac{1}{\lambda} e^{-x/\lambda}, x>0x > 01+ln⁡λ1 + \ln \lambda
Laplace12λe−∣x−θ∣/λ\frac{1}{2\lambda} e^{-\vert{}x - \theta\vert{}/\lambda}1+ln⁡(2λ)1 + \ln(2\lambda)
Cauchyλπ(λ2+x2)\frac{\lambda}{\pi(\lambda^2 + x^2)}ln⁡(4πλ)\ln(4\pi\lambda)
Logistice−x(1+e−x)2\frac{e^{-x}}{(1 + e^{-x})^2}22
ProofTwo of the entries

Normal: −ln⁡f(X)=12ln⁡(2πσ2)+(X−μ)22σ2-\ln f(X) = \frac{1}{2}\ln(2\pi\sigma^2) + \frac{(X-\mu)^2}{2\sigma^2}. Taking expectations, E[(X−μ)2]=σ2\mathbb{E}[(X-\mu)^2] = \sigma^2, so h=12ln⁡(2πσ2)+12=12ln⁡(2πeσ2)h = \frac{1}{2}\ln(2\pi\sigma^2) + \frac{1}{2} = \frac{1}{2}\ln(2\pi e\sigma^2).

Exponential: −ln⁡f(X)=ln⁡λ+X/λ-\ln f(X) = \ln\lambda + X/\lambda and E[X]=λ\mathbb{E}[X] = \lambda, so h=ln⁡λ+1h = \ln\lambda + 1.

∎

Notice the normal entry: the entropy of a Gaussian depends only on its variance. Inverting it gives a very useful quantity, the variance a Gaussian would need in order to be exactly as unpredictable as XX:

DefinitionEntropy power (one dimension)

N(X)=12πee2h(X)N(X) = \frac{1}{2\pi e} e^{2h(X)}

(hh in nats). For a Gaussian, N(X)=σ2N(X) = \sigma^2. For anything else, N(X)≤Var⁡(X)N(X) \le \operatorname{Var}(X), as the next theorem shows.

The Gaussian maximizes entropy

TheoremMaximum entropy under a covariance constraint

Let X∈RnX \in \mathbb{R}^n have zero mean and covariance K=E[XXT]K = \mathbb{E}[XX^T]. Then

h(X)≤12log⁡(2πe)n∣K∣h(X) \le \frac{1}{2} \log (2\pi e)^n \vert{}K\vert{}

with equality iff X∼N(0,K)X \sim \mathcal{N}(0, K). (Here ∣K∣\vert{}K\vert{} is the determinant.)

ProofVia the information inequality

Let ϕ\phi be the N(0,K)\mathcal{N}(0, K) density and ff the density of XX. Then

0≤D(f∣∣ϕ)=−h(f)−∫flog⁡ϕ0 \le D(f\vert{}\vert{}\phi) = -h(f) - \int f \log \phi

The key observation: log⁡ϕ(x)=−12xTK−1x−12log⁡(2π)n∣K∣\log \phi(x) = -\frac{1}{2} x^T K^{-1} x - \frac{1}{2}\log (2\pi)^n \vert{}K\vert{} is a quadratic in xx, so its average depends only on the second moments of whatever distribution you average it against. Both ff and ϕ\phi have covariance KK, so ∫flog⁡ϕ=∫ϕlog⁡ϕ=−h(ϕ)\int f \log \phi = \int \phi \log \phi = -h(\phi). Substituting, 0≤−h(f)+h(ϕ)0 \le -h(f) + h(\phi), i.e. h(f)≤h(ϕ)=12log⁡(2πe)n∣K∣h(f) \le h(\phi) = \frac{1}{2}\log(2\pi e)^n \vert{}K\vert{}. Equality iff D(f∣∣ϕ)=0D(f\vert{}\vert{}\phi) = 0, i.e. f=ϕf = \phi.

∎

Intuition

If the wire has a fixed power budget (a fixed variance), the noise that hides the most is Gaussian. This is why Gaussian noise is the worst case engineers design against, and why Gaussian codebooks are the best choice for a power-limited transmitter.

More bounds on entropy and relative entropy

One more consequence of Fano

NoteNoise forces errors

If H(X∣Y)>0H(X\vert{}Y) > 0, then Pe>0P_e > 0. If PeP_e were 00, the left side of Fano’s inequality would be H(0)+0=0H(0) + 0 = 0, which cannot be ≥\ge a positive number. Error-free decoding is possible only when the received signal YY completely determines the sent symbol XX.

The continuous Fano: estimation error

Fano bounds the error of a machine that guesses a letter. The continuous version bounds the error of a machine that estimates a voltage.

TheoremEntropy bound on mean-squared error

Let XX have differential entropy h(X)h(X) (in nats). For any estimate X^\hat{X},

E(X−X^)2≥12πee2h(X)\mathbb{E}(X - \hat{X})^2 \ge \frac{1}{2\pi e} e^{2h(X)}

With side information YY and an estimator X^(Y)\hat{X}(Y),

E(X−X^(Y))2≥12πee2h(X∣Y)\mathbb{E}(X - \hat{X}(Y))^2 \ge \frac{1}{2\pi e} e^{2h(X\vert{}Y)}

Proof

Without side information. The best constant guess is the mean, so E(X−X^)2≥Var⁡(X)\mathbb{E}(X - \hat{X})^2 \ge \operatorname{Var}(X). By the maximum entropy theorem in one dimension, h(X)≤12ln⁡(2πeVar⁡(X))h(X) \le \frac{1}{2}\ln(2\pi e \operatorname{Var}(X)); exponentiating and rearranging gives Var⁡(X)≥12πee2h(X)\operatorname{Var}(X) \ge \frac{1}{2\pi e}e^{2h(X)}.

With side information. For each yy, the same argument applied to the conditional distribution of XX given Y=yY = y gives E[(X−X^(y))2∣Y=y]≥12πee2h(X∣Y=y)\mathbb{E}[(X - \hat{X}(y))^2 \mid Y = y] \ge \frac{1}{2\pi e}e^{2h(X\vert{}Y=y)}. Average over YY and use Jensen on the convex function e2te^{2t}:

E[12πee2h(X∣Y=y)]≥12πee2 E[h(X∣Y=y)]=12πee2h(X∣Y)\mathbb{E}\left[\frac{1}{2\pi e}e^{2h(X\vert{}Y=y)}\right] \ge \frac{1}{2\pi e}e^{2\,\mathbb{E}[h(X\vert{}Y=y)]} = \frac{1}{2\pi e}e^{2h(X\vert{}Y)}

∎

Intuition

The right side is the entropy power of what remains unknown. No estimator can have smaller squared error than the variance of a Gaussian that is just as unpredictable as the leftover uncertainty. As with Fano, the noise floor is set by the wire, not by the cleverness of the software.

Continuity of entropy (the L1L_1 bound)

If two operators have nearly the same letter frequencies, do they have nearly the same entropy? Yes, and we can say exactly how nearly.

TheoremL1L_1 bound on entropy

Let pp and qq be pmfs on X\mathcal{X} with ∥p−q∥1=∑x∣p(x)−q(x)∣≤12\lVert p - q \rVert_1 = \sum_x \vert{}p(x) - q(x)\vert{} \le \frac{1}{2}. Then

∣H(p)−H(q)∣≤−∥p−q∥1log⁡∥p−q∥1∣X∣\vert{}H(p) - H(q)\vert{} \le -\lVert p - q \rVert_1 \log \frac{\lVert p - q \rVert_1}{\vert{}\mathcal{X}\vert{}}

ProofVia the concavity of −tlog⁡t-t \log t

Let f(t)=−tlog⁡tf(t) = -t\log t. It is concave (its second derivative is −1/t-1/t up to a positive constant), with f(0)=f(1)=0f(0) = f(1) = 0, so it is positive on (0,1)(0,1).

Step 1 (one symbol). Consider a chord of ff spanning an interval of width ν≤12\nu \le \frac{1}{2}, from tt to t+νt + \nu. Because ff is concave, its slope is steepest at the ends of [0,1][0,1], so the chord changes the most when it sits at one end: t=0t = 0 or t=1−νt = 1 - \nu. Therefore

∣f(t)−f(t+ν)∣≤max⁡{f(ν),f(1−ν)}=−νlog⁡ν\vert{}f(t) - f(t + \nu)\vert{} \le \max\{f(\nu), f(1-\nu)\} = -\nu \log \nu

(for ν≤12\nu \le \frac{1}{2} the left end wins).

Step 2 (sum over symbols). Let r(x)=∣p(x)−q(x)∣r(x) = \vert{}p(x) - q(x)\vert{} and s=∥p−q∥1=∑xr(x)s = \lVert p - q \rVert_1 = \sum_x r(x). Each r(x)≤s≤12r(x) \le s \le \frac{1}{2}, so by the triangle inequality and Step 1,

∣H(p)−H(q)∣≤∑x∣f(p(x))−f(q(x))∣≤∑x−r(x)log⁡r(x)\vert{}H(p) - H(q)\vert{} \le \sum_x \vert{}f(p(x)) - f(q(x))\vert{} \le \sum_x -r(x)\log r(x)

Step 3 (normalize). Write r(x)=s⋅r(x)sr(x) = s \cdot \frac{r(x)}{s}, where r/sr/s is a pmf:

∑x−r(x)log⁡r(x)=−slog⁡s+s H ⁣(rs)≤−slog⁡s+slog⁡∣X∣\sum_x -r(x)\log r(x) = -s\log s + s\, H\!\left(\frac{r}{s}\right) \le -s\log s + s\log\vert{}\mathcal{X}\vert{}

using the maximum entropy bound on H(r/s)H(r/s). This equals −slog⁡s∣X∣-s\log\frac{s}{\vert{}\mathcal{X}\vert{}}.

∎

Intuition

Entropy is continuous: nearby frequency tables give nearby entropies. But two warnings are built into the formula. The log⁡∣X∣\log\vert{}\mathcal{X}\vert{} term means the same L1L_1 closeness is worth less on a bigger alphabet. The −slog⁡s-s\log s term has infinite slope at s=0s = 0, so entropy is continuous but not Lipschitz: a tiny amount of probability leaked onto rare symbols can move the entropy by much more than its size.

Pinsker’s inequality

LemmaRelative entropy controls L1L_1 distance (Pinsker)

D(p1∣∣p2)≥12ln⁡2∥p1−p2∥12D(p_1\vert{}\vert{}p_2) \ge \frac{1}{2\ln 2}\lVert p_1 - p_2 \rVert_1^2

in bits. In nats the constant is simply 12\frac{1}{2}.

ProofReduce to a coin, then do calculus

Work in nats.

Binary case. For coins with heads probabilities pp and qq, ∥⋅∥1=2∣p−q∣\lVert\cdot\rVert_1 = 2\vert{}p - q\vert{}, so we need pln⁡pq+(1−p)ln⁡1−p1−q≥2(p−q)2p\ln\frac{p}{q} + (1-p)\ln\frac{1-p}{1-q} \ge 2(p-q)^2. Fix pp and let g(q)g(q) be the left side minus the right side. Then g(p)=0g(p) = 0 and

g′(q)=−pq+1−p1−q+4(p−q)=(q−p)[1q(1−q)−4]g'(q) = -\frac{p}{q} + \frac{1-p}{1-q} + 4(p - q) = (q - p)\left[\frac{1}{q(1-q)} - 4\right]

Since q(1−q)≤14q(1-q) \le \frac{1}{4}, the bracket is ≥0\ge 0. So g′≤0g' \le 0 for q≤pq \le p and g′≥0g' \ge 0 for q≥pq \ge p: gg has its minimum at q=pq = p, where it is 00.

General case. Let A={x:p1(x)≥p2(x)}A = \{x : p_1(x) \ge p_2(x)\}, P1=p1(A)P_1 = p_1(A), P2=p2(A)P_2 = p_2(A). Then ∥p1−p2∥1=2(P1−P2)\lVert p_1 - p_2\rVert_1 = 2(P_1 - P_2). Apply the log sum inequality separately to the symbols in AA and in AcA^c:

D(p1∣∣p2)≥P1ln⁡P1P2+(1−P1)ln⁡1−P11−P2D(p_1\vert{}\vert{}p_2) \ge P_1\ln\frac{P_1}{P_2} + (1 - P_1)\ln\frac{1-P_1}{1-P_2}

This is the binary case with p=P1p = P_1, q=P2q = P_2, so it is ≥2(P1−P2)2=12∥p1−p2∥12\ge 2(P_1 - P_2)^2 = \frac{1}{2}\lVert p_1 - p_2 \rVert_1^2.

∎

Intuition

This is the “blending hides variance” story from the log sum section put to work: collapsing the alphabet down to the two buckets AA and AcA^c can only lower relative entropy, and the two-bucket problem is easy. The payoff: if a statistician can barely tell two languages apart (small DD), then no event has very different probabilities under the two. The converse fails: DD can be infinite (a symbol with p1(x)>0=p2(x)p_1(x) > 0 = p_2(x)) while the L1L_1 distance is at most 22.

Local behavior: relative entropy near the truth

DefinitionChi-squared distance

χ2(P,Q)=∑x(P(x)−Q(x))2Q(x)\chi^2(P, Q) = \sum_x \frac{(P(x) - Q(x))^2}{Q(x)}

LemmaRelative entropy is locally quadratic

For PP near QQ (in nats):

D(P∣∣Q)=12χ2(P,Q)+⋯D(P\vert{}\vert{}Q) = \frac{1}{2}\chi^2(P, Q) + \cdots

ProofTaylor expansion

Write P(x)=Q(x)(1+δ(x))P(x) = Q(x)(1 + \delta(x)) with δ\delta small and ∑xQ(x)δ(x)=0\sum_x Q(x)\delta(x) = 0. Then

D(P∣∣Q)=∑xQ(x)(1+δ)ln⁡(1+δ)=∑xQ(x)(δ+δ22+O(δ3))D(P\vert{}\vert{}Q) = \sum_x Q(x)(1+\delta)\ln(1+\delta) = \sum_x Q(x)\left(\delta + \frac{\delta^2}{2} + O(\delta^3)\right)

The linear term vanishes, and ∑xQδ2=χ2(P,Q)\sum_x Q\delta^2 = \chi^2(P,Q).

∎

Intuition

Near a perfect codebook, the penalty for a small mismatch grows like the square of the mismatch: a smooth bowl, not a sharp V. The curvature of that bowl is what Fisher information measures, which is why Fisher information shows up below.

Inequalities for types

Suppose you record a whole shift of nn symbols from the operator. Instead of the exact sequence, look only at its frequency table. The method of types counts sequences by their frequency table, and it turns out that relative entropy is precisely the exponent that governs how surprising a frequency table is.

DefinitionTypes

The type PxnP_{x^n} of a sequence xnx^n is its empirical pmf: Pxn(a)=1n #{i:xi=a}P_{x^n}(a) = \frac{1}{n}\,\#\{i : x_i = a\}. Pn\mathcal{P}_n is the set of all types with denominator nn. The type class T(P)T(P) is the set of all length-nn sequences with type PP.

TheoremNumber of types

∣Pn∣≤(n+1)∣X∣\vert{}\mathcal{P}_n\vert{} \le (n+1)^{\vert{}\mathcal{X}\vert{}}

Proof

A type is determined by the count of each symbol, and each count is one of the n+1n + 1 values 0,1,…,n0, 1, \ldots, n.

∎

TheoremProbability of a sequence depends only on its type

If X1,…,XnX_1, \ldots, X_n are i.i.d. ∼Q\sim Q, then

Qn(xn)=2−n(H(Pxn)+D(Pxn∣∣Q))Q^n(x^n) = 2^{-n(H(P_{x^n}) + D(P_{x^n}\vert{}\vert{}Q))}

Proof

Group the product by symbol. With P=PxnP = P_{x^n}, Qn(xn)=∏aQ(a)nP(a)=2n∑aP(a)log⁡Q(a)Q^n(x^n) = \prod_a Q(a)^{nP(a)} = 2^{n\sum_a P(a)\log Q(a)}, and ∑aP(a)log⁡Q(a)=−H(P)−D(P∣∣Q)\sum_a P(a)\log Q(a) = -H(P) - D(P\vert{}\vert{}Q) by the same add-and-subtract trick used in the mismatched collision corollary.

∎

TheoremSize of a type class

For any P∈PnP \in \mathcal{P}_n,

1(n+1)∣X∣2nH(P)≤∣T(P)∣≤2nH(P)\frac{1}{(n+1)^{\vert{}\mathcal{X}\vert{}}}2^{nH(P)} \le \vert{}T(P)\vert{} \le 2^{nH(P)}

Proof

Upper bound. Under PnP^n, every sequence in T(P)T(P) has probability 2−nH(P)2^{-nH(P)} (previous theorem with Q=PQ = P). The class’s total probability is at most 1, so ∣T(P)∣2−nH(P)≤1\vert{}T(P)\vert{}2^{-nH(P)} \le 1.

Lower bound. First, under PnP^n the class T(P)T(P) is the most likely type class. Using ∣T(P)∣=n!/∏a(nP(a))!\vert{}T(P)\vert{} = n!/\prod_a (nP(a))!, for any other type P^\hat{P}:

Pn(T(P))Pn(T(P^))=∏a(nP^(a))!(nP(a))! P(a)n(P(a)−P^(a))\frac{P^n(T(P))}{P^n(T(\hat{P}))} = \prod_a \frac{(n\hat{P}(a))!}{(nP(a))!}\,P(a)^{n(P(a) - \hat{P}(a))}

Using m!k!≥km−k\frac{m!}{k!} \ge k^{m-k} on each factorial ratio, this is at least ∏a(nP(a))n(P^(a)−P(a))P(a)n(P(a)−P^(a))=nn∑a(P^(a)−P(a))=1\prod_a (nP(a))^{n(\hat{P}(a) - P(a))}P(a)^{n(P(a)-\hat{P}(a))} = n^{n\sum_a(\hat{P}(a) - P(a))} = 1. Then 1=∑P^Pn(T(P^))≤∣Pn∣ Pn(T(P))≤(n+1)∣X∣∣T(P)∣2−nH(P)1 = \sum_{\hat{P}} P^n(T(\hat{P})) \le \vert{}\mathcal{P}_n\vert{}\, P^n(T(P)) \le (n+1)^{\vert{}\mathcal{X}\vert{}}\vert{}T(P)\vert{}2^{-nH(P)}.

∎

TheoremProbability of a type class

For any P∈PnP \in \mathcal{P}_n and any QQ,

1(n+1)∣X∣2−nD(P∣∣Q)≤Qn(T(P))≤2−nD(P∣∣Q)\frac{1}{(n+1)^{\vert{}\mathcal{X}\vert{}}}2^{-nD(P\vert{}\vert{}Q)} \le Q^n(T(P)) \le 2^{-nD(P\vert{}\vert{}Q)}

Proof

Qn(T(P))=∣T(P)∣⋅2−n(H(P)+D(P∣∣Q))Q^n(T(P)) = \vert{}T(P)\vert{}\cdot 2^{-n(H(P) + D(P\vert{}\vert{}Q))}. Plug in the two bounds on ∣T(P)∣\vert{}T(P)\vert{}.

∎

Intuition

There are only polynomially many frequency tables but exponentially many sequences, so all the action is in the exponent. If the operator types English (QQ), the chance that a whole shift looks like French (PP) decays like 2−nD(P∣∣Q)2^{-nD(P\vert{}\vert{}Q)}. Relative entropy is literally the rate at which a wrong-looking day becomes impossible. This is the engine behind hypothesis testing, large deviations, and error exponents.

Combinatorial bounds on entropy

A binary type class is just a binomial coefficient: the number of length-nn bit strings with exactly k=npk = np ones is (nnp)\binom{n}{np}. The type bounds above say (nnp)≈2nH(p)\binom{n}{np} \approx 2^{nH(p)} up to a polynomial factor. Stirling’s formula pins the factor down to about n\sqrt{n}.

LemmaTight bounds on the binomial coefficient (Wozencraft–Reiffen)

For 0<p<10 < p < 1, q=1−pq = 1 - p, with npnp an integer:

18npq≤(nnp)2−nH(p)≤1πnpq\frac{1}{\sqrt{8npq}} \le \binom{n}{np}2^{-nH(p)} \le \frac{1}{\sqrt{\pi npq}}

ProofVia a strong form of Stirling

Use 2πn(ne)n≤n!≤2πn(ne)ne1/(12n)\sqrt{2\pi n}\left(\frac{n}{e}\right)^n \le n! \le \sqrt{2\pi n}\left(\frac{n}{e}\right)^n e^{1/(12n)}.

Upper bound. Use the upper Stirling bound for n!n! and the lower one for (np)!(np)! and (nq)!(nq)!. The (⋅/e)(\cdot/e) powers collapse to p−npq−nq=2nH(p)p^{-np}q^{-nq} = 2^{nH(p)}, leaving

(nnp)≤e1/(12n)2πnpq2nH(p)<1πnpq2nH(p)\binom{n}{np} \le \frac{e^{1/(12n)}}{\sqrt{2\pi npq}}2^{nH(p)} < \frac{1}{\sqrt{\pi npq}}2^{nH(p)}

since e1/(12n)≤e1/12≈1.087<2e^{1/(12n)} \le e^{1/12} \approx 1.087 < \sqrt{2}.

Lower bound. Swap roles: lower Stirling for n!n!, upper for (np)!(np)! and (nq)!(nq)!:

(nnp)≥12πnpq2nH(p)e−112np−112nq\binom{n}{np} \ge \frac{1}{\sqrt{2\pi npq}}2^{nH(p)}e^{-\frac{1}{12np} - \frac{1}{12nq}}

If np≥1np \ge 1 and nq≥3nq \ge 3, the exponential is at least e−1/12−1/36=e−1/9≈0.8948>π2≈0.8862e^{-1/12 - 1/36} = e^{-1/9} \approx 0.8948 > \frac{\sqrt{\pi}}{2} \approx 0.8862, and 12πnpq⋅π2=18npq\frac{1}{\sqrt{2\pi npq}}\cdot\frac{\sqrt{\pi}}{2} = \frac{1}{\sqrt{8npq}}. (The case np≥3np \ge 3, nq≤2nq \le 2 follows by swapping pp and qq.) The only leftover cases are checked by hand: (21)=2≥2\binom{2}{1} = 2 \ge 2, (31)=3≥2.92\binom{3}{1} = 3 \ge 2.92, (42)=6≥5.66\binom{4}{2} = 6 \ge 5.66.

∎

Warning

The lower bound blows up as p→0p \rightarrow 0 or p→1p \rightarrow 1 and is not valid there (where (n0)=1\binom{n}{0} = 1).

Entropy rates of subsets (Han’s inequality)

The independence bound says the whole is at most the sum of its parts: h(X1,…,Xn)≤∑ih(Xi)h(X_1, \ldots, X_n) \le \sum_i h(X_i). Han’s inequality refines this into a whole ladder: the per-symbol entropy of a randomly chosen group of kk variables shrinks steadily as the group gets bigger. (Everything below works equally for discrete entropy HH; we write hh to match the text.)

DefinitionAverage entropy per element of a kk-subset

For S⊆{1,…,n}S \subseteq \{1, \ldots, n\}, let X(S)={Xi:i∈S}X(S) = \{X_i : i \in S\}, and let

hk(n)=1(nk)∑S:∣S∣=kh(X(S))kh_k^{(n)} = \frac{1}{\binom{n}{k}}\sum_{S : \vert{}S\vert{} = k}\frac{h(X(S))}{k}

TheoremHan’s inequality

h1(n)≥h2(n)≥⋯≥hn(n)h_1^{(n)} \ge h_2^{(n)} \ge \cdots \ge h_n^{(n)}

Proof

The last rung, hn(n)≤hn−1(n)h_n^{(n)} \le h_{n-1}^{(n)}. Let X−iX_{-i} denote all variables except XiX_i. For each ii, peel off XiX_i last and then drop conditioning:

h(X1,…,Xn)=h(X−i)+h(Xi∣X−i)≤h(X−i)+h(Xi∣X1,…,Xi−1)h(X_1, \ldots, X_n) = h(X_{-i}) + h(X_i\vert{}X_{-i}) \le h(X_{-i}) + h(X_i\vert{}X_1, \ldots, X_{i-1})

Add these nn inequalities. The last terms sum, by the chain rule, to h(X1,…,Xn)h(X_1, \ldots, X_n):

n h(X1,…,Xn)≤∑i=1nh(X−i)+h(X1,…,Xn)n\,h(X_1, \ldots, X_n) \le \sum_{i=1}^n h(X_{-i}) + h(X_1, \ldots, X_n)

Rearranging, 1nh(X1,…,Xn)≤1n∑i=1nh(X−i)n−1\frac{1}{n}h(X_1, \ldots, X_n) \le \frac{1}{n}\sum_{i=1}^n\frac{h(X_{-i})}{n-1}, which is hn(n)≤hn−1(n)h_n^{(n)} \le h_{n-1}^{(n)}.

Every other rung. Apply the last-rung result to each kk-element subset (treating it as a collection of kk variables), which gives hk(k)≤hk−1(k)h_k^{(k)} \le h_{k-1}^{(k)} for that subset. Averaging over all kk-subsets chosen uniformly preserves the inequality, and the averages are exactly hk(n)h_k^{(n)} and hk−1(n)h_{k-1}^{(n)}.

∎

Intuition

Look at the operator’s output through a window. A single letter, seen alone, looks as random as it can. A window of two letters reveals some structure (‘Q’ is almost always followed by ‘U’), so the entropy per letter drops. Bigger windows reveal more redundancy, on average.

TheoremExponentiated version

For r>0r > 0, let

tk(n)=1(nk)∑S:∣S∣=ker h(X(S))kt_k^{(n)} = \frac{1}{\binom{n}{k}}\sum_{S : \vert{}S\vert{} = k} e^{\frac{r\,h(X(S))}{k}}

Then t1(n)≥t2(n)≥⋯≥tn(n)t_1^{(n)} \ge t_2^{(n)} \ge \cdots \ge t_n^{(n)}.

Proof

Take the last-rung inequality from Han’s proof, multiply by rr, and exponentiate. The exponent on the right is an average, and ete^t is convex, so by Jensen (the arithmetic–geometric mean inequality):

ernh(X1,…,Xn)≤e1n∑ir h(X−i)n−1≤1n∑i=1ner h(X−i)n−1e^{\frac{r}{n}h(X_1,\ldots,X_n)} \le e^{\frac{1}{n}\sum_i \frac{r\,h(X_{-i})}{n-1}} \le \frac{1}{n}\sum_{i=1}^n e^{\frac{r\,h(X_{-i})}{n-1}}

This is tn(n)≤tn−1(n)t_n^{(n)} \le t_{n-1}^{(n)}. Average over subsets exactly as before.

∎

DefinitionConditional entropy per element

gk(n)=1(nk)∑S:∣S∣=kh(X(S)∣X(Sc))kg_k^{(n)} = \frac{1}{\binom{n}{k}}\sum_{S : \vert{}S\vert{} = k}\frac{h(X(S)\vert{}X(S^c))}{k}

the per-element entropy of a kk-subset given everything outside it.

TheoremHan’s inequality for conditional entropy

g1(n)≤g2(n)≤⋯≤gn(n)g_1^{(n)} \le g_2^{(n)} \le \cdots \le g_n^{(n)}

Note the direction is reversed.

Proof

Last rung. Start from the independence bound h(X1,…,Xn)≤∑ih(Xi)h(X_1, \ldots, X_n) \le \sum_i h(X_i) and subtract both sides from n h(X1,…,Xn)n\,h(X_1, \ldots, X_n):

(n−1) h(X1,…,Xn)≥∑i=1n(h(X1,…,Xn)−h(Xi))=∑i=1nh(X−i∣Xi)(n-1)\,h(X_1, \ldots, X_n) \ge \sum_{i=1}^n \big(h(X_1, \ldots, X_n) - h(X_i)\big) = \sum_{i=1}^n h(X_{-i}\vert{}X_i)

Divide by n(n−1)n(n-1): 1nh(X1,…,Xn)≥1n∑ih(X−i∣Xi)n−1\frac{1}{n}h(X_1, \ldots, X_n) \ge \frac{1}{n}\sum_i\frac{h(X_{-i}\vert{}X_i)}{n-1}, which is gn(n)≥gn−1(n)g_n^{(n)} \ge g_{n-1}^{(n)}. Then average over subsets as before.

∎

Intuition

Two forces compete as kk grows. A bigger group has more internal redundancy (pushing per-element entropy down), but it is conditioned on a smaller outside set (pushing it up). The theorem says the loss of outside conditioning always wins.

TheoremHan’s inequality for mutual information

Let

fk(n)=1(nk)∑S:∣S∣=kI(X(S);X(Sc))kf_k^{(n)} = \frac{1}{\binom{n}{k}}\sum_{S : \vert{}S\vert{} = k}\frac{I(X(S); X(S^c))}{k}

Then f1(n)≥f2(n)≥⋯≥fn(n)f_1^{(n)} \ge f_2^{(n)} \ge \cdots \ge f_n^{(n)}.

Proof

I(X(S);X(Sc))=h(X(S))−h(X(S)∣X(Sc))I(X(S); X(S^c)) = h(X(S)) - h(X(S)\vert{}X(S^c)), so fk(n)=hk(n)−gk(n)f_k^{(n)} = h_k^{(n)} - g_k^{(n)}: a decreasing sequence minus an increasing one.

∎

Entropy and Fisher information

Differential entropy measures how hard a signal is to describe. Fisher information measures how precisely a hidden parameter can be estimated from it. The two turn out to be connected by an exact calculus identity, and that identity powers one of the deepest results in the subject: the entropy power inequality.

DefinitionFisher information

For a parametric family f(x;θ)f(x;\theta),

J(θ)=E[(∂∂θln⁡f(X;θ))2]J(\theta) = \mathbb{E}\left[\left(\frac{\partial}{\partial\theta}\ln f(X;\theta)\right)^2\right]

For a location family f(x−θ)f(x - \theta), differentiating in θ\theta is the same as differentiating in xx (up to a sign that is squared away), so JJ depends only on the shape of ff:

J(X)=∫−∞∞f(x)(f′(x)f(x))2dxJ(X) = \int_{-\infty}^{\infty} f(x)\left(\frac{f'(x)}{f(x)}\right)^2 dx

For a Gaussian, f′/f=−(x−μ)/σ2f'/f = -(x - \mu)/\sigma^2, so J=1/σ2J = 1/\sigma^2: a narrow bell is easy to locate, a wide one is hard.

TheoremCramér–Rao inequality

Any unbiased estimator T(X)T(X) of θ\theta satisfies

Var⁡(T)≥1J(θ)\operatorname{Var}(T) \ge \frac{1}{J(\theta)}

ProofVia Cauchy–Schwarz on the score

Let V=∂∂θln⁡f(X;θ)V = \frac{\partial}{\partial\theta}\ln f(X;\theta) (the score). Its mean is ∫∂f∂θdx=∂∂θ∫f dx=0\int \frac{\partial f}{\partial\theta}dx = \frac{\partial}{\partial\theta}\int f\,dx = 0, so Var⁡(V)=J(θ)\operatorname{Var}(V) = J(\theta). Unbiasedness says ∫T(x)f(x;θ)dx=θ\int T(x)f(x;\theta)dx = \theta; differentiating in θ\theta gives E[TV]=1\mathbb{E}[TV] = 1, and since E[V]=0\mathbb{E}[V] = 0 this is Cov⁡(T,V)=1\operatorname{Cov}(T, V) = 1. By Cauchy–Schwarz, 1=Cov⁡(T,V)2≤Var⁡(T)Var⁡(V)1 = \operatorname{Cov}(T,V)^2 \le \operatorname{Var}(T)\operatorname{Var}(V).

∎

Theoremde Bruijn’s identity

Let XX have finite variance and density ff, and let Z∼N(0,1)Z \sim \mathcal{N}(0,1) be independent. Then (entropy in nats)

∂∂th(X+tZ)=12J(X+tZ)\frac{\partial}{\partial t}h(X + \sqrt{t}Z) = \frac{1}{2}J(X + \sqrt{t}Z)

and in particular, if the limit exists, ∂∂th(X+tZ)∣t=0=12J(X)\frac{\partial}{\partial t}h(X + \sqrt{t}Z)\Big\vert{}_{t=0} = \frac{1}{2}J(X).

ProofVia the heat equation

Let Yt=X+tZY_t = X + \sqrt{t}Z with density gt(y)g_t(y), the convolution of ff with a Gaussian of variance tt. Differentiating the Gaussian kernel directly shows that gtg_t solves the heat equation:

∂gt∂t=12∂2gt∂y2\frac{\partial g_t}{\partial t} = \frac{1}{2}\frac{\partial^2 g_t}{\partial y^2}

Differentiate h(Yt)=−∫gtln⁡gt dyh(Y_t) = -\int g_t\ln g_t\,dy:

∂∂th(Yt)=−∫∂gt∂tdy−∫∂gt∂tln⁡gt dy\frac{\partial}{\partial t}h(Y_t) = -\int\frac{\partial g_t}{\partial t}dy - \int\frac{\partial g_t}{\partial t}\ln g_t\,dy

The first term is −∂∂t∫gt=0-\frac{\partial}{\partial t}\int g_t = 0. Substitute the heat equation into the second and integrate by parts:

−12∫∂2gt∂y2ln⁡gt dy=−12[∂gt∂yln⁡gt]−∞∞+12∫1gt(∂gt∂y)2dy-\frac{1}{2}\int\frac{\partial^2 g_t}{\partial y^2}\ln g_t\,dy = -\frac{1}{2}\left[\frac{\partial g_t}{\partial y}\ln g_t\right]_{-\infty}^{\infty} + \frac{1}{2}\int\frac{1}{g_t}\left(\frac{\partial g_t}{\partial y}\right)^2dy

The last integral is 12J(Yt)\frac{1}{2}J(Y_t). The boundary term vanishes: write it as ∂ygtgt⋅gtln⁡gt\frac{\partial_y g_t}{\sqrt{g_t}}\cdot\sqrt{g_t}\ln g_t; the first factor is square-integrable (its square integrates to the Fisher information) and the second goes to 00 in the tails because uln⁡u→0u\ln u \rightarrow 0 as u→0u \rightarrow 0. (Swapping derivatives and integrals needs a dominated-convergence argument; see Barron.)

∎

Intuition

Slowly pour Gaussian static onto the wire. The entropy of the received signal rises, and the rate at which it rises is the signal’s Fisher information. A signal with sharp features (large JJ) gets blurred, and gains entropy, quickly. A signal that is already smooth barely changes.

TheoremEntropy power inequality (EPI)

If XX and YY are independent random nn-vectors with densities, then

22nh(X+Y)≥22nh(X)+22nh(Y)2^{\frac{2}{n}h(X+Y)} \ge 2^{\frac{2}{n}h(X)} + 2^{\frac{2}{n}h(Y)}

ProofStam’s perturbation argument (outline, n=1n = 1)

Add independent Gaussian noise of growing variance to both signals: Xt=X+f(t)Z1X_t = X + \sqrt{f(t)}Z_1 and Yt=Y+g(t)Z2Y_t = Y + \sqrt{g(t)}Z_2, and define

s(t)=22h(Xt)+22h(Yt)22h(Xt+Yt)s(t) = \frac{2^{2h(X_t)} + 2^{2h(Y_t)}}{2^{2h(X_t + Y_t)}}

The EPI is the statement s(0)≤1s(0) \le 1. As t→∞t \rightarrow \infty (with f,g→∞f, g \rightarrow \infty) everything becomes Gaussian and s(∞)=1s(\infty) = 1. With a clever choice of ff and gg, de Bruijn’s identity turns s′(t)s'(t) into an expression in Fisher informations, and the Fisher information inequality

1J(X+Y)≥1J(X)+1J(Y)\frac{1}{J(X + Y)} \ge \frac{1}{J(X)} + \frac{1}{J(Y)}

shows s′(t)≥0s'(t) \ge 0. So ss climbs to 11, and therefore started at most 11. The vector case follows by induction (Stam, Blachman).

∎

Since a Gaussian with entropy hh has 22h=2πeσ22^{2h} = 2\pi e\sigma^2, the EPI can be read as a statement comparing every pair of signals to a Gaussian pair:

TheoremEntropy power inequality (restated)

Let X′X' and Y′Y' be independent Gaussians with h(X′)=h(X)h(X') = h(X) and h(Y′)=h(Y)h(Y') = h(Y). Then

h(X+Y)≥h(X′+Y′)h(X + Y) \ge h(X' + Y')

Intuition

For independent signals, variances add exactly. Entropy powers, the Gaussian-equivalent variances, add at least: the sum is always at least as unpredictable as if both signals had been Gaussian. Gaussians are the extreme case where mixing creates the least new uncertainty, which is the flip side of their being the most uncertain for a given variance. The EPI also strengthens the earlier lemma h(X+Y)≥h(X)h(X + Y) \ge h(X).

Entropy power and the Brunn–Minkowski inequality

The EPI has a geometric twin. Replace “entropy power” with “volume” and “sum of random variables” with “sum of sets”.

DefinitionSet sum (Minkowski sum)

For A,B⊂RnA, B \subset \mathbb{R}^n, A+B={x+y:x∈A,y∈B}A + B = \{x + y : x \in A, y \in B\}. Example: the set sum of two balls of radius 1 is a ball of radius 2.

TheoremBrunn–Minkowski inequality

μ(A+B)1/n≥μ(A)1/n+μ(B)1/n\mu(A + B)^{1/n} \ge \mu(A)^{1/n} + \mu(B)^{1/n}

Equivalently, μ(A+B)≥μ(A′+B′)\mu(A + B) \ge \mu(A' + B'), where A′A' and B′B' are balls with the same volumes as AA and BB. (Compare the restated EPI, where Gaussians play the role of balls.)

Both are endpoints of a single family, indexed by a generalization of entropy.

DefinitionRényi entropy

For 0<r<∞0 < r < \infty, r≠1r \ne 1:

hr(X)=11−rlog⁡(∫fr(x) dx)h_r(X) = \frac{1}{1 - r}\log\left(\int f^r(x)\,dx\right)

  • As r→1r \rightarrow 1: Shannon differential entropy, h1(X)=h(X)h_1(X) = h(X).
  • As r→0r \rightarrow 0: the log of the volume of the support, h0(X)=log⁡μ{x:f(x)>0}h_0(X) = \log\mu\{x : f(x) > 0\}.

The discrete version is Hr(X)=11−rlog⁡∑xp(x)rH_r(X) = \frac{1}{1-r}\log\sum_x p(x)^r.

NoteRényi entropy and the birthday paradox

At r=2r = 2 the discrete version is the collision entropy:

H2(X)=−log⁡∑xp2(x)=−log⁡Pr⁡(X=X′)H_2(X) = -\log\sum_x p^2(x) = -\log\Pr(X = X')

So the collision lemma Pr⁡(X=X′)≥2−H(X)\Pr(X = X') \ge 2^{-H(X)} says exactly that H2(X)≤H(X)H_2(X) \le H(X). More generally HrH_r is non-increasing in rr:

log⁡∣support∣=H0≥H1=H≥H2≥H∞=−log⁡max⁡xp(x)\log\vert{}\text{support}\vert{} = H_0 \ge H_1 = H \ge H_2 \ge H_\infty = -\log\max_x p(x)

The cost of a birthday attack is set by H2H_2, not HH, which is why Shannon entropy only gives an upper estimate of collision resistance.

DefinitionRényi entropy power

Vr(X)=e2nhr(X)(nats),V_r(X) = e^{\frac{2}{n}h_r(X)}\quad(\text{nats}),

so V1(X)=e2nh(X)V_1(X) = e^{\frac{2}{n}h(X)} is the usual entropy power (up to the constant 2πe2\pi e) and V0(X)=μ(support)2/nV_0(X) = \mu(\text{support})^{2/n} is a power of a volume. (Cover & Thomas write VrV_r directly in terms of ∫fr\int f^r with the conjugate exponent r′r', 1r+1r′=1\frac{1}{r} + \frac{1}{r'} = 1; it simplifies to this.)

LemmaStrengthened Young’s inequality

For densities f,gf, g on Rn\mathbb{R}^n, with ∥f∥r=(∫fr)1/r\lVert f\rVert_r = \left(\int f^r\right)^{1/r},

∥f∗g∥r≤(CpCqCr)n/2∥f∥p∥g∥q\lVert f * g\rVert_r \le \left(\frac{C_pC_q}{C_r}\right)^{n/2}\lVert f\rVert_p\lVert g\rVert_q

where 1r=1p+1q−1\frac{1}{r} = \frac{1}{p} + \frac{1}{q} - 1 and Cp=p1/pp′1/p′C_p = \frac{p^{1/p}}{p'^{1/p'}} with 1p+1p′=1\frac{1}{p} + \frac{1}{p'} = 1. (Proof in Beckner and Brascamp–Lieb.)

TheoremOne inequality for the whole family

For independent X,YX, Y, any 0≤r<∞0 \le r < \infty, and any 0≤λ≤10 \le \lambda \le 1:

log⁡Vr(X+Y)≥λlog⁡Vp(X)+(1−λ)log⁡Vq(Y)+H(λ)+1+r1−r[H ⁣(r+λ(1−r)1+r)−H ⁣(r1+r)]\log V_r(X+Y) \ge \lambda\log V_p(X) + (1-\lambda)\log V_q(Y) + H(\lambda) + \frac{1+r}{1-r}\left[H\!\left(\frac{r + \lambda(1-r)}{1+r}\right) - H\!\left(\frac{r}{1+r}\right)\right]

where p=rr+λ(1−r)p = \frac{r}{r + \lambda(1-r)}, q=rr+(1−λ)(1−r)q = \frac{r}{r + (1-\lambda)(1-r)}, and H(⋅)H(\cdot) is the binary entropy function.

ProofSketch

Note the density of X+YX + Y is the convolution f∗gf * g. Take the logarithm of Young’s inequality, rewrite each norm as a Rényi entropy power, and set λ=r′/p′\lambda = r'/p' (so 1−λ=r′/q′1 - \lambda = r'/q'). Collecting the CC constants produces the binary entropy terms. The final algebraic simplification is omitted in the text as well.

∎

CorollaryThe two endpoints

r→1r \rightarrow 1, with λ=V1(X)V1(X)+V1(Y)\lambda = \frac{V_1(X)}{V_1(X) + V_1(Y)}: V1(X+Y)≥V1(X)+V1(Y)V_1(X + Y) \ge V_1(X) + V_1(Y), the entropy power inequality.

r→0r \rightarrow 0, with λ=V0(X)V0(X)+V0(Y)\lambda = \frac{\sqrt{V_0(X)}}{\sqrt{V_0(X)} + \sqrt{V_0(Y)}}: V0(X+Y)≥V0(X)+V0(Y)\sqrt{V_0(X + Y)} \ge \sqrt{V_0(X)} + \sqrt{V_0(Y)}. If AA and BB are the supports of XX and YY, then A+BA + B is the support of X+YX + Y and V0=μ(support)1/n\sqrt{V_0} = \mu(\text{support})^{1/n}, which is the Brunn–Minkowski inequality.

Intuition

Shannon entropy is the log of the effective volume a signal occupies; h0h_0 is the log of its literal volume. Every rr in between is a different way of measuring “how much space” a distribution takes up, and they all obey the same law: adding independent signals inflates the space at least as much as it would for the round, symmetric shape (ball or Gaussian) of the same size.

Inequalities for determinants

Here is a trick that turns information theory into a matrix-inequality factory. If X∼N(0,K)X \sim \mathcal{N}(0, K) in Rn\mathbb{R}^n, then h(X)=12log⁡(2πe)n∣K∣h(X) = \frac{1}{2}\log(2\pi e)^n\vert{}K\vert{}. The determinant is a volume, and Gaussian entropy is the log of that volume. So every entropy inequality applied to Gaussians becomes a determinant inequality for free. Throughout, KK is a symmetric positive (semi)definite n×nn \times n matrix and K(i1,…,ik)K(i_1, \ldots, i_k) is the principal submatrix on those rows and columns.

TheoremKy Fan: log⁡∣K∣\log\vert{}K\vert{} is concave

∣λK1+(1−λ)K2∣≥∣K1∣λ∣K2∣1−λ\vert{}\lambda K_1 + (1-\lambda)K_2\vert{} \ge \vert{}K_1\vert{}^{\lambda}\vert{}K_2\vert{}^{1-\lambda}

ProofVia a random switch

Let X1∼N(0,K1)X_1 \sim \mathcal{N}(0, K_1), X2∼N(0,K2)X_2 \sim \mathcal{N}(0, K_2), and an independent switch θ\theta with Pr⁡(θ=1)=λ\Pr(\theta = 1) = \lambda, Pr⁡(θ=2)=1−λ\Pr(\theta = 2) = 1 - \lambda. Let Z=XθZ = X_\theta. Then ZZ has covariance λK1+(1−λ)K2\lambda K_1 + (1-\lambda)K_2 but is not Gaussian. Using the maximum entropy theorem, then conditioning reduces entropy:

12log⁡(2πe)n∣λK1+(1−λ)K2∣≥h(Z)≥h(Z∣θ)=λ2log⁡(2πe)n∣K1∣+1−λ2log⁡(2πe)n∣K2∣\frac{1}{2}\log(2\pi e)^n\vert{}\lambda K_1 + (1-\lambda)K_2\vert{} \ge h(Z) \ge h(Z\vert{}\theta) = \frac{\lambda}{2}\log(2\pi e)^n\vert{}K_1\vert{} + \frac{1-\lambda}{2}\log(2\pi e)^n\vert{}K_2\vert{}

∎

Intuition

This is the concavity of entropy (blending two operators adds uncertainty) translated into matrices.

TheoremHadamard’s inequality

∣K∣≤∏i=1nKii\vert{}K\vert{} \le \prod_{i=1}^n K_{ii}

with equality iff KK is diagonal.

Proof

Let X∼N(0,K)X \sim \mathcal{N}(0, K). The independence bound gives

12log⁡(2πe)n∣K∣=h(X1,…,Xn)≤∑i=1nh(Xi)=∑i=1n12log⁡2πeKii\frac{1}{2}\log(2\pi e)^n\vert{}K\vert{} = h(X_1, \ldots, X_n) \le \sum_{i=1}^n h(X_i) = \sum_{i=1}^n\frac{1}{2}\log 2\pi e K_{ii}

with equality iff the XiX_i are independent, i.e. Kij=0K_{ij} = 0 for i≠ji \ne j.

∎

Intuition

A box spanned by the columns of a matrix has the largest volume when the edges are perpendicular. Correlation between the coordinates is redundancy, and redundancy shrinks the volume (entropy).

TheoremSzász’s inequality

Let PkP_k be the product of the determinants of all k×kk \times k principal submatrices of a positive definite KK. Then

P1≥P21/(n−11)≥P31/(n−12)≥⋯≥PnP_1 \ge P_2^{1/\binom{n-1}{1}} \ge P_3^{1/\binom{n-1}{2}} \ge \cdots \ge P_n

(Hadamard is the outer comparison P1≥PnP_1 \ge P_n.)

Proof

Let X∼N(0,K)X \sim \mathcal{N}(0, K). Since h(X(S))=12log⁡(2πe)k∣K(S)∣h(X(S)) = \frac{1}{2}\log(2\pi e)^k\vert{}K(S)\vert{} and k(nk)=n(n−1k−1)k\binom{n}{k} = n\binom{n-1}{k-1},

hk(n)=12log⁡2πe+12n(n−1k−1)log⁡Pkh_k^{(n)} = \frac{1}{2}\log 2\pi e + \frac{1}{2n\binom{n-1}{k-1}}\log P_k

Han’s inequality says this decreases in kk, which is the claim.

∎

TheoremAverages of normalized minors

Let

Sk(n)=1(nk)∑∣S∣=k∣K(S)∣1/kS_k^{(n)} = \frac{1}{\binom{n}{k}}\sum_{\vert{}S\vert{} = k}\vert{}K(S)\vert{}^{1/k}

Then

1ntr⁡(K)=S1(n)≥S2(n)≥⋯≥Sn(n)=∣K∣1/n\frac{1}{n}\operatorname{tr}(K) = S_1^{(n)} \ge S_2^{(n)} \ge \cdots \ge S_n^{(n)} = \vert{}K\vert{}^{1/n}

Proof

Take the exponentiated Han inequality with r=2r = 2 (in nats): e2h(X(S))/k=2πe ∣K(S)∣1/ke^{2h(X(S))/k} = 2\pi e\,\vert{}K(S)\vert{}^{1/k}, so tk(n)=2πe Sk(n)t_k^{(n)} = 2\pi e\,S_k^{(n)}.

∎

Note

The outer comparison 1ntr⁡(K)≥∣K∣1/n\frac{1}{n}\operatorname{tr}(K) \ge \vert{}K\vert{}^{1/n} is the arithmetic–geometric mean inequality applied to the eigenvalues of KK.

TheoremA lower bound from conditional variances

Let

Qk=(∏∣S∣=k∣K∣∣K(Sc)∣)1k(nk)Q_k = \left(\prod_{\vert{}S\vert{} = k}\frac{\vert{}K\vert{}}{\vert{}K(S^c)\vert{}}\right)^{\frac{1}{k\binom{n}{k}}}

Then

(∏i=1nσi2)1/n=Q1≤Q2≤⋯≤Qn=∣K∣1/n\left(\prod_{i=1}^n\sigma_i^2\right)^{1/n} = Q_1 \le Q_2 \le \cdots \le Q_n = \vert{}K\vert{}^{1/n}

where σi2=∣K∣∣K(1,…,i−1,i+1,…,n)∣\sigma_i^2 = \frac{\vert{}K\vert{}}{\vert{}K(1, \ldots, i-1, i+1, \ldots, n)\vert{}} is the minimum mean-squared error of linearly predicting XiX_i from all the other coordinates.

Proof

For Gaussians, h(X(S)∣X(Sc))=12log⁡(2πe)k∣K∣∣K(Sc)∣h(X(S)\vert{}X(S^c)) = \frac{1}{2}\log(2\pi e)^k\frac{\vert{}K\vert{}}{\vert{}K(S^c)\vert{}} (with ∣K(∅)∣=1\vert{}K(\emptyset)\vert{} = 1). Plug this into the conditional Han inequality (gk(n)g_k^{(n)} increasing).

∎

CorollarySandwiching a determinant

∏iKii≥∣K∣≥∏iσi2\prod_i K_{ii} \ge \vert{}K\vert{} \ge \prod_i\sigma_i^2

The determinant of a covariance matrix lies between the product of the unconditional variances and the product of the conditional variances (each coordinate given all the others).

Intuition

Total uncertainty is at most “everyone guessed alone” and at least “everyone guessed with full help from everyone else”.

TheoremToeplitz matrices

A matrix is Toeplitz if KijK_{ij} depends only on ∣i−j∣\vert{}i - j\vert{} (the covariance of a stationary process). Let Kk=K(1,…,k)K_k = K(1, \ldots, k). Then

∣K1∣≥∣K2∣1/2≥⋯≥∣Kn−1∣1/(n−1)≥∣Kn∣1/n\vert{}K_1\vert{} \ge \vert{}K_2\vert{}^{1/2} \ge \cdots \ge \vert{}K_{n-1}\vert{}^{1/(n-1)} \ge \vert{}K_n\vert{}^{1/n}

∣Kk∣/∣Kk−1∣\vert{}K_k\vert{}/\vert{}K_{k-1}\vert{} is decreasing in kk, and

lim⁡n→∞∣Kn∣1/n=lim⁡n→∞∣Kn∣∣Kn−1∣\lim_{n\rightarrow\infty}\vert{}K_n\vert{}^{1/n} = \lim_{n\rightarrow\infty}\frac{\vert{}K_n\vert{}}{\vert{}K_{n-1}\vert{}}

Proof

Let (X1,…,Xn)∼N(0,Kn)(X_1, \ldots, X_n) \sim \mathcal{N}(0, K_n). Then

h(Xk∣Xk−1,…,X1)=h(Xk)−h(Xk−1)=12log⁡2πe∣Kk∣∣Kk−1∣h(X_k\vert{}X_{k-1}, \ldots, X_1) = h(X^k) - h(X^{k-1}) = \frac{1}{2}\log 2\pi e\frac{\vert{}K_k\vert{}}{\vert{}K_{k-1}\vert{}}

This conditional entropy is decreasing in kk:

h(Xk∣Xk−1,…,X1)=h(Xk+1∣Xk,…,X2)≥h(Xk+1∣Xk,…,X1)h(X_k\vert{}X_{k-1}, \ldots, X_1) = h(X_{k+1}\vert{}X_k, \ldots, X_2) \ge h(X_{k+1}\vert{}X_k, \ldots, X_1)

(Toeplitz means the process is stationary, so shifting indices changes nothing; then conditioning reduces entropy.) A decreasing sequence has decreasing running averages, and the running average is 1kh(X1,…,Xk)=12log⁡2πe ∣Kk∣1/k\frac{1}{k}h(X_1, \ldots, X_k) = \frac{1}{2}\log 2\pi e\,\vert{}K_k\vert{}^{1/k}, which gives the chain. Finally, a convergent sequence and its running averages (Cesàro means) have the same limit, which gives the last line.

∎

Intuition

For a stationary signal, the uncertainty of the next sample given its whole past (the one-step prediction error) can only improve as the past gets longer, and in the limit it equals the per-sample entropy rate.

TheoremMinkowski’s determinant inequality

∣K1+K2∣1/n≥∣K1∣1/n+∣K2∣1/n\vert{}K_1 + K_2\vert{}^{1/n} \ge \vert{}K_1\vert{}^{1/n} + \vert{}K_2\vert{}^{1/n}

Proof

Let X1∼N(0,K1)X_1 \sim \mathcal{N}(0, K_1) and X2∼N(0,K2)X_2 \sim \mathcal{N}(0, K_2) be independent, so X1+X2∼N(0,K1+K2)X_1 + X_2 \sim \mathcal{N}(0, K_1 + K_2). Apply the EPI:

(2πe)∣K1+K2∣1/n=22nh(X1+X2)≥22nh(X1)+22nh(X2)=(2πe)(∣K1∣1/n+∣K2∣1/n)(2\pi e)\vert{}K_1 + K_2\vert{}^{1/n} = 2^{\frac{2}{n}h(X_1 + X_2)} \ge 2^{\frac{2}{n}h(X_1)} + 2^{\frac{2}{n}h(X_2)} = (2\pi e)\left(\vert{}K_1\vert{}^{1/n} + \vert{}K_2\vert{}^{1/n}\right)

(Here hh is in bits, so 22h/n=(2πe)∣K∣1/n2^{2h/n} = (2\pi e)\vert{}K\vert{}^{1/n}.)

∎

Inequalities for ratios of determinants

LemmaPrediction error as a ratio of determinants

If (X1,…,Xn)∼N(0,Kn)(X_1, \ldots, X_n) \sim \mathcal{N}(0, K_n), the minimum mean-squared error of linearly predicting XnX_n from X1,…,Xn−1X_1, \ldots, X_{n-1} is

σn2=∣Kn∣∣Kn−1∣\sigma_n^2 = \frac{\vert{}K_n\vert{}}{\vert{}K_{n-1}\vert{}}

Proof

Given the past, XnX_n is Gaussian with a mean that is linear in the past and a variance σn2\sigma_n^2 that does not depend on the past values. So

12log⁡2πeσn2=h(Xn∣X1,…,Xn−1)=h(X1,…,Xn)−h(X1,…,Xn−1)=12log⁡2πe∣Kn∣∣Kn−1∣\frac{1}{2}\log 2\pi e\sigma_n^2 = h(X_n\vert{}X_1, \ldots, X_{n-1}) = h(X_1, \ldots, X_n) - h(X_1, \ldots, X_{n-1}) = \frac{1}{2}\log 2\pi e\frac{\vert{}K_n\vert{}}{\vert{}K_{n-1}\vert{}}

∎

Minimizing prediction error over a set of allowed covariance matrices comes up in maximum entropy spectral estimation, which makes concavity of these ratios useful.

TheoremBergstrøm: log⁡(∣Kn∣/∣Kn−p∣)\log(\vert{}K_n\vert{}/\vert{}K_{n-p}\vert{}) is concave in KnK_n

ProofVia a random switch

Ky Fan does not apply directly, since this is a difference of two concave functions. Instead, let X1∼N(0,Sn)X_1 \sim \mathcal{N}(0, S_n), X2∼N(0,Tn)X_2 \sim \mathcal{N}(0, T_n), an independent switch θ\theta with Pr⁡(θ=1)=λ\Pr(\theta = 1) = \lambda, and Z=XθZ = X_\theta, so Kn=λSn+(1−λ)TnK_n = \lambda S_n + (1-\lambda)T_n. Write ZlastZ_{\text{last}} for the last pp coordinates and ZfirstZ_{\text{first}} for the first n−pn - p. Then

λ12log⁡(2πe)p∣Sn∣∣Sn−p∣+(1−λ)12log⁡(2πe)p∣Tn∣∣Tn−p∣=h(Zlast∣Zfirst,θ)\lambda\frac{1}{2}\log(2\pi e)^p\frac{\vert{}S_n\vert{}}{\vert{}S_{n-p}\vert{}} + (1-\lambda)\frac{1}{2}\log(2\pi e)^p\frac{\vert{}T_n\vert{}}{\vert{}T_{n-p}\vert{}} = h(Z_{\text{last}}\vert{}Z_{\text{first}}, \theta)

≤h(Zlast∣Zfirst)≤12log⁡(2πe)p∣Kn∣∣Kn−p∣\le h(Z_{\text{last}}\vert{}Z_{\text{first}}) \le \frac{1}{2}\log(2\pi e)^p\frac{\vert{}K_n\vert{}}{\vert{}K_{n-p}\vert{}}

The equality uses h(last∣first)=h(all)−h(first)h(\text{last}\vert{}\text{first}) = h(\text{all}) - h(\text{first}) for each Gaussian; then conditioning reduces entropy; then a conditional version of the maximum entropy theorem.

∎

TheoremBergstrøm: ∣Kn∣/∣Kn−1∣\vert{}K_n\vert{}/\vert{}K_{n-1}\vert{} is concave in KnK_n

ProofVia a sum of independent Gaussians

Let X∼N(0,An)X \sim \mathcal{N}(0, A_n) and Y∼N(0,Bn)Y \sim \mathcal{N}(0, B_n) be independent and Z=X+YZ = X + Y. Then

12log⁡2πe∣An+Bn∣∣An−1+Bn−1∣=h(Zn∣Zn−1,…,Z1)\frac{1}{2}\log 2\pi e\frac{\vert{}A_n + B_n\vert{}}{\vert{}A_{n-1} + B_{n-1}\vert{}} = h(Z_n\vert{}Z_{n-1}, \ldots, Z_1)

≥h(Zn∣Zn−1,…,Z1,Xn−1,…,X1,Yn−1,…,Y1)=h(Xn+Yn∣Xn−1,Yn−1)\ge h(Z_n\vert{}Z_{n-1}, \ldots, Z_1, X_{n-1}, \ldots, X_1, Y_{n-1}, \ldots, Y_1) = h(X_n + Y_n\vert{}X^{n-1}, Y^{n-1})

=12log⁡2πe(Var⁡(Xn∣Xn−1)+Var⁡(Yn∣Yn−1))=12log⁡2πe(∣An∣∣An−1∣+∣Bn∣∣Bn−1∣)= \frac{1}{2}\log 2\pi e\left(\operatorname{Var}(X_n\vert{}X^{n-1}) + \operatorname{Var}(Y_n\vert{}Y^{n-1})\right) = \frac{1}{2}\log 2\pi e\left(\frac{\vert{}A_n\vert{}}{\vert{}A_{n-1}\vert{}} + \frac{\vert{}B_n\vert{}}{\vert{}B_{n-1}\vert{}}\right)

Steps: the prediction-error lemma; conditioning reduces entropy; ZZ‘s past is a function of the XX and YY pasts; given the pasts, Xn+YnX_n + Y_n is Gaussian with the two conditional variances adding (independence); the prediction-error lemma again (conditional variances of Gaussians do not depend on the conditioning values, so no expectation is needed). Drop the logs, then set A=λSA = \lambda S and B=(1−λ)TB = (1-\lambda)T; the ratio of an n×nn \times n to an (n−1)×(n−1)(n-1) \times (n-1) determinant scales linearly, so

∣λSn+(1−λ)Tn∣∣λSn−1+(1−λ)Tn−1∣≥λ∣Sn∣∣Sn−1∣+(1−λ)∣Tn∣∣Tn−1∣\frac{\vert{}\lambda S_n + (1-\lambda)T_n\vert{}}{\vert{}\lambda S_{n-1} + (1-\lambda)T_{n-1}\vert{}} \ge \lambda\frac{\vert{}S_n\vert{}}{\vert{}S_{n-1}\vert{}} + (1-\lambda)\frac{\vert{}T_n\vert{}}{\vert{}T_{n-1}\vert{}}

∎

Warning

The plain ratio ∣Kn∣/∣Kn−p∣\vert{}K_n\vert{}/\vert{}K_{n-p}\vert{} is not concave in general for p≥2p \ge 2. Only its logarithm is (previous theorem).

The big picture

Chapter 17 closes with a one-line summary of every major result in the book. Most of these live in other notes; this is the map.

FormulaElements of Information Theory in one box

  • Entropy: H(X)=−∑p(x)log⁡p(x)H(X) = -\sum p(x)\log p(x)
  • Relative entropy: D(p∣∣q)=∑p(x)log⁡p(x)q(x)D(p\vert{}\vert{}q) = \sum p(x)\log\frac{p(x)}{q(x)}
  • Mutual information: I(X;Y)=∑p(x,y)log⁡p(x,y)p(x)p(y)I(X;Y) = \sum p(x,y)\log\frac{p(x,y)}{p(x)p(y)}
  • Information inequality: D(p∣∣q)≥0D(p\vert{}\vert{}q) \ge 0
  • AEP: −1nlog⁡p(X1,…,Xn)→H(X)-\frac{1}{n}\log p(X_1, \ldots, X_n) \rightarrow H(\mathcal{X})
  • Data compression: H(X)≤L∗<H(X)+1H(X) \le L^* < H(X) + 1
  • Kolmogorov complexity: K(x)=min⁡U(p)=xl(p)K(x) = \min_{\mathcal{U}(p) = x} l(p)
  • Universal probability: log⁡1PU(x)≈K(x)\log\frac{1}{P_{\mathcal{U}}(x)} \approx K(x)
  • Channel capacity: C=max⁡p(x)I(X;Y)C = \max_{p(x)} I(X;Y)
  • Data transmission: rates R<CR < C allow asymptotically error-free communication; rates R>CR > C do not
  • Gaussian channel capacity: C=12log⁡(1+PN)C = \frac{1}{2}\log\left(1 + \frac{P}{N}\right)
  • Rate distortion: R(D)=min⁡I(X;X^)R(D) = \min I(X;\hat{X}) over all p(x^∣x)p(\hat{x}\vert{}x) with E d(X,X^)≤D\mathbb{E}\,d(X, \hat{X}) \le D
  • Growth rate of investment: W∗=max⁡bElog⁡bTXW^* = \max_{\mathbf{b}}\mathbb{E}\log\mathbf{b}^T\mathbf{X}

Problems

TheoremProblem 17.1: Sum of positive definite matrices

For positive definite K1,K2K_1, K_2: ∣K1+K2∣≥∣K1∣\vert{}K_1 + K_2\vert{} \ge \vert{}K_1\vert{}.

Proof

Let X1∼N(0,K1)X_1 \sim \mathcal{N}(0, K_1) and X2∼N(0,K2)X_2 \sim \mathcal{N}(0, K_2) be independent. By the “adding noise cannot sharpen” lemma, h(X1+X2)≥h(X1)h(X_1 + X_2) \ge h(X_1), i.e. 12log⁡(2πe)n∣K1+K2∣≥12log⁡(2πe)n∣K1∣\frac{1}{2}\log(2\pi e)^n\vert{}K_1 + K_2\vert{} \ge \frac{1}{2}\log(2\pi e)^n\vert{}K_1\vert{}.

∎

TheoremProblem 17.2: Fan’s inequality for ratios of determinants

For 1≤p≤n1 \le p \le n and positive definite K=K(1,2,…,n)K = K(1, 2, \ldots, n):

∣K∣∣K(p+1,…,n)∣≤∏i=1p∣K(i,p+1,…,n)∣∣K(p+1,…,n)∣\frac{\vert{}K\vert{}}{\vert{}K(p+1, \ldots, n)\vert{}} \le \prod_{i=1}^p\frac{\vert{}K(i, p+1, \ldots, n)\vert{}}{\vert{}K(p+1, \ldots, n)\vert{}}

Proof

Let X∼N(0,K)X \sim \mathcal{N}(0, K) and W=(Xp+1,…,Xn)W = (X_{p+1}, \ldots, X_n). Using h(some∣W)=h(some,W)−h(W)h(\text{some}\vert{}W) = h(\text{some}, W) - h(W) for Gaussians:

12log⁡(2πe)p∣K∣∣K(p+1,…,n)∣=h(X1,…,Xp∣W)≤∑i=1ph(Xi∣W)=∑i=1p12log⁡2πe∣K(i,p+1,…,n)∣∣K(p+1,…,n)∣\frac{1}{2}\log(2\pi e)^p\frac{\vert{}K\vert{}}{\vert{}K(p+1, \ldots, n)\vert{}} = h(X_1, \ldots, X_p\vert{}W) \le \sum_{i=1}^p h(X_i\vert{}W) = \sum_{i=1}^p\frac{1}{2}\log 2\pi e\frac{\vert{}K(i, p+1, \ldots, n)\vert{}}{\vert{}K(p+1, \ldots, n)\vert{}}

The inequality is the (conditional) independence bound. Exponentiate.

∎

TheoremProblem 17.3: Convexity of determinant ratios

For positive definite K,K0K, K_0, the function ln⁡(∣K+K0∣/∣K∣)\ln(\vert{}K + K_0\vert{}/\vert{}K\vert{}) is convex in KK.

ProofVia second derivatives

Let ϕ(K)=ln⁡∣K+K0∣−ln⁡∣K∣\phi(K) = \ln\vert{}K + K_0\vert{} - \ln\vert{}K\vert{} and move along a symmetric direction DD: K+tDK + tD. A standard identity gives d2dt2ln⁡∣M+tD∣=−tr⁡((M−1D)2)\frac{d^2}{dt^2}\ln\vert{}M + tD\vert{} = -\operatorname{tr}\big((M^{-1}D)^2\big) at t=0t = 0. So, with A=K−1A = K^{-1} and B=(K+K0)−1B = (K + K_0)^{-1},

d2dt2ϕ=tr⁡(ADAD)−tr⁡(BDBD)\frac{d^2}{dt^2}\phi = \operatorname{tr}(ADAD) - \operatorname{tr}(BDBD)

Since K⪯K+K0K \preceq K + K_0, we have A⪰B⪰0A \succeq B \succeq 0. Then

tr⁡(ADAD)−tr⁡(BDBD)=tr⁡((A−B)DAD)+tr⁡((A−B)DBD)≥0\operatorname{tr}(ADAD) - \operatorname{tr}(BDBD) = \operatorname{tr}\big((A-B)DAD\big) + \operatorname{tr}\big((A-B)DBD\big) \ge 0

because A−BA - B, DADDAD and DBDDBD are all positive semidefinite, and the trace of a product of two PSD matrices is non-negative. A non-negative second derivative along every line means convexity.

Information-theoretic reading: with Z∼N(0,K0)Z \sim \mathcal{N}(0, K_0) and independent noise X∼N(0,K)X \sim \mathcal{N}(0, K), 12ln⁡∣K+K0∣∣K∣=h(Z+X)−h(X)=I(Z;Z+X)\frac{1}{2}\ln\frac{\vert{}K + K_0\vert{}}{\vert{}K\vert{}} = h(Z + X) - h(X) = I(Z; Z + X), the information a Gaussian signal gets through Gaussian noise of covariance KK. The claim is that this is convex in the noise covariance.

∎

TheoremProblem 17.4: A data processing inequality for four variables

If X1→X2→X3→X4X_1 \rightarrow X_2 \rightarrow X_3 \rightarrow X_4, then

I(X1;X3)+I(X2;X4)≤I(X1;X4)+I(X2;X3)I(X_1; X_3) + I(X_2; X_4) \le I(X_1; X_4) + I(X_2; X_3)

Proof

Since X1→X3→X4X_1 \rightarrow X_3 \rightarrow X_4, expanding I(X1;X3,X4)I(X_1; X_3, X_4) both ways (as in the DPI proof) gives I(X1;X3)−I(X1;X4)=I(X1;X3∣X4)I(X_1; X_3) - I(X_1; X_4) = I(X_1; X_3\vert{}X_4). Likewise I(X2;X3)−I(X2;X4)=I(X2;X3∣X4)I(X_2; X_3) - I(X_2; X_4) = I(X_2; X_3\vert{}X_4). So we need I(X1;X3∣X4)≤I(X2;X3∣X4)I(X_1; X_3\vert{}X_4) \le I(X_2; X_3\vert{}X_4).

A Markov chain reversed is still Markov, and conditioned on X4X_4 the variables still form a chain X3→X2→X1X_3 \rightarrow X_2 \rightarrow X_1. The data processing inequality, applied conditionally on X4X_4, gives exactly that. Rearranging finishes the proof.

∎

TheoremProblem 17.5: Markov chains

If X→Y→(Z,W)X \rightarrow Y \rightarrow (Z, W), then

I(X;Z)+I(X;W)≤I(X;Y)+I(Z;W)I(X; Z) + I(X; W) \le I(X; Y) + I(Z; W)

Proof

By the data processing inequality and the chain rule,

I(X;Y)≥I(X;Z,W)=I(X;Z)+I(X;W∣Z)I(X; Y) \ge I(X; Z, W) = I(X; Z) + I(X; W\vert{}Z)

And by the chain rule twice, I(X;W∣Z)=I(X,Z;W)−I(Z;W)≥I(X;W)−I(Z;W)I(X; W\vert{}Z) = I(X, Z; W) - I(Z; W) \ge I(X; W) - I(Z; W). Combine the two lines.

∎

← All notes