Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Analysis of Regular Statistical Models

Introduction

We will now analyse the special case when the true distribution is regular for the statistical model. This covers the classical Bayesian statistics. We analyse the regular posterior distribution, and observe the universal structure that is the asymptotic behavior of this distribution. The theorem is akin to central limit theorem, called the Bayesian central limit theorem / Bernstein–von Mises theorem. We also look at the expansions of the observables in this special case. We finally introduce point estimators, and with this, we cover the conventional asymptotic theory and the basic Bayesian treatment.

This part is more intensive than the previous parts, we are reaching the deep parts of the subject slowly. It is recommended to read the writeup on primer probability and Laplace method before moving ahead.

Observe below that we have already forgone realizability, a major assumption that need not hold in the singular models of our interest (such as the neural networks we use in practice).

The 1-D example

Our first goal is to estimate the partition function, which is a Laplace integral. We will first start with a simpler example, and we will build and motivate our solution from this method. Once the method is understood, it is all about the control.

Theorem: Let h∈C3[α,β]h \in C^3[\alpha, \beta] have a unique minimum w0w_0 in the interior. Let H=h′′(w0)>0H = h''(w_0) > 0. Let φ∈C1\varphi \in C^1, φ(w0)>0\varphi(w_0) > 0. Then

I(n)=∫αβe−nhφdw∼e−nh(w0)φ(w0)2πnHI(n) = \int_\alpha^\beta e^{-nh}\varphi dw \sim e^{-nh(w_0)}\varphi(w_0)\sqrt{\frac{2\pi}{nH}}

(Warning: Do not worry about all the analytical assumptions too much just now, you will add them yourself as you go through the proof)

Proof:

We first centre the integral.

I(n)=e−nh(w0)∫αβe−n(h(w)−h(w0))φ(w)dwI(n) = e^{-nh(w_0)}\int_\alpha^\beta e^{-n(h(w) - h(w_0))}\varphi(w) dw

Now we do a Taylor expansion of the exponent of the exponential, as Laplace method dictates. Recall that according to the method, we must split the integral into two parts. The first part will be over the set where most of the mass is concentrated (it is clear that this is some neighborhood of w0w_0) and we must show that the second integral is negligible compared to the first one, typically by looking at the fraction. The control is in choosing the right neighborhood. Also recall that we estimate the neighborhood integral by sandwiching. Let us do this now.

h(w)−h(w0)=Δh′(w0)+12h′′(w0)Δ2+16h′′′(c)Δ3h(w) - h(w_0) = \Delta h'(w_0) + \frac{1}{2}h''(w_0)\Delta^2 + \frac{1}{6}h'''(c)\Delta^3

This is the Taylor expansion with the Lagrange remainder. Δ=w−w0\Delta = w - w_0, and c∈[α,β]c \in [\alpha, \beta], which is the parameter space for this case.

The idea is here that we really want to be integrating only the first two terms, as we can handle that. So we want the third one to be negligible. Thus we want to naturally choose a neighborhood around w0w_0 of radius δn\delta_n (dependent on nn because we want to zero in on where the mass of the function is as nn increases, so we must decrease the neighborhood accordingly), A={w:0≤∣∣w−w0∣∣<δn}A = \{w: 0 \leq ||w - w_0|| < \delta_n\}, and in this set, ∣∣Δ∣∣≤δn||\Delta|| \leq \delta_n, hence we get the first control that we want: nδn3→0n \delta_n^3 \to 0.

Let us estimate the integral on this set. First of all, observe that the third Taylor term, which we now call Rn(w)R_n(w), satisfies ∣Rn(w)∣≤Mδn3|R_n(w)| \leq M\delta_n^3 (Observe that AA is compact and the third derivative of hh is continuous) On this note, we call the first term and the second term A1A_1 and A2A_2 respectively.

IA(n)=e−nh(w0)∫Ae−nA1−nA2−nRn(w)φ(w)dwI_A(n) = e^{-nh(w_0)}\int_Ae^{-nA_1 - nA_2 - nR_n(w)}\varphi(w) dw

Also, since φ\varphi is C1C^1 on a compact interval, we can write

φ(w)=φ(w0)+φ′(c)(w−w0)≤φ(w0)+aδn\varphi(w) = \varphi(w_0) + \varphi'(c)(w - w_0) \leq \varphi(w_0) + a\delta_n

for some constant aa.

Hence, we can now sandwich and estimate the integral.

exp⁡(−nh(w0)−nMδn3)(φ(w0)−aδn)G≤IA(n)\exp(-nh(w_0) - nM\delta_n^3)(\varphi(w_0) - a\delta_n)G\leq I_A(n)

IA(n)≤exp⁡(−nh(w0)+nMδn3)(φ(w0)+aδn)GI_A(n)\leq \exp(-nh(w_0) + nM\delta_n^3)(\varphi(w_0) + a\delta_n) G

where GG is the leftover integral.

Since nδn3→0n\delta_n^3 \to 0 and δn→0\delta_n \to 0, the prefactors e±nMδn3e^{\pm nM\delta_n^3} tend to 1 and φ(w0)±aδn\varphi(w_0) \pm a\delta_n tend to φ(w0)\varphi(w_0). Dividing the sandwich through, we get, as n→∞n \to \infty,

IA(n)exp⁡(−nh(w0))φ(w0)Gn→1\frac{I_A(n)}{\exp(-nh(w_0))\varphi(w_0)G_n} \to 1

Let us calculate the integral and be over with it. Actually, to compute the integral, we would actually have to complete the square and then use the Gaussian integral formula, but we are in good luck since A1=0A_1 = 0, since w0w_0 is the minimum. But still keep the method in mind, it will come in useful later.

Thus, we can do a simple change of variable to get

