CosmoHammer: Cosmological parameter estimation with the MCMC Hammer
arXiv:1212.1721 · doi:10.1016/j.ascom.2013.06.003
Abstract
We study the benefits and limits of parallelised Markov chain Monte Carlo (MCMC) sampling in cosmology. MCMC methods are widely used for the estimation of cosmological parameters from a given set of observations and are typically based on the Metropolis-Hastings algorithm. Some of the required calculations can however be computationally intensive, meaning that a single long chain can take several hours or days to calculate. In practice, this can be limiting, since the MCMC process needs to be performed many times to test the impact of possible systematics and to understand the robustness of the measurements being made. To achieve greater speed through parallelisation, MCMC algorithms need to have short auto-correlation times and minimal overheads caused by tuning and burn-in. The resulting scalability is hence influenced by two factors, the MCMC overheads and the parallelisation costs. In order to efficiently distribute the MCMC sampling over thousands of cores on modern cloud computing infrastructure, we developed a Python framework called CosmoHammer which embeds emcee, an implementation by Foreman-Mackey et al. (2012) of the affine invariant ensemble sampler by Goodman and Weare (2010). We test the performance of CosmoHammer for cosmological parameter estimation from cosmic microwave background data. While Metropolis-Hastings is dominated by overheads, CosmoHammer is able to accelerate the sampling process from a wall time of 30 hours on a dual core notebook to 16 minutes by scaling out to 2048 cores. Such short wall times for complex data sets opens possibilities for extensive model testing and control of systematics.
Published version. 17 pages, 6 figures. The code is available at http://www.astro.ethz.ch/refregier/research/Software/cosmohammer
References in corpus (2)
Cited by in corpus (54)
- H0LiCOW - IX. Cosmographic analysis of the doubly imaged quasar SDSS 1206+4332 and a new measurement of the Hubble constant
- CosmoSIS: modular cosmological parameter estimation
- Inferring the astrophysics of reionization and cosmic dawn from galaxy luminosity functions and the 21-cm signal
- STRIDES: a 3.9 per cent measurement of the Hubble constant from the strong lens system DES J0408-5354
- Gravitational lens modeling with basis sets
- Is every strong lens model unhappy in its own way? Uniform modelling of a sample of 13 quadruply+ imaged quasars
- Stellar mass functions: methods, systematics and results for the local Universe
- Lyα emission line reconstruction for high- QSOs
- The stellar-to-halo mass relation of GAMA galaxies from 100 square degrees of KiDS weak lensing data
- 21CMMC with a 3D light-cone: the impact of the co-evolution approximation on the astrophysics of reionisation and cosmic dawn
- Approximate Bayesian Computation for Forward Modeling in Cosmology
- A halo model for cosmological neutral hydrogen: abundances and clustering
- Interpreting LOFAR 21-cm signal upper limits at z~9.1 in the context of high-z galaxy and reionisation observations
- Improving time-delay cosmography with spatially resolved kinematics
- Tomographic galaxy clustering with the Subaru Hyper Suprime-Cam first year public data release
- Exploring reionisation and high-z galaxy observables with recent multi-redshift MWA upper limits on the 21-cm signal
- KiDS+GAMA: Constraints on Horndeski gravity from combined large-scale structure probes
- Constraining a halo model for cosmological neutral hydrogen
- Line-of-sight effects in strong lensing: Putting theory into practice
- Information Gains from Cosmic Microwave Background Experiments
- Time Delay Lens Modelling Challenge
- A tale of two sites -- II: Inferring the properties of minihalo-hosted galaxies with upcoming 21-cm interferometers
- Consistency tests in cosmology using relative entropy
- Hierarchical multi-stage MCMC follow-up of continuous gravitational wave candidates
- Joint constraints on the Galactic dark matter halo and Galactic Centre from hypervelocity stars
- AGN and their host galaxies in the local Universe: two mass independent Eddington ratio distribution functions characterize black hole growth
- Probing spatial homogeneity with LTB models: a detailed discussion
- Integrated approach to cosmology: Combining CMB, large-scale structure and weak lensing
- Epoch of Reionisation 21cm Forecasting From MCMC-Constrained Semi-Numerical Models
- Constraints on the evolution of the relationship between HI mass and halo mass in the last 12 Gyr
- Improving constraints on the reionization parameters using 21-cm bispectrum
- M Dwarf Exoplanet Surface Density Distribution: A Log-Normal Fit from 0.07-400 AU
- Fast Generation of Covariance Matrices for Weak Lensing
- The seven sisters DANCe IV. Bayesian hierarchical model
- CosmoReionMC: A package for estimating cosmological and astrophysical parameters using CMB, Lyman-α absorption and global 21 cm data
- Inferring the properties of the sources of reionization using the morphological spectra of the ionized regions
- Isocurvature bounds on axion-like particle dark matter in the post-inflationary scenario
- Fast and robust Bayesian Inference using Gaussian Processes with GPry
- On Model Selection in Cosmology
- Impact of astrophysics on cosmology forecasts for 21 cm surveys
- Bayesian Model Selection with Future 21cm Observations of The Epoch of Reionisation
- Integrated Cosmological Probes: Extended Analysis
- Integrated cosmological probes: Concordance quantified
- Observationally inferred dark matter phase-space distribution and direct detection experiments
- Information geometry in cosmological inference problems
- SCoPE: An efficient method of Cosmological Parameter Estimation
- The Instantaneous Redshift Difference of Gravitationally Lensed Images: Theory and Observational Prospects
- Sparse Bayesian Inference and the Temperature Structure of the Solar Corona
- Ensemble sampler for infinite-dimensional inverse problems
- High-resolution imaging follow-up of doubly imaged quasars
- Gaussbock: Fast parallel-iterative cosmological parameter estimation with Bayesian nonparametrics
- Reconstructing the Cosmic Expansion History with a Monotonicity Prior
- Developing Parameter-Reduction Methods on a Biophysical Model of Auditory Hair Cells
- APES: Approximate Posterior Ensemble Sampler