Method of types
Counting and probability estimates for sequences grouped by their empirical distribution.
The method of types is a set of counting and probability tools for sequences over a finite alphabet. It is foundational in information theory and large deviations: it turns questions about probabilities of empirical frequencies into entropy and divergence calculations.
It relies on the entropy–counting relationship in entropy-multinomial-coefficients.
Types and type classes
Let be a finite alphabet with , and let .
- The type (empirical distribution) of is the probability mass function on defined by
- For a type with denominator (i.e., all are integers), the type class is
Counting: size of a type class
Write for each . Then
a multinomial coefficient.
Let
(natural-log entropy). Then the type class size satisfies the standard bounds
In particular, .
Counting: number of possible types
The number of distinct types on with denominator is at most
because each must be in .
Probability of a type class under an i.i.d. law
Let be a distribution on , and let be i.i.d. draws.
For any fixed type with denominator , every sequence has the same probability:
Therefore,
Introduce the (natural-log) Kullback–Leibler divergence
Using gives the characteristic exponential rate
(up to polynomial factors). A standard bound pair is
Why this is useful
- Converts empirical-frequency events into entropy/divergence exponents.
- Provides finite- (non-asymptotic) bounds with only polynomial slack.
- Serves as a discrete, combinatorial route to large deviation principles (e.g., the intuition behind Sanov-type results).