# Large deviations theory

In probability theory, the theory of large deviations concerns the asymptotic behaviour of remote tails of sequences of probability distributions. Some basic ideas of the theory can be traced back to Laplace and Cramér, but a clear and unified formal definition was only introduced in 1966, in a paper by Varadhan.[1] Large deviations theory formalizes the heuristic ideas of concentration of measures and widely generalizes the notion of convergence of probability measures.

Roughly speaking, large deviations theory concerns itself with the exponential decline of the probability measures of certain kinds of extreme or tail events.

## Introductory examples

### An elementary example

Consider a sequence of independent tosses of a fair coin. The possible outcomes could be heads or tails. Let us denote the possible outcome of the i-th trial by ${\displaystyle X_{i}}$, where we encode head as 1 and tail as 0. Now let ${\displaystyle M_{N}}$ denote the mean value after ${\displaystyle N}$ trials, namely

${\displaystyle M_{N}={\frac {1}{N}}\sum _{i=1}^{N}X_{i}.}$

Then ${\displaystyle M_{N}}$ lies between 0 and 1. From the law of large numbers (and also from our experience) we know that as N grows, the distribution of ${\displaystyle M_{N}}$ converges to ${\displaystyle 0.5=\operatorname {E} [X_{1}]}$ (the expectation value of a single coin toss) almost surely.

Moreover, by the central limit theorem, we know that ${\displaystyle M_{N}}$ is approximately normally distributed for large ${\displaystyle N}$. The central limit theorem can provide more detailed information about the behavior of ${\displaystyle M_{N}}$ than the law of large numbers. For example, we can approximately find a tail probability of ${\displaystyle M_{N}}$, ${\displaystyle P(M_{N}>x)}$, that ${\displaystyle M_{N}}$ is greater than ${\displaystyle x}$, for a fixed value of ${\displaystyle N}$. However, the approximation by the CLT may not be accurate if ${\displaystyle x}$ is far from ${\displaystyle \operatorname {E} [X_{1}]}$. Also, it does not provide information about the convergence of the tail probabilities as ${\displaystyle N\to \infty }$. However, the large deviation theory can provide answers for such problems.

