The Theorem
A classical source emits letters from a finite alphabet , one at a time and independently, each use giving the letter with the same probability . The numbers are nonnegative and sum to one: is a probability distribution on . After uses the source has emitted a sequence , which occurs with probability (1)
There are sequences of length , and the question is how few of them hold nearly all the probability when is large. The theorem of typical sequences answers it with the sequences whose probability is close to , where is the Shannon entropy of the source.
Entropy and Typical Sequences
The Shannon entropy of a probability distribution on a finite alphabet is the real number (2)✦ with the natural logarithm, so that is measured in nats. We write for when the distribution is fixed.
For a length and a number , the set of -typical sequences of the source is the set of sequences of letters whose probability (1) satisfies (3)✦ Its number of elements is written .
The Claim
Theorem 1. Let be a probability distribution on a finite alphabet, with Shannon entropy , and let .
For every and all sufficiently large , the -typical sequences of length carry probability at least : (4)✦
For every and all sufficiently large , the number of -typical sequences of length satisfies (5)✦
For every number and all sufficiently large , every set of at most sequences of length carries probability at most : (6)✦
What Is Checked
The claim is stated over the Shannon entropy (2) and the set of typical sequences (3), for every probability distribution on every finite alphabet, the probability of a sequence being the product (1).
About the typical set the library proves the probability bound (4) and the bounds (5) on its size, and about any set of at most sequences with the bound (6).