Information Theory Inequalities
Jensen's Inequality, Log Sum Inequality, Data Processing Inequality and Sufficient Statistics, and Fano's Inequality
Jensen’s inequality
Motivation: Whenever we have a random variable , we often need to look at a function of that variable, . If the function is perfectly linear (like ), the average of the function’s outputs exactly equals the function evaluated at the average input: . 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 (). 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 is convex over an interval 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: is concave if is convex).
DefinitionConvexity (algebraic)
Algebraically, drawing a chord means taking a weighted average of two inputs and , using a weight where .
A function 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:
DefinitionStrict convexity
A function is strictly convex if equality holds only when , , or . (The chord never touches the curve except at the endpoints).
TheoremThe second derivative test
If a function has a second derivative that is non-negative () over an interval, the function is convex. If it is strictly positive (), it is strictly convex.
ProofUsing Taylor series
Expand around a point :
Since , the last term is always non-negative. Therefore, the curve always sits above its tangent line: . If we let and plug in and respectively, multiplying the resulting inequalities by and and adding them together algebraically yields the exact definition of convexity.
∎
Applications to information theory: , and (for ) have positive second derivatives, making them strictly convex. has a second derivative of . Since probability , this is strictly negative. Therefore, is strictly concave and 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 is a convex function and is a random variable, then:
(If is strictly convex, equality implies with probability 1, meaning is a deterministic constant with no randomness).
ProofBy induction on discrete distributions
Base case (2 mass points): Let take values with probabilities . By the literal definition of convexity (replacing with ):
This is exactly .
Inductive step: Assume the theorem holds for mass points. We prove it for points. Isolate the -th term, and re-weight the remaining probabilities by defining :
Apply the inductive hypothesis to the inner summation (since it has terms), pulling outside:
We now have exactly two weighted terms: and . Apply the base-case convexity definition one final time to pull outside everything:
∎
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 and be two probability mass functions.
(Equality holds if and only if for all ).
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 be the support set where
Because is strictly concave, . We apply this by bringing the logarithm outside the summation:
Because probabilities must sum to 1 (or less, if is a subset), .
Therefore, , meaning .
∎
CorollaryNon-negativity of mutual information
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 , and all relative entropies are , mutual information is . (Equality holds iff and are independent).
∎
TheoremMaximum entropy bound
(Entropy is maximized when every symbol is equally likely, i.e., a uniform distribution).
Proof
Let be the uniform distribution Calculate .
Since , we have .
∎
TheoremConditioning reduces entropy (information can’t hurt)
Intuition
Knowing a second variable can only decrease, never increase, your overall uncertainty about .
Proof
We know . We also know . Therefore, .
∎
WarningImportant caveat
This is true on average. A specific, highly unusual observation (e.g., ) might temporarily increase your uncertainty about (). However, when weighted across all possible observations of , the expected uncertainty mathematically must drop or remain equal.
Medical diagnosis example:
-
Let be a patient’s true state. A disease is very rare so prior probability is and .
-
Because you are almost certain the patient is healthy, baseline uncertainty is tiny.
-
You run a lab test .
-
The test is imperfect. If it comes back Positive (), the posterior probability updates to an ambiguous coin-flip: and .
-
For the specific observation (): A positive result massively increases your confusion from to . 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 (): Most people test negative (), which drives , collapsing . When weighted together: 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
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
. By theorem above, conditioning reduces entropy, so for every term. Substituting this bound into the summation proves the theorem.
∎
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 ). But real telegraph networks are dynamic.
Suppose your telegraph operator operates smoothly in the morning (with source probability ) and gets highly erratic at night due to drinking (with source probability ). 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, and :
Conventionally, , , and based on continuity.
IntuitionWhy this solves the blending problem
The expression measures the mismatch cost between reality () and an assumption (). When reality spikes higher than the assumed capacity, the ratio makes the log term positive, increasing the wasted transmission overhead.
Suppose traffic surges irregularly across different telegraph routes or shifts:
- Shift 1: Actual traffic volume is , but your planned capacity was .
- Shift 2: Actual traffic volume is , but your planned capacity was .
If you evaluate each shift individually and add up the mismatch costs, you get the left side of the inequality:
But suppose an engineer gets lazy and looks only at the daily totals: total real traffic versus total planned capacity . The mismatch cost calculated on the bulk totals is the right side:
The Log Sum Inequality guarantees:
Why the blended formula hides the problem: The function is convex, it curves upward sharply. High ratios blow up the penalty much faster than low ratios reduce it.
When you evaluate shifts in isolation, any extreme bottleneck () triggers a massive penalty that dominates the sum. But when you sum the numbers into bulk totals ( and ) before taking the ratio, an overloaded morning () algebraically cancels out an empty evening ().
Looking at blended totals creates an illusion of balance (), mathematically masking localized congestion. The Log Sum Inequality proves that aggregating data across time or lines strictly hides mismatch peaks, meaning an engineer examining blended averages will always underestimate the actual physical penalties paid during peak imbalances.
ProofVia Jensen’s inequality
To prove this, we first need to build a strictly convex function.
Let .
First derivative: (if base ; or ).
Second derivative: (times a positive constant depending on the log base).
Since our inputs will be strictly positive, . Because the second derivative is strictly positive, the function is strictly convex.
Now, we set up Jensen’s Inequality: .
To use Jensen’s, we need our weights to act like a valid probability distribution (they must sum to 1).
Let and .
We construct our valid probability weights using the terms: .
We will feed the function the ratio of our terms: .
Evaluate the left side of Jensen’s (the expected value of the function).
The in the numerator and denominator cancel out, leaving:
Evaluate the right side of Jensen’s (the function of the expected value). First, find the expected value inside the function:
Now apply the function to that result:
Bring them together. Because is convex, Left Side Right Side.
Multiply both sides by , and you get the Log Sum Inequality:
∎
Consequences: applying it to telecom
The Log Sum Inequality looks like abstract algebra, but substituting and for and 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.
Proof
We want to evaluate the blended Relative Entropy for a specific symbol . We map our variables to the Log Sum Inequality:
Let and . (These sum to the blended reality).
Let and . (These sum to the blended assumption).
Applying the Log Sum Inequality to these two terms:
Substituting our probabilities back in:
Notice the weights and cancel out inside the isolated logarithms on the left.
Summing this inequality over all symbols yields:
∎
Intuition
Blending distributions washes out the specific statistical “fingerprints” that set them apart.
If you test two separate wire conditions against their respective models, each setup retains its distinct, localized anomalies, producing a high combined mismatch score. But if you throw all the traffic into a single bin () and compare it against a single combined baseline (), the contrasting spikes average out across the aggregate pool.
Blending never sharpens distinctions, it blurs them. Pooling data across different environments strictly reduces the measurable divergence between reality and your baseline.
Concavity of entropy
Claim: Blending predictable systems creates an unpredictable system. “Averaging destroys certainty.”
CorollaryConcavity of entropy
Proof
We can prove this instantly using the convexity of Relative Entropy we just derived. Entropy is simply the maximum possible entropy () minus the relative entropy distance to the uniform distribution :
We substitute this definition into the convexity inequality, setting both and to the uniform distribution :
Replace the terms with their entropy equivalents:
The terms cleanly cancel out from both sides:
Multiply by and flip the inequality:
∎
Intuition
Imagine Operator 1 has a broken telegraph that only types ‘A’ ( bits). Operator 2 has a broken telegraph that only types ‘B’ ( 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, ). 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 transmits a message across a noisy copper wire, and the receiver gets a corrupted signal . 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 .
We want to know: can this downstream processing step magically recover the original message? Can the final output have more mutual information with the sender than the raw, corrupted signal originally did?
To prove this, we must first mathematically define what it means to process a signal in a sequence. We do this using a Markov chain.
Markov chains ()
DefinitionMarkov chain
A sequence of three random variables forms a Markov chain (denoted ) if the future depends on the past only through the present.
IntuitionPhysical intuition
The downstream computer is only plugged into the receiver . It has no secret, secondary wire connected directly to the sender . Therefore, everything knows about must have physically passed through first.
If Z depends on X only through Y, then if we completely freeze (condition on) Y, X and Z become mathematically independent. The joint probability distribution of a Markov chain factors cleanly into a chain of local conditional probabilities: this means the conditional probability of given the entire history is just the probability of given the immediate previous step:
FormulaThe Markov property
Because knowing provides absolutely zero extra predictive power about once you already know , their conditional mutual information is zero: .
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.
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 and the entire receiver system . We can expand this joint mutual information in two different directions.
Expansion 1 (start with ). Using the chain rule, the information shares with the whole system is the information it shares with , plus the new information it shares with (given that we already know ):
Expansion 2 (start with ). Alternatively, we can expand it backwards. The information shares with the whole system is the information it shares with , plus the new information it shares with (given that we already know ):
Equating and simplifying. Because both expansions equal the exact same total , we set them equal to each other:
Now, we apply our physical constraint. Because X → Y → Z is a Markov chain, we established that . (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:
Finally, we proved via Jensen’s Inequality that all mutual information quantities are non-negative. Therefore, . If is equal to plus some positive number, then must be greater than or equal to .
∎
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 . Because is strictly calculated from , it perfectly forms the Markov chain . Therefore:
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 to be true is if the leftover term is exactly . This means must also form a Markov chain. In engineering terms, this means the processing step perfectly preserved every single detail of that was relevant to . (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 governing the system (e.g., the exact probability that a static burst flips a bit). We cannot observe directly; we can only observe a raw sequence of received data .
To save bandwidth and storage, an engineer might want to compress that massive raw dataset into a small, calculated summary value, — 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:
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:
We need to know: is it mathematically possible to compress the raw data into a smaller footprint such that we hit exact equality, losing absolutely zero information about the hidden parameter ?
DefinitionSufficient statistic
A statistic is sufficient for if it contains all the information in about . Mathematically, this means it achieves perfect equality in the Data Processing Inequality:
By the equality condition of the Data Processing Inequality, for the information to remain perfectly intact, the Markov chain must be reversible. The sequence must also form a valid Markov chain. This gives us the formal definition: is a sufficient statistic if the raw data is conditionally independent of the parameter , given .
If I give you the summary , you have captured the “essence” of the system so perfectly that the actual parameter provides no additional help in guessing which specific raw sequence actually occurred.
Examples of sufficient statistics
- The coin toss (discrete binary channel). Suppose a noisy wire flips bits with an unknown probability . We send a sequence of zeroes, and receive a raw sequence of bits . 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: . Is 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. The specific arrangement is purely random combinatorial noise. Knowing the actual physical parameter does not give you any extra predictive power to guess which specific arrangement happened. The sum captured 100% of the useful information about .
- The normal distribution (continuous). If is a sequence of normally distributed voltage readings with an unknown mean and a known variance of 1, the sample mean is a sufficient statistic. Once you know the sample mean, the exact distribution of the individual voltage spikes around that mean is independent of .
- The uniform distribution (continuous). If noise is distributed uniformly between and , the sample mean is actually not sufficient. The boundaries dictate the reality of the parameter. A sufficient statistic here is the pair of the absolute highest and lowest spikes: .
Minimal sufficient statistics
While a sufficient statistic guarantees no information is lost, it does not guarantee maximum compression. For example, if we are tracking the normal distribution of voltages, storing the pair of values (mean of even-indexed readings, mean of odd-indexed readings) is technically a sufficient statistic, it preserves all information about . But it is redundant. It is storing two numbers when one would do the job.
DefinitionMinimal sufficient statistic
A statistic is a minimal sufficient statistic if it maximally compresses the information about . Mathematically, is minimal if it is a direct function of every other possible sufficient statistic . In terms of the Data Processing Inequality, this forces the minimal statistic to sit at the absolute end of the Markov chain bottleneck, stripping out every last bit of irrelevant combinatorial noise while preserving :
In the previous examples (the sum of coin tosses, the sample mean, and the min/max pair), those sufficient statistics are all minimal.
Fano’s inequality: the physical limits of guessing
The problem: can a smart algorithm guess its way out of noise? Until now, we have measured the noise in the wire as a continuous amount of leftover uncertainty, . But in the real world, the receiver’s telegraph machine doesn’t just output a “cloud of uncertainty.” It must eventually print a specific, physical letter. It runs the noisy signal through a decoding algorithm (a deterministic function) to produce a final, best guess: .
Because the guess is calculated directly from the received signal , the system forms a Markov chain:
We define a communication error as the event where the machine’s final guess does not match the sender’s original keystroke. The probability of error is .
We know intuitively that if the wire’s noise is exactly zero, we can estimate from with a zero probability of error. Extending this, we expect to be able to achieve a low probability of error only if the conditional entropy is small.
Fano’s Inequality quantifies this exact relationship. It bridges the gap between information theory (entropy) and statistics (probability of error), establishing an absolute, unbreakable mathematical floor on how low the error rate can go based on the physical noise in the wire.
The theorem
TheoremFano’s inequality
For any estimator such that forms a Markov chain, with error probability , we have:
(Here, is the binary entropy of the error event itself: , and is the size of the sender’s alphabet).
IntuitionPhysical intuition
Read the inequality from right to left. The right side, , is the sheer physical noise introduced by the wire. The inequality states that this physical noise must be “absorbed” by the error rate on the left side. If , the left side collapses to 0, which correctly implies that must also be 0.
The proof
ProofVia an error indicator variable
We prove this by tracking the machine’s success using an artificial binary random variable, . Let if the machine failed (), and if the machine succeeded ().
We want to calculate the joint conditional entropy . We expand this using the Chain Rule for Entropy in two different directions.
Expansion 1 (condition on X first). If we know both the sender’s true symbol and the machine’s guess , there is absolutely zero uncertainty about whether an error occurred. Therefore, .
Expansion 2 (condition on E first). By Theorem 2.6.5 (Conditioning Reduces Entropy), we can drop from the first term to upper-bound it: . Since is a simple binary coin flip (error or no error), its entropy is just . Now we bound the second term, , by averaging over the two possible states of the error indicator :
- Case E=0 (no error). If there is no error, is exactly . Since we are conditioning on , there is 0 uncertainty about .
- Case E=1 (error). If an error occurred, we know must be one of the remaining symbols in the alphabet. The absolute maximum uncertainty of any variable is the log of its total possible outcomes. We can safely upper bound this by .
Substituting these bounds back into the expansion gives: Therefore, Expansion 2 is bounded by:
Equating and applying data processing. Equating Expansion 1 and our bound for Expansion 2, we get: Finally, because is a Markov chain, the Data Processing Inequality guarantees that . Expanding this into entropies () proves that . We chain this inequality onto the end of our proof to finish it:
∎
Useful corollaries and bounds
1. Weakening the bound for simplicity. Because the binary entropy of the error event, , can never exceed 1 bit (which occurs when the machine is right 50% of the time), we can replace with 1.
Algebraically rearranging this gives us a direct formula for the absolute lowest possible error rate:
2. A tighter bound (if the guess must be in the alphabet). If the decoding algorithm is restricted to only guessing symbols that actually exist in the sender’s alphabet (), then in the event of an error (), we know the true symbol must be one of the other symbols. We can replace with :
3. Direct observation bound. If we don’t use a decoding algorithm at all, and just let our “guess” be the raw received signal (), then is simply the probability that the physical transmission was flipped: .
RemarkBlind guessing (the sharpness of Fano)
What if the wire is completely cut, and there is no at all? You just have to guess blindly. Your best mathematical guess is just picking the single most common symbol in the language (probability ). Your probability of error is . Fano’s inequality becomes: . If the rest of the symbols are all perfectly uniform, this inequality evaluates to exactly equal. This proves that Fano’s Inequality is “sharp” (the bound cannot be mathematically tightened any further, because a physical scenario exists where the bound is perfectly reached).
A sidelight: probability of collision between independent sources
While discussing the probability of guessing and matching strings, we can introduce a related, beautiful inequality regarding two independent sources.
Motivation. Suppose two isolated telegraph operators, and , are completely independent of each other but both type following the same language statistics (they are i.i.d. with entropy ). What is the probability that they both happen to press the exact same key at the exact same time?
LemmaCollision probability
If and are i.i.d. with entropy , the probability they match is bounded by their entropy:
(Equality holds if and only if the operators type completely at random — a uniform distribution).
ProofVia Jensen’s inequality
We want to bound . Let’s rewrite this cleverly to look like an Expected Value. The expected value of the probability itself is: . Now, notice that can be rewritten using logs as . Therefore, our collision probability is .
The function is strictly convex (its second derivative is positive). Therefore, by Jensen’s Inequality, the Expected Value of the function is the function of the Expected Value:
Look at the exponent on the right side: . Substituting this back in proves the lemma:
∎
CorollaryCollision of mismatched operators
What if operator follows English , but operator follows French ? They are independent, but not identically distributed. The probability they collide is . We apply the exact same Jensen’s Inequality proof, but taking the Expected Value over :
The right side exponent is . We can add and subtract to force it into recognizable terms:
Therefore, the collision probability is bounded by both their baseline uncertainty and their Relative Entropy distance:
(By symmetry, you can evaluate the expectation over to get the alternate bound ).