Understanding the Metropolis-Hastings Algorithm
The DOI matches its Crossref record; 29 of the 29 references it cites were found in a registry or an index.
Abstract
We provide a detailed, introductory exposition of the Metropolis-Hastings algorithm, a powerful Markov chain method to simulate multivariate distributions. A simple, intuitive derivation of this method is given along with guidance on implementation. Also discussed are two applications of the algorithm, one for implementing acceptance-rejection sampling when a blanketing function is not available and the other for implementing the algorithm with block-at-a-time scans. In the latter situation, many different algorithms, including the Gibbs sampler, are shown to be special cases of the Metropolis-Hastings algorithm. The methods are illustrated with examples.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cites
Equation of State Calculations by Fast Computing Machines
Metropolis, N., Rosenbluth, A. W., Rosenbluth, M. N., Teller, A. H., & Teller, E. (1953) · The Journal of Chemical Physics · doi:10.1063/1.1699114 · Cited by 37,192
Time Series Analysis: Forecasting and Control
Geurts, M., Box, G. E. P., & Jenkins, G. M. (1977) · Journal of Marketing Research · doi:10.2307/3150485 · Cited by 19,186
Inference from iterative simulation using multiple sequences
Gelman, A., & Rubin, D. B. (1992) · Statistical Science · doi:10.1214/ss/1177011136 · Cited by 16,627
Monte Carlo sampling methods using Markov chains and their applications.
Hastings, W. K. (1970) · Biometrika · doi:10.1093/biomet/57.1.97 · Cited by 15,195 · cited 1×
“A second family of candidate-generating densities is given by the form q(x,y) = qz(y) [see Hastings (1970)l.”
MethodSampling-based approaches to calculating marginal densities
Gelfand, A. E., & Smith, A. F. M. (1990) · Journal of the American Statistical Association · doi:10.1080/01621459.1990.10476213 · Cited by 6,606 · cited 1×
“The Gibbs sampling algorithm is one of the best known of these methods, and its impact on Bayesian statistics, following the work of Tanner and Wong (1987) and Gelfand and Smith (1990) , has been immense as detailed in many articles, for example, Smith and Roberts (1993), Tanner (1993), and Chib and Greenberg (1993).”
MethodPE, & Billingsley, P. (1996) · Journal of the American Statistical Association · doi:10.2307/2291440 · Cited by 6,481
Time Series Analysis: Forecasting and Control
Kleiner, B. (1977) · Technometrics · doi:10.1080/00401706.1977.10489562 · Cited by 6,446
Markov Chains and Stochastic Stability
Meyn, S. P., & Tweedie, R. L. (1993) · Springer eBooks · doi:10.1007/978-1-4471-3267-7 · Cited by 5,041
The Calculation of Posterior Distributions by Data Augmentation
Tanner, M. A., & Wong, W. H. (1987) · Journal of the American Statistical Association · doi:10.1080/01621459.1987.10478458 · Cited by 3,928
Markov Chains for Exploring Posterior Distributions
Tierney, L. (1994) · The Annals of Statistics · doi:10.1214/aos/1176325750 · Cited by 3,452
Research works printed but not linked: 4
- Chib S., 1993, Econometric Theory
- Dagpunar J., 1988, Principles of Random Variate Generation
- Müller P., 1993, “A Generic Approach to Posterior Integration and Gibbs Sampling”
- 10.2307/2290978 · doi:10.2307/2290978
Cited by
Items 101–150 of 150
Confronting input uncertainty in environmental modelling
Kavetski, D., Franks, S. W., & Kuczera, G. (2003) · Water Science and Application · doi:10.1029/ws006p0049 · Cited by 224
Powering Earth’s dynamo with magnesium precipitation from the core
O’Rourke, J. G., & Stevenson, D. J. (2016) · Nature · doi:10.1038/nature16495 · Cited by 222
Are Chaplygin gases serious contenders for the dark energy?
Bean, R., & Doré, O. (2003) · Physical Review D · doi:10.1103/physrevd.68.023515 · Cited by 212
Annan, J. D., Hargreaves, J. C., Edwards, N. R., & Marsh, R. (2005) · Ocean Modelling · doi:10.1016/j.ocemod.2003.12.004 · Cited by 210
“Chib and Greenberg, 1995; Harmon and Challenor, 1997; Hargreaves and Annan, 2002).”
BackgroundReference Bayesian Methods for Generalized Linear Mixed Models
Natarajan, R., & Kass, R. E. (2000) · Journal of the American Statistical Association · doi:10.1080/01621459.2000.10473916 · Cited by 209
Gelfand, A. E. (2000) · Journal of the American Statistical Association · doi:10.1080/01621459.2000.10474335 · Cited by 207
“The Hastings-Metropolis algorithms which, in principle, enable simultaneous updating of the entire vector (Tierney, 1995; Chib and Greenberg (1995)) are usually more conveniently used within the Gibbs sampler for updating some of the i , typically those with the least tractable full conditional…”
MethodA Hierarchical Bayes Model of Primary and Secondary Demand
Arora, N., Allenby, G. M., & Ginter, J. L. (1998) · Marketing Science · doi:10.1287/mksc.17.1.29 · Cited by 206
Forecasting with Bayesian Vector Autoregression
Karlsson, S. (2013) · Handbook of Economic Forecasting · doi:10.1016/b978-0-444-62731-5.00015-4 · Cited by 206
“Geweke and Whiteman (2006), Chib and Greenberg (1995) and Geweke (1999) gives a more indepth discussion and book length treatments include Gamerman (1997) and Robert and Casella (1999).”
Modeling the hemodynamic response in fMRI using smooth FIR filters
Goutte, C., Nielsen, F. A., & Hansen, K. H. (2000) · IEEE Transactions on Medical Imaging · doi:10.1109/42.897811 · Cited by 206
“As the derivative of the evidence with respect tois nontrivial, we will simply use a Metropolis–Hastings algorithm [36], [26] with a Gaussian proposal (in the log domain), which has the advantage of being symmetric.”
MethodOn Unbiased Sampling for Unstructured Peer-to-Peer Networks
Stutzbach, D., Rejaie, R., Duffield, N., Sen, S., & Willinger, W. (2009) · IEEE/ACM Transactions on Networking · doi:10.1109/tnet.2008.2001730 · Cited by 205
“3) Evaluation: Although [6] provides a proof of correctness for the Metropolis Hastings method, to ensure the correctness of our implementation we conduct evaluations through simulation over static graphs.”
InfluentialBayesian Multivariate Poisson Regression for Models of Injury Count, by Severity
Ma, J., & Kockelman, K. M. (2006) · Transportation Research Record: Journal of the Transportation Research Board · doi:10.1177/0361198106195000104 · Cited by 203
“Further details about the M-H algorithm can be found in Smith and Roberts (1993), Tierney (1994), Chib and Greenberg (1995), and Lee (2004).”
MethodBayesian Probabilistic Projections of Life Expectancy for All Countries
Raftery, A. E., Chunn, J. L., Gerland, P., & Ševčíková, H. (2013) · Demography · doi:10.1007/s13524-012-0193-x · Cited by 203
“The approximately 1,000 parameters were updated one at a time, using Gibbs sampling (Gelfand and Smith 1990), Metropolis-Hastings sampling (Chib and Greenberg 1995; Hastings 1970), or slice sampling (Neal 2003).”
Numerical Methods of Statistics
Monahan, J. F. (2001) · Cambridge University Press eBooks · doi:10.1017/cbo9780511812231 · Cited by 202
Costs of Equity Capital and Model Mispricing
Pástor, Ľ., & Stambaugh, R. F. (1999) · The Journal of Finance · doi:10.1111/0022-1082.00099 · Cited by 201
A survey of Monte Carlo methods for parameter estimation
Luengo, D., Martino, L., Bugallo, M., Elvira, V., & Särkkä, S. (2020) · EURASIP Journal on Advances in Signal Processing · doi:10.1186/s13634-020-00675-6 · Cited by 199
“See the excellent tutorial (but rigorous) exposition of the MH algorithm provided by Chib and Greenberg for further information about this issue [53].”
BackgroundMethodA Bayesian test for periodic signals in red noise
Vaughan, S. (2010) · Monthly Notices of the Royal Astronomical Society · doi:10.1111/j.1365-2966.2009.15868.x · Cited by 198
“General introductions to MCMC computations for Bayesian posterior calculations are given by Gelman et al. (2004); Gregory (2005); Albert (2007), and more thorough treatments may be found in Tierney (1994); Chib & Greenberg (1995); Gilks etal.”
MethodOvercoming Scale Usage Heterogeneity: A Bayesian Hierarchical Approach
Rossi, P. E., Gilula, Z., & Allenby, G. M. (2001) · Journal of the American Statistical Association · doi:10.1198/016214501750332668 · Cited by 197
“This would improve the ef ciency of the Metropolis step in the sense of requiring fewer rejections (see Chib and Greenberg 1995, 1996).”
BackgroundSolution and Estimation Methods for DSGE Models
Fernández-Villaverde, J., Ramírez, J. F. R., & Schorfheide, F. (2016) · National Bureau of Economic Research · doi:10.3386/w21862 · Cited by 197
Lawrence, E., Heitmann, K., White, M., Higdon, D., Wagner, C., Habib, S., & Williams, B. (2010) · The Astrophysical Journal · doi:10.1088/0004-637x/713/2/1322 · Cited by 196
Liechty, J., Ramaswamy, V., & Cohen, S. H. (2001) · Journal of Marketing Research · doi:10.1509/jmkr.38.2.183.18849 · Cited by 192
“…Wakefield, and Walker 1999; Krishnan, Ramaswamy, Meyer, and Damien 1999) to generate samples of z, and introduce a Metropolis Hastings (MH) algorithm (Chib and Greenberg 1995; Hastings 1970) based on the griddy Gibbs sampler (Ritter and Tanner 1992) that can be used to generate samples of S .”
MethodAn empirical analysis of earnings dynamics among men in the PSID: 1968–1989
Geweke, J., & Keane, M. (2000) · Journal of Econometrics · doi:10.1016/s0304-4076(99)00063-9 · Cited by 191
“Accessible introductions to both topics for economists include Chib and Greenberg (1995,1996) and Geweke (1996,1999). More general references are Gelman et al. (1995) and Gilks et al.”
BackgroundWolff, M. A., Isaksen, K., Petersen-Øverleir, A., Ødemark, K., Reitan, T., & Brækkan, R. (2015) · Hydrology and Earth System Sciences · doi:10.5194/hess-19-951-2015 · Cited by 185
“Førland et al. (1996) developed and described a more operational method for correcting precipitation measurements in the Nordic countries based on the findings of the Jokioinen test site in Finland, as described in Goodison et al. (1998). This method, or variations on it (e.g. Hanssen-Bauer et al., 1996), are in wide…”
BackgroundMethodInfluentialOn MCMC sampling in hierarchical longitudinal models
Chib, S., & Carlin, B. P. (1999) · Statistics and Computing · doi:10.1023/a:1008853808677 · Cited by 185
“;D) where the last two densities are the same as in Algorithm 2 but the (cid:12)rst density is not in closed form but can be updated by the Metropolis-Hastings algorithm (see for example Hastings, 1970, or Chib and Greenberg, 1995).”
MethodSelf-citationSpatial and temporal dynamics of superspreading events in the 2014–2015 West Africa Ebola epidemic
Lau, M. S. Y., Dalziel, B. D., Funk, S., McClelland, A., Tiffany, A., Riley, S., Metcalf, C. J. E., & Grenfell, B. T. (2017) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.1614595114 · Cited by 185
“Parameters in θ were updated sequentially with a standard random-walk Metropolis–Hastings (M-H) algorithm (30, 31).”
Li, L., Xia, J., Xu, C.-Y., & Singh, V. P. (2010) · Journal of Hydrology · doi:10.1016/j.jhydrol.2010.06.044 · Cited by 184
“Chib and Greenberg (1995) pointed out that the tuning of the variance is done by calculating the acceptance rate, which depends on the target distribution.”
Using Simulation Methods for Bayesian Econometric Models
McCausland, W., Geweke, J., & Stevens, J. (2003) · Computer-Aided Econometrics · doi:10.1201/9780203911570.pt2 · Cited by 184
Wiecki, T. V., Poland, J., & Frank, M. J. (2015) · Clinical Psychological Science · doi:10.1177/2167702614565359 · Cited by 182
“One common and widely applicable algorithm is Metropolis-Hastings (Chib and Greenberg, 1995; Andrieu et al., 2003).”
MethodMalinverno, A., Erba, E., & Herbert, T. D. (2010) · Paleoceanography · doi:10.1029/2009pa001769 · Cited by 181
“[29] We apply the Markov chain Monte Carlo Metropolis algorithm, where a candidate model is obtained first by small modifications of the last model sampled, and the candidate is then accepted or rejected [Metropolis et al., 1953; Chib and Greenberg, 1995].”
MethodBayesian Inference for Finite Mixtures of Generalized Linear Models with Random Effects
Lenk, P. J., & DeSarbo, W. S. (2000) · Psychometrika · doi:10.1007/bf02294188 · Cited by 179
Evaluation of Quality of Life and Priorities of Patients with Glaucoma
Aspinall, P. A., Johnson, Z. K., Azuara-Blanco, A., Montarzino, A., Brice, R., & Vickers, A. (2008) · Investigative Opthalmology & Visual Science · doi:10.1167/iovs.07-0559 · Cited by 178
“This module uses an iterative Monte Carlo Markov chain procedure with a Metropolis-Hastings algorithm.(46,47) This approach has been shown to be particularly beneficial when the small fractional designs are used and/or the data are heterogeneous.”
MethodMarkov chain Monte Carlo and models of consideration set and parameter heterogeneity
Chiang, J., Chib, S., & Narasimhan, C. (1998) · Journal of Econometrics · doi:10.1016/s0304-4076(98)00062-1 · Cited by 176
“Nonetheless, this density can be simulated quite easily by the Metropolis—Hastings algorithm, a Markov chain Monte Carlo algorithm (see Chib and Greenberg, 1995), by drawing candidates from a suitable density and then accepting or rejecting the candidates according to a specified probability.”
MethodSelf-citationNon-Equilibrium Relations for Bounded Rational Decision-Making in Changing Environments
Grau-Moya, J., Krüger, M., & Braun, D. (2017) · Entropy · doi:10.3390/e20010001 · Cited by 174
“We illustrate this adaptation paradigm with a decision-maker that adapts according to the Metropolis–Hastings algorithm, which follows Markovian dynamics [52].”
MethodEstimation of COVID-19 spread curves integrating global data and borrowing information
Lee, S. Y., Lei, B., & Mallick, B. (2020) · PLOS ONE · doi:10.1371/journal.pone.0236860 · Cited by 173
“Conceptually, ESS and the Metropolis-Hastings (MH) algorithm (Chib and Greenberg, 1995) are similar: both methods are comprised of two steps: proposal step and criterion step.”
MethodA Dynamic Model of Purchase Timing with Application to Direct Marketing
Allenby, G. M., Leone, R. P., & Jen, L. (1999) · Journal of the American Statistical Association · doi:10.1080/01621459.1999.10474127 · Cited by 171
“Draws of βi are obtained from a Metropolis-Hastings algorithm with a random walk chain (see Chib and Greenberg, 1995).”
MethodSampling methods for solving Bayesian model updating problems: A tutorial
Lye, A., Cicirello, A., & Patelli, E. (2021) · Mechanical Systems and Signal Processing · doi:10.1016/j.ymssp.2021.107760 · Cited by 169
Coverage-directed differential testing of JVM implementations
Chen, Y., Su, T., Sun, C., Su, Z., & Zhao, J. (2016) · Proceedings of the 37th ACM SIGPLAN Conference on Programming Language Design and Implementation · doi:10.1145/2908080.2908095 · Cited by 169
“MCMC sampling is a class of algorithms for sampling from a probability distribution by constructing a Markov chain that converges to the desired distribution [13, 28].”
BackgroundMethodModeling Intrinsically Disordered Proteins with Bayesian Statistics
Fisher, C. K., Huang, A., & Stultz, C. M. (2010) · Journal of the American Chemical Society · doi:10.1021/ja105832g · Cited by 166
Prevalence of positive selection among nearly neutral amino acid replacements in Drosophila
Sawyer, S. A., Parsch, J., Zhang, Z., & Hartl, D. L. (2007) · Proceedings of the National Academy of Sciences · doi:10.1073/pnas.0701572104 · Cited by 163
A review on evolutionary algorithms in Bayesian network learning and inference tasks
Larrañaga, P., Karshenas, H., Bielza, C., & Santana, R. (2013) · Information Sciences · doi:10.1016/j.ins.2012.12.051 · Cited by 162
“The methods proposed for this task can be divided into two categories: (a) exact algorithms [86,107], and (b) approximate algorithms which include deterministic methods [13,38,65] and methods based on simulating samples from the BN [14,18,58,124].”
MethodModeling the evolution of infrared galaxies: a parametric backward evolution model
Béthermin, M., Dole, H., Lagache, G., Le Borgne, D., & Penin, A. (2011) · Astronomy & Astrophysics · doi:10.1051/0004-6361/201015841 · Cited by 161
Economic and agronomic impact of commercialized GM crops: a meta-analysis
AREAL, F. J., RIESGO, L., & RODRÍGUEZ-CEREZO, E. (2013) · The Journal of Agricultural Science · doi:10.1017/s0021859612000111 · Cited by 112
Mean-field models in swarm robotics: a survey
Elamvazhuthi, K., & Berman, S. (2019) · Bioinspiration & Biomimetics · doi:10.1088/1748-3190/ab49a4 · Cited by 110
Quantum inference on Bayesian networks
Low, G. H., Yoder, T. J., & Chuang, I. L. (2014) · Physical Review A · doi:10.1103/physreva.89.062315 · Cited by 109
FairSquare: probabilistic verification of program fairness
Albarghouthi, A., D'Antoni, L., Drews, S., & Nori, A. V. (2017) · Proceedings of the ACM on Programming Languages · doi:10.1145/3133904 · Cited by 94
Rieger, T. R., Allen, R. J., Bystricky, L., Chen, Y., Colopy, G. W., Cui, Y., Gonzalez, A., Liu, Y., White, R. D., Everett, R. A., et al. (2018) · Progress in Biophysics and Molecular Biology · doi:10.1016/j.pbiomolbio.2018.06.002 · Cited by 94
Properties of cell death models calibrated and compared using Bayesian approaches
Eydgahi, H., Chen, W. W., Muhlich, J. L., Vitkup, D., Tsitsiklis, J. N., & Sorger, P. K. (2013) · Molecular Systems Biology · doi:10.1038/msb.2012.69 · Cited by 84
“Such a walk has the important property that the number of visits to a particular position in parameter space is proportional to the posterior probability, allowing parameter vectors to be sampled with the correct statistical weight (Chib and Greenberg, 1995).”
BackgroundAge‐related changes in the ease of dynamical transitions in human brain activity
Ezaki, T., Sakaki, M., Watanabe, T., & Masuda, N. (2018) · Human Brain Mapping · doi:10.1002/hbm.24033 · Cited by 55
Jang, S. S., & Gopaluni, R. B. (2011) · Chemical Engineering Science · doi:10.1016/j.ces.2011.03.029 · Cited by 25
Induced fit with replica exchange improves protein complex structure prediction
Harmalkar, A., Mahajan, S. P., & Gray, J. J. (2022) · PLOS Computational Biology · doi:10.1371/journal.pcbi.1010124 · Cited by 16
“After every 1, 000 MC trials of rigid-body and backbone motions, an MCswap is attempted between neighboring replicas as per the Metropolis criterion [33] (Methods).”
MethodInduced fit with replica exchange improves protein complex structure prediction
Harmalkar, A., Mahajan, S. P., & Gray, J. J. (2021) · doi:10.1101/2021.12.08.471786 · Cited by 16
Metadata
- Authors
- Chib, S., & Greenberg, E.
- Venue
- The American Statistician
- Publisher
- Informa UK Limited
- Published
- 1995-11
- Volume
- 49
- Issue
- 4
- Pages
- 327-335
- ISSN
- 0003-1305 (ISSN-L)
- 1537-2731
- OpenAlex
- W2108207895
- Cited by
- 4,145
- References
- 29
- FWCI
- 28.20
- Type
- journal article
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.