Methods › General › Markov Chain Monte Carlo › Metropolis Hastings

Metropolis Hastings

10 papers tagged archive 2025-07-28

archive 2025-07-28 Description, source and code snippet are the archive's method entry.

Metropolis-Hastings is a Markov Chain Monte Carlo (MCMC) algorithm for approximate inference. It allows for sampling from a probability distribution where direct sampling is difficult - usually owing to the presence of an intractable integral.

M-H consists of a proposal distribution q(θ^′|θ) to draw a parameter value. To decide whether θ^′ is accepted or rejected, we then calculate a ratio:

(p(θ^′|D))/(p(θ|D))

We then draw a random number r ∈[0, 1] and accept if it is under the ratio, reject otherwise. If we accept, we set θᵢ = θ^′ and repeat.

By the end we have a sample of θ values that we can use to form quantities over an approximate posterior, such as the expectation and uncertainty bounds. In practice, we typically have a period of tuning to achieve an acceptable acceptance ratio for the algorithm, as well as a warmup period to reduce bias towards initialization values.

Image: Samuel Hudec

Papers archive 2025-07-28

10 shown of 10, newest first. Repository counts are the archive's code-links table. A Syntology line states what Syntology ran from that paper's harvested code; it is per sample and not a correctness claim.

Tasks archive 2025-07-28

15 tasks the archive attaches to papers tagged with this method, by distinct papers. A task without a page in the catalog is plain text.

TaskPapers
Attribute1
Bayesian Inference1
Binary Classification1
Classification1
Density Ratio Estimation1
Federated Learning1
Image Generation1
Language Modeling1
Language Modelling1
Model Selection1
Normalising Flows1
Probabilistic Programming1
Style Transfer1
Text Generation1
Variational Inference1

Usage over time archive 2025-07-28

Papers per year tagged with Metropolis Hastings: 2014 to 2024, peak 2 2 0 2014: 1 paper 2014 2015: 2 papers 2015 2016: 1 paper 2016 2017: 0 papers 2017 2018: 0 papers 2018 2019: 1 paper 2019 2020: 0 papers 2020 2021: 1 paper 2021 2022: 2 papers 2022 2023: 1 paper 2023 2024: 1 paper 2024
Papers per year the archive tags with this method, by the paper's archive date (10 dated). Bars are counts, not a trend claim.

Components: the archive holds no method-to-method composition, so PwC's Components table cannot be rebuilt; the Papers list carries no Results column for the same reason (the archive does not join its leaderboard rows to method tags).

Categories archive 2025-07-28

Markov Chain Monte Carlo

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections