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 . ThenHere 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]
6.441 Information Theory (Spring 2016 lecture notes) by Yury Polyanskiy and others. §8, Theorem 8.1 and Corollary 8.2, printed p. 90: stationary ergodic sources and typical sets
Bernoulli typical-set example 2026-10-14
Take an IID random variable source of bits with . Its binary entropy isA word of length containing ones has probability . Its information content per symbol isThus weakly typical sequences for this biased source have near . With tolerance bits per symbol, the exact condition isFor , this includes exactly . There are words with each count: a type class with that many possible orderings. Summing the counts and their probability masses givesThese are fewer than one percent of the possible words, yet they carry nearly 64 percent of the probability. The most likely individual word is all zeros, with probability ; it is outside this typical set. No contradiction is involved: the type classes near ten ones each contain many more individual words.
The most likely individual word differs from the counts carrying most probability
. The left plot gives the information content of one word with each number of ones. The right includes the binomial coefficient counting every such word, giving the exact binomial distribution of the count. Both use , ; the green band marks the typical set with tolerance bits per symbol. Details. Development of the method of types 2026-10-14
In his 1998 retrospective, Imre Csiszár describes the method of types as a 1970s refinement of the typical set approach, with older counting ingredients. He credits his research group with turning those ingredients into a general tool, while explicitly declining to give a complete discovery history.[ref]
The Method of Types by Imre Csiszár. §I, printed pp. 2505–2506: the refinement in the 1970s and the author's qualified historical account
The useful shift is from an approximately typical collection to exact frequency classes: the latter retain enough structure to study how fast error probabilities decay. Minimal high-probability source-set exponent 2026-10-14
For a finite-alphabet IID source and fixed , the smallest set of length- strings carrying probability at least has size . The typical set bounds give the upper estimate. For the lower estimate, any such set intersects the typical set in probability bounded away from zero, while each typical string has probability at most .
// Target: probability-and-statistics.bigb
For finite-alphabet independent and identically distributed random variables, fixed and , every epsilon-sufficient set of length- words satisfies for sufficiently large . Intersect with a typical set whose excluded mass is at most . The intersection retains that much probability and each word has probability at most .
Past exam of the mathematics course of the University of Cambridge 2007 iii Paper 31 2 Solution Created 2026-10-03 Updated 2026-10-14
Use base-two logarithms and put , with . Zero-probability letters can be omitted. The random variables are self-information values, are IID, and have finite mean because the alphabet is finite. Independence givesFor an arbitrary , define the typical setThe weak law of large numbers implies . Every string in this set satisfiesThis is the asymptotic equipartition property for the given finite IID source, here obtained directly from the weak law of large numbers.
For the upper bound, summing the lower bound on typical-string probabilities yields . For sufficiently large , its probability is at least , so it is an admissible set in the definition of . HenceFor the lower bound, let be any admissible set and write . ThenEach member of this intersection has probability at most . Therefore, for all sufficiently large ,This applies in particular to a minimum-size admissible set, giving a liminf at least . Letting proves both existence and the value of the minimal high-probability source-set exponent:For a deterministic source, and , consistent with the formula.
For coding, label the strings in an admissible set with distinct binary indices of length . A decoder reconstructs those strings exactly and may fail outside the set. Thus asymptotically bits per source symbol describe any fixed fraction of the probability mass. More strongly, every rate permits block codes with error tending to zero: choose , encode the typical strings individually and reserve one index for all other strings. The required number of indices is at most for large .
Conversely, a block encoder with at most outputs can reconstruct at most that many distinct input strings correctly. If , choose . Its success probability is at mostThis gives the strong converse for fixed-rate source coding. It is the operational significance of the information entropy limit for reliable source encoding at a rate. The allowance of a small reconstruction error matters: a fixed-length code that must encode every possible string without error generally needs the larger rate .
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 60 1 Solution Created 2026-10-03 Updated 2026-10-14
Use base-two logarithms throughout, so classical rates are measured in bits and quantum compression rates in qubits. A memoryless classical information source is a sequence of independent and identically distributed random variables on a finite alphabet , with fixed probability mass function . A length- word has probability , and the one-symbol Shannon entropy is , with .
For , the typical set isThis is weak typicality: it constrains the normalized self-information, not each empirical symbol count separately.
The typical sequence theorem gives the following three facts for fixed . The probability tends to one; each word in the set has probability between and ; and, once the set has probability at least ,The concentration assertion follows from the weak law of large numbers applied to the iid information variables , whose finite-alphabet mean is . The probability bounds are the definition of typicality exponentiated. Summing the lower bound over the typical words and using total probability at most one proves the cardinality upper bound; summing the upper bound and using total typical probability at least proves the lower bound.
Fix and choose . Enumerate all words in and assign a distinct fixed-length binary index to each. Reserve one more index as a failure symbol for every atypical input. For all sufficiently large ,so these indices can be transmitted using bits. The decoder inverts the typical-word enumeration; on the failure index it returns any fixed word. This describes both the compressor and decompressor, and its block error probability obeysIts rate tends to bits per symbol. Thus every permits reliable fixed-rate compression, with no claim that atypical words are reconstructed correctly.
For the memoryless quantum information source, the average one-use density matrix isIts trace is one and determinant , so its two eigenvalues areThe source-coding limit in Schumacher compression is the Von Neumann entropy of this average state: every larger qubit rate allows asymptotically faithful recovery of the emitted states, and a smaller rate cannot do so. Applying that limit giveswhere is the binary entropy. The quantum typical subspace of has dimension about and carries asymptotically all source weight, which explains the compression rate. The entropy of the classical emission label is one bit; it is not the quantum rate because the two emitted pure states are nonorthogonal.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 66 4 ii a Solution Created 2026-10-03 Updated 2026-10-06
Let . Since the alphabet is finite, these independent and identically distributed random variables are finite almost surely, have mean , and have finite variance . AlsoThe weak law of large numbers says that this average converges in probability to . ThusOne can also state the quantitative Chebyshev inequality bound . If , every word of positive probability is in the typical set. This is the finite-alphabet asymptotic equipartition property.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 66 4 ii b Solution Created 2026-10-03 Updated 2026-10-06
Every word in the typical set has probability at least . ConsequentlyRearranging proves the upper estimate in the typical-set cardinality bounds:
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 66 4 ii c Solution Created 2026-10-03 Updated 2026-10-06
Fix and . By the asymptotic equipartition property, all sufficiently large satisfy . For any epsilon-sufficient set ,Each word in this intersection has probability at most . Hencewhich gives the minimum size of a sufficient set for an IID source:The Chebyshev inequality used above supplies the sufficient quantitative condition . No assumption that itself is a typical set is needed; its intersection with one provides the bound.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 66 4 ii Solution 2026-10-06
Use the weak notion of a typical set. For a word write . The definition isA weakly typical sequence therefore has probability between and . Words containing zero-probability symbols are excluded. These two bounds and the weak law of large numbers provide the three conclusions below.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 323 2 i a Solution Created 2026-10-03 Updated 2026-10-05
Use base-two logarithms. The weakly typical sequence definition isEquivalently, . By the weak law of large numbers applied to the independent and identically distributed random variables , the probability of this typical set tends to one.
This captures the usual probability scale of a long sample, but it need not make every symbol frequency representative. For a fair binary source, every word has probability and , so even the all-zero word is weakly typical. The strongly typical sequence definition additionally controls empirical symbol frequencies and excludes this word for small tolerance. Thus weak typicality agrees with the high-probability-set intuition, while allowing individually unrepresentative members.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 323 2 i b Solution Created 2026-10-03 Updated 2026-10-05
Every member of the typical set has probability at least . Summing these probabilities givessoThe upper bound itself holds at every block length. For sufficiently large , the high-probability property also gives the companion lower boundhence . Together these are the typical-set cardinality bounds underlying Shannon source coding theorem.
Past exam of the mathematics course of the University of Cambridge 2019 iii Paper 323 2 ii a Solution Created 2026-10-03 Updated 2026-10-05
Memorylessness means that the ensemble's average density operator is . Its spectral decomposition isThe product eigenvalues giveZero eigenvalues contribute zero to the Von Neumann entropy and are excluded from logarithmic typicality tests.
The quantum typical subspace is the span of eigenvectors whose eigenvalues satisfyIts orthogonal projection selects precisely the classical typical set for the eigenvalue distribution . The typical-set cardinality bounds and the weak law of large numbers therefore givefor any fixed and all sufficiently large .
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 323 1 a Solution 2026-09-28
A rate- block code consists of an encoder and decoder , with ; it is reliable when . Choose with . The typical set has probability tending to one and cardinality at most . Encode its words injectively and map every atypical word to a default codeword. The error probability is at most the atypical probability, so reliable compression exists.
Past exam of the mathematics course of the University of Cambridge 2022 iii Paper 323 1 b Solution 2026-09-28
A quantum rate- code uses a compression channel into a space of dimension at most followed by a decompression channel; reliability means that its entanglement fidelity, and hence its average source-state fidelity, tends to one on . Diagonalize . The projector onto eigenvectors labelled by the classical typical set has dimension at most and expectation in tending to one. For choose so this typical subspace fits in dimensions, encode it isometrically, and send the orthogonal complement to a fixed state. The typical-subspace probability and the gentle-measurement estimate make the fidelity tend to one. This is Schumacher compression.
Typical sequence theorem 2026-10-14
For a memoryless classical information source, the typical set consists of positive-probability words with . The weak law of large numbers applied to proves its probability tends to one. Every typical word has probability between and . Summing the lower bound gives the displayed cardinality upper bound; if the set has probability at least , summing the upper bound gives cardinality at least .
To compress at any rate , choose , assign one fixed-length binary index to each typical word, and reserve one additional index for all atypical words. At most bits suffice for all large . Decoding inverts the typical-word indices and makes an arbitrary output for the reserved index. The reconstruction error is at most the probability of the atypical set and tends to zero.
Typical-set cardinality bounds 2026-10-05
For a typical set of probability at least ,The upper bound sums the lower probability bound for each word; the lower bound sums the upper probability bound and uses the set's total probability. These bounds turn the asymptotic equipartition property into exponential estimates of source-coding dimension.
Typical-set concentration for a biased coin 2026-10-14
The count has binomial distribution with mean and variance . The information content per symbol is an affine function of , so its variance isChebyshev's inequality therefore gives the finite-sample lower boundThe bound is often loose, but it proves that every fixed positive tolerance eventually captures nearly all the probability. Direct summation of the binomial distribution's probability masses gives . A finite sample does not need to have a nearly full typical set: the 40-symbol example above captures only about .
Longer biased-coin messages concentrate in typical sets with controlled size
. The left plot compares exact typical set probabilities with the lower bound from Chebyshev's inequality. The right shows and its finite-sample bounds. The tolerance stays fixed; the curve is not asserted to converge to exactly . All points are exact finite-model calculations. Details.
