For n independent samples from a distribution with entropy H, the sample sequence almost surely lands in a typical set of about 2^(nH) sequences, each of probability about 2^(-nH). It is the law of large numbers applied to -log2 p and the basis of compression and random coding.
Established resultMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01
AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.
Let X1,X2,… be i.i.d. with distribution p and entropy H=H(X1), and write
p(xn)=∏i=1np(xi) for xn=(x1,…,xn). Then
−n1log2p(Xn)→H in probability. For δ>0 define the
typical set
Tδ(n)={xn∈Xn:−n1log2p(xn)−H≤δ}.
Then:
Pr[Xn∈Tδ(n)]→1 as n→∞; in particular it exceeds
1−ϵ for every ϵ>0 and all sufficiently large n;
every xn∈Tδ(n) has 2−n(H+δ)≤p(xn)≤2−n(H−δ);
∣Tδ(n)∣≤2n(H+δ) for every n;
∣Tδ(n)∣≥(1−ϵ)2n(H−δ) for all sufficiently large n.
So the typical set carries almost all the probability, has about 2nH elements out of
∣X∣n, and its elements are nearly equiprobable. Note that the single most
likely sequence need not be typical. The property was stated by
Shannon and proved in general (for stationary ergodic sources) by
McMillan; the i.i.d. statement is chapter 3 of
Cover and Thomas. Its quantum analogue, the typical subspace of
ρ⊗n with dimension about 2nS(ρ), is the core of Schumacher
compression and of the HSW theorem.
Holds when
X_1, X_2, ... are independent and identically distributed with a distribution p on a finite set.
With probability one each Xi lies in the support of p, so Zi=−log2p(Xi) is a
well-defined random variable taking finitely many values. The Zi are i.i.d. with mean
EZi=−∑xp(x)log2p(x)=H and finite variance, and
−n1log2p(Xn)=n1∑i=1nZi. The
weak law of large numbers gives convergence in
probability to H, which is statement 1, since Xn∈Tδ(n) exactly when the
average is within δ of H.
Statement 2 is the definition of Tδ(n) rewritten: ∣−n1log2p(xn)−H∣≤δ
iff n(H−δ)≤−log2p(xn)≤n(H+δ).
For statement 3, by statement 2,
1≥∑xn∈Tp(xn)≥∣T∣2−n(H+δ).
For statement 4, take n large enough that Pr[Xn∈T]≥1−ϵ; then by
statement 2, 1−ϵ≤∑xn∈Tp(xn)≤∣T∣2−n(H−δ).
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
Convergence in probability and the four typical-set properties compared with Polyanskiy and Wu, Information Theory: From Coding to Learning (authors' open PDF) Proposition 11.6 and re-derived from the weak law; checked numerically for Bernoulli(0.2), n = 400, delta = 0.05 (probability 0.765, log-size per symbol 0.755 within [H - delta, H + delta]). Cover and Thomas chapter 3 title (Asymptotic Equipartition Property) confirmed via Crossref; Crossref metadata for McMillan (1953) matches the entry; Shannon's and McMillan's papers not re-read.
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
Current revision 5f69c2d6b3dcebe8. Source file knowledge/records/theorem/asymptotic-equipartition-property.md in the content repository (readable there once it is public).