Use the Laplace approximation to the posterior to approximate the log evidence ln⁡p(D) for N i.i.d. data points and M parameters. How does this lead to the BIC, and when does it break down?

Probabilistic models, Laplace approximation
Level L4 Advanced. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can derive ln⁡p(D)≈ln⁡p(D∣θ^)+ln⁡p(θ^)+M2ln⁡2π−12ln⁡∣A∣ and then drop terms of order 1 in N.

Key idea

The Hessian A of the negative log joint at the mode grows like N, so ln⁡∣A∣≈Mln⁡N+O(1). Keeping the leading terms gives ln⁡p(D)≈ln⁡p(D∣θ^)−M2ln⁡N.

Steps

  1. Write p(D)=∫p(D∣θ) p(θ) dθ=∫e−f(θ)dθ with f(θ)=−ln⁡p(D∣θ)−ln⁡p(θ).
  2. Taylor expand f around its minimum θ^ (the MAP). The gradient vanishes there, so f(θ)≈f(θ^)+12(θ−θ^)⊤A(θ−θ^) with A=∇∇f(θ^).
  3. The integral is Gaussian: p(D)≈e−f(θ^)(2π)M/2∣A∣−1/2. So ln⁡p(D)≈ln⁡p(D∣θ^)+ln⁡p(θ^)+M2ln⁡2π−12ln⁡∣A∣. The last two terms are the Occam factor.
  4. For i.i.d. data, the log-likelihood is a sum of N terms, so A≈NHˉ with Hˉ the average Hessian per observation. Then ln⁡∣A∣=Mln⁡N+ln⁡∣Hˉ∣.
  5. Drop the terms that do not grow with N (ln⁡p(θ^), M2ln⁡2π, ln⁡∣Hˉ∣). Also use the MLE in place of the MAP, with an error of order 1. The result is ln⁡p(D)≈ln⁡p(D∣θ^ML)−M2ln⁡N, which equals −12BIC.
  6. Breakdown: it needs N large and a peaked, roughly Gaussian posterior with a non-singular Hessian. It fails for singular models (mixtures, neural networks with symmetric units), for multimodal posteriors, and when N is small, where ln⁡p(θ^) and ln⁡∣Hˉ∣ matter.

Common mistakes

How long your answer should be

A page. About 8 minutes.

Last checked on 4 December 2026.

Read this

Previous in Probabilistic models: Two chains, each with n=4 post-burn-in draws of a scalar, give (1,2,3,2) and (3,4,5,4). Compute the Gelman–Rubin R^ and say what it indicates. Why is R^≈1 still not a proof of convergence?
Next in Probabilistic models: Why does the plain HMM forward algorithm underflow for long sequences, and how does the scaled forward algorithm fix it? How can you illustrate this using the HMM with π=(0.5,0.5), A=(0.70.30.40.6), P(a∣1)=0.9, P(a∣2)=0.2, P(b∣1)=0.1, P(b∣2)=0.8 and observations (a,b)?