7.4.2 METROPOLIS–HASTINGS ALGORITHM
The MH algorithm is almost a universal algorithm used to generate a Markov chain with a stationary distribution π(θ |x). It has been developed by Metropolis et al. (1953) in mechanical physics and generalized by Hastings (1970) in a statistical setting. It can be applied to a variety of problems since it requires the knowledge of the distribution of interest up to a normalizing constant only, i.e. as is typically the case in practice, the normalizing constant does not need to be known for the posterior for one to apply the following methods. Given a density π(θ |x), known up to a normalization constant, and a conditional density q(θ *|θ) the method generates the chain {θ(1), θ(2), …} using the following algorithm.
Get Fundamental Aspects of Operational Risk and Insurance Analytics: A Handbook of Operational Risk now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.