Past exam of the mathematics course of the University of Cambridge 2004 iii Paper 40 5 iv Solution Created 2026-10-03 Updated 2026-10-14
The full conditional log probability density functions of the effects are, up to constants,These are Gaussian-prior Poisson log-effect conditional probability density functions. The exponential likelihood term prevents a standard normal distribution conjugate update. A Metropolis-within-Gibbs algorithm conveniently updates one effect at a time without computing its conditional normalizing constant.
For example, propose with , and accept withUse an analogous normal distribution random-walk proposal for . The proposal is symmetric and lives on the appropriate unrestricted real parameter space, so no proposal ratio is needed. It makes local moves compatible with a unimodal conditional probability density function. Tune the positive scale in a pilot or freeze it after warm-up; a scale far too large causes rejection and a scale far too small moves slowly.
A useful scale can be inferred from the conditional curvature: , with the analogous formula for . A normal proposal near the conditional mode with variance approximately is another sensible choice, but an asymmetric or state-dependent proposal must include its full reverse-to-forward proposal-density ratio. Metropolis–Hastings is convenient, not logically mandatory; these concave conditionals also admit other specialized samplers.