Laplace's approximation or the quadratic approximation (QUAP) provides an analytical expression for a posterior probability distribution by fitting a Gaussian distribution with a mean equal to the MAP solution and precision equal to the observed Fisher information. The approximation is justified by the Bernstein–von Mises theorem, which states that, under regularity conditions, the error of the approximation tends to 0 as the number of data points tends to infinity. For example, consider a regression or classification model with data set {xn,yn}n=1,…,N comprising inputs x and outputs y with (unknown) parameter vector θ of length D. The likelihood is denoted p(𝐲|𝐱,θ) and the parameter prior p(θ). Suppose one wants to approximate the joint density of outputs and parameters p(𝐲,θ|𝐱). Bayes' formula reads:
p(𝐲,θ|𝐱)=p(𝐲|𝐱,θ)p(θ|𝐱)=p(𝐲|𝐱)p(θ|𝐲,𝐱)≃q~(θ)=Zq(θ). The joint is equal to the product of the likelihood and the prior and by Bayes' rule, equal to the product of the marginal likelihood p(𝐲|𝐱) and posterior p(θ|𝐲,𝐱). Seen as a function of θ the joint is an un-normalised density. In Laplace's approximation, we approximate the joint by an un-normalised Gaussian q~(θ)=Zq(θ), where we use q to denote approximate density, q~ for un-normalised density and Z the normalisation constant of q~ (independent of θ). Since the marginal likelihood p(𝐲|𝐱) doesn't depend on the parameter θ and the posterior p(θ|𝐲,𝐱) normalises over θ we can immediately identify them with Z and q(θ) of our approximation, respectively. Laplace's approximation is
p(𝐲,θ|𝐱)≃p(𝐲,θ̂|𝐱)exp(−12(θ−θ̂)⊤S−1(θ−θ̂))=q~(θ), where we have defined
θ̂=argmaxθlogp(𝐲,θ|𝐱),S−1=−∇θ∇θlogp(𝐲,θ|𝐱)|θ=θ̂, where θ̂ is the location of a mode of the joint target density, also known as the maximum a posteriori or MAP point and S−1 is the D×D positive definite matrix of second derivatives of the negative log joint target density at the mode θ=θ̂. Thus, the Gaussian approximation matches the value and the log-curvature of the un-normalised target density at the mode. The value of θ̂ is usually found using a gradient based method. In summary, we have
q(θ)=𝒩(θ|μ=θ̂,Σ=S),logZ=logp(𝐲,θ̂|𝐱)+12log|S|+D2log(2π), for the approximate posterior over θ and the approximate log marginal likelihood respectively. The main weaknesses of Laplace's approximation are that it is symmetric around the mode and that it is very local: the entire approximation is derived from properties at a single point of the target density. Laplace's method is widely used and was pioneered in the context of neural networks by David MacKay, and for Gaussian processes by Williams and Barber.
Integrated nested Laplace approximation Integrated nested Laplace approximation (INLA) is a method for approximate Bayesian inference based on Laplace's approximation. It is designed for a class of models called latent Gaussian models (LGMs), for which it can be a fast and accurate alternative for Markov chain Monte Carlo methods to compute posterior marginal distributions. Due to its relative speed even with large data sets for certain problems and models, INLA has been a popular inference method in applied statistics, in particular spatial statistics, ecology, seismology, and epidemiology. It is also possible to combine INLA with a finite element method solution of a stochastic partial differential equation to study e.g. spatial point processes and species distribution models. The INLA method is implemented in the R-INLA R package.
Latent Gaussian models Let 𝒚=(y1,…,yn) denote the response variable (that is, the observations) which belongs to an exponential family, with the mean μi (of yi) being linked to a linear predictor ηi via an appropriate link function. The linear predictor can take the form of a (Bayesian) additive model. All latent effects (the linear predictor, the intercept, coefficients of possible covariates, and so on) are collectively denoted by the vector 𝒙. The hyperparameters of the model are denoted by 𝜽. As per Bayesian statistics, 𝒙 and 𝜽 are random variables with prior distributions. The observations are assumed to be conditionally independent given 𝒙 and 𝜽: π(𝒚|𝒙,𝜽)=∏i∈ℐπ(yi|ηi,𝜽), where ℐ is the set of indices for observed elements of 𝒚 (some elements may be unobserved, and for these INLA computes a posterior predictive distribution). Note that the linear predictor 𝜼 is part of 𝒙. For the model to be a latent Gaussian model, it is assumed that 𝒙|𝜽 is a Gaussian Markov Random Field (GMRF) (that is, a multivariate Gaussian with additional conditional independence properties) with probability density π(𝒙|𝜽)∝|𝑸𝜽|1/2exp(−12𝒙T𝑸𝜽𝒙), where 𝑸𝜽 is a 𝜽-dependent sparse precision matrix and |𝑸𝜽| is its determinant. The precision matrix is sparse due to the GMRF assumption. The prior distribution π(𝜽) for the hyperparameters need not be Gaussian. However, the number of hyperparameters, m=dim(𝜽), is assumed to be small (say, less than 15).
… excerpt ends here. Continue reading the full article.
