From Gaussian fluctuations to large deviations

The law of large numbers identifies the typical magnetization. The central limit theorem describes its small fluctuations. How unlikely is a deviation that stays a fixed distance from the mean?

Statistical Mechanics of Interacting Particle SystemsIndependent spins · Cramér’s theorem
3.1 · Recall and interpretation

The normal approximation for independent spins

Fix a finite reduced field \(h\in\mathbb R\) and set \(\beta=0\). As in Proposition 2.8, the coordinate observables \(S_i(\sigma)=\sigma_i\) are independent under \(\mu_{N;0,h}\), with common law

\[\rho_{0,h}(s)=\frac{e^{hs}}{2\cosh h},\qquad s\in\{-1,+1\}.\]

We keep the notation introduced in Lecture 2:

\[M_N=\sum_{i=1}^N S_i,\qquad \widehat m_N=\frac{M_N}{N},\]
\[m_h=\tanh h,\qquad v_h=1-\tanh^2h,\qquad s_h=\sqrt{v_h}>0.\]

Thus \(\mathbb E_{N;0,h}[\widehat m_N]=m_h\) and \(\operatorname{Var}_{N;0,h}(\widehat m_N)=v_h/N\). The hat distinguishes the random empirical magnetization \(\widehat m_N\) from its deterministic mean \(m_h\). All logarithms below are natural.

Recall · Corollary 2.13

The standardized magnetization satisfies

\[Y_N:=\frac{M_N-Nm_h}{s_h\sqrt N}=\frac{\sqrt N}{s_h}(\widehat m_N-m_h)\ \Longrightarrow\ Z,\qquad Z\sim\mathcal N(0,1).\]

Equivalently, for every fixed \(x\in\mathbb R\),

\[\mu_{N;0,h}(Y_N\le x)\longrightarrow\Phi(x),\qquad \Phi(x):=\frac1{\sqrt{2\pi}}\int_{-\infty}^x e^{-y^2/2}\,dy.\]

Since \(\widehat m_N=m_h+s_hY_N/\sqrt N\), the CLT suggests approximating the empirical magnetization by the following Gaussian random variable. Let \(Z\sim\mathcal N(0,1)\), set \(G:=s_hZ\sim\mathcal N(0,v_h)\), and define

\[\boxed{V_N:=m_h+\frac{G}{\sqrt N}\sim\mathcal N\!\left(m_h,\frac{v_h}{N}\right).}\]

Its probability density is

\[\boxed{g_{N,h}(x):=\frac{\sqrt N}{\sqrt{2\pi v_h}}\exp\!\left[-\frac{N(x-m_h)^2}{2v_h}\right],\qquad x\in\mathbb R.}\]

The normal approximation \(\widehat m_N\approx V_N\) describes the fluctuations in the region around \(m_h\) on the scale \(N^{-1/2}\).

For example, if \(u<v\) are fixed real numbers, the CLT gives

\[\mu_{N;0,h}\!\left(m_h+\frac{s_hu}{\sqrt N}<\widehat m_N\le m_h+\frac{s_hv}{\sqrt N}\right)\longrightarrow\Phi(v)-\Phi(u).\]

This concerns windows of width proportional to \(N^{-1/2}\), centered near \(m_h\). The empirical magnetization, however, is discrete: its possible values form the lattice

\[\mathcal M_N=\left\{x_k=-1+\frac{2k}{N}:k=0,\ldots,N\right\},\qquad x_{k+1}-x_k=\frac2N.\]

To compare the discrete magnetization with \(V_N\), associate to a lattice point \(x_k\) the interval \([x_k-1/N,x_k+1/N]\), of length \(2/N\). The Gaussian probability of this interval is approximately its length times the density at its centre. This motivates the approximation

\[\boxed{\mu_{N;0,h}(\widehat m_N=x_k)\ \approx\ \frac2N g_{N,h}(x_k)=\frac{2}{\sqrt{2\pi Nv_h}}\exp\!\left[-\frac{N(x_k-m_h)^2}{2v_h}\right].}\]

