In mathematics and information theory, Sanov's theorem gives a bound on the probability of observing an atypical sequence of samples from a given probability distribution. In the language of large deviations theory, Sanov's theorem identifies the rate function for large deviations of the empirical measure of a sequence of i.i.d. random variables. Let A be a set of probability distributions over an alphabet X, and let q be an arbitrary distribution over X (where q may or may not be in A). Suppose we draw n i.i.d. samples from q, represented by the vector xn=(x1,x2,…,xn). Then, we have the following bound on the probability that the empirical measure p̂xn of the samples falls within the set A:
qn(p̂xn∈A)≤(n+1)|X|2−nDKL(p∗||q), where
qn is the joint probability distribution on Xn, and p∗ is the information projection of q onto A. DKL(P‖Q), the KL divergence, is given by: DKL(P‖Q)=∑x∈𝒳P(x)logP(x)Q(x). In words, the probability of drawing an atypical distribution is bounded by a function of the KL divergence from the true distribution to the atypical one; in the case that we consider a set of possible atypical distributions, there is a dominant atypical distribution, given by the information projection. Furthermore, if A is a closed set, then
limn→∞1nlogqn(p̂xn∈A)=−DKL(p∗||q).
Technical statement Define:
Σ is a finite set with size ≥2. Understood as “alphabet”. Δ(Σ) is the simplex spanned by the alphabet. It is a subset of ℝΣ. Ln is a random variable taking values in Δ(Σ). Take n samples from the distribution μ, then Ln is the frequency probability vector for the sample. ℒn is the space of values that Ln can take. In other words, it is {(a1/n,…,a|Σ|/n):∑iai=n,ai∈ℕ}Then, Sanov's theorem states:
For every measurable subset S∈Δ(Σ),−infν∈int(S)D(ν‖μ)≤lim infn1nlnPμ(Ln∈S)≤lim supn1nlnPμ(Ln∈S)≤−infν∈cl(S)D(ν‖μ) For every open subset U∈Δ(Σ),−limnlimν∈U∩ℒnD(ν‖μ)=limn1nlnPμ(Ln∈S)=−infν∈UD(ν‖μ) Here, int(S) means the interior, and cl(S) means the closure.
References
Further reading Cover, Thomas M.; Thomas, Joy A. (2006). Elements of Information Theory (2 ed.). Hoboken, New Jersey: Wiley Interscience. pp. 362. ISBN 9780471241959. Sanov, I. N. (1957) "On the probability of large deviations of random variables". Mat. Sbornik 42(84), No. 1, 11–44. Санов, И. Н. (1957) "О вероятности больших отклонений случайных величин". МАТЕМАТИЧЕСКИЙ СБОРНИК 42(84), No. 1, 11–44.