Scinovex
article Open AccessTop 1% cited

Cobaya: code for Bayesian analysis of hierarchical physical models

Journal of Cosmology and Astroparticle Physics · 2021 · Vol. 2021(05) · pp. 057–057
Jesús TorradoAntony Lewis

Abstract

Abstract We present , a general-purpose Bayesian analysis code aimed at models with complex internal interdependencies. Without the need for specific code by the user, interdependencies between different stages of a model pipeline are exploited for sampling efficiency: intermediate results are automatically cached, and parameters are grouped in blocks according to their dependencies and optimally sorted, taking into account their individual computational costs, so as to minimize the cost of their variation during sampling, thanks to a novel algorithm. Cobaya allows exploration of posteriors using a range of Monte Carlo samplers, and also has functions for maximization and importance-reweighting of Monte Carlo samples with new priors and likelihoods. Cobaya is written in Python in a modular way that allows for extendability, use of calculations provided by external packages, and dynamical reparameterization without modifying its source. It can exploit hybrid OpenMP/MPI parallelization, and has sub-millisecond overhead per posterior evaluation. Though Cobaya is a general purpose statistical framework, it includes interfaces to a set of cosmological Boltzmann codes and likelihoods (the latter being agnostic with respect to the choice of the former), and automatic installers for external dependencies.

Lattice Boltzmann Simulation StudiesMarkov Chains and Monte Carlo MethodsStatistical Mechanics and EntropyMonte Carlo methodBayesian probabilityPipeline (software)Python (programming language)Markov chain Monte CarloCode (set theory)Prior probabilityExploitHybrid Monte Carlo

Funding

  • Science and Technology Facilities Council
Citations
587
FWCI
56.89
field-weighted impact
References
27
Percentile
100%
vs. same field & year
Citations per year
Cited by
The Atacama Cosmology Telescope: DR4 maps and cosmological parameters
Journal of Cosmology and Astroparticle Physics · 2020 · 601 citations
DESI 2024 VI: cosmological constraints from the measurements of baryon acoustic oscillations
Journal of Cosmology and Astroparticle Physics · 2025 · 805 citations
References
Conservative constraints on early cosmology with MONTE PYTHON
Journal of Cosmology and Astroparticle Physics · 2013 · 791 citations
Equation of State Calculations by Fast Computing Machines
The Journal of Chemical Physics · 1953 · 36,613 citations
Stable clustering, the halo model and non-linear cosmological power spectra
Monthly Notices of the Royal Astronomical Society · 2003 · 1,937 citations
The Cosmic Linear Anisotropy Solving System (CLASS). Part II: Approximation schemes
Journal of Cosmology and Astroparticle Physics · 2011 · 2,201 citations
CMB power spectrum parameter degeneracies in the era of precision cosmology
Journal of Cosmology and Astroparticle Physics · 2012 · 487 citations
Cosmological parameters from CMB and other data: A Monte Carlo approach
Physical review. D. Particles, fields, gravitation, and cosmology/Physical review. D. Particles and fields · 2002 · 3,339 citations
Citation Network

How this paper connects to the literature. Drag to explore, click any node to open that paper.