University of Sussex
Browse
2005.05290.pdf (778.93 kB)

Cobaya: code for Bayesian analysis of hierarchical physical models

Download (778.93 kB)
journal contribution
posted on 2023-06-10, 00:19 authored by Jesus Torrado Cacho, Antony LewisAntony Lewis
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.

History

Publication status

  • Published

File Version

  • Accepted version

Journal

Journal of Cosmology and Astroparticle Physics

ISSN

1475-7516

Publisher

IOP Publishing

Volume

2021

Page range

1-28

Department affiliated with

  • Physics and Astronomy Publications

Full text available

  • Yes

Peer reviewed?

  • Yes

Legacy Posted Date

2021-07-12

First Open Access (FOA) Date

2021-07-26

First Compliant Deposit (FCD) Date

2021-07-09

Usage metrics

    University of Sussex (Publications)

    Categories

    No categories selected

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC