105
views
0
recommends
+1 Recommend
0 collections
    7
    shares
      • Record: found
      • Abstract: found
      • Article: found
      Is Open Access

      emcee: The MCMC Hammer

      Preprint
      , , ,

      Read this article at

      Bookmark
          There is no author summary for this article yet. Authors can add summaries to their articles on ScienceOpen to make them more accessible to a non-specialist audience.

          Abstract

          We introduce a stable, well tested Python implementation of the affine-invariant ensemble sampler for Markov chain Monte Carlo (MCMC) proposed by Goodman & Weare (2010). 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 \(\sim N^2\) for a traditional algorithm in an N-dimensional parameter space. In this document, we describe the algorithm and the details of our implementation and API. 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 MIT License.

          Related collections

          Most cited references22

          • Record: found
          • Abstract: not found
          • Book: not found

          Bayesian Logical Data Analysis for the Physical Sciences

            Bookmark
            • Record: found
            • Abstract: not found
            • Article: not found

            Markov Chain Monte Carlo Convergence Diagnostics: A Comparative Review

              Bookmark
              • Record: found
              • Abstract: not found
              • Article: not found

              Diffusive nested sampling

                Bookmark

                Author and article information

                Journal
                16 February 2012
                2013-11-25
                Article
                10.1086/670067
                1202.3665
                742431a8-3cfb-4f3f-a3e1-a915bb691339

                http://arxiv.org/licenses/nonexclusive-distrib/1.0/

                History
                Custom metadata
                Code re-licensed under MIT
                astro-ph.IM physics.comp-ph stat.CO

                Mathematical & Computational physics,Instrumentation & Methods for astrophysics,Mathematical modeling & Computation

                Comments

                Comment on this article