Expand description
Markov chain Monte Carlo: random-walk Metropolis-Hastings.
See the book entry Markov chain Monte Carlo.
Structs§
- Markov
Chain - A Markov chain.
- Metropolis
Options - Settings for
metropolis_hastings.
Functions§
- metropolis_
hastings - Samples from the density proportional to
exp(log_density(x))by random-walk Metropolis-Hastings: proposex' = x + σ ⊙ zwithzstandard normal, accept with probabilitymin(1, p(x')/p(x)). Only an unnormalised log-density is needed; returning−∞marks points outside the support.