Typical sequence theorem
ID: typical-sequence-theorem
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.
New to topics? Read the docs here!