Let us make this statement more precise. For a given value ${\displaystyle 0.5, let us compute the tail probability ${\displaystyle P(M_{N}>x)}$. Define

${\displaystyle I(x)=x\,{\text{ln}}x+(1-x)\,{\text{ln}}(1-x)+{\text{ln}}2.}$

Note that the function ${\displaystyle I(x)}$ is a convex, nonnegative function that is zero at x=1/2 and increases as you move to x=1. It is the negative of the Bernoulli entropy with p=1/2; that it's appropriate for coin tosses follows from the asymptotic equipartition property applied to a Bernoulli trial. Then by Chernoff's inequality, it can be shown that ${\displaystyle P(M_{N}>x)<\exp(-NI(x))}$.[2] This bound is rather sharp, in the sense that ${\displaystyle I(x)}$ cannot be replaced with a larger number which would yield a strict inequality for all positive ${\displaystyle N}$.Template:Doubtful (However, the exponential bound can still be reduced by a subexponential factor on the order of ${\displaystyle 1/{\sqrt {N}}}$; this follows from the Stirling approximation applied to the binomial coefficient appearing in the Bernoulli distribution.) Hence, we obtain the following result:

${\displaystyle P(M_{N}>x)\approx \exp(-NI(x)).}$

The probability ${\displaystyle P(M_{N}>x)}$ decays exponentially as ${\displaystyle N}$ grows to infinity, at a rate depending on x. This formula approximates any tail probability of the sample mean of i.i.d. variables and gives its convergence as the number of samples increases.

### Large deviations for sums of independent random variables

In the above example of coin-tossing we explicitly assumed that each toss is an independent trial, and the probability of getting head or tail is always the same.

Let ${\displaystyle X,X_{1},X_{2},...}$ be independent and identically distributed (i.i.d.) random variables (r.v.s) whose common distribution satisfies a certain growth condition. Then the following limit exists:

${\displaystyle \lim _{N\to \infty }{\frac {1}{N}}\ln P(M_{N}>x)=-I(x).}$

Function ${\displaystyle I(\cdot )}$ is called the "rate function" or "Cramér function" or sometimes the "entropy function".

The above mentioned limit means that for large ${\displaystyle N}$,

${\displaystyle P(M_{N}>x)\approx \exp[-NI(x)],}$

which is the basic result of large deviations theory.[3][4]

If we know the probability distribution of ${\displaystyle X}$, an explicit expression for the rate function can be obtained. This is given by a Legendre–Fenchel transformation,[5]

${\displaystyle I(x)=\sup _{\theta >0}[\theta x-\lambda (\theta )],}$

where

${\displaystyle \lambda (\theta )=\ln \operatorname {E} [\exp(\theta X)]}$

is called the cumulant generating function (CGF) and ${\displaystyle \operatorname {E} }$ denotes the mathematical expectation.

If ${\displaystyle X}$ follows a normal distribution, the rate function becomes a parabola with its apex at the mean of the normal distribution.

## Brief history

The first rigorous results concerning large deviations are due to the Swedish mathematician Harald Cramér, who applied them to model the insurance business.{{ safesubst:#invoke:Unsubst||date=__DATE__ |\$B= {{#invoke:Category handler|main}}{{#invoke:Category handler|main}}[citation needed] }} From the point of view of an insurance company, the earning is at a constant rate per month (the monthly premium) but the claims come randomly. For the company to be successful over a certain period of time (preferably many months), the total earning should exceed the total claim. Thus to estimate the premium you have to ask the following question : "What should we choose as the premium ${\displaystyle q}$ such that over ${\displaystyle N}$ months the total claim ${\displaystyle C=\Sigma X_{i}}$ should be less than ${\displaystyle Nq}$ ? " This is clearly the same question asked by the large deviations theory. Cramér gave a solution to this question for i.i.d. random variables, where the rate function is expressed as a power series.

A very incomplete list of mathematicians who have made important advances would include Petrov,[6] Sanov,[7] S.R.S. Varadhan (who has won the Abel prize), D. Ruelle and O.E. Lanford.

## Applications

Principles of large deviations may be effectively applied to gather information out of a probabilistic model. Thus, theory of large deviations finds its applications in information theory and risk management. In Physics, the best known application of large deviations theory arise in Thermodynamics and Statistical Mechanics (in connection with relating entropy with rate function).

### Large deviations and entropy

{{#invoke:main|main}} The rate function is related to the entropy in statistical mechanics. This can be heuristically seen in the following way. In statistical mechanics the entropy of a particular macro-state is related to the number of micro-states which corresponds to this macro-state. In our coin tossing example the mean value ${\displaystyle M_{N}}$ could designate a particular macro-state. And the particular sequence of heads and tails which gives rise to a particular value of ${\displaystyle M_{N}}$ constitutes a particular micro-state. Loosely speaking a macro-state having a higher number of micro-states giving rise to it, has higher entropy. And a state with higher entropy has a higher chance of being realised in actual experiments. The macro-state with mean value of 1/2 (as many heads as tails) has the highest number micro-states giving rise to it and it is indeed the state with the highest entropy. And in most practical situations we shall indeed obtain this macro-state for large numbers of trials. The "rate function" on the other hand measures the probability of appearance of a particular macro-state. The smaller the rate function the higher is the chance of a macro-state appearing. In our coin-tossing the value of the "rate function" for mean value equal to 1/2 is zero. In this way one can see the "rate function" as the negative of the "entropy".

There is a relation between the "rate function" in large deviations theory and the Kullback–Leibler divergence (see Sanov [7] and Novak,[8] ch. 14.5).

In a special case, large deviations are closely related to the concept of Gromov–Hausdorff limits.[9]

## References

1. S.R.S. Varadhan, Asymptotic probability and differential equations, Comm. Pure Appl. Math. 19 (1966),261-286.
2. "Large deviations for performance analysis : queues, communications, and computing", Shwartz, Adam, 1953- TN: 1228486
5. {{#invoke:Citation/CS1|citation |CitationClass=journal }}
6. Petrov V.V. (1954) Generalization of Cramér's limit theorem. Uspehi Matem. Nauk, v. 9, No 4(62), 195--202.(Russian)
7. Sanov I.N. (1957) On the probability of large deviations of random magnitudes. Matem. Sbornik, v. 42 (84), 11--44.
8. Novak S.Y. (2011) Extreme value methods with applications to finance. Chapman & Hall/CRC Press. ISBN 978-1-4398-3574-6.
9. Kotani M., Sunada T. Large deviation and the tangent cone at infinity of a crystal lattice, Math. Z. 254, (2006), 837-870.

## Bibliography

• Special invited paper: Large deviations by S. R. S. Varadhan The Annals of Probability 2008, Vol. 36, No. 2, 397–419 Template:Hide in printTemplate:Only in print
• Entropy, Large Deviations and Statistical Mechanics by R.S. Ellis, Springer Publication. ISBN 3-540-29059-1
• Large Deviations for Performance Analysis by Alan Weiss and Adam Shwartz. Chapman and Hall ISBN 0-412-06311-5
• Large Deviations Techniques and Applications by Amir Dembo and Ofer Zeitouni. Springer ISBN 0-387-98406-2
• Random Perturbations of Dynamical Systems by M.I. Freidlin and A.D. Wentzell. Springer ISBN 0-387-98362-7
• "Large Deviations for Two Dimensional Navier-Stokes Equation with Multiplicative Noise", S. S. Sritharan and P. Sundar, Stochastic Processes and Their Applications, Vol. 116 (2006) 1636–1659.[1]
• "Large Deviations for the Stochastic Shell Model of Turbulence", U. Manna, S. S. Sritharan and P. Sundar, NoDEA Nonlinear Differential Equations Appl. 16 (2009), no. 4, 493-521.[2]