The factor \(2/N\) is essential: \(g_{N,h}(x_k)\) is a value of a continuous density, whereas \(\mu_{N;0,h}(\widehat m_N=x_k)\) is the probability of one lattice point. Only \((2/N)g_{N,h}(x_k)\) has the same units as that discrete probability. The ordinary CLT motivates the normal law; the more precise agreement at individual lattice points in the central window follows from Stirling's formula (a local CLT).

Interactive figure · Local Gaussian approximation

Exact magnetization probabilities and the Gaussian approximation

We take \(h=0\), so \(m_0=0\) and \(v_0=1\). At every lattice point \(x_k=-1+2k/N\), the teal bars show the exact mass \(\mu_{N;0,0}(\widehat m_N=x_k)=\binom Nk2^{-N}\); the orange dots show \((2/N)g_{N,0}(x_k)\). Both are plotted on the same probability scale. Increase \(N\) to see them approach one another near the mean.

20800
Exact discrete magnetization probabilities versus Gaussian probability approximations Teal bars show the exact binomial probability at each central magnetization lattice point, and orange dots show two divided by N times the Gaussian density evaluated at the same point. Both agree increasingly well near zero as N grows; the horizontal axis zooms into the central region.
Exact \(\mu_{N;0,0}(\widehat m_N=x_k)\)
Approximation \(\frac2N g_{N,0}(x_k)\)

At the mean: \(x_k=0\)

Exact probability—
Gaussian approximation—
Exact / approximation—

About one standard deviation: \(x_k\approx N^{-1/2}\)

Exact probability—
Gaussian approximation—
Exact / approximation—

The bars and dots become closer as N increases, when compared at lattice points within the central \(N^{-1/2}\) region.

The horizontal axis shows the possible values of \(\widehat m_N\) and automatically zooms into \(|x|\le\min\{1,4/\sqrt N\}\). This keeps the central approximation visible as the distribution concentrates. The vertical axis always shows probabilities of individual lattice points, not the continuous Gaussian density. This local agreement does not provide the exponential rate of a tail at a fixed distance from the mean.

What the plot shows. As \(N\) grows, the distribution of \(\widehat m_N\) becomes concentrated around \(m_h\). Within a distance of order \(N^{-1/2}\) from \(m_h\), the exact lattice probabilities are increasingly well approximated by \((2/N)g_{N,h}\) evaluated at the same lattice points. This is a local approximation, not an assertion that the Gaussian describes fixed large-deviation tails.

3.2 · A different question

Why the CLT does not determine a fixed tail

Fix \(\varepsilon>0\) with \(a:=m_h+\varepsilon<1\). The law of large numbers says that \(\mu_{N;0,h}(\widehat m_N>a)\to0\). We now ask how fast this probability goes to zero. Rewriting the event in CLT notation gives the exact identity

\[\mu_{N;0,h}(\widehat m_N>m_h+\varepsilon)=\mu_{N;0,h}(Y_N>x_N),\qquad x_N:=\frac{\varepsilon\sqrt N}{s_h}.\]

The threshold is now \(x_N\to+\infty\), whereas the CLT gives convergence for each fixed \(x\). It therefore does not determine the exponential decay of this moving-tail probability.

Suppose we extended the Gaussian approximation beyond its central window and used it to estimate the fixed tail. For \(a=m_h+\varepsilon\), the Gaussian variable \(V_N=m_h+s_hZ/\sqrt N\) would give

\[\begin{aligned} \mathbb P(V_N\ge a) &=1-\Phi\!\left(\frac{\varepsilon\sqrt N}{s_h}\right)\\ &\sim\frac{s_h}{\varepsilon\sqrt{2\pi N}}\exp\!\left(-\frac{N\varepsilon^2}{2v_h}\right). \end{aligned}\]

Here we used the Gaussian-tail asymptotic \(1-\Phi(u)\sim e^{-u^2/2}/(u\sqrt{2\pi})\) as \(u\to+\infty\). Thus the Gaussian prediction for the logarithmic limit would be

\[\lim_{N\to\infty}\frac1N\log\mathbb P(V_N\ge a)=-\frac{\varepsilon^2}{2v_h}.\]

The actual magnetization tail behaves differently. Proposition 3.1 below proves that its logarithmic limit is \(-I_h(a)\), where \(I_h\) is explicitly defined there. In general, \(I_h(m_h+\varepsilon)\ne\varepsilon^2/(2v_h)\). For example, at \(h=0\) and \(a=0.6\), the Gaussian exponent is \(0.18\), whereas the exact one is \(0.8\log1.6+0.2\log0.4\approx0.1927\). This is why a fixed tail requires a separate calculation.

