A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Typical Sequences and the AEP

Research Depth 103 in the knowledge graph ☐ I know this ☆ Set as goal
11topics build on this
430prerequisites beneath it
See this on the map →
Expected ValueShannon Entropy+1 more→→Channel Coding TheoremRate-Distortion Theory
typical set asymptotic equipartition property AEP law of large numbers typicality

Core Idea

The asymptotic equipartition property (AEP) states that for a long sequence of n i.i.d. random variables, -(1/n) log p(X_1, ..., X_n) converges to H(X) in probability. This means almost all observed sequences have probability approximately 2-nH, forming the "typical set" of about 2nH sequences. Although the total number of possible sequences is |alphabet|^n, the typical set is exponentially smaller (when H < log|alphabet|) yet carries nearly all the probability. The AEP is the law of large numbers applied to information and is the foundational tool for proving both source coding and channel coding theorems.

How It's Best Learned

Use a spreadsheet for a coin with P(1) = 0.1 and n = 100. For each count k of ones, list the number of sequences, the probability of each one, and their total. The all-zeros sequence is the single most likely, at about 2.7×10-5. Yet k = 10 carries about 0.13 of the probability, and its −(1/n) log2 p equals H(0.1) ≈ 0.469.

Common Misconceptions

Explainer

The AEP is the information-theoretic manifestation of the law of large numbers. For i.i.d. random variables X_1, ..., X_n, the log-probability of the sequence is a sum: log p(X_1, ..., X_n) = sum log p(X_i). By the law of large numbers, the average (1/n) sum log p(X_i) converges to E[log p(X)] = -H(X). So -(1/n) log p(Xn) converges to H(X). This means the probability of almost every observed sequence is approximately 2-nH.

The typical set A_epsilonn consists of all sequences xn satisfying |-(1/n) log p(xn) - H(X)| <= epsilon. The AEP guarantees three properties: (1) Pr(Xn in A_epsilonn) > 1 - delta for large enough n. (2) |A_epsilonn| <= 2^(n(H+epsilon)) — the typical set is small. (3) Each typical sequence has probability between 2^(-n(H+epsilon)) and 2^(-n(H-epsilon)) — they are all approximately equiprobable at the exponential scale. Property 3 explains the name "equipartition": probability is roughly equally distributed among typical sequences.

This structure is the engine behind Shannon's theorems. For source coding: since there are about 2nH typical sequences carrying nearly all the probability, assigning nH-bit indices to them achieves near-entropy compression. For channel coding: at the receiver, the output sequence is typical given the true codeword. If the code rate R < C, the number of codewords (2nR) is small enough that no other codeword's typical output set overlaps significantly. The decoder can identify the correct codeword with high probability by checking which codeword's conditional typical set contains the received sequence.

The AEP extends beyond i.i.d. sources. For stationary ergodic sources, the Shannon-McMillan-Breiman theorem provides an analogous result: -(1/n) log p(X_1, ..., X_n) converges to the entropy rate almost surely. This generalization underpins information theory's applicability to structured sources like natural language and time series, where successive symbols are far from independent.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Shannon Entropy → Source Coding Theorem → Typical Sequences and the AEP

Longest path: 104 steps · 430 total prerequisite topics

Prerequisites (3)

Leads To (2)