Welcome to our final lesson in this introductory module on the mathematical foundations of statistical mechanics. In the previous lesson, we mastered the saddle-point approximation, a powerful tool for evaluating integrals in the asymptotic limit. We saw how the dominant contribution to an integral of the form for large comes from the neighborhood of a point that maximizes the real part of .
Today, we bring this module to a close by exploring the Large Deviation Principle (LDP). This principle provides a general framework for understanding the probabilities of rare events in systems with many random components. You'll find a deep and satisfying connection between the function from our previous lesson and the central object of today's lesson: the rate function. Our goal is to define the large deviation principle and the rate function, stating Cramér's theorem for sums of IID random variables. This will complete our toolkit of asymptotic methods, positioning us perfectly to begin our study of the physics of many-body systems.
1. Beyond the Central Limit Theorem
We've already studied two fundamental results concerning the sum of independent and identically distributed (IID) random variables, :
- The Law of Large Numbers (LLN): As , the sample mean converges to the true mean, .
- The Central Limit Theorem (CLT): The fluctuations of around the mean on the scale of are described by a Gaussian distribution.
The CLT describes typical, small fluctuations. But what about atypical, large fluctuations? What is the probability that takes on a value that is significantly different from ? The LLN tells us this probability goes to zero as , but it doesn't say how fast. This is the question that Large Deviation Theory (LDT) answers.
Professor Frank den Hollander provides an excellent introduction to this idea.
A minicourse on Large Deviations I
This video introduces the core idea of LDT and contrasts it with the LLN and CLT.
Watch the initial segments of the lecture, from the introduction explaining what LDT is about, through the motivating example of the empirical mean of IID random variables. This will situate LDT in the context of probability theory you already know.
As the video explains, LDT states that the probability of observing a large deviation decays exponentially with :
The function is called the rate function. It quantifies the "cost" or improbability of observing the deviation .
2. The Large Deviation Principle
Let's formalize this intuition. The two provided texts by Hugo Touchette, written from a physicist's perspective, offer a clear and rigorous development of the theory.
A basic introduction to large deviations: Theory, ...
This text introduces the LDP through concrete examples and provides a working definition.
Please read section 2, "Basic elements of large deviation theory" (pages 4-15). Pay attention to: The examples for Gaussian, exponential, and Bernoulli variables, which show the recurring e^{-nI(s)} form. The informal definition of the LDP (Eq. 2.11) as a logarithmic limit, which filters out sub-exponential terms. The brief discussion of the "coarse-grained" PDF, which allows treating discrete variables in a continuous framework for large n, a common practice in physics.
The working definition of the LDP for a sequence of random variables is that the limit
exists and defines the rate function . From this definition and the examples, we can deduce some key properties of the rate function:
- Positivity: . A negative rate would imply a probability greater than 1.
- Zeroes correspond to typical values: If the system obeys the Law of Large Numbers and converges to a value , then , and for . The most probable event has zero "cost."
- Convexity: Rate functions are typically convex. The region around the minimum is approximately quadratic, . This recovers the Gaussian form of the Central Limit Theorem for small deviations. LDT thus contains the CLT as a special case but also describes the non-Gaussian tails for large deviations.
For a fully rigorous mathematical statement, the LDP is defined not with a simple limit but with a lower bound for open sets and an upper bound for closed sets. This is analogous to how weak convergence of probability measures is defined.
A minicourse on Large Deviations I
This segment presents the formal, measure-theoretic definition of the LDP.
Watch the portion of the lecture where the formal definition of the large deviation principle is given. Note the structure involving upper and lower bounds on probabilities of sets. This level of rigor is the standard in the mathematical physics literature.
3. Calculating the Rate Function: Cramér's Theorem
We now have a definition for the rate function, but how do we compute it without first knowing the full probability distribution ? The cornerstone result that connects LDT to a calculable quantity is the Gärtner-Ellis Theorem.
This theorem introduces the scaled cumulant generating function (SCGF), :
The Gärtner-Ellis theorem states that if exists and is differentiable, then the rate function is its Legendre-Fenchel transform:
This structure is profoundly important. You have encountered the Legendre transform in the transition from the Lagrangian to the Hamiltonian in classical mechanics, and you will soon see it connecting different thermodynamic potentials (like entropy and free energy) in statistical mechanics. Here, it connects the statistical properties of fluctuations () to a generating function (). The "plausibility proof" in the following reading shows that this theorem is essentially a consequence of applying the saddle-point method to the definition of the generating function, which provides a beautiful link to our previous lesson.
Equivalence and Nonequivalence of the Microcanonical ...
This chapter from Touchette's thesis provides a detailed, physics-oriented explanation of the Gärtner-Ellis Theorem.
Please read Section 1.3, "Calculating the Rate Function" (pages 31-34). Focus on: The statement of the Gärtner-Ellis Theorem. The "Plausibility Proof," which uses the Laplace (saddle-point) approximation to derive the Legendre-Fenchel transform relationship between I(a) and \lambda(k).
Cramér's Theorem (also known as the Chernoff-Cramér theorem) is the direct application of this machinery to the case we are most interested in: the sum of IID random variables, .
For IID variables, the SCGF simplifies significantly:
So, is simply the logarithm of the moment-generating function of a single variable .
Cramér's Theorem states: The sample mean of IID random variables satisfies a large deviation principle with a rate function given by:
The following video segment formally states this theorem and provides several key examples.
A minicourse on Large Deviations I
This segment formulates Cramér's theorem and applies it to derive rate functions for several common distributions.
Watch the section on Cramér's Theorem. Observe how the rate functions are calculated for the standard normal, Bernoulli, and Poisson distributions. Notice the distinct shapes of the resulting rate functions.
The graph below provides a visual confirmation of Cramér's theorem. It plots the logarithm of the probability of a large deviation against . According to the LDP, this should be a straight line for large , with a slope equal to . The plot shows that the LDP estimate (blue line) is an excellent approximation to the exact bounds for large .

