The output of Week 9 is a law, not just a fitted vector. That changes what a stable answer means. Two posterior means might agree while their uncertainty differs dramatically; conversely two point estimates may differ while the posterior predictions remain close.
We close the course by measuring distance between laws, connecting posterior modes to regularised optimisation, and conditioning Gaussian processes to predict unobserved values and integrals. The geometry of projection now acts on both predictions and uncertainty.
Route through this chapter
- Handout: GP regression
- Well-posedness of Bayesian inverse problems
- MAP estimation as the connection between BIPs and regularised optimisation
- Lab: Robust MCMC for high-dimensional BIPs
Recap
In a BIP with prior on , finite-dimensional data in with PDF proportional to , the solution is the posterior distribution satisfying Bayes' formula
where
In the special case where and , the posterior is again Gaussian: (Kalman update).
Natural questions
-
Beyond the linear Gaussian case, how will we practically realise and access ? Here we eventually use all the standard tools of numerical integration to approximate posterior expectations of quantities of interest.
NB: MH-MCMC is well suited to this situation, since it can be implemented without knowing the normalising constant , because it cancels out in the acceptance probability calculation.
-
Does the Bayesian approach alleviate the ill-posedness of the inverse problem? The posterior is well defined, but is it a stable function of the data ?
-
How are the Bayesian and optimisation viewpoints connected?
Well-posedness of BIPs
To make quantitative statements about the stability of as a function of , we need a distance function on the set of probability measures on . There are many good ones, e.g. total variation distance, the Kullback–Leibler divergence, but we'll use the Hellinger distance.
Suppose we have that both have densities with respect to . The Hellinger distance between them is
NB: We always have .
To see why square roots appear, separate two Gaussian means while keeping their variances fixed. The shaded integrand in the square-root view accumulates to the squared Hellinger distance.
Two probability densities
Square roots and distance integrand
m=0.000, dᴴ²=1−exp(−m²/8)=0.000
The amber area is half the squared difference, not the raw distance between the two curves. Coincident laws give zero; separated laws increase Hellinger distance.
Play once, pause, or scrub to inspect an intermediate state.
One nice feature of is that it controls expected values of quantities of interest.
Lemma. For any ,
(The proof is basically just an application of the triangle inequality and the Cauchy–Schwarz inequality.)
Example (finite-dim case). The Hellinger distance between Gaussians and involves a formula that hints at a problem for infinite dimensions: even if is small, it may lie outside certain ranges, making no matter how small the mean difference is.
The posterior turns out to be stable in the Hellinger sense.
Lemma. Let be of the form
where is a probability measure, are measurable and non-negative, , and . Then
Derivation. Put and . Since is -Lipschitz on ,
Adding and subtracting gives . Divide by to bound Hellinger distance. Since , this proves the stated (weaker) bound.
Two related warnings:
- Since under all circumstances, the inequality could be "true but useless" if the RHS is large.
- When grows rapidly (e.g. it is a misfit function for very precisely observed data), will be very small, and we end up in the situation of warning 1.
Applying the lemma to a specific BIP
- will be a Hilbert space, possibly infinite-dimensional.
- We observe data in for .
- Specifically we observe .
- The forward operator is known, deterministic, and stable (Lipschitz continuous).
- The observational noise is independent of and is Gaussian: with SPD.
- Hence the potential is the quadratic misfit
- The prior on is not required to be Gaussian.
Theorem (sufficient moment assumptions). Assume additionally ; for globally Lipschitz , a prior with finite second moment suffices. The posterior is a locally Lipschitz continuous function of . That is, for each , there exists such that for all with bounded norm,
For bounded , the difference of squared misfits is bounded by . The moment assumption makes its norm finite. Also choose a set of positive prior mass where is bounded; the likelihood on that set gives a uniform positive lower bound on for . The perturbation lemma now gives the theorem. This is a sufficient route, not the weakest possible hypotheses; see Stuart (2010).
But remember that can easily be large when the noise covariance is small!
Maximum a posteriori (MAP) estimation
To build intuition, consider a BIP on , where the prior has a PDF . The posterior also has a PDF :
Take negative logarithms:
Let's further specialise to a nondegenerate centred Gaussian prior ( SPD), :
This is exactly the Tikhonov regularisation of the misfit function .
Thus, Tikhonov-regularised misfit minimisation was finding a maximiser of the Bayesian posterior density (at least for Gaussian prior), i.e. a mode of the posterior distribution, or a maximum a posteriori (MAP) point. A mode maximises density relative to the chosen coordinates/reference volume; every individual point still has probability zero in a nondegenerate continuous law. A nonlinear change of coordinates can change the density mode.
When , we have no uniform reference measure and no PDFs. We have to directly examine the -probabilities of small balls and seek a MAP point. It turns out that there are many ways to make this mathematically precise, and in infinite dimensions, MAP estimation must be handled with care.
Gaussian process regression and kernel interpolation
Suppose that on a set , and we observe the values
at points with i.i.d. observational errors .
We are interested in the posterior/conditional process , where . As it turns out, is a Gaussian process with mean function and covariance function given by
where denotes the vector of observation points and is the Gram matrix.
When and the observation Gram matrix is invertible, i.e. for nonredundant noiseless data, exactly interpolates the observations. In this case, is called the kernel interpolant of the data. In the noisy case , we are performing regression.
We can (fairly easily) generalise the above to observations with being a "nice" linear operator acting on sample paths of and being Gaussian; e.g. local averages.
We may also be interested not so much in itself, but in the image of under a nice operator , e.g.
is again Gaussian when is a well-defined Gaussian linear functional (for this integral, suitable integrability of the mean and covariance suffices). Its mean estimates the integral and its variance quantifies uncertainty under the specified model; it is not automatically a calibrated bound on an arbitrary unknown truth.
A single observation can affect a whole function. Where should its influence, and the reduction in uncertainty, be strongest?
At the sensor the posterior mean is 1.6 and variance 0.2. Far away, covariance with the sensor tends to zero, restoring the prior mean and variance. The observation changes the mean through correlation and leaves residual uncertainty because its noise is nonzero.
Condition on three observations in sequence. Within a stage, the next observation gradually gains precision, so the transition is itself a valid Gaussian update. Compare the posterior band with the covariance that remains between locations.
Posterior function and uncertainty
Remaining covariance
Observation precision stages: 0.000 / 3; Var[u(0)|data]=1.000
Dots on the right scale with the magnitude of covariance on a fixed 13×13 grid. As observations gain precision, correlated regions lose uncertainty; finite noise leaves nonzero posterior variance.
Play once, pause, or scrub to inspect an intermediate state.
Derive the prediction from the same conditioning theorem
At any test location , the joint vector is Gaussian with cross covariance and data covariance . Substitute those blocks into Week 3's theorem. For several test locations, do the same jointly: this establishes a posterior process, not merely separate marginal predictions.
For noiseless data, the row is row of , so and . For noisy data, the latent posterior variance stays nonnegative. Predicting a new noisy measurement adds to that latent variance.
For , define and . Then
The same projection that corrected a material stiffness now corrects an integral, and the residual covariance reports what the observations leave unresolved.
Course synthesis and exercises
- Show the Hellinger expectation bound by writing and applying Cauchy–Schwarz.
- For prior and observation , independent, compute the posterior mean, variance and MAP. What happens as ?
- Explain why the GP mean can belong to the kernel RKHS even though typical prior draws do not.
The course has kept one question in view: what can imperfect measurements justify? Orthogonal coordinates separate information; compactness exposes its loss; probability describes uncertainty; regularisation and conditioning control how evidence changes a prediction. Computation must still respect the assumptions of the model and the convergence of its approximations.