Gn=∫Ae−nH(w−w0)2/2dw=1nH∫−nHδnnHδne−t2/2dtG_n = \int_A e^{-nH(w-w_0)^2/2}dw = \sqrt{\frac{1}{nH}}\int_{-\sqrt{nH}\delta_n}^{\sqrt{nH}\delta_n}e^{-t^2/2}dt

We can choose δn\delta_n such that nδn→∞\sqrt{n}\delta_n \to \infty as n→∞n \to \infty (this is not contradicting the previous control). Hence Gn∼2πnHG_n \sim \sqrt{\dfrac{2\pi}{nH}}. Hence, our estimate of the integral is

IA(n)∼exp⁡(−nh(w0))φ(w0)2πnHI_A(n) \sim \exp(-nh(w_0))\varphi(w_0)\sqrt{\dfrac{2\pi}{nH}}

Now we need to show that the second integral is negligible, that is IB(n)/IA(n)→0I_B(n)/I_A(n) \to 0, where B=W/AB = W / A.

This involves finding a lower bound for h(w)−h(w0)h(w) - h(w_0). This will upper bound our integrand, which is what we want.

Let us write the Taylor expansion again.

h(w)−h(w0)=12h′′(w0)Δ2+16h′′′(c)Δ3h(w) - h(w_0) = \frac{1}{2}h''(w_0)\Delta^2 + \frac{1}{6}h'''(c)\Delta^3

The idea is that even though we know that the second order term is positive (assumption), the third order term can be negative, and hence it is not straightforward to lower bound this. However, if we can upper bound the norm of the third order term, we can do this. The idea is that it is less than any given factor of the second order term (say half).

Claim: For all ww with ∣Δ∣=∣w−w0∣≤η|\Delta| = |w - w_0| \leq \eta, for a suitable η>0\eta > 0 chosen below,

∣16h′′′(c)Δ3∣≤14h′′(w0)Δ2\left|\frac{1}{6}h'''(c) \Delta^3\right| \leq \frac{1}{4}h''(w_0)\Delta^2

The idea is that we split BB into two parts, B1={w:δn≤∣∣w−w0∣∣≤η}B_1 = \{w: \delta_n\leq ||w - w_0|| \leq \eta\} and B2=B/B1B_2 = B / B_1.

Let us analyse on B1B_1 now. Let MM bound ∣h′′′∣|h'''| on [α,β][\alpha, \beta]. For ∣Δ∣≤η|\Delta| \leq \eta,

∣16h′′′(c)Δ3∣≤M6∣Δ∣3≤M6η Δ2≤14HΔ2\left|\frac{1}{6}h'''(c) \Delta^3\right| \leq \frac{M}{6}|\Delta|^3 \leq \frac{M}{6}\eta\,\Delta^2 \leq \frac{1}{4}H\Delta^2

where the last inequality needs Mη6≤H4\dfrac{M\eta}{6} \leq \dfrac{H}{4}. This gives our reverse engineering choice of η=3H2M\eta = \dfrac{3H}{2M}, in which case the claim is true. Hence on B1B_1, h(w)−h(w0)≥12HΔ2−14HΔ2=14HΔ2≥14Hδn2h(w) - h(w_0) \geq \frac{1}{2}H\Delta^2 - \frac{1}{4}H\Delta^2 = \frac{1}{4}H\Delta^2 \geq \frac{1}{4}H\delta_n^2.

What happens on B2B_2 with this choice of η\eta?

Observe that B2B_2 is a compact set, hence since h(w)h(w) is a continuous function and w0w_0 is the unique minimum, for all w∈B2w \in B_2, h(w)−h(w0)≥mη>0h(w) - h(w_0) \geq m_\eta > 0 where the minimum is achieved. Note that mηm_\eta depends only on η\eta, not on nn, while 14h′′(w0)δn2→0\frac{1}{4}h''(w_0)\delta_n^2 \to 0. Hence for a large enough nn, mη≥14h′′(w0)δn2m_\eta \geq \frac{1}{4}h''(w_0)\delta_n^2, and we have

h(w)−h(w0)≥14h′′(w0)δn2h(w) - h(w_0) \geq \frac{1}{4}h''(w_0)\delta_n^2

The same is true for w∈B1w \in B_1 by the previous argument, hence it holds on all of BB. Now let us bound the integrand. Since we have

IB(n)=e−nh(w0)∫Be−n(h(w)−h(w0))φ(w)dwI_B(n) = e^{-nh(w_0)}\int_Be^{-n(h(w) - h(w_0))}\varphi(w)dw

we get,

0≤IB(n)≤ce−nh(w0)e−n4Hδn20 \leq I_B(n) \leq ce^{-nh(w_0)}e^{-\frac{n}{4}H\delta_n^2}

Take the fraction now. For large nn, we get

IB(n)IA(n)≤ce−nH4δn2n\frac{I_B(n)}{I_A(n)} \leq c {e^{-\frac{nH}{4}\delta_n^2}\sqrt{n}}

Hence we want nδn2log⁡n→∞\dfrac{n\delta_n^2}{\log n} \to \infty.

This condition does not contradict the previous conditions. In fact, from all the conditions, and letting δn=n−a\delta_n = n^{-a} (power scaling, natural), we get a∈(13,12)a \in (\dfrac{1}{3}, \dfrac{1}{2}). I will keep the choice a=25a = \frac{2}{5}. This allows all the control conditions to work, and the same control is used in the multidimensional case as well. It is important to note it now, as I will simply use this control right from the start and it will all magically work out, but the point is that the interval is forced and all the choices there will work, and it is not really magical.

Estimating the Partition Function

We will now estimate the asymptotics of the normalized partition function. We will be considering the regular case with compact parameter space WW in a Euclidean space Rd\mathbb{R}^d.

