Asymptotic equipartition property Created 2026-09-24 Updated 2026-10-14
The asymptotic equipartition property explains why a long message from a source can usually be described using its information entropy per symbol. Individual messages can have very different probabilities, but the messages carrying almost all the total probability have similar logarithmic costs per symbol. The Bernoulli typical-set example makes the distinction between an individual message and a large collection explicit.
For independent and identically distributed random variables on a finite alphabet, let be their probability mass function and . Then
Here means the probability mass of the realized word, evaluated under the source law. The product rule for independent random variables turns its information content into a sum:
The strong law of large numbers gives the limit. Zero-probability symbols do not occur; on the positive-probability support of a finite alphabet, these information costs are finite. The corresponding typical set consists of words whose cost per symbol is within a chosen tolerance of .
For a strictly stationary process with a finite alphabet, the constant-limit extension requires ergodicity. The Shannon-McMillan-Breiman theorem then replaces the one-symbol information entropy with the information rate. Stationarity without ergodicity in an information source shows why stationarity alone is insufficient.[ref]
Chernoff information Created 2026-09-24 Updated 2026-10-14
Chernoff information measures how quickly repeated independent evidence can distinguish two fixed probability distributions. Suppose a statistical hypothesis test observes independent and identically distributed random variables, with common law under one simple hypothesis and under the other. Give the two hypotheses fixed positive prior probabilities, and let be the smallest achievable average error probability. For distinct positive probability mass functions on a common finite alphabet,
Here is the natural logarithm, so the error exponent is measured in nats per observation. This optimal rate is unchanged by choosing different fixed positive prior probabilities; the best decision rule and finite-sample error can still change.[ref]
The interpretation is : a larger Chernoff information means fewer observations are needed at the leading exponential scale. It does not assert the exact finite-sample identity . The finite-sample Chernoff error bound and the explicit Chernoff information for complementary Bernoulli distributions make this distinction concrete. This is useful when designing repeated measurements or comparing sensors whose output probability distributions differ under two candidate conditions.
For probability mass functions with zero entries, define the affinity for and use , taking endpoint limits when needed. This avoids an ambiguous convention. Identical laws give ; disjoint probability supports give , because one observation separates them perfectly. The displayed finite-rate theorem concerns fixed laws with common positive support, not laws that change with or arbitrarily dependent repeated observations.
Conditional entropy rate 2026-10-14
For a strictly stationary process on a finite alphabet, put and for . Each is the average remaining uncertainty in the next symbol after its history is known. More history can improve prediction, so this sequence is nonincreasing:
The inequality uses conditioning reduces entropy; the last equality uses strict stationarity. Nonnegative therefore have a limit. By the chain rule for information entropy,
The Cesàro mean converges to the same limit, proving the equality with the entropy rate. This is a statement about average information entropy. A constant almost-sure limit of the realized information content requires the further hypotheses in the Shannon-McMillan-Breiman theorem; stationarity without ergodicity in an information source explains the distinction.
For a fixed probability mass function on a finite alphabet, relative entropy is a convex function of its first probability mass function. For , the coordinate function has on and extends continuously with . Applying scalar convexity coordinate by coordinate proves the inequality. If , finite relative entropy requires for every positive-weight constituent; otherwise the right side is infinite. Thus the assertion also holds as an extended-valued convexity statement. On the probability simplex supported where , the function is strictly convex: two distinct probability mass functions give a strict inequality for .
Entropy rate 2026-10-14
The entropy rate measures average new uncertainty per emitted symbol of a stochastic process. Predictability from earlier symbols can make this much smaller than the information entropy of one symbol. For example, a binary Markov source can emit a fair bit at every time while repeating its previous bit with probability : each individual symbol has one bit of uncertainty, but the entropy rate is only about bits per symbol.
For a finite alphabet source , define
when the limit exists. Base-two logarithms give bits per symbol. Multiplying by a fixed emission frequency gives bits per unit time; the symbol rate and the uncertainty of the sequence are different inputs. A strictly stationary process on a finite alphabet always has an entropy rate, equal to its conditional entropy rate.[ref]
For an independent and identically distributed source, the chain rule for information entropy gives , hence . With dependence, conditioning reduces entropy and makes the past useful. The examples under Markov information source show this benefit using exact finite-block calculations.
Let be a random probability mass function on a finite alphabet, let , and suppose a fixed reference is positive on the probability support of . Then vanishes almost surely wherever , and
Taking expected values yields the displayed decomposition. In particular it applies to an unbiased empirical distribution. It separates sampling fluctuation from reference mismatch: even perfect recovery of leaves the deterministic relative entropy . A bound comparing different references must account for this term.
Finite alphabet Created 2026-10-14 Updated 2026-10-31
A finite alphabet is an alphabet whose symbols form a finite set. The binary alphabet and a finite vocabulary of possible messages are examples.
For probability mass functions on symbols, set and . The entropy summand bound gives . The triangle inequality and Jensen's inequality give
At , use the continuous value zero. This proves uniform continuity of Shannon entropy on a fixed finite alphabet; the alphabet size appears explicitly in the bound.
For equal prior probabilities and independent and identically distributed observations on a finite alphabet, minimum sum of errors in a simple hypothesis test gives
For nonnegative and , . Applying this termwise and using the independence of random variables to factor the sum yields
Optimizing , with an infimum if needed, proves . This short argument gives a bound for every . The theorem identifying the optimal error exponent also needs the converse: no decision rule can achieve a strictly larger limiting exponent. A log-likelihood ratio is a sum of independent contributions, so large deviation principle supplies the relevant converse idea.
Full-support probability distribution on a finite alphabet Created 2026-10-25 Updated 2026-11-05
A probability mass function has full support on a specified finite alphabet if for every symbol in that alphabet. This is relative to the chosen alphabet: deleting zero-probability symbols produces a smaller alphabet on which the same law has full support. In a weighted prefix code problem, full support makes every shortening of a retained codeword strictly reduce expected codeword length. Without it, a minimum-cost code tree may contain redundant zero-weight branches.
Mismatched asymptotic equipartition property Created 2026-10-25 Updated 2026-11-05
For independent and identically distributed random variables with probability mass function on a finite alphabet, evaluate their realized strings under a fixed product model . If is positive on the probability support of , the strong law of large numbers gives
almost surely, using cross-entropy equals entropy plus relative entropy. If vanishes at an outcome of positive probability, that outcome eventually appears almost surely, making all subsequent product likelihoods zero and the limit . This matches infinite cross-entropy.
For independent and identically distributed observations from a probability mass function on a finite alphabet, expected relative entropy of the empirical distribution from is nonincreasing in sample size. The leave-one-out identity for empirical distributions and convexity of relative entropy in its first argument give
Every deletion sample has the law of observations from . Taking expected values proves the assertion without requiring independence between deletion samples. Zero-probability symbols are absent almost surely. Since , the identity also shows that expected empirical information entropy increases towards the source information entropy. Convergence follows from the strong law of large numbers for empirical frequencies and boundedness and continuity of information entropy on a finite probability simplex.
Reference-distribution ambiguity: is not defined in the paper. If it is an arbitrary probability mass function, the printed inequality is false. For instance, choose and . Every empirical distribution equals , making the printed left side one bit and its right side zero. This is a counterexample for every .
Under the consistent interpretation , the preceding leave-one-out identity for empirical distributions and convexity of relative entropy in its first argument give, for every sample,
Deleting any one observation from independent and identically distributed random variables leaves independent observations with probability mass function . Consequently each has the same distribution as . They need not be independent of one another. Taking expected values and using linearity of expectation therefore proves
Zero coordinates of are never sampled, almost surely, so the calculation can be restricted to its probability support. In particular the expected values are finite on this finite alphabet.
The discrepancy cannot be removed by silently choosing any fixed reference. Whenever is positive on the probability support of , direct subtraction and give the expected relative entropy decomposition
Thus the valid arbitrary-reference version has on both sides; the printed mixed-reference version has an additional term whose sign prevents the proposed conclusion.
For probability mass functions on the finite alphabet, take logarithms to base two and define the relative entropy by
A term with is zero, including ; a term with is . Fix and write . For ,
Thus is a convex function on by continuous extension to zero. For , applying this scalar convexity to each coordinate and summing proves
If has zero coordinates, the finite-valued domain consists of probability mass functions supported on ; it is convex and the same proof applies there. Outside that domain the right side is infinite whenever an offending probability mass function has a positive mixture weight, so the extended-valued convexity assertion still holds. At mixture weights zero or one the inequality is an identity, without needing the expression .
For a discrete memoryless channel with transition probabilities , the conditional probability of a length- output given a length- input factors as
The same transition probabilities apply at each use. Its channel capacity is
The unit is bits per channel use. For finite alphabets the maximum exists by continuity on the probability simplex; with more general alphabets one uses a supremum when appropriate.
An channel code consists of an encoder and a decoder . It represents each of messages by input symbols and recovers a message from the observed output symbols. Its code rate is bits per use. For each message , its conditional error probability is ; an average error also specifies the message probability distribution, while the maximum error takes the largest conditional error.
Write . Because is determined by , the chain rule for mutual information gives
This is the data processing inequality. It holds for every input probability distribution. Maximizing each side over that same set of input probability distributions gives ; processing cannot increase channel capacity.
A simple sufficient condition for equality is that be injective on the reachable output alphabet. Then can be recovered from , giving and hence for every input law. The input that achieves the original channel capacity therefore achieves it after processing as well. Values of outside reachable outputs are irrelevant.
Injectivity is sufficient rather than necessary. More precisely, for finite alphabets equality in capacity data processing holds exactly when there is an original capacity-achieving input law for which and have conditional independence given . Sufficiency follows from the displayed gap identity. For necessity, maximize at an input law ; if its maximum equals , then , so both inequalities are equalities. Processing may discard output details unrelated to the input without losing channel capacity.
The inequality is true for ordinary addition, and also for addition in a group. For any fixed , the translation is injective, so it merely relabels the probability masses in the conditional distribution. Since are independent random variables,
Averaging over and using conditioning reduces entropy proves entropy monotonicity under independent addition:
There is no requirement that remain in the original finite alphabet. The proof also gives by symmetry. Independence matters: for a nonconstant and , the sum is constant while .
Sanov theorem Created 2026-09-24 Updated 2026-11-05
Let be independent and identically distributed on a finite alphabet with full-support probability mass function , and let be their empirical distribution. Sanov theorem gives a large deviation principle on the probability simplex, with rate function
using natural logarithms. For any measurable set , with interior and closure relative to that probability simplex,
The method of types explains the exponent: a type class has roughly words, each with probability ; the number of types grows only polynomially.[ref]
For Bernoulli distribution observations with success probability , the event therefore has probability . The exponent is ; atypical empirical laws closest in relative entropy dominate the rare event.
Let be the weak typical set of a finite alphabet independent and identically distributed source with Shannon entropy , and let be any sets with . The asymptotic equipartition property and union bound give . Every word in the intersection has probability mass between and . Summing these bounds gives
For every fixed , the first probability eventually exceeds , proving the title bound. A sample mean within a fixed positive tolerance of the expected value supplies by the strong law of large numbers.