3.3 · Our first large-deviation result

The upper tail of the magnetization

We now determine the exponential decay of the probability that the magnetization is at least a prescribed value. The statement below covers every possible location of the threshold \(a\): below the typical value, at the typical value, inside the upper tail, at the largest attainable value, and above it. It is the first large-deviation result of this lecture.

Proposition 3.1 · Upper tails of the independent-spin magnetization

Fix \(h\in\mathbb R\), and let the independent spins \(S_1,\ldots,S_N\) have law \(\mu_{N;0,h}\). Recall \(m_h=\tanh h\) and introduce

\[p_h:=\mu_{N;0,h}(S_i=+1)=\frac{e^h}{2\cosh h}=\frac{1+m_h}{2}\in(0,1).\]

For \(-1\le x\le1\), define

\[I_h(x):=\frac{1+x}{2}\log\frac{1+x}{2p_h}+\frac{1-x}{2}\log\frac{1-x}{2(1-p_h)}.\]

Use the convention \(0\log0=0\) at \(x=\pm1\), and put \(I_h(x):=+\infty\) for \(|x|>1\). Then, for every \(a\in\mathbb R\),

\[\boxed{\lim_{N\to\infty}\frac1N\log\mu_{N;0,h}(\widehat m_N\ge a)=\begin{cases} 0,&a\le m_h,\\ -I_h(a),&m_h<a\le1,\\ -\infty,&a>1. \end{cases}}\]

In particular, \(I_h(m_h)=0\) and \(I_h(1)=-\log p_h\). We use \(\log0=-\infty\). The case \(a=m_h\) is included in the first line and \(a=1\) in the second, but each will be checked separately in the proof.

Proof · Five regimes for the threshold
1
Write the magnetization as a binomial count.

Let \(K_N:=\sum_{i=1}^N\mathbf1_{\{S_i=+1\}}\). Under \(\mu_{N;0,h}\), independence gives \(K_N\sim\operatorname{Bin}(N,p_h)\). There are \(K_N\) positive spins and \(N-K_N\) negative spins, hence

\[M_N=2K_N-N,\qquad\widehat m_N=\frac{2K_N}{N}-1.\]

By independence, the binomial probabilities are

\[\mu_{N;0,h}(K_N=k)=\binom Nk p_h^k(1-p_h)^{N-k},\qquad k=0,\ldots,N.\]

For a fixed threshold \(a\), let \(q=(1+a)/2\). Whenever \(-1\le a\le1\), the event of interest becomes

\[\{\widehat m_N\ge a\}=\{K_N\ge Nq\}=\{K_N\ge\lceil Nq\rceil\}.\]
2
The cases \(a>1\) and \(a=1\).

Since every spin is at most \(+1\), we have \(\widehat m_N\le1\). Thus, for \(a>1\), the event is empty, its probability is zero, and the logarithmic limit is \(-\infty\).

When \(a=1\), the event means that all spins equal \(+1\). Independence therefore gives exactly

\[\mu_{N;0,h}(\widehat m_N\ge1)=p_h^N,\qquad \frac1N\log p_h^N=\log p_h.\]

From the formula defining \(I_h\), the term with \(1-x\) vanishes at \(x=1\), so \(I_h(1)=\log(1/p_h)=-\log p_h\). This is the second line of the proposition at the endpoint.

3
The case \(a<m_h\).

By the weak law of large numbers recalled in Lecture 2, \(\widehat m_N\to m_h\) in probability. Choose \(\varepsilon=(m_h-a)/2>0\). Then

\[\mu_{N;0,h}(\widehat m_N\ge a)\ge\mu_{N;0,h}(|\widehat m_N-m_h|<\varepsilon)\longrightarrow1.\]

Consequently the logarithm of this probability tends to zero, and after division by \(N\) it still tends to zero.

4
The case \(m_h<a<1\): one term controls the tail.

Here \(q=(1+a)/2>p_h\) and \(q<1\). Put \(k_N=\lceil Nq\rceil\) and \(q_N=k_N/N\), so \(q_N\to q\). By the binomial formula, for every \(k_N\le k<N\),

