Skip to main content
KetQat

Appearance

Theorem · intermediate

Asymptotic equipartition property

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,…X_1, X_2, \dots be i.i.d. with distribution pp and entropy H=H(X1)H = H(X_1), and write p(xn)=∏i=1np(xi)p(x^n) = \prod_{i=1}^{n} p(x_i) for xn=(x1,…,xn)x^n = (x_1, \dots, x_n). Then −1nlog⁡2p(Xn)→H-\frac{1}{n}\log_2 p(X^n) \to H in probability. For δ>0\delta > 0 define the typical set

Tδ(n)={xn∈Xn:∣−1nlog⁡2p(xn)−H∣≤δ}.T_\delta^{(n)} = \Big\{ x^n \in \mathcal{X}^n : \Big| -\tfrac{1}{n}\log_2 p(x^n) - H \Big| \le \delta \Big\} .

Then:

  1. Pr⁡[Xn∈Tδ(n)]→1\Pr[X^n \in T_\delta^{(n)}] \to 1 as n→∞n \to \infty; in particular it exceeds 1−ϵ1 - \epsilon for every ϵ>0\epsilon > 0 and all sufficiently large nn;
  2. every xn∈Tδ(n)x^n \in T_\delta^{(n)} has 2−n(H+δ)≤p(xn)≤2−n(H−δ)2^{-n(H + \delta)} \le p(x^n) \le 2^{-n(H - \delta)};
  3. ∣Tδ(n)∣≤2n(H+δ)\abs{T_\delta^{(n)}} \le 2^{n(H + \delta)} for every nn;
  4. ∣Tδ(n)∣≥(1−ϵ) 2n(H−δ)\abs{T_\delta^{(n)}} \ge (1 - \epsilon)\, 2^{n(H - \delta)} for all sufficiently large nn.

So the typical set carries almost all the probability, has about 2nH2^{nH} elements out of ∣X∣n\abs{\mathcal{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\rho^{\otimes n} with dimension about 2nS(ρ)2^{n S(\rho)}, 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.
  • Entropy in bits; delta > 0 is a fixed tolerance.

Proof

Proof of the asymptotic equipartition propertyMachine-checked

With probability one each XiX_i lies in the support of pp, so Zi=−log⁡2p(Xi)Z_i = -\log_2 p(X_i) is a well-defined random variable taking finitely many values. The ZiZ_i are i.i.d. with mean EZi=−∑xp(x)log⁡2p(x)=H\mathbb{E}Z_i = -\sum_x p(x) \log_2 p(x) = H and finite variance, and −1nlog⁡2p(Xn)=1n∑i=1nZi-\frac{1}{n}\log_2 p(X^n) = \frac{1}{n}\sum_{i=1}^{n} Z_i. The weak law of large numbers gives convergence in probability to HH, which is statement 1, since Xn∈Tδ(n)X^n \in T_\delta^{(n)} exactly when the average is within δ\delta of HH.

Statement 2 is the definition of Tδ(n)T_\delta^{(n)} rewritten: ∣−1nlog⁡2p(xn)−H∣≤δ\abs{-\frac1n \log_2 p(x^n) - H} \le \delta iff n(H−δ)≤−log⁡2p(xn)≤n(H+δ)n(H - \delta) \le -\log_2 p(x^n) \le n(H + \delta).

For statement 3, by statement 2, 1≥∑xn∈Tp(xn)≥∣T∣ 2−n(H+δ)1 \ge \sum_{x^n \in T} p(x^n) \ge \abs{T}\, 2^{-n(H + \delta)}.

For statement 4, take nn large enough that Pr⁡[Xn∈T]≥1−ϵ\Pr[X^n \in T] \ge 1 - \epsilon; then by statement 2, 1−ϵ≤∑xn∈Tp(xn)≤∣T∣ 2−n(H−δ)1 - \epsilon \le \sum_{x^n \in T} p(x^n) \le \abs{T}\, 2^{-n(H - \delta)}.

The argument is the one in chapter 3 of Cover and Thomas.

Open in the knowledge graph

Contributions about this record

Nobody has published a contribution about it yet.

Publish a result, reproduction or commentPropose a correction to this page

References

  1. C. E. Shannon (1948). A Mathematical Theory of Communication. Bell System Technical Journal 27 (3), 379-423. doi:10.1002/j.1538-7305.1948.tb01338.x
  2. Brockway McMillan (1953). The Basic Theorems of Information Theory. The Annals of Mathematical Statistics 24, 196-219. doi:10.1214/aoms/1177729028
  3. Thomas M. Cover, Joy A. Thomas (2005). Elements of Information Theory. Wiley (2nd edition). doi:10.1002/047174882X

Contributors

  • KetQat maintainers · @ketqatConceptualization; Supervision (CRediT roles)
  • Claude (AI drafting assistant)Writing, original draft (CRediT roles)

Review history

  1. 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

  1. 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).