4. Sanov's Theorem: A Bridge to Information Theory
Cramér's theorem concerns the sample mean, a single number. But LDT can also be applied to more complex objects. A particularly insightful application is Sanov's Theorem, which describes the large deviations of the entire empirical probability distribution.
Let be the histogram or empirical distribution we observe from samples. The LLN implies that as , converges to the true underlying distribution . Sanov's theorem answers: what is the probability that the observed empirical distribution is close to some other distribution ? The result is:
The rate function is , the Kullback-Leibler (KL) divergence or relative entropy between the distributions and .
This provides a profound connection back to our very first lesson on information theory. The KL divergence, which we saw as a measure of "distance" between two probability distributions, is precisely the rate function governing the probability of observing one distribution when the true one is another.
The derivation of Sanov's theorem from combinatorics and Stirling's approximation is a beautiful exercise.
A minicourse on Large Deviations I
This section presents Sanov's Theorem and sketches its proof for a simple case.
Watch the final segment on Sanov's Theorem. The key idea is to use combinatorics (the multinomial coefficient) and Stirling's approximation, much like we did for the coin-flip example, to arrive at the relative entropy as the rate function.
This result is a cornerstone of the connection between statistical mechanics and information theory. As we will see later, principles like maximizing entropy can be understood as finding the state with the highest probability (lowest rate function) subject to certain constraints.
Conclusion
This lesson concludes our foundational module on probability and asymptotic methods. We have moved from the law of large numbers (the most likely outcome) and the central limit theorem (small fluctuations) to the powerful framework of large deviation theory, which quantifies the probability of rare but important events.
Key Takeaways:
- The Large Deviation Principle states that the probability of an atypical macroscopic state decays exponentially, .
- The rate function is a non-negative, convex function that is zero only for the most probable state(s).
- Cramér's Theorem provides a direct method for calculating the rate function for sums of IID random variables. It is the Legendre-Fenchel transform of the scaled cumulant generating function: .
- The mathematical structure of LDT, particularly the Legendre transform, mirrors the structure of thermodynamics, connecting fluctuation probabilities to free energies.
- Sanov's Theorem shows that the rate function for the empirical distribution is the KL divergence, linking LDT directly to information theory.
You have now built a formidable mathematical arsenal. We are ready to leave the realm of pure probability and enter the world of physics. In the next module, Kinetic Theory, we will apply these ideas for the first time to a physical system: a dilute gas. We will derive the Boltzmann equation to describe how collisions between particles drive the system towards equilibrium, providing the first microscopic justification for the emergence of irreversible, macroscopic behavior.