emcee: The MCMC Hammer

By Daniel Foreman-Mackey, David W. Hogg, Dustin Lang, Jonathan B. Goodman. 2012

10,027 citations recorded by the source corpus.

We introduce a stable, well tested Python implementation of the affine-invariant ensemble sampler for Markov chain Monte Carlo (MCMC) proposed by Goodman & Weare (). The code is open source and has already been used in several published projects in the astrophysics literature. The algorithm behind emcee has several advantages over traditional MCMC sampling methods and it has excellent performance as measured by the autocorrelation time (or function calls per independent sample). One major advantage of the algorithm is that it requires hand-tuning of only 1 or 2 parameters compared to ∼N2 for a traditional algorithm in an N-dimensional parameter space. In this document, we describe the algorithm and the details of our implementation. Exploiting the parallelism of the ensemble method, emcee permits any user to take advantage of multiple CPU cores without extra effort. The code is available online at http://dan.iel.fm/emcee under the GNU General Public License v2.

Subfields: Astronomy and Astrophysics, Statistical and Nonlinear Physics, Statistics and Probability, Probabilistic & Bayesian Methods

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Astronomy and Astrophysics

  1. L. Hernquist
  2. P. Hopkins
  3. Volker Springel
  4. C. Conroy
  5. Simon D. M. White
  6. R. Dav'e
  7. R. Somerville
  8. P. V. van Dokkum

In Statistical and Nonlinear Physics

  1. Timothy Morton
  2. C. Conroy
  3. D. Charbonneau
  4. Jon Fortney
  5. N. Madhusudhan
  6. J. Owen
  7. Eugene O. Vasiliev
  8. C. Mordasini

In Statistics and Probability

  1. Justin Alsing
  2. Benjamin Dan Wandelt
  3. Timothy Morton
  4. Bernhard Schölkopf
  5. Frank Hutter
  6. Eugene O. Vasiliev
  7. J. Johnson
  8. N. Evans II

In Probabilistic & Bayesian Methods

  1. Frank Hutter
  2. Aaron Klein
  3. Stefan Falkner
  4. Justin Alsing
  5. Simon Bartels
  6. Philipp Hennig
  7. Timothy Morton
  8. Benjamin Dan Wandelt

Citations in the corpus