Zn(0)=∫e−nKn(w)φ(w)dwZ_n^{(0)} = \int e^{-nK_n(w)}\varphi(w)dw

The issue is that we cannot directly Taylor expand this. h(w)−h(w0)≥0h(w) - h(w_0) \geq 0, but it need not be true Kn(w)−Kn(w0)≥0K_n(w) - K_n(w_0) \geq 0. Hence, something else needs to be done. We need to decompose our function into a distance-like function and a fluctuation around that and hope it behaves nicely. But why should we expect that? The fluctuation can have a very weird distribution after all. The central limit theorem comes to the rescue in controlling that, it says that the fluctuation is bounded in large samples. This is the universality principle to the rescue, which says that you should expect the fluctuation of f(X1,...,Xn)f(X_1, ..., X_n) to be bounded if the variables are weakly dependent and ff sufficiently smooth.

So we define the empirical process

ξn(w)=n(Kn(w)−K(w))\xi_n(w) = \sqrt{n}(K_n(w) - K(w))

This centres the expectation (it is now 0) and by the multidimensional central limit theorem, this converges in distribution to the Gaussian distribution, hence it is Op(1)O_p(1),

We divide our partition function into an integral around a neighborhood (we call that the essential part) and the complement of that (called the non essential part). We will see that decomposition into this process works in trying to estimate the essential part, and in figuring out the non essential part, we will need to modify it more. There, we will perform a simple instance of Hironaka Resolution Theorem. It is important to grasp that idea and why it comes in the first place. We will see what that is about when we get there.

Essential Part

We have

nKn(w)=nξn(w)+nK(w)nK_n(w) = \sqrt{n}\xi_n(w) + nK(w)

We will Taylor expand both terms with Lagrange remainder. I am going to remove terms directly which are 0, you can check that. Call the Hessian of KK at w0w_0 as JJ.

nK(w)=n2ΔtJΔ+n6∇3K(c)[Δ,Δ,Δ]nK(w) = \frac{n}{2}\Delta^tJ\Delta + \frac{n}{6}\nabla^3K(c)[\Delta, \Delta, \Delta]

The first term is A1A_1 the second term is A2A_2.

nξn(w)=nΔt∇ξn(w0)+n2Δt∇2ξn(w0)Δ+n6∇3ξn(c)[Δ,Δ,Δ]\sqrt{n}\xi_n(w) = \sqrt{n}\Delta^t\nabla\xi_n(w_0) + \frac{\sqrt{n}}{2}\Delta^t\nabla^2\xi_n(w_0)\Delta + \frac{\sqrt{n}}{6}\nabla^3\xi_n(c)[\Delta, \Delta, \Delta]

The first term, second term, and the third term are A3,A4,A5A_3, A_4, A_5 respectively.

We want to discard all the op(1)o_p(1) terms into our remainder function Rn(w)R_n(w) for sandwiching.

Let us look at A2A_2 first.

A2  ≤M2nδn3A_2 \;\leq M_2n\delta_n^3

Our choice of δn\delta_n is predecided, δn=n−2/5\delta_n = n^{-2/5}, so we see that A2→0A_2 \to 0. We can safely push this into our remainder.

Now, A4A_4 is a random variable. Let XnX_n be the norm of the Hessian, which is a random variable. Observe that {Xn}=Op(1)\{X_n\} = O_p(1)

A4≤M4anXnan=nδn2A_4 \leq M_4 a_nX_n \qquad a_n = \sqrt{n}\delta_n^2

Since an→0a_n \to 0, {Xn}=Op(1)\{X_n\} = O_p(1), we have {anXn}=op(1)\{a_nX_n\} = o_p(1).

Hence A4A_4 is op(1)o_p(1), and similarly, A5A_5 is similar: in A5A_5 the point cc is random and depends on ww, so the pointwise central limit theorem is not enough. We assume the uniform bound sup⁡w∈W∥∇3ξn(w)∥=Op(1)\sup_{w \in W}\|\nabla^3\xi_n(w)\| = O_p(1). Then ∣A5∣≤M5nδn3sup⁡w∈W∥∇3ξn(w)∥=op(1)|A_5| \leq M_5\sqrt{n}\delta_n^3\sup_{w \in W}\|\nabla^3\xi_n(w)\| = o_p(1), since nδn3→0\sqrt{n}\delta_n^3 \to 0.

Hence we write

nKn(w)=A1+A3+Rn(w)Rn(w)=op(1)nK_n(w) = A_1 + A_3 + R_n(w) \qquad R_n(w) = o_p(1)

We will sandwich and estimate the same way we did for the one dimensional Laplace integral. Assume all sufficient smoothness for the bounds. Let ∣Rn∣≤ρn|R_n| \leq \rho_n where ρn→0\rho_n \to 0 in probability. Then we have

e−ρn(φ(w0)−aδn)∫e−A1−A3dw≤Zn(1)≤eρn(φ(w0)+aδn)∫e−A1−A3dwe^{-\rho_n}(\varphi(w_0) - a\delta_n)\int e^{-A_1 - A_3}dw \leq Z_n^{(1)} \leq e^{\rho_n}(\varphi(w_0) + a \delta_n)\int e^{-A_1 - A_3}dw

Now all that is left to do is to compute the integral

Gn=∫e−A1−A3dwG_n = \int e^{-A_1 - A_3}dw

The idea is to complete the square, write the sum of quadratic + linear as a quadratic + constant. And we know how to handle the quadratic for the exponential, and the constant gets handled trivially.

One can write

n2ΔtJΔ+nΔt∇ξn(w0)=12∣∣J1/2u−ζn∣∣2−12∣∣ζn∣∣2\frac{n}{2}\Delta^tJ\Delta + \sqrt{n}\Delta^t\nabla\xi_n(w_0) = \frac{1}{2}||J^{1/2}u - \zeta_n||^2 - \frac{1}{2}||\zeta_n||^2

where u=n(w−w0)u = \sqrt{n}(w - w_0) and ζn=−J−1/2bn\zeta_n = -J^{-1/2}b_n and bn=∇ξn(w0)b_n = \nabla \xi_n(w_0).

We first do the change of coordinates from ww to w−w0w - w_0 which does not change the integral as it is just a translation, then from w−w0w - w_0 to n(w−w0)\sqrt{n}(w - w_0) which gives the factor (1n)d(\dfrac{1}{\sqrt{n}})^d (this is just the determinant of the transition from the latter to the former).

Now the final transition from uu to v=J1/2u−ζnv = J^{1/2}u - \zeta_n gives the factor det⁡(J)−1/2\det(J)^{-1/2}

Hence,

Gn=n−d/2det⁡(J)−1/2e∣∣ζn∣∣2/2∫Dne−∣∣v∣∣2/2dvG_n = n^{-d/2}\det(J)^{-1/2}e^{||\zeta_n||^2/2} \int_{D_n} e^{-||v||^2/2}dv

where DnD_n is some ellipsoid. But this is contained in a ball centred around −ζn-\zeta_n, and it also contains a ball around −ζn-\zeta_n, and both of them tend to the entire Rd\mathbb{R}^d as n→∞n \to \infty, in probability. Thus we can adjust the lower bound and the upper bound to have the same integral over Rd\mathbb{R^d} instead, which is just (2π)d(\sqrt{2\pi})^d. Taking n→∞n \to \infty, we get that the lower bound and the upper bound are the same, and the integral in between is

Zn(1)∼(2π)d/2φ(w0)n−d/2det⁡(J)−1/2e∣∣ζn∣∣2/2Z_n^{(1)} \sim (2\pi)^{d/2}\varphi(w_0)n^{-d/2}\det(J)^{-1/2}e^{||\zeta_n||^2/2}

Now we deal with the non essential part.

Non Essential Part

Now we need to lower bound nKn(w)nK_n(w). Well, we can bound nK(w)nK(w), but how do we go about nξn(w)\sqrt{n}\xi_n(w)? We cannot actually do this, since this fluctuation is Op(n)O_p(\sqrt{n}). We will need to do some sort of normalization here.

Let us first deal with nK(w)nK(w) though. We will do it the same way we did the one-dimensional case. The only thing that changes is that this is multidimensional, so the min of the second order term is 12λmin(J)δn2\frac{1}{2}\lambda_{min}(J)\delta_n^2, so we get the lower bound this time as nK(w)≥14λminnδn2nK(w) \geq \frac{1}{4}\lambda_{min}n\delta_n^2. Feel free to do the argument again formally here as an exercise.

Let us deal with the fluctuation. As discovered, we will need to normalize this, where the normalization factor has to be of order n\sqrt{n} with respect to K(w)K(w).

Define the process

γn(w)=ξn(w)K(w)=n(Kn(w)−K(w))K(w)\gamma_n(w) = \frac{\xi_n(w)}{\sqrt{K(w)}} = \frac{\sqrt{n}(K_n(w) - K(w))}{\sqrt{K(w)}}

Claim: γn(w)=Op(1)\gamma_n(w) = O_p(1)

Proof: We assume that relatively finite variance holds for the log density ratio function: EX[f(X,w)2]≤c0K(w)E_X[f(X, w)^2] \leq c_0 K(w) for all ww.

Now,

V[γn(w)]=V[ξn(w)]K(w)=VX[f(X,w)]K(w)≤EX[f(X,w)2]K(w)≤c0V[\gamma_n(w)] = \frac{V[\xi_n(w)]}{K(w)} = \frac{V_X[f(X, w)]}{K(w)} \leq \frac{E_X[f(X, w)^2]}{K(w)} \leq c_0

Hence,

P(∣γn(w)∣>t)≤c0t2  ⟹  γn(w)=Op(1)P(|\gamma_n(w)| > t) \leq \frac{c_0}{t^2} \implies \gamma_n(w) = O_p(1)

When we move to the more general case, we will keep this assumption, and I am not sure why we should assume this to be true. But it will still be a great improvement from assuming regularity.

There are two issues with the definition above though:

  1. In a more general model, W0W_0 is not one point, it is a real analytic set. Hence f(x,w)f(x, w) cannot be treated locally. More precisely, what this means is that the Taylor expansion we have been doing does not work directly, since now the Hessian is degenerate (not positive definite) (this is a heuristic argument). So this definition of the process does not really work anymore. Keep this in mind, we will deal with this formally later.

  2. The second is the fact that the process is not defined at W0W_0 as the denominator is 0. It may not even be possible to continuously extend our process to W0W_0.

The second issue holds even for our regular model. What is the “resolution” here? The solution is to perform a diffeomorphism of the space, and then extend the function to w0w_0 there. This is the main idea one should keep in mind. We describe the solution formally now.

Define a diffeomorphism from Rd\0\mathbb{R}^d \backslash 0 to (0,∞)×Sd−1(0, \infty) \times S^{d-1} that takes w−w0→rθw - w_0 \to r\theta where r=∣∣w−w0∣∣r = ||w - w_0|| and θ=w−w0∣∣w−w0∣∣\theta = \dfrac{w - w_0}{||w - w_0||}. The numerator becomes rbn⋅θ+O(r2)rb_n\cdot\theta + O(r^2) and K=rθtJθ/2(1+O(r))\sqrt{K} = r\sqrt{\theta^tJ\theta/2(1 + O(r))}. One can check that the limit now exists.