\[\frac{\mu_{N;0,h}(K_N=k+1)}{\mu_{N;0,h}(K_N=k)}=\frac{N-k}{k+1}\frac{p_h}{1-p_h}\le\frac{1-q}{q}\frac{p_h}{1-p_h}<1.\]

Indeed, \(k\ge Nq\) implies \((N-k)/(k+1)\le(1-q)/q\); and \(q>p_h\) makes the last quantity strictly less than one. Therefore the binomial masses decrease throughout the right tail. Its largest term is the first one, and the number of terms is at most \(N+1\). Thus

\[\mu_{N;0,h}(K_N=k_N)\le\mu_{N;0,h}(\widehat m_N\ge a)\le(N+1)\mu_{N;0,h}(K_N=k_N).\]

Apply Stirling’s formula to \(N!\), \(k_N!\), and \((N-k_N)!\). As \(q_N\to q\in(0,1)\),

\[\frac1N\log\binom N{k_N}=-q_N\log q_N-(1-q_N)\log(1-q_N)+o(1).\]

Using the binomial weights and then collecting the logarithms, we obtain

\[\begin{aligned} \frac1N\log \mu_{N;0,h}(K_N=k_N)&=-q_N\log\frac{q_N}{p_h}-(1-q_N)\log\frac{1-q_N}{1-p_h}+o(1)\\ &\longrightarrow-I_h(a),\qquad q=\frac{1+a}{2}. \end{aligned}\]

Here the last equality follows from the defining formula for \(I_h\) and the limit \(q_N\to q\). Returning to the two-sided estimate,

\[\frac1N\log \mu_{N;0,h}(K_N=k_N)\le\frac1N\log\mu_{N;0,h}(\widehat m_N\ge a)\le\frac1N\log \mu_{N;0,h}(K_N=k_N)+\frac{\log(N+1)}N.\]

Since \(\log(N+1)/N\to0\), the two sides have the same limit, proving the desired formula.

5
The remaining case \(a=m_h\).

Put \(k_N=\lceil Np_h\rceil\) and \(q_N=k_N/N\to p_h\). The event \(\{\widehat m_N\ge m_h\}\) contains \(\{K_N=k_N\}\). By the same Stirling calculation used in Step 4, but now with \(q_N\to p_h\),

\[\frac1N\log \mu_{N;0,h}(K_N=k_N)\longrightarrow-\biggl[p_h\log\frac{p_h}{p_h}+(1-p_h)\log\frac{1-p_h}{1-p_h}\biggr]=0.\]

Consequently,

\[\mu_{N;0,h}(K_N=k_N)\le\mu_{N;0,h}(\widehat m_N\ge m_h)\le1.\]

A final squeeze yields the limit zero. This agrees with \(I_h(m_h)=0\), which follows directly on inserting \(q=p_h\) in its definition.

□
3.4 · The general i.i.d. result

Cramér’s theorem

The preceding binomial computation is a special case of a general result for empirical averages of independent and identically distributed real random variables. We only state the theorem; its proof is not part of this lecture.

Theorem 3.2 · Cramér’s theorem (upper tail; statement only)

Let \((X_i)_{i\ge1}\) be i.i.d. real-valued random variables with

\[\phi(t):=\mathbb E[e^{tX_1}]<+\infty\qquad\text{for every }t\in\mathbb R.\]

Set \(m:=\mathbb E[X_1]\) and define the cumulant generating function and its Legendre–Fenchel transform by

\[\Lambda(t):=\log\phi(t),\qquad I(x):=\sup_{t\in\mathbb R}\{tx-\Lambda(t)\}.\]

Then, for every \(a>m\),

\[\boxed{\lim_{N\to\infty}\frac1N\log\mathbb P\!\left(\frac1N\sum_{i=1}^N X_i\ge a\right)=-I(a).}\]

Here \(I(a)\) may equal \(+\infty\), in which case the limit is \(-\infty\).

Remark 3.3 · Lower tails

For every \(a<m\), Cramér’s theorem also yields

\[\lim_{N\to\infty}\frac1N\log\mathbb P\!\left(\frac1N\sum_{i=1}^NX_i\le a\right)=-I(a).\]

