For an independent identically distributed source with mass function on a finite alphabet and a fixed compression rate , the optimal probability of decoding error has exponent
meaning that the best fixed-rate codes satisfy
at continuity points of the exponent.
For the direct part, let and
Encode every sequence whose type satisfies . The method of types bounds the number of such sequences by
so they fit into a rate- codebook. The error probability obeys
Compactness of the probability simplex and continuity of entropy and relative entropy on the support of give
which is the direct bound.
The type of is its empirical mass function
For a product source ,
with the usual convention that the probability is zero if the string uses a symbol outside the support of .
The type of is its empirical distribution
Its type class is
Every string in has -probability
while the method of types gives . Therefore
The Neyman-Pearson decision region accepting is
with randomization on the boundary when needed. If is the type of the observed string, then
Thus the equivalent relative entropy form is
Let
The minimum exists because the probability simplex is compact. Let be the information projection of onto the closed convex set . Its Pythagorean inequality says that every satisfies
For a string of type , this gives
Summing over the decision region proves the exact bound
Here . The method of types gives at most possible values of type, and a type class has
Every type in has , so
The polynomial prefactor has zero exponential rate. Therefore
Type (information theory) Created 2026-09-24 Updated 2026-10-14
A type summarizes a string by how often each symbol occurs. Fix a finite alphabet of cardinality and a positive length . For a string , its empirical distribution is the probability mass function
The empirical distribution forgets order. The strings and both assign probability to each binary symbol; assigns to zero and to one. Thus a long string can have a short summary even though that summary does not reconstruct the original order.
For independent and identically distributed symbols, this loss of order has a useful consequence: all strings with the same empirical distribution have the same probability. The method of types uses this symmetry to turn questions about exponentially many strings into counting questions about relatively few frequency profiles.[ref]