English

emcee v3: A Python ensemble sampling toolkit for affine-invariant MCMC

Instrumentation and Methods for Astrophysics 2019-11-19 v1 Computation

Abstract

emcee is a Python library implementing a class of affine-invariant ensemble samplers for Markov chain Monte Carlo (MCMC). This package has been widely applied to probabilistic modeling problems in astrophysics where it was originally published, with some applications in other fields. When it was first released in 2012, the interface implemented in emcee was fundamentally different from the MCMC libraries that were popular at the time, such as PyMC, because it was specifically designed to work with "black box" models instead of structured graphical models. This has been a popular interface for applications in astrophysics because it is often non-trivial to implement realistic physics within the modeling frameworks required by other libraries. Since emcee's release, other libraries have been developed with similar interfaces, such as dynesty (Speagle 2019). The version 3.0 release of emcee is the first major release of the library in about 6 years and it includes a full re-write of the computational backend, several commonly requested features, and a set of new "move" implementations.

Keywords

Cite

@article{arxiv.1911.07688,
  title  = {emcee v3: A Python ensemble sampling toolkit for affine-invariant MCMC},
  author = {Daniel Foreman-Mackey and Will M. Farr and Manodeep Sinha and Anne M. Archibald and David W. Hogg and Jeremy S. Sanders and Joe Zuntz and Peter K. G. Williams and Andrew R. J. Nelson and Miguel de Val-Borro and Tobias Erhardt and Ilya Pashchenko and Oriol Abril Pla},
  journal= {arXiv preprint arXiv:1911.07688},
  year   = {2019}
}

Comments

Published in the Journal for Open Source Software

R2 v1 2026-06-23T12:19:20.343Z