To see this, apply the theorem to \(-X_i\). Its cumulant generating function is \(\Lambda_-(t)=\Lambda(-t)\), and its rate satisfies

\[I_-(y)=\sup_t\{ty-\Lambda(-t)\}=\sup_u\{-uy-\Lambda(u)\}=I(-y).\]

The event \(\{N^{-1}\sum_i X_i\le a\}\) is the upper-tail event for the variables \(-X_i\), with threshold \(-a>-m\). The upper-tail rate is therefore \(I_-(-a)=I(a)\).

Remark 3.4 · Beyond the i.i.d. assumption

There are extensions to non-identically distributed and even dependent random variables. In this case, if \(A_N:=N^{-1}\sum_{i=1}^N X_i\), consider the scaled cumulant generating function

\[\Lambda_N(t):=\frac1N\log\mathbb E[e^{NtA_N}]=\frac1N\log\mathbb E\!\left[e^{t\sum_{i=1}^NX_i}\right].\]

Very roughly, the Gärtner–Ellis approach replaces independence by suitable assumptions on

\[\Lambda(t):=\lim_{N\to\infty}\Lambda_N(t),\]

especially its existence, finiteness, and differentiability for all real \(t\). Under a standard full-domain version of these hypotheses, one obtains a large-deviation result with rate \(\Lambda^*(x)=\sup_t\{tx-\Lambda(t)\}\). For precise statements and generalizations, see den Hollander, Chapter V or Dembo–Zeitouni, Theorem 2.3.6.

In the i.i.d. case, independence gives \(\mathbb E[e^{NtA_N}]=\phi(t)^N\) and therefore \(\Lambda_N(t)=\log\phi(t)\) for every \(N\).

For the spins of Proposition 3.1, \(\Lambda_h(t)=\log\cosh(h+t)-\log\cosh h\). Its Legendre transform gives the same function \(I_h\) as the binomial calculation.

3.5 · Cramér’s rate function

Properties

Proposition 3.5 · Properties of Cramér’s rate function

The function \(I(x)=\sup_t\{tx-\Lambda(t)\}\) has the following properties:

  1. Lower semicontinuity: if \(x_n\to x\), then \(I(x)\le\liminf_{n\to\infty}I(x_n)\).
  2. Nonnegativity and unique zero: \(I(x)\ge0\) for all \(x\), and \(I(x)=0\) if and only if \(x=m\).
  3. Convexity: for \(x,y\in\mathbb R\) and \(0<\theta<1\),
    \[I(\theta x+(1-\theta)y)\le\theta I(x)+(1-\theta)I(y).\]
    The cases \(\theta=0,1\) are understood as the immediate endpoint identities.
  4. Good rate function: for every \(c\in\mathbb R\), the sublevel set \(K_c:=\{x\in\mathbb R:I(x)\le c\}\) is compact.
Proof of property 1 · Lower semicontinuity

Let \(x_n\to x\). For each fixed \(t\in\mathbb R\), the definition of the supremum gives

\[I(x_n)\ge tx_n-\Lambda(t).\]

Keep \(t\) fixed and take the liminf. The right-hand side converges, so

\[\liminf_{n\to\infty}I(x_n)\ge tx-\Lambda(t).\]

The left-hand side does not depend on \(t\). Since the inequality holds for every \(t\), we may now take the supremum on the right:

\[\liminf_{n\to\infty}I(x_n)\ge\sup_{t\in\mathbb R}\{tx-\Lambda(t)\}=I(x).\]

This argument also covers \(I(x)=+\infty\): then the left-hand side is at least every finite lower bound supplied by the supremum, and must be \(+\infty\). No interchange of a limit and a supremum, and no existence of a maximizing \(t\), is needed.

□

Proof of property 2 · Nonnegativity and the unique zero

First, \(I(x)\ge0\). Choose \(t=0\) in the supremum. Since \(\Lambda(0)=\log\mathbb E[1]=0\),

\[I(x)\ge0\cdot x-\Lambda(0)=0.\]

Next, \(I(m)=0\). Jensen’s inequality for the exponential gives \(\mathbb E[e^{tX_1}]\ge e^{t\mathbb E[X_1]}=e^{tm}\), for every real \(t\). Taking logarithms yields \(\Lambda(t)\ge tm\). Therefore

\[I(m)=\sup_t\{tm-\Lambda(t)\}\le0.\]

Together with nonnegativity, this proves \(I(m)=0\).

Finally, no other point has rate zero. Fix \(x\ne m\). Differentiability at zero gives \(\Lambda(t)=mt+r(t)\), where \(r(t)/|t|\to0\). Choose a sufficiently small nonzero \(t\) with the same sign as \(x-m\), so that \(|r(t)|\le|t||x-m|/2\). Then

\[tx-\Lambda(t)=t(x-m)-r(t)\ge\frac{|t|\,|x-m|}{2}>0.\]

Since \(I(x)\) is at least this value, \(I(x)>0\). This proves the converse and hence the “if and only if.”

□
Proof of property 3 · Convexity

Let \(0<\theta<1\). For each fixed \(t\),

\[\begin{aligned} t(\theta x+(1-\theta)y)-\Lambda(t) &=\theta\bigl(tx-\Lambda(t)\bigr)+(1-\theta)\bigl(ty-\Lambda(t)\bigr)\\ &\le\theta I(x)+(1-\theta)I(y). \end{aligned}\]

Take the supremum over \(t\) on the left to obtain the desired inequality. If one of \(I(x),I(y)\) is infinite, the right-hand side is \(+\infty\) and the inequality is automatic. The endpoint cases \(\theta=0,1\) are identities and need no convention for \(0\cdot\infty\).

□
Proof of property 4 · Good rate function

Because \(\Lambda(1)\) and \(\Lambda(-1)\) are finite, choosing \(t=1\) and \(t=-1\) in the supremum yields

\[\begin{gathered}I(x)\ge x-\Lambda(1),\\[2pt]I(x)\ge -x-\Lambda(-1).\end{gathered}\]

Consequently, if \(x\in K_c\), then

\[-c-\Lambda(-1)\le x\le c+\Lambda(1).\]

Thus \(K_c\) is bounded. By property 1 it is also closed, hence compact in \(\mathbb R\). For \(c<0\), the set is empty by property 2 and therefore compact as well.

□

The first and third proofs use only the representation as a supremum of continuous affine functions. The unique-zero argument also uses \(\Lambda(0)=0\), \(\Lambda'(0)=m\), and Jensen’s inequality.

3.6 · A final distinction

Not every rate function is convex

Remark 3.6 · General large-deviation rates need not be Legendre transforms

Every Legendre–Fenchel transform is convex, as the proof above shows. Convexity is therefore a feature of the Cramér rate. More general large-deviation rates, however, need not arise as Legendre transforms, and need not be convex.

For example, let \(Z_N\) take the values \(-1\) and \(+1\), each with probability \(1/2\), for every \(N\). On the exponential scale \(N\), the rate is

\[J(x)=\begin{cases}0,&x\in\{-1,+1\},\\+\infty,&x\notin\{-1,+1\}.\end{cases}\]

This function is not convex: \(J(0)=+\infty\), whereas \(\tfrac12J(-1)+\tfrac12J(1)=0\). Its limiting scaled log moment-generating function is \(\Lambda(t)=|t|\), which is not differentiable at zero. The transform \(\Lambda^*\) is zero on the whole interval \([-1,1]\), so it does not recover \(J\).

This is the same \(N^{-1}\log\cosh(Nt)\) limit considered in Example 2.7 of Lecture 2: the corner at zero now explains the failure of the differentiability hypothesis in Remark 3.4.

References

S. Friedli and Y. Velenik, Statistical Mechanics of Lattice Systems. In the supplied version: Lemma B.3, printed p. 478 (Stirling); Theorem B.45, p. 498 (CLT); Definition B.14 and Exercises B.6 and B.11, pp. 485–486 (Legendre transform, convexity and lower semicontinuity). Book website ↗

A. Dembo and O. Zeitouni, Large Deviations Techniques and Applications, 2nd edition. §2.2 (Cramér’s theorem); Theorem 2.3.6 (Gärtner–Ellis). Springer, corrected printing, 2010. Publisher ↗

F. den Hollander, Large Deviations. Fields Institute Monographs 14, American Mathematical Society, 2000, Chapter V (dependent sequences and the Gärtner–Ellis theorem).