Past exam of the mathematics course of the University of Cambridge 2025 iii Paper 219 4 a Solution Created 2026-09-24 Updated 2026-09-25
One simple algorithm is importance sampling from the prior. Draw independently from and assign weight . Thenestimates the Bayesian model evidence, and the normalized weights represent the posterior. A weighted histogram or kernel density estimation of the estimates the marginal ; discarding performs the marginalization.