Cobaya swMATH ID: 41559 Software Authors: Jesus Torrado, Antony Lewis Description: Cobaya: Code for Bayesian Analysis of hierarchical physical models. We present Cobaya, 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. Homepage: https://cobaya.readthedocs.io/en/latest/ Source Code: https://github.com/CobayaSampler/cobaya Related Software: SciPy; Matplotlib; NumPy; Jupyter; astroABC; PyTorch; planck-low-py; NECOLA; CARPool; Pico; CosmoPower; swyft; cosmoabc; MultiNest; GetDist; Scikit; CAMB; polychord Cited in: 3 Documents all top 5 Cited by 11 Authors 1 Bernardo, Reginald Christian S. 1 Cai, Maxwell X. 1 Cole, Alex 1 Grootes, Meiert W. 1 Hogg, N. B. 1 Miller, Benjamin K. 1 Nattino, Francesco 1 Nesseris, Savvas 1 Said, Jackson Levi 1 Weniger, Christoph 1 Witte, Samuel J. Cited in 1 Serial 3 Journal of Cosmology and Astroparticle Physics all top 5 Cited in 9 Fields 3 Relativity and gravitational theory (83-XX) 2 Quantum theory (81-XX) 1 Probability theory and stochastic processes (60-XX) 1 Statistics (62-XX) 1 Numerical analysis (65-XX) 1 Computer science (68-XX) 1 Mechanics of particles and systems (70-XX) 1 Fluid mechanics (76-XX) 1 Astronomy and astrophysics (85-XX) Citations by Year