emcee swMATH ID: 20217 Software Authors: Foreman-Mackey, Daniel; Hogg, David W.; Lang, Dustin; Goodman, Jonathan Description: emcee: The MCMC Hammer. 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 ∼N2 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/current/ under the MIT License. Homepage: http://dan.iel.fm/emcee/current/ Related Software: Python; SciPy; Matplotlib; NumPy; GetDist; corner.py; Astropy; CAMB; dynesty; PyMC; Rtwalk; t-walk; Stan; BayesDA; FFTLog; CLASS; FAST-PT; TensorFlow; velocileptors; Jupyter Cited in: 81 Documents all top 5 Cited by 235 Authors 5 Koussour, M. 5 Myrzakulov, Nurgissa 4 Weare, Jonathan Quincy 3 Aviles, Alejandro 3 Sefusatti, Emiliano 2 Alfedeel, Alnadhief H. A. 2 Anagnostopoulos, Fotios K. 2 Bell, John B. 2 Chaubey, Raghavendra 2 Dufays, Arnaud 2 Mandal, Sajal 2 Monaco, Pierluigi 2 Morzfeld, Matthias 2 Noriega, Hernán E. 2 Oddo, Andrea 2 Porciani, Cristiano 2 Rizzo, Federico 2 Saridakis, Emmanuel N. 2 Shukla, Bhupendra Kumar 2 Singh, Ashutosh 2 Sofuoğlu, Değer 2 Tiwari, Rishi Kumar 2 Vargas-Magaña, Mariana 2 Wandelt, Benjamin D. 1 Adami, Kristian Zarb 1 Adshead, Peter 1 Agrawal, Sudha 1 Aich, Arkajit 1 Alawieh, Leen 1 Alsing, Justin 1 Alvarez, Pedro D. 1 Ansoldi, Stefano 1 Aristoff, David 1 Azreg-Ainou, Mustapha 1 Baker, Tessa 1 Banerjee, Arka 1 Bangerth, Wolfgang 1 Barreira, Alexandre 1 Basilakos, Spyros 1 Batista, R. C. 1 Baur, Alexander 1 Bautista, Raymundo 1 Bayen, Térence 1 Beesham, Aroonkumar 1 Bergner, Georg 1 Berkelbach, Timothy C. 1 Bhardwaj, Vinod Kumar 1 Biagetti, Matteo 1 Boehl, Gregor 1 Bora, Kamal 1 Bose, Benjamin 1 Bouali, Amine 1 Bouchard-Côté, Alexandre 1 Brewer, Brendon J. 1 Byun, Joyce 1 Canales, Felipe 1 Carpio, Ana 1 Carrilho, Pedro 1 Casas, Fernando 1 Castorina, Emanuele 1 Cervantes-Cota, Jorge L. 1 Charnock, Tom 1 Chaudhary, Himanshu 1 Chen, Shi-Fan 1 Choi, Jin-Ah 1 Copeland, Edmund J. 1 Corander, Jukka 1 Cunillera, Francesc 1 Day, Marcus S. 1 de Felice, Antonio 1 de Putter, Roland 1 de Souza, Rafael S. 1 de Sturler, Eric 1 Debnath, Ujjal 1 Desai, Shantanu 1 Dinner, Aaron R. 1 Donfack, Morvan Nongni 1 Doré, Olivier 1 dos Santos, F. B. M. 1 Eigel, Martin 1 El Hanafy, Waleed 1 Elkhair, H. M. 1 Elster, Clemens 1 Fasiello, Matteo 1 Finsterle, Stefan A. 1 Fromenteau, Sebastien 1 García-Aspeitia, Miguel A. 1 Gelman, Andrew 1 Giacomello, Francesco 1 Gleyzes, Jérôme 1 Gong, Jing 1 Goodman, Jesse 1 Goodman, Jonathan B. 1 Greene, Samuel M. 1 Grout, Ray W. 1 Gruhlke, Robert 1 Hamaus, Nico 1 Harrison, Ian 1 Harry, Ian W. 1 Hashim, Mahmoud ...and 135 more Authors all top 5 Cited in 32 Serials 31 Journal of Cosmology and Astroparticle Physics 6 International Journal of Geometric Methods in Modern Physics 4 Journal of High Energy Physics 3 Journal of Computational Physics 2 Classical and Quantum Gravity 2 General Relativity and Gravitation 2 Inverse Problems 2 Physics Letters. B 2 SIAM Journal on Scientific Computing 2 Chinese Journal of Physics (Taipei) 2 Statistics and Computing 2 SIAM/ASA Journal on Uncertainty Quantification 1 Artificial Intelligence 1 Computer Methods in Applied Mechanics and Engineering 1 Computer Physics Communications 1 Nonlinearity 1 Physica A 1 Physics Letters. A 1 Journal of Econometrics 1 Journal of Statistical Planning and Inference 1 Statistical Science 1 Journal of Economic Dynamics & Control 1 Computational Statistics 1 SIAM Review 1 Celestial Mechanics and Dynamical Astronomy 1 Studies in Nonlinear Dynamics and Econometrics 1 Australian & New Zealand Journal of Statistics 1 New Journal of Physics 1 SIAM Journal on Applied Dynamical Systems 1 Journal of the Korean Statistical Society 1 Communications in Theoretical Physics 1 Journal of Theoretical Biology all top 5 Cited in 28 Fields 47 Relativity and gravitational theory (83-XX) 30 Statistics (62-XX) 22 Quantum theory (81-XX) 17 Numerical analysis (65-XX) 13 Partial differential equations (35-XX) 13 Astronomy and astrophysics (85-XX) 10 Optics, electromagnetic theory (78-XX) 9 Mechanics of particles and systems (70-XX) 8 Probability theory and stochastic processes (60-XX) 8 Computer science (68-XX) 7 Statistical mechanics, structure of matter (82-XX) 4 Operator theory (47-XX) 3 Fluid mechanics (76-XX) 3 Game theory, economics, finance, and other social and behavioral sciences (91-XX) 2 Commutative algebra (13-XX) 2 Algebraic geometry (14-XX) 2 Calculus of variations and optimal control; optimization (49-XX) 2 Differential geometry (53-XX) 1 General algebraic systems (08-XX) 1 Measure and integration (28-XX) 1 Functions of a complex variable (30-XX) 1 Integral equations (45-XX) 1 Manifolds and cell complexes (57-XX) 1 Global analysis, analysis on manifolds (58-XX) 1 Mechanics of deformable solids (74-XX) 1 Classical thermodynamics, heat transfer (80-XX) 1 Geophysics (86-XX) 1 Biology and other natural sciences (92-XX) Citations by Year