Marginal Bayesian Statistics Using Masked Autoregressive Flows and Kernel Density Estimators with Examples in Cosmology

Harry Bevins, Will Handley, Pablo Lemos, Peter Sims, Eloy de Lera Acedo +1 more
7/23/2022
astro-ph.COastro-ph.IM
bayesian

Official code: htjb/margarine (14 stars, Python, MIT, last commit 2026-03-23).

Abstract

Cosmological experiments often employ Bayesian workflows to derive constraints on cosmological and astrophysical parameters from their data. It has been shown that these constraints can be combined across different probes such as Planck and the Dark Energy Survey and that this can be a valuable exercise to improve our understanding of the universe and quantify tension between multiple experiments.

Show full abstract

However, these experiments are typically plagued by differing systematics, instrumental effects and contaminating signals, which we collectively refer to as `nuisance' components, that have to be modelled alongside target signals of interest. This leads to high dimensional parameter spaces, especially when combining data sets, with > 20 dimensions of which only around 5 correspond to key physical quantities. We present a means by which to combine constraints from different data sets in a computationally efficient manner by generating rapid, reusable and reliable marginal probability density estimators, giving us access to nuisance-free likelihoods. This is possible through the unique combination of nested sampling, which gives us access to Bayesian evidences, and the marginal Bayesian statistics code MARGARINE. Our method is lossless in the signal parameters, resulting in the same posterior distributions as would be found from a full nested sampling run over all nuisance parameters, and typically quicker than evaluating full likelihoods. We demonstrate our approach by applying it to the combination of posteriors from the Dark Energy Survey and Planck.

View on arXivView PDF

Code Implementations(1)

htjb/margarineOfficial100%
MIT

Easy to use density estimation tools.

1410PythonNov 11, 20218 months agoMIT

Similar Papers

Cite this paper

@article{bevins2022marginal,
  title  = {Marginal Bayesian Statistics Using Masked Autoregressive Flows and Kernel Density Estimators with Examples in Cosmology},
  author = {Harry Bevins and Will Handley and Pablo Lemos and Peter Sims and Eloy de Lera Acedo and Anastasia Fialkov},
  year   = {2022},
  eprint = {2207.11457},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2207.11457}
}

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.11457.svg)](https://codeofpaper.com/paper/2207.11457)

Discussion