This is the simplest instance of the Resolution, and the more general case is handled by Hironaka’s Resolution Theorem, which deals with both the issues mentioned above.

By using the inequality ∣ab∣≤a2+b22|ab| \leq \dfrac{a^2 + b^2}{2}, we get (take a=nK,b=γna = \sqrt{nK}, b = \gamma_n)

12nK(w)−12Γn2≤nKn(w)≤32nK(w)+12Γn2\frac{1}{2}nK(w) - \frac{1}{2}\Gamma_n^2 \leq nK_n(w) \leq \frac{3}{2}nK(w) + \frac{1}{2}\Gamma_n^2

where Γn2=sup⁡w∈W∣∣γn(w)∣∣2\Gamma_n^2 = \sup_{w \in W} ||\gamma_n(w)||^2. Observe that even if Xn=Op(1)X_n = O_p(1), sup⁡Xn\sup X_n need not be Op(1)O_p(1). Hence, this is an added assumption that Γn=Op(1)\Gamma_n = O_p(1). Also, the existence of Γn\Gamma_n comes from the fact that γn(w)\gamma_n(w) is a continuous function (we have extended it continuously) on a compact space.

This finally enables us to sandwich the non essential part of the partition function.

Using the lower bound nKn(w)≥12nK(w)−12Γn2nK_n(w) \geq \frac{1}{2}nK(w) - \frac{1}{2}\Gamma_n^2, together with nK(w)≥14λminnδn2nK(w) \geq \frac{1}{4}\lambda_{min}n\delta_n^2 on BB, we get

Zn(2)≤eΓn2/2∫Bexp⁡(−12nK(w))φ(w)dw≤eΓn2/2exp⁡(−18λminnδn2)∫Bφ(w)dwZ_n^{(2)} \leq e^{\Gamma_n^2/2}\int_B \exp(-\frac{1}{2}nK(w))\varphi(w)dw \leq e^{\Gamma_n^2/2}\exp(-\frac{1}{8}\lambda_{min}n\delta_n^2)\int_B\varphi(w)dw

Now, since φ(w)\varphi(w) is a density function, the integral over BB is at most 1.

Zn(2)≤eΓn2/2exp⁡(−18λminnδn2)Z_n^{(2)} \leq e^{\Gamma_n^2/2}\exp(-\frac{1}{8}\lambda_{min}n\delta_n^2)

Since Γn=Op(1)\Gamma_n = O_p(1), the factor eΓn2/2e^{\Gamma_n^2/2} is Op(1)O_p(1), and it does not affect the conclusions below. This directly gives the following two results, the second one being what we need to show:

nkZn(2)→0 in probability for every kn^kZ_n^{(2)} \to 0 \quad \text{ in probability for every k}

Zn(2)Zn(1)→0\dfrac{Z_n^{(2)}}{Z_n^{(1)}} \to 0

Hence the non essential part is negligible, and we have estimated the essential part of the partition function. We are done here.

We get the asymptotic expansion of the free energy in the regular case now.

Fn=nLn(w0)+Fn(0)Fn(0)=−log⁡Zn(0)=−log⁡Zn(1)(1+Zn(2)Zn(1))=−log⁡Zn(1)+op(1)F_n = nL_n(w_0) + F_n^{(0)} \qquad F_n^{(0)} = -\log Z_n^{(0)} = -\log Z_n^{(1)}(1 + \frac{Z_n^{(2)}}{Z_n^{(1)}}) = -\log Z_n^{(1)} + o_p(1)

Finally, to get the formula, we apply the log to our estimate. Hence,

Fn=nLn(w0)+d2log⁡n−d2log⁡(2π)+12log⁡(det⁡J)−log⁡φ(w0)−∣∣ζn∣∣22+op(1)F_n = nL_n(w_0) + \frac{d}{2}\log n - \frac{d}{2}\log (2\pi) + \frac{1}{2}\log (\det J) - \log\varphi(w_0) - \frac{||\zeta_n||^2}{2} + o_p(1)

Let us test out our theory on a regular model.

(Figures generated by Opus 5.5)

The sine regression model y = w_1 + \sin(w_2x) + N(0, 1): the true model w_0 = (0.3, 1.2) (teal), two other candidate models (purple), and a sample of 60 points (orange).

The sine regression model y=w1+sin⁡(w2x)+N(0,1)y = w_1 + \sin(w_2x) + N(0, 1): the true model w0=(0.3,1.2)w_0 = (0.3, 1.2) (teal), two other candidate models (purple), and a sample of 60 points (orange).

Free energy computed by numerical integration (solid) against the prediction \frac{d}{2}\log n + C - \frac{1}{2}\|\zeta_n\|^2 from the expansion above (dotted), for three growing samples. The lower panel shows the gap between the two, which goes to 0. (“Theorem 4” in the plot title refers to the free energy expansion above.)

Free energy computed by numerical integration (solid) against the prediction d2log⁡n+C−12∥ζn∥2\frac{d}{2}\log n + C - \frac{1}{2}\|\zeta_n\|^2 from the expansion above (dotted), for three growing samples. The lower panel shows the gap between the two, which goes to 0. (“Theorem 4” in the plot title refers to the free energy expansion above.)

Do note one thing: We cannot make a statement about the expectations yet, we need to show uniform integrability for that (recall from the probability primer: convergence in distribution/probability + uniform integrability implies convergence in expectation)

Asymptotics of the Posterior

First, observe the following:

Ew[g]=Zn(g)Zn(1)Zn(g):=∫Wg(w)e−nKn(w)φ(w)dwE_w[g] = \frac{Z_n(g)}{Z_n(1)} \quad Z_n(g) := \int_W g(w)e^{-nK_n(w)}\varphi(w)dw

From now on, gg is a function of the normalized coordinate v=J1/2n(w−w0)−ζnv = J^{1/2}\sqrt{n}(w - w_0) - \zeta_n, so g(v)g(v) means gg evaluated at v(w)v(w). Let us now estimate Zn(1)(g)Z_n^{(1)}(g). Not a lot changes from the way we estimated Zn(1)(1)Z_n^{(1)}(1). Do the same completing the square and change of variables to get some cnc_n which has the Jacobian factors and the ζn\zeta_n term. But this time, we cannot directly take out the remainder term and the φ\varphi term, since gg can also be negative.

Let G(v)=exp⁡(−∣∣v∣∣22)G(v) = \exp\left({-\dfrac{||v||^2}{2}}\right). Our idea is that we hope for the leftover to be close to φ(w0)∫Rdg(v)G(v)dv\varphi(w_0)\int_{\mathbb{R}^d}g(v)G(v)dv, so we look at the difference as the error term and show that it goes to 0. We decompose the error terms into three parts:

E1=∫DngG(e−Rn−1)φ(v)dvE_1 = \int_{D_n}gG(e^{-R_n} - 1)\varphi(v)dv
E2=∫DngG(φ(v)−φ(w0))dvE_2 = \int_{D_n}gG(\varphi(v) - \varphi(w_0))dv
E3=φ(w0)(∫DngGdv−∫RdgGdv)E_3 = \varphi(w_0)\left(\int_{D_n}gGdv - \int_{\mathbb{R}^d}gGdv \right)

Whenever gGgG is integrable (special case: gg is a polynomial), it is easy to see that each of these terms are bounded by terms that go to 0 in probability.

Hence,

Zn(1)(g)=e∣∣ζn∣∣2/2φ(w0)n−d/2(det⁡J)−1/2(∫RdgGdv+op(1))Z_n^{(1)}(g) = e^{||\zeta_n||^2/2}\varphi(w_0)n^{-d/2}(\det J)^{-1/2}\left( \int_{\mathbb{R}^d}gGdv + o_p(1) \right)

When gg is a continuous bounded function, Zn(2)(g)≤sup⁡∣g∣Zn(2)(1)Z_n^{(2)}(g) \leq \sup|g| Z_n^{(2)}(1) hence this is negligible, and we have the estimate we want. The other special case is for gg polynomial, when the result still holds, since nkZn(2)→0n^kZ_n^{(2)} \to 0 for every kk.

Let V∼N(0,Id)V \sim N(0, I_d). Then

Claim:

Ew[g(v)]→E[g(V)]in probability.E_w[g(v)] \to E[g(V)] \quad \text{in probability.}

This is simple.

Ew[g(v)]=Zn(g)Zn(1)=Zn(1)(g)/Zn(1)+op(1)1+op(1)→∫gG∫G=E[g(V)]E_w[g(v)] = \frac{Z_n(g)}{Z_n(1)} = \frac{Z_n^{(1)}(g)/Z_n^{(1) } + o_p(1)}{1 + o_p(1)} \to \frac{\int gG}{\int G} = E[g(V)]

In particular, Ew[v]→0,E_w[v] \to 0, and Ew[vvt]→IdE_w[vv^t] \to I_d.

Changing back to the original coordinates, through the two formulas (Observe that ζn\zeta_n can be pulled out under Ew[⋅]E_w[\cdot])

v=J1/2u−ζnu=n(w−w0)\begin{gathered} v = J^{1/2}u - \zeta_n\\ u = \sqrt{n}(w - w_0) \end{gathered}

We get the following:

nEw[w−w0]−J−1/2ζn→0nEw[(w−w0)(w−w0)t]−(J−1+J−1/2ζnζntJ−1/2)→0n Covw(w)→J−1\begin{gathered} \sqrt{n}E_w[w - w_0] - J^{-1/2}\zeta_n \to 0 \\ nE_w[(w - w_0)(w - w_0)^t] - (J^{-1} + J^{-1/2}\zeta_n\zeta_n^tJ^{-1/2}) \to 0 \\ n \text{ Cov}_w(w) \to J^{-1} \end{gathered}

Now note that this claim is true about every bounded continuous function gg. This is just the definition of convergence in distribution though! Hence the posterior law of vv converges to N(0,Id)N(0, I_d) in probability (probability based on the sample, that is what the posterior depends on).

Translating back to ww, we get

posterior of w≈N(w0+J−1/2ζnn,J−1n)\text{posterior of w} \approx N(w_0 + \frac{J^{-1/2}\zeta_n}{\sqrt{n}}, \frac{J^{-1}}{n})

(Figures generated by Opus 5.5)

The exact posterior in the coordinates v = J^{1/2}\sqrt{n}(w - w_0) - \zeta_n (surface) against the Bernstein–von Mises prediction N(0, I_2) (mesh), at n = 15, 50, 1000. For small n the posterior still puts mass on other modes; by n = 1000 it matches the standard bell.

The exact posterior in the coordinates v=J1/2n(w−w0)−ζnv = J^{1/2}\sqrt{n}(w - w_0) - \zeta_n (surface) against the Bernstein–von Mises prediction N(0,I2)N(0, I_2) (mesh), at n=15,50,1000n = 15, 50, 1000. For small nn the posterior still puts mass on other modes; by n=1000n = 1000 it matches the standard bell.

Total-variation distance between the exact posterior and the Gaussian N(w_0 + J^{-1/2}\zeta_n/\sqrt{n}, J^{-1}/n), for three datasets. It shrinks roughly like n^{-1/2}.

