← All notesInformation TheoryDerivation
Typical Sets: Where Probability Mass Lives in High Dimensions
Why does probability mass sit on a thin shell rather than at the point of highest density?
1. Setup
Let be independent and identically distributed (i.i.d.) random variables with joint distribution .
We want to identify a "core subset" that captures the overwhelming majority of samples:
By the law of large numbers, for a function :
This defines a set . The next question is which captures the geometry of the distribution.
We choose .
Note Because the variables are i.i.d., taking the logarithm turns the joint density into a sum, that is, a sample mean, so the law of large numbers (LLN) applies:
As , the law of large numbers says this sample mean converges to its expectation, which is the entropy of the distribution:
2. The Asymptotic Equipartition Property (AEP)
The asymptotic equipartition property (AEP) is the law of large numbers applied to the log-probability of a random sequence.
Theorem (AEP)
As , by the law of large numbers:
where is the entropy (the differential entropy for continuous variables).
So for the vast majority of "typical" sequences, the joint probability is close to . This motivates the definition of the typical set:
Definition (typical set )
The typical set is the set of sequences satisfying
In short, the typical set contains the samples whose "surprise" (negative log-likelihood) is close to the average entropy.
3. Two Key Properties
The typical set has two properties that look contradictory at first and together explain what sampling really does.
Property 1: probability concentrates
For large enough, the typical set contains almost all of the probability mass:
If you sample from the distribution, the sample lands in the typical set with high probability.
Property 2: the volume is tiny
Although it holds almost all of the probability, in high dimensions it occupies a vanishing fraction of the whole space:
If the entropy satisfies (equality holds only for the uniform distribution), the typical set is a very small subset of the whole space.
Proof
The proof rests on the fact that probabilities sum to one. By the definition of the typical set, every sequence has probability bounded below:
Since the total probability over the whole space is 1, the total probability of the typical set is at most 1:
Rearranging gives the upper bound on the volume:
So as long as the distribution is not exactly uniform (that is, ), the volume of the typical set shrinks exponentially in relative to the volume of the whole space, .
4. Example: the High-Dimensional Gaussian
Consider the -dimensional standard Gaussian . Its density is largest at the origin , yet the geometry of high dimensions keeps the probability mass away from that point.
For any sample , the negative log-likelihood is
To locate the typical set we look at the normalized log-probability. The coordinates are independent variables, so each follows a chi-squared distribution with one degree of freedom and . By the weak law of large numbers (WLLN), as the second moment of the sample converges in probability to its expectation:
Almost every sample from a high-dimensional Gaussian therefore lies near a thin spherical shell of radius centered at the origin: