GetDist: a Python package for analysing Monte Carlo samples
arXiv:1910.13970 · doi:10.1088/1475-7516/2025/08/025
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 KDE uses an automatically-determined elliptical Gaussian kernel for correlated distributions. The package includes tools for producing a variety of publication-quality figures using a simple named-parameter interface, as well as a graphical user interface that can be used for interactive exploration. It can also calculate convergence diagnostics, produce tables of limits, and output in LaTeX, and is publicly available.
GetDist available on pypi or see https://getdist.readthedocs.io. v2: updated with detailed description of credible interval estimation, example of non-rectangular prior boundaries (GetDist 1.7, also with updated GUI)
References in corpus (11)
- Planck 2013 results. XVI. Cosmological parameters
- Cosmological parameters from CMB and other data: a Monte-Carlo approach
- Multimodal nested sampling: an efficient and robust alternative to MCMC methods for astronomical data analysis
- Kernel density estimation via diffusion
- Cobaya: Code for Bayesian Analysis of hierarchical physical models
- Efficient sampling of fast and slow cosmological parameters
- PolyChord: next-generation nested sampling
- A Review of Kernel Density Estimation with Applications to Econometrics
- Taking Bigger Metropolis Steps by Dragging Fast Variables
- Kernel density estimation of a multidimensional efficiency profile
- Nonparametric Bayesian Density Modeling with Gaussian Processes
Cited by in corpus (133)
- DESI DR2 Results II: Measurements of Baryon Acoustic Oscillations and Cosmological Constraints
- The Science of the Einstein Telescope
- SPT-3G D1: CMB temperature and polarization power spectra and cosmology from 2019 and 2020 observations of the SPT-3G Main field
- Quintessence and phantoms in light of DESI 2025
- A NICER view of the 1.4 solar-mass edge-on pulsar PSR J0614-3329
- Probing the sign-changeable interaction between dark energy and dark matter with DESI baryon acoustic oscillations and DES supernovae data
- Pressure Parametrization of Dark Energy: First and Second-Order Constraints with Latest Cosmological Data
- Interacting Dark Sectors in light of DESI DR2
- Testing signatures of phantom crossing through full-shape galaxy clustering analysis
- Is Dark Energy Dynamical in the DESI Era? A Critical Review
- Cosmological constraints on nonphantom dynamical dark energy with DESI Data Release 2 Baryon Acoustic Oscillations: A 3+ lensing anomaly
- Dispuable: the high cost of a low optical depth
- Exploring non-cold dark matter in a scenario of dynamical dark energy with DESI DR2 data
- Robust evidence for dynamical dark energy in light of DESI DR2 and joint ACT, SPT, and Planck data
- Does DESI DR2 challenge CDM paradigm ?
- Cosmic sign-reversal: non-parametric reconstruction of interacting dark energy with DESI DR2
- Model-independent cosmological inference after the DESI DR2 data with improved inverse distance ladder
- Current constraints on cosmological scenarios with very low reheating temperatures
- Toward a simultaneous resolution of the and tensions: early dark energy and an interacting dark sector model
- Neutrino mass tension or suppressed growth rate of matter perturbations?
- Measuring neutrino masses with joint JWST and DESI DR2 data
- Do we need wavelets in the late Universe?
- Bayesian and frequentist perspectives agree on dynamical dark energy
- Cosmological implications of tracker scalar fields: Testing the evidence for dynamical dark energy with recent data
- Cosmology from Planck CMB Lensing and DESI DR1 Quasar Tomography
- Beyond Two Parameters: Revisiting Dark Energy with the Latest Cosmic Probes
- New Interpretations of the Cosmological Preference for a Negative Neutrino Mass
- Revisiting CPL with sign-switching density: To cross or not to cross the NECB
- Null energy condition violation and beyond Horndeski physics in light of DESI DR2 data
- Quintessential Implications of the presence of AdS in the Dark Energy sector
- Testing the cosmic distance duality relation with baryon acoustic oscillations and supernovae data
- Revisiting the phenomenologically emergent dark energy model: is non-zero equation of state of dark matter favored by DESI DR2?
- The Atacama Cosmology Telescope: DR6 Power Spectrum Foreground Model and Validation
- Probing departures from CDM by late-time datasets
- Investigating the CDM Model with Latest DESI BAO Observations
- Directly Probing Neutrino Interactions through CMB Phase Shift Measurements
- Extended mass distribution of PBHs during QCD phase transition: SGWB and mini-EMRIs
- One-loop power spectrum corrections in interacting dark energy cosmologies
- Evidence for evolving dark energy from DESI DR2 BAO and Pantheon, DES-Dovekie, and Union3
- A New Window on Dynamical Dark Energy: Combining DESI-DR2 BAO with future Gravitational Wave Observations
- What Prevents Resolving the Hubble Tension through Late-Time Expansion Modifications?
- Measuring neutrino mass in light of ACT DR6 and DESI DR2
- Resonant neutrino self-interactions: Insights from the full shape galaxy power spectrum
- Equation-of-state-informed pulse profile modeling
- Constraining Cosmology with Double-source-plane Strong Gravitational Lenses from the AGEL Survey
- Implications for Pulsar Timing Arrays of Sub-solar Black Hole Detections: From LVK to Einstein Telescope and Cosmic Explorer
- Redshift evolution of the Hubble constant: Constraints and new insights from an interacting dark energy model
- Comparing measures of the Hubble and BAO tensions in CDM and possible solutions in gravity
- Exponential quintessence with momentum coupling to dark matter
- Addressing the DESI DR2 Phantom-Crossing Anomaly and Enhanced Tension with Reconstructed Scalar-Tensor Gravity
- Scale and redshift dependent limits on cosmic neutrino properties
- Testing the consistency of new Amati-correlated gamma-ray burst dataset cosmological constraints with those from better-established cosmological data
- Neutrino decays as a natural explanation of the neutrino mass tension
- Lowering the Horizon on Dark Energy: A Late-Time Response to Early Solutions for the Hubble Tension
- Cosmic Strings as Dynamical Dark Energy: Novel Constraints
- : fast differentiable angular power spectra beyond Limber
- Constraints on Generalized Gravity-Thermodynamic Cosmology from DESI DR2
- Constraining using the Large-Scale Modulation of Small-Scale Statistics
- Hints Beyond CDM from Barrow and Tsallis Holographic Dark Energy with GO cutoff
- The SRG/eROSITA All-Sky Survey. The Weak-Lensing Mass Calibration and the Stellar Mass-to-Halo Mass Relation from the Hyper Suprime-Cam Subaru Strategic Program
- Thawing Quintessence: Priors, evidence, and likely trajectories
- Gravitational Wave Signatures of Primordial Black Hole Reheating in Upcoming Interferometry Missions
- Modified cosmology through generalized mass-to-horizon entropy: observational constraints from DESI DR2 BAO data
- Hubble Tension and Dark Energy in Teleparallel Gauss-Bonnet Gravity: New Constraints from DESI BAO, Pantheon and Hubble Data
- Power law -Starobinsky inflation
- Observational tests of the conformal osculating Barthel-Kropina cosmological model
- Dark energy, spatial curvature, and star formation efficiency from JWST photometric and spectroscopic high-redshift galaxies
- From Dark Radiation to Dark Energy: Unified Cosmological Evolution in K-essence Models
- What can we learn about Reionization astrophysical parameters using Gaussian Process Regression?
- Single-field D-type inflation in the minimal supergravity in light of Planck-ACT-SPT data
- KiDS-Legacy: Constraining dark energy, neutrino mass, and curvature
- Cosmological Constraints on Neutrino Masses in a Second-Order CPL Dark Energy Model
- Astrophysical uncertainties challenge 21-cm forecasts: A primordial black hole case study
- Non-Gaussian statistics in galaxy weak lensing: compressed three-point correlations and cosmological forecasts
- Dark Energy Survey: DESI-Independent Angular BAO Measurement
- Assessing the Robustness of the CPL Parametrization to Basis and Prior Variations: Insights from DESI DR2 BAO Data
- Forecasting the Constraint on the Hu-Sawicki Modified Gravity in the CSST pt Photometric Survey
- Power Suppression and Lensing Anomaly -- A phenomenological investigation
- An independent search for Jovian neutrinos using BOREXINO data
- An analytic approximation to the covariance between pre- and post-reconstruction galaxy two-point statistics
- Brans-Dicke-like field for co-varying and : observational constraints
- Probing Interacting Dark Sectors with upcoming Post-Reionization and Galaxy Surveys
- evortran: a modern Fortran package for genetic algorithms with applications from LHC data fitting to LISA signal reconstruction
- Dark energy constraints in light of theoretical priors
- Compact Objects in 4D Einstein Gauss Bonnet Gravity A Data Based Perspective
- LiteBIRD science goals and forecasts: improved full-sky reconstruction of the gravitational lensing potential through the combination of Planck and LiteBIRD data
- Detectability of massive binary black holes with sub-mHz gravitational wave missions
- Observational constraints on the modified cosmology inspired by string T-duality
- Illuminating the Dark Sector: Understanding Modified Gravity Signatures with Cross-Correlations of Gravitational Waves and Large-Scale Structure
- Probing the Type 3 interacting dark-energy model using matter pairwise velocity
- The Impact of Spectroscopic Redshift Errors on Cosmological Measurements
- Cosmological constraints on the big bang quantum cosmology model
- Can dark energy explain a high growth index?
- Cosmology in warped massive gravity
- Neutrino mass limits and decaying dark matter: background evolution versus perturbations
- Conformal Killing Gravity: New Constraints from DESI DR2 BAO datasets
- Cosmological and lunar laser ranging constraints on evolving dark energy in a nonminimally coupled curvature-matter gravity model
- Insights for Early Dark Energy with Big Bang Nucleosynthesis
- The Atacama Cosmology Telescope: A demonstration of CMB lensing measurement from daytime data
- Accelerating reionization constraints: An ANN-emulator framework for the SCRIPT Semi-numerical Model
- Strong Lensing Model and Dust Extinction Maps of the Host Galaxy of Type Ia Supernova H0pe
- Implications of a high growth index on the variation of
- J-PAS: forecast on the primordial power spectrum reconstruction
- Probing cosmology with bright sirens from the CosmoDC2_BCO LSST synthetic catalog
- Testing the cosmic distance duality relation using model-independent approach
- Non-linear infusion of intrinsic alignment and source clustering: impact on non-Gaussian cosmic shear statistics
- Graph-based Summary Statistics for Revealing the Stochastic Gravitational Wave Background in Pulsar Timing Arrays
- Revisiting the Matter Creation Process: Observational Constraints on Gravitationally Induced Dark Energy and the Hubble Tension
- Three-point intrinsic alignments of galaxies and haloes in the FLAMINGO simulations
- Is the CDM Model in Crisis?
- Mitigating point-source contamination in CMB polarization: a Generalized Point Spread Function fitting approach
- Analyzing -couplings at the future collider
- Breaking the Mass-sheet Degeneracy in Time-delay Cosmology with Lensed and Unlensed Type Ia Supernovae
- Beyond thermal approximations: Precise cosmological bounds on Axion-Like Particles
- How to embed any likelihood into SBI: Application to Planck + Stage IV galaxy surveys and Dynamical Dark Energy
- Constraining Quintessence Models with ISW-tSZ Cross-Correlations: A Comparative Analysis of Thawing, Tracker, and Scaling-Freezing Dynamics
- Background dynamics and observational constraints of flat and non-flat CDM models from and DESI DR2 BAO measurements
- Observational and Thermodynamic aspects of one-dimensional Dark Energy EoS parametrization models
- Revisiting observational constraints on coupled exponential quintessence with energy and momentum transfers: degeneracy with massive neutrinos
- Beyond the Cosmological Constant: Breaking the Geometric Degeneracy of cosmology via Redshift-Space Distortions
- Constraining Spatial Curvature with Priors from Swampland Conjectures
- Preliminary cosmological results using extreme accretors Quasar formalism
- Constraints on the gravitational potential from DESI DR2 BAO and its implications for the local void scenario
- Resolving the Hubble Tension in the Early Dark Energy Framework with JWST and DESI Data
- Unifying the Dark Sector with the New Generalized Chaplygin Gas: Observational Constraints
- Improving exoplanet mass characterisation with Bayesian model selection using the Learned Harmonic Mean Estimator
- Testing the Anton-Schmidt dark energy model with the DESI DR2 measurements
- No preference for generalized emergent dark energy from current cosmological data
- Constraints on the Modified Emergent Dark Energy Model Using DESI DR2 BAO
- A Bayesian estimator for peculiar velocity correction in cosmological inference from supernovae data
- Cosmological Constraints on the DGP Model in light of DESI DR2 2025 Data
- Determination of neutron star radius from pulse profile modeling using profile likelihood
- Redshift Evolution of the HII Galaxy - Relation: Gaussian Process Analysis and Cosmological Implications