Skip to main content

Bayesian Analysis in Cosmology

Project description

Author:

Jesus Torrado and Antony Lewis

Source:

Source code at Github

Documentation:

Documentation at Readthedocs

License:

LGPL for the code (except otherwise stated in a docstring) and GFDL for the documentation (see LICENSE.txt).

cobaya (Guinea Pig, in Spanish) is a framework for sampling and statistical modelling: it allows you explore any prior or posterior using a range of Monte Carlo samplers (including the advanced MCMC sampler from CosmoMC, and the advanced nested sampler PolyChord). The results of the sampling can be analysed with GetDist.

Its authors are Jesus Torrado and Antony Lewis, and some ideas and modules (at least in the current version) have been adapted from Monte Python, by Julien Lesgourgues and Benjamin Audren (in particular, the interface to the Planck 2015 likelihoods, without much modification, and pieces of the interface to the CLASS cosmological code).

Though cobaya is a general purpose code, it includes interfaces to cosmological theory codes (CAMB and CLASS) and experimental likelihoods (Planck 2015 for now only). The interfaces to most cosmological likelihoods are agnostic as to which theory code is used to compute the observables, which facilitates comparison between those codes.

cobaya has been conceived from the beginning to be highly and quickly extensible – without touching cobaya’s source, you can define your own priors and likelihoods, and modify your theory code. With a little more work, you can experiment with new sampling techniques. It supports MPI parallellisation, it can be run either from the shell or from a Python interpreter/notebook, and takes input either as YAML files or Python dictionaries.

How to cite us

As of this version, there is no scientific publication yet associated to this software, so simply mention its Github repository (see above).

To appropriately cite the modules (samplers, theory codes, likelihoods) that you have used, simply run the script cobaya-citation with your input file(s) as argument(s), and you will get bibtex references and a short suggested text snippet for each module mentioned in your input file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cobaya-0.122.tar.gz (71.1 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page