GetDist: a Python package for analysing Monte Carlo samples
Antony Lewis

TL;DR
GetDist is a Python package designed for analyzing Monte Carlo samples from Bayesian inference, providing density estimation, visualization, and diagnostic tools tailored for correlated and weighted samples.
Contribution
It introduces advanced KDE methods with boundary correction and automatic bandwidth selection specifically for correlated and weighted Monte Carlo samples.
Findings
Effective boundary correction for KDE in Monte Carlo samples
Automatic bandwidth selection improves density estimates
Supports diverse visualization and diagnostic tools
Abstract
Monte Carlo techniques, including MCMC and other methods, are widely used in Bayesian inference to generate sets of samples from a parameter space of interest. The Python GetDist package provides tools for analysing these samples and calculating marginalized one- and two-dimensional densities using Kernel Density Estimation (KDE). Many Monte Carlo methods produce correlated and/or weighted samples, for example produced by MCMC, nested, or importance sampling, and there can be hard boundary priors. GetDist's baseline method consists of applying a linear boundary kernel, and then using multiplicative bias correction. The smoothing bandwidth is selected automatically following Botev et al., based on a mixture of heuristics and optimization results using the expected scaling with an effective number of samples (defined here to account for both MCMC correlations and weights). Two-dimensional…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsForecasting Techniques and Applications · Statistical Methods and Inference · Statistical Methods and Bayesian Inference
