pocoMC: A Python package for accelerated Bayesian inference in astronomy and cosmology

Minas Karamanis, David Nabergoj, Florian Beutler, John A. Peacock, Uros Seljak
7/12/2022
astro-ph.IMastro-ph.COphysics.comp-ph
bayesian

Official code: minaskar/pocomc (131 stars, Python, GPL-3.0, last commit 2025-09-11).

Abstract

pocoMC is a Python package for accelerated Bayesian inference in astronomy and cosmology. The code is designed to sample efficiently from posterior distributions with non-trivial geometry, including strong multimodality and non-linearity.

Show full abstract

To this end, pocoMC relies on the Preconditioned Monte Carlo algorithm which utilises a Normalising Flow in order to decorrelate the parameters of the posterior. It facilitates both tasks of parameter estimation and model comparison, focusing especially on computationally expensive applications. It allows fitting arbitrary models defined as a log-likelihood function and a log-prior probability density function in Python. Compared to popular alternatives (e.g. nested sampling) pocoMC can speed up the sampling procedure by orders of magnitude, cutting down the computational cost substantially. Finally, parallelisation to computing clusters manifests linear scaling.

View on arXivView PDF

Code Implementations(1)

minaskar/pocomcOfficial100%
GPL-3.0

pocoMC: A Python implementation of Preconditioned Monte Carlo for accelerated Bayesian Computation

13112Python, TeXFeb 2, 20221 years agoGPL-3.0
astronomyastrophysicsbayesian-inferenceblack-box-bayesian-inferencecosmology+12 more

Similar Papers

Cite this paper

@article{karamanis2022pocomc,
  title  = {pocoMC: A Python package for accelerated Bayesian inference in astronomy and cosmology},
  author = {Minas Karamanis and David Nabergoj and Florian Beutler and John A. Peacock and Uros Seljak},
  year   = {2022},
  eprint = {2207.05660},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.05660}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2207.05660.svg)](https://codeofpaper.com/paper/2207.05660)

Discussion