Total-variation distance between the exact posterior and the Gaussian N(w0+J−1/2ζn/n,J−1/n)N(w_0 + J^{-1/2}\zeta_n/\sqrt{n}, J^{-1}/n), for three datasets. It shrinks roughly like n−1/2n^{-1/2}.

Regular Asymptotics of our Observables

We now derive the asymptotic behaviors of the 4 observables we have defined.

Now, recall the theorem from the last part. I recall it here (WnW_n has the same expansion as CnC_n)

Gn=L(w0)+Ew[K(w)]−12EXVw[f(X,w)]+op(1n)Cn=Ln(w0)+Ew[Kn(w)]+12n∑i=1nVw[f(Xi,w)]+op(1n)Tn=Ln(w0)+Ew[Kn(w)]−12n∑i=1nVw[f(Xi,w)]+op(1n)\begin{aligned} G_n &= L(w_0) + E_w[K(w)] - \frac{1}{2}E_XV_w[f(X, w)] + o_p(\frac{1}{n}) \\ C_n &= L_n(w_0) + E_w[K_n(w)] + \frac{1}{2n}\sum_{i = 1}^nV_w[f(X_i, w)] + o_p(\frac{1}{n}) \\ T_n &= L_n(w_0) + E_w[K_n(w)] - \frac{1}{2n}\sum_{i = 1}^nV_w[f(X_i, w)] + o_p(\frac{1}{n}) \end{aligned}

We just now need to estimate the terms. Let H=∇2f(x,w0)H = \nabla^2f(x, w_0)

f(x,w)=Δt∇f(x,w0)+12tr(HΔΔt)+O(∣∣Δ∣∣3)f(x, w) = \Delta^t\nabla f(x, w_0) + \frac{1}{2}tr(H\Delta\Delta^t) + O(||\Delta||^3)

Now, Ew∣∣u∣∣3≤(Ew∣∣u∣∣4)3/4E_w||u||^3 \leq (E_w||u||^4)^{3/4} (By Hölder), now since this is a polynomial, by the previous part we have that EwE_w of the remainder is op(1/n)o_p(1/n). Hence,

Ew[f(x,w)]=Ew[Δ]t∇f(x,w0)+12tr(HEw[ΔΔt])+op(1n)E_w[f(x, w)] = E_w[\Delta]^t \nabla f(x, w_0) + \frac{1}{2}tr(HE_w[\Delta\Delta^t]) + o_p(\frac{1}{n})

By using our posterior average bounds,

Ew[f(x,w)]=(1nJ−1/2ζn)t∇f(x,w0)+12ntr(H(J−1+J−1/2ζnζntJ−1/2))+op(1n)E_w[f(x, w)] = \left(\frac{1}{\sqrt{n}}J^{-1/2}\zeta_n\right)^t\nabla f(x, w_0) + \frac{1}{2n}tr(H(J^{-1} + J^{-1/2}\zeta_n\zeta_n^tJ^{-1/2})) + o_p(\frac{1}{n})

For a single fixed xx the error coming from Ew[Δ]E_w[\Delta] in the first term is only op(1/n)o_p(1/\sqrt{n}). It becomes op(1/n)o_p(1/n) once we average over xx, because EX[∇f(X,w0)]=∇K(w0)=0E_X[\nabla f(X, w_0)] = \nabla K(w_0) = 0 and 1n∑i=1n∇f(Xi,w0)=Op(1/n)\frac{1}{n}\sum_{i = 1}^n\nabla f(X_i, w_0) = O_p(1/\sqrt{n}). Only these enter the losses.

We also have that

Ew[f(x,w)2]=Ew[(Δt∇f(x,w0))2]+op(1n)E_w[f(x, w)^2] = E_w[(\Delta^t\nabla f(x, w_0))^2] + o_p(\frac{1}{n})
=tr(Ew[ΔΔt]∇f(x,w0)∇f(x,w0)t)+op(1n)= tr(E_w[\Delta\Delta^t]\nabla f(x, w_0)\nabla f(x, w_0)^t) + o_p(\frac{1}{n})

We can again substitute in our posterior averages.

Using the following substitutions:

1n∑i=1n∇f(Xi,w0)=−J1/2ζn\frac{1}{\sqrt{n}}\sum_{i = 1}^n \nabla f(X_i, w_0) = -J^{1/2}\zeta_n
1n∑i=1n∇2f(Xi,w0)=J+op(1)\frac{1}{n}\sum_{i = 1}^n\nabla^2f(X_i, w_0) = J + o_p(1)
EX[∇2f(X,w0)]=JE_X[\nabla^2f(X, w_0)] = J

Here I=EX[∇f(X,w0)∇f(X,w0)t]I = E_X[\nabla f(X, w_0)\nabla f(X, w_0)^t], and 1n∑i=1n∇f(Xi,w0)∇f(Xi,w0)t→I\frac{1}{n}\sum_{i = 1}^n\nabla f(X_i, w_0)\nabla f(X_i, w_0)^t \to I in probability.

We get the following asymptotes for the losses (it is an exercise to substitute them and check).

Gn=L(w0)+d+∣∣ζn∣∣2−tr(IJ−1)2n+op(1n)G_n = L(w_0) + \frac{d + ||\zeta_n||^2 - tr(IJ^{-1})}{2n} + o_p(\frac{1}{n})
Tn=Ln(w0)+d−∣∣ζn∣∣2−tr(IJ−1)2n+op(1n)T_n = L_n(w_0) + \frac{d - ||\zeta_n||^2 - tr(IJ^{-1})}{2n} + o_p(\frac{1}{n})
Cn=Ln(w0)+d−∣∣ζn∣∣2+tr(IJ−1)2n+op(1n)C_n = L_n(w_0) + \frac{d - ||\zeta_n||^2 + tr(IJ^{-1})}{2n} + o_p(\frac{1}{n})

And WnW_n has the same expansion as CnC_n.

The distribution of ζn\zeta_n. By the central limit theorem, bn=1n∑i=1n∇f(Xi,w0)b_n = \frac{1}{\sqrt{n}}\sum_{i = 1}^n\nabla f(X_i, w_0) converges in distribution to N(0,I)N(0, I) (the mean is 0 because ∇K(w0)=0\nabla K(w_0) = 0). Hence ζn=−J−1/2bn\zeta_n = -J^{-1/2}b_n converges in distribution to N(0,J−1/2IJ−1/2)N(0, J^{-1/2}IJ^{-1/2}), and E∥ζn∥2→tr(IJ−1)E\|\zeta_n\|^2 \to \mathrm{tr}(IJ^{-1}). In the realizable case I=JI = J, so ∥ζn∥2\|\zeta_n\|^2 is asymptotically χd2\chi^2_d.

Observe that we cannot just take expectations of these random variables to get the asymptotic behavior of the expectations. However, we can do if they also happen to be uniformly integrable (see the probability primer). But since that proof is neither very instructive nor repeated, we are just going to assume that. Hence, E[Ln(w0)]=L(w0)E[L_n(w_0)] = L(w_0):

E[Gn]=L(w0)+d2n+o(1n)E[Cn]=L(w0)+d2n+o(1n)E[Tn]=L(w0)+d−2 tr(IJ−1)2n+o(1n)\begin{aligned} E[G_n] &= L(w_0) + \frac{d}{2n} + o(\frac{1}{n}) \\ E[C_n] &= L(w_0) + \frac{d}{2n} + o(\frac{1}{n}) \\ E[T_n] &= L(w_0) + \frac{d - 2\,\mathrm{tr}(IJ^{-1})}{2n} + o(\frac{1}{n}) \end{aligned}

Hence, cross-validation (and WAIC) is an asymptotically unbiased estimator of the generalization loss, while the training loss underestimates it by tr(IJ−1)/n\mathrm{tr}(IJ^{-1})/n on average.

Checking the losses on the sine model

Let us check if the theory actually works. We are dealing with the sine regression problem here. The figures are generated by Opus 5.5.

The four losses, realizable

Realizable case (true noise σ=1\sigma = 1, so tr(IJ−1)=d=2\mathrm{tr}(IJ^{-1}) = d = 2). Solid: computed exactly. Dotted: the predicted expansions above (“Theorem 6” in the legend), on the same sample. Each loss locks onto its prediction as nn grows. Note that on each dataset generalization and cross-validation move in opposite directions: they carry +∥ζn∥2+\|\zeta_n\|^2 and −∥ζn∥2-\|\zeta_n\|^2 respectively.

We now check the non realizable case. The best parameter is still w0=(0.3,1.2)w_0 = (0.3, 1.2), but now I=σ2JI = \sigma^2 J, so tr(IJ−1)=4.5≠d\mathrm{tr}(IJ^{-1}) = 4.5 \neq d.

The four losses, misspecified

Misspecified case (true noise σ=1.5\sigma = 1.5, tr(IJ−1)=4.5\mathrm{tr}(IJ^{-1}) = 4.5). The predictions still hold. The training loss is now biased by tr(IJ−1)/n\mathrm{tr}(IJ^{-1})/n rather than d/nd/n, so a fixed correction of dd (as in AIC) would be wrong, while cross-validation and WAIC pick up the right amount from the data.

Point Estimators

There are other statistical estimation methods when the true distribution is regular for the statistical model, that are not entirely Bayesian in nature.

wML=arg max⁡w∈W∏i=1np(xi∣w)Maximum LikelihoodwMAP=arg max⁡w∈Wφ(w)∏i=1np(xi∣w)Maximum A PosterioriwPM=Ew[w]Posterior Mean Estimator\begin{aligned} w_{ML} &= \operatorname*{arg\,max}_{w \in W} \prod_{i=1}^np(x_i|w) && \text{Maximum Likelihood} \\ w_{MAP} &= \operatorname*{arg\,max}_{w \in W}\varphi(w)\prod_{i = 1}^np(x_i|w) && \text{Maximum A Posteriori} \\ w_{PM} &= E_w[w] && \text{Posterior Mean Estimator} \end{aligned}

Remember the completion of the square that we did for nKnnK_n. The minimizer, which is wMLw_{ML} satisfies w≈w0+J−1/2ζnnw \approx w_0 + \frac{J^{-1/2}\zeta_n}{\sqrt{n}}.

More precisely (prove this yourself),

wML=w0+J−1/2ζnn+op(1n)w_{ML} = w_0 + \frac{J^{-1/2}\zeta_n}{\sqrt{n}} + o_p(\frac{1}{\sqrt{n}})

and the other two estimators also have the same expansion up to this order.

Definition: The generalization and training losses of the maximum likelihood method are defined by

Gn(ML)=L(wML)Tn(ML)=Ln(wML)\begin{aligned} G_n(ML) &= L(w_{ML}) \\ T_n(ML) &= L_n(w_{ML}) \end{aligned}

We can now find the asymptotes by just the same standard method.

Gn(ML)=L(w0)+∣∣ζn∣∣22n+op(1n)Tn(ML)=Ln(w0)−∣∣ζn∣∣22n+op(1n)\begin{aligned} G_n(ML) &= L(w_0) + \frac{||\zeta_n||^2}{2n} + o_p(\frac{1}{n}) \\ T_n(ML) &= L_n(w_0) - \frac{||\zeta_n||^2}{2n} + o_p(\frac{1}{n}) \end{aligned}

Further Steps

We will generalize the model from the regularity assumption. Thus we will introduce the RLCT and its interpretation.