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?
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
We keep the notation introduced in Lecture 2:
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.
The standardized magnetization satisfies
Equivalently, for every fixed \(x\in\mathbb R\),
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
Its probability density is
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
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
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
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).
Extra: derive the approximation at lattice points from Stirling's formula.
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.
At the mean: \(x_k=0\)
About one standard deviation: \(x_k\approx N^{-1/2}\)
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. Why the lattice spacing appears and how the Dirac limit is recovered.
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
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
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
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.
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.
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
For \(-1\le x\le1\), define
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\),
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.
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
By independence, the binomial probabilities are
For a fixed threshold \(a\), let \(q=(1+a)/2\). Whenever \(-1\le a\le1\), the event of interest becomes
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
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.
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
Consequently the logarithm of this probability tends to zero, and after division by \(N\) it still tends to zero.
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\),
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
Extra: the integer threshold and the largest-term bound.
Apply Stirling’s formula to \(N!\), \(k_N!\), and \((N-k_N)!\). As \(q_N\to q\in(0,1)\),
Using the binomial weights and then collecting the logarithms, we obtain
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,
Since \(\log(N+1)/N\to0\), the two sides have the same limit, proving the desired formula. Extra: Stirling’s formula and the explicit substitutions in the factorials.
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\),
Consequently,
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.
□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.
Let \((X_i)_{i\ge1}\) be i.i.d. real-valued random variables with
Set \(m:=\mathbb E[X_1]\) and define the cumulant generating function and its Legendre–Fenchel transform by
Then, for every \(a>m\),
Here \(I(a)\) may equal \(+\infty\), in which case the limit is \(-\infty\).
For every \(a<m\), Cramér’s theorem also yields
To see this, apply the theorem to \(-X_i\). Its cumulant generating function is \(\Lambda_-(t)=\Lambda(-t)\), and its rate satisfies
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)\).
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
Very roughly, the Gärtner–Ellis approach replaces independence by suitable assumptions on
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. Extra: compute the transform, including its boundary values.
Properties
The function \(I(x)=\sup_t\{tx-\Lambda(t)\}\) has the following properties:
- Lower semicontinuity: if \(x_n\to x\), then \(I(x)\le\liminf_{n\to\infty}I(x_n)\).
- Nonnegativity and unique zero: \(I(x)\ge0\) for all \(x\), and \(I(x)=0\) if and only if \(x=m\).
- Convexity: for \(x,y\in\mathbb R\) and \(0<\theta<1\),
The cases \(\theta=0,1\) are understood as the immediate endpoint identities.\[I(\theta x+(1-\theta)y)\le\theta I(x)+(1-\theta)I(y).\]\[\begin{gathered} I(\theta x+(1-\theta)y)\\ \le\theta I(x)+(1-\theta)I(y). \end{gathered}\]
- Good rate function: for every \(c\in\mathbb R\), the sublevel set \(K_c:=\{x\in\mathbb R:I(x)\le c\}\) is compact.
Let \(x_n\to x\). For each fixed \(t\in\mathbb R\), the definition of the supremum gives
Keep \(t\) fixed and take the liminf. The right-hand side converges, so
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:
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.
□Lower semicontinuity and closed sublevel sets.
First, \(I(x)\ge0\). Choose \(t=0\) in the supremum. Since \(\Lambda(0)=\log\mathbb E[1]=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
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
Since \(I(x)\) is at least this value, \(I(x)>0\). This proves the converse and hence the “if and only if.”
□Let \(0<\theta<1\). For each fixed \(t\),
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\).
□Because \(\Lambda(1)\) and \(\Lambda(-1)\) are finite, choosing \(t=1\) and \(t=-1\) in the supremum yields
Consequently, if \(x\in K_c\), then
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.
Not every rate function is convex
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
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\).
Check the two-point rate and compute \(\Lambda\) and \(\Lambda^*\). 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).
The Gaussian variable \(V_N=m_h+G/\sqrt N\), where \(G\sim\mathcal N(0,v_h)\), has continuous density \(g_{N,h}\). Consequently, the probability of an interval is an integral:
In the central region \(|x_k-m_h|=O(N^{-1/2})\), the density changes only a little over one lattice spacing \(2/N\). Thus the integral is approximately \(2g_{N,h}(x_k)/N\), motivating
The ordinary CLT alone controls probabilities of intervals on the \(N^{-1/2}\) scale; relative-error accuracy for individual lattice masses is the local CLT proved from Stirling's formula in the next extra. Importantly, \(\int_{\mathbb R}g_{N,h}(x)\,dx=1\), whereas \(2g_{N,h}/N\) is not itself a probability density. It is evaluated at the lattice points to approximate the mass at each point.
Finally, the Gaussian laws converge to a point mass: for every bounded continuous function \(\psi\),
This means \(\operatorname{Law}(V_N)\Rightarrow\delta_{m_h}\). By the law of large numbers, \(\operatorname{Law}(\widehat m_N)\Rightarrow\delta_{m_h}\) as well. Their agreement near the mean is what the interactive plot illustrates, on the scale of their individual lattice probabilities.
The ordinary CLT gives convergence of probabilities of intervals after rescaling. A probability at one lattice point needs more information. Here it can be computed from the binomial law in Proposition 3.1.
Let \(x_N=-1+2k_N/N\) be a lattice point and \(q_N=k_N/N\). If \(q_N\) stays in a compact subinterval of \((0,1)\), the multiplicative form of Stirling gives
Multiplying by \(p_h^{k_N}(1-p_h)^{N-k_N}\) therefore gives
To examine the CLT region, put \(y_N=\sqrt N(x_N-m_h)/s_h\) and assume \((y_N)\) is bounded. Then \(x_N\to m_h\), \(q_N\to p_h\), and \(p_h(1-p_h)=v_h/4\). The derivatives computed in the derivatives following Proposition 3.1 imply, uniformly for bounded \(y_N\),
The prefactor satisfies \(\sqrt{2\pi Nq_N(1-q_N)}\sim s_h\sqrt{2\pi N}/2\). Combining these estimates yields
This proves the local approximation in the central window. For lattice points \(x_N\to a\in(-1,1)\) with \(a\ne m_h\), the binomial formula retains \(I_h(x_N)\), and \(N^{-1}\log\mu_{N;0,h}(\widehat m_N=x_N)\to-I_h(a)\). Replacing this rate by its quadratic expansion is generally incorrect at the exponential scale.
For every integer \(n\ge1\), Stirling’s formula can be written as
Taking logarithms gives
For \(1\le k\le N-1\), substitute this formula into each factorial:
The linear terms cancel because \(-N+k+(N-k)=0\). If \(q=k/N\), the terms involving \(\log N\) cancel as well:
If \(q\) stays away from zero and one, the logarithmic prefactor is \(O(\log N)\) and the remainder \(r_N-r_k-r_{N-k}\) is \(O(N^{-1})\). This gives both the logarithmic estimate in the main proof and the multiplicative estimate used for the local Gaussian approximation.
Why the estimate is uniform, even at the endpoints. For a stronger estimate uniform in every lattice index, \(k\) may be close to zero or \(N\). Define
Since \(0!=1\) and \(0\log0=0\), the identity \(\log(n!)=n\log n-n+R(n)\) now holds for all integers \(n\ge0\). Stirling implies that \(|R(n)|\le C_0\log(n+1)\) for a constant \(C_0\), uniformly in \(n\). Therefore
It follows that
Finally, add the two log weights:
This is a uniform estimate over all \(N+1\) masses; the fixed-threshold proof above needs only the interior-index case. At \(k=0\) or \(k=N\), the original probability is simply \((1-p_h)^N\) or \(p_h^N\), respectively, in agreement with the rate’s endpoint values. See also Friedli–Velenik, Lemma B.3.
For \(q=(1+a)/2\), the condition \(\widehat m_N\ge a\) is exactly \(K_N\ge Nq\). Since \(K_N\) is integer-valued, the smallest allowed value is \(k_N=\lceil Nq\rceil\). Thus
The ratio of consecutive binomial probabilities is obtained by cancellation:
If \(k\ge k_N\ge Nq\), then \(N-k\le N(1-q)\) and \(k+1\ge Nq\). When \(q>p_h\),
because the last inequality is equivalent to \(p_h(1-q)<q(1-p_h)\), or \(p_h<q\). Therefore \(\mu_{N;0,h}(K_N=k_N)\) is the largest summand in the tail:
The factor \(N+1\) disappears after taking \(N^{-1}\log\), since \(\log(N+1)/N\to0\). This is the precise sense in which one largest term determines the exponential scale of this sum.
For one spin with law \(\rho_{0,h}\),
If \(-1<x<1\), the derivative of \(t\mapsto tx-\Lambda_h(t)\) is \(x-\tanh(h+t)\). It vanishes at the unique point
The second derivative is \(-1/\cosh^2(h+t)<0\), so this critical point is the global maximum. Since \(\cosh(\operatorname{arctanh}x)=1/\sqrt{1-x^2}\), substitution gives
Use \(\log(2p_h)=h-\log\cosh h\) and \(\log(2(1-p_h))=-h-\log\cosh h\). Expanding the logarithms in Proposition 3.1 now shows that this expression is exactly \(I_h(x)\).
At \(x=1\), the function \(t-\Lambda_h(t)\) is increasing, and its supremum is the limit as \(t\to+\infty\):
At \(x=-1\), the derivative of \(t\mapsto-t-\Lambda_h(t)\) is \(-1-\tanh(h+t)<0\). Hence this function is decreasing, and its supremum is its limit as \(t\to-\infty\), equal to \(-\log(1-p_h)\). If \(x>1\), then \(tx-\Lambda_h(t)\to+\infty\) as \(t\to+\infty\); if \(x<-1\), let \(t\to-\infty\). Thus \(\Lambda_h^*=I_h\) on all of \(\mathbb R\), including the endpoints and the infinite values outside the spin range.
For a function \(J:\mathbb R\to[0,+\infty]\), lower semicontinuity means \(J(x)\le\liminf_nJ(x_n)\) whenever \(x_n\to x\). Equivalently, every finite sublevel set \(\{x:J(x)\le c\}\) is closed.
To prove the forward implication, take \(x_n\) in that sublevel set with \(x_n\to x\). Then
so \(x\) remains in the set. Conversely, suppose the sublevel sets are closed but lower semicontinuity fails along \(x_n\to x\). Choose a finite \(c\) strictly between \(\liminf_nJ(x_n)\) and \(J(x)\). Infinitely many \(x_n\) then lie in \(\{J\le c\}\); a subsequence of those points still converges to \(x\). Closedness gives \(J(x)\le c\), a contradiction.
For a Legendre transform, there is also a direct set formula:
Each set on the right is closed because \(x\mapsto tx-\Lambda(t)\) is continuous, and an arbitrary intersection of closed sets is closed.
Let \(\mathbb P(Z_N=-1)=\mathbb P(Z_N=1)=1/2\) for every \(N\). For any Borel set \(B\), its probability is zero if \(B\) misses \(\{-1,1\}\), is \(1/2\) if it contains exactly one of these points, and is one if it contains both. Therefore
This equals \(-\inf_{x\in B}J(x)\) for the function in Remark 3.6. This verifies the claimed exponential rate directly for every fixed Borel set. Every finite nonempty sublevel set is \(\{-1,1\}\), so \(J\) is lower semicontinuous and good. Its failure of convexity follows from the midpoint inequality already displayed in the remark.
Now compute the scaled log moment-generating function:
The inequalities \(\tfrac12e^{N|t|}\le\cosh(Nt)\le e^{N|t|}\) give
so \(\Lambda(t)=|t|\). Its Legendre–Fenchel transform is
Indeed, if \(|x|\le1\), then \(tx-|t|\le|t||x|-|t|\le0\), and \(t=0\) attains zero. If \(x>1\), let \(t\to+\infty\); if \(x<-1\), let \(t\to-\infty\). In both exterior cases the supremum is infinite.
In particular, \(\Lambda^*(0)=0\) although \(J(0)=+\infty\). The transform assigns zero cost to the entire interval between the two support points, whereas the actual laws never visit any interior point. The limiting \(\Lambda\) has left derivative \(-1\) and right derivative \(+1\) at zero, so the differentiability hypothesis in Remark 3.4 fails. Existence of the scaled log-mgf limit alone does not identify a general LDP rate with its Legendre transform.