GetDist: a Python package for analysing Monte Carlo samples
Pith reviewed 2026-05-14 23:54 UTC · model grok-4.3
The pith
GetDist provides automated kernel density estimation for weighted and correlated Monte Carlo samples with boundary corrections.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The paper's central claim is that GetDist's baseline method of applying a linear boundary kernel then multiplicative bias correction, paired with automatic bandwidth selection following Botev et al. based on effective sample size, yields accurate marginalized densities for typical distributions and boundary conditions in cosmological and physical parameter inference.
What carries the argument
Linear boundary kernel with multiplicative bias correction, followed by an automatically-determined elliptical Gaussian kernel for two-dimensional cases, selected via effective sample size scaling.
If this is right
- Produces publication-quality plots of one- and two-dimensional marginalized densities using a named-parameter interface.
- Calculates standard convergence diagnostics for Monte Carlo chains.
- Generates tables of parameter limits and formatted LaTeX output directly from samples.
- Supports interactive exploration through a built-in graphical user interface.
- Handles both weighted and correlated samples without manual intervention.
Where Pith is reading between the lines
- The automatic handling could reduce systematic errors when visualizing posteriors near parameter boundaries in high-dimensional spaces.
- Similar boundary-corrected KDE methods might be tested on importance-sampled or nested-sampling outputs in other statistical domains.
- The effective-sample-size scaling for bandwidth choice offers a template for extending the package to streaming or online sample analysis.
- Users outside astrophysics could apply the same interface to any set of weighted points for density estimation tasks.
Load-bearing premise
The automatic bandwidth selection and linear boundary kernel produce accurate densities for the typical distributions and boundary conditions encountered in cosmological and physical parameter inference without requiring user tuning.
What would settle it
Direct numerical comparison of GetDist output densities against known analytic posteriors or very high-resolution histograms on test sample sets that include known weights, correlations, and hard boundaries, checking whether the recovered probability mass matches the expected values to within a few percent.
read the original 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.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The manuscript describes GetDist, a publicly available Python package for post-processing Monte Carlo samples (MCMC, nested sampling, importance sampling) from Bayesian inference. Its core functionality is kernel density estimation (KDE) of one- and two-dimensional marginalized posteriors, using a linear boundary kernel followed by multiplicative bias correction, automatic bandwidth selection following Botev et al. with effective-sample-size adjustments for correlations and weights, and an elliptical Gaussian kernel for 2D correlated distributions. The package also supplies publication-quality plotting, convergence diagnostics, limit tables, and LaTeX output.
Significance. If the implementation faithfully realizes the cited KDE methods, GetDist supplies a standardized, low-tuning tool that directly addresses recurring practical difficulties in cosmological and physical parameter estimation (correlated/weighted samples, hard priors). Public code availability supplies the natural verification route and supports reproducibility; the simple named-parameter interface and GUI lower the barrier to producing reliable figures and diagnostics.
major comments (2)
- [§3] §3 (KDE implementation): The description states that the 2D kernel is an automatically determined elliptical Gaussian for correlated distributions, but does not specify how the correlation matrix is estimated from the weighted samples or how the effective sample size enters the 2D bandwidth scaling; an explicit equation or pseudocode step would confirm consistency with the 1D case.
- [§2.2] §2.2 (boundary correction): The linear boundary kernel plus multiplicative bias correction is presented as the baseline; however, the text does not report quantitative tests (e.g., integrated squared error on truncated Gaussians or Beta distributions) that would demonstrate the correction remains accurate near the hard priors typical in cosmological posteriors.
minor comments (3)
- [Abstract, §1] The abstract and §1 refer to “effective number of samples” without a forward reference to the exact definition (Eq. (X) or section) used in the bandwidth formula.
- [Figures] Figure captions should state the precise sample size, chain length, and any thinning or weighting applied in the displayed examples.
- [References] The reference list should include the full bibliographic entry for Botev et al. (the bandwidth method) and any other external KDE implementations used for comparison.
Simulated Author's Rebuttal
We thank the referee for the positive assessment and constructive comments on the GetDist manuscript. We address each major comment below.
read point-by-point responses
-
Referee: [§3] §3 (KDE implementation): The description states that the 2D kernel is an automatically determined elliptical Gaussian for correlated distributions, but does not specify how the correlation matrix is estimated from the weighted samples or how the effective sample size enters the 2D bandwidth scaling; an explicit equation or pseudocode step would confirm consistency with the 1D case.
Authors: We agree that additional implementation details would improve clarity. The correlation matrix is obtained from the weighted sample covariance, and the effective sample size (adjusted for both weights and correlations) scales the 2D bandwidth via the same Botev et al. procedure used in 1D. In the revised manuscript we will insert an explicit equation for the 2D bandwidth together with a short pseudocode outline of the steps, confirming consistency with the 1D case. revision: yes
-
Referee: [§2.2] §2.2 (boundary correction): The linear boundary kernel plus multiplicative bias correction is presented as the baseline; however, the text does not report quantitative tests (e.g., integrated squared error on truncated Gaussians or Beta distributions) that would demonstrate the correction remains accurate near the hard priors typical in cosmological posteriors.
Authors: The manuscript presents the boundary-correction method as implemented, following the cited literature. Quantitative validation tests were not included in the original text. We will add a concise paragraph (or short appendix) reporting integrated squared error results on truncated Gaussian and Beta distributions to demonstrate performance near hard boundaries. revision: yes
Circularity Check
No significant circularity
full rationale
The paper presents GetDist as an implementation of established KDE techniques (linear boundary kernel with multiplicative bias correction, bandwidth selection following Botev et al., and explicit definition of effective sample size to adjust for MCMC correlations and weights). No load-bearing derivation reduces by construction to fitted inputs or self-citations; the central claims concern practical realization of published methods for typical posteriors, with verification supplied by the public code rather than internal equations that equate to their own inputs.
Axiom & Free-Parameter Ledger
axioms (2)
- domain assumption Kernel density estimation with linear boundary kernel and multiplicative bias correction produces unbiased estimates near hard priors
- domain assumption Botev et al. bandwidth selection scales correctly with effective number of samples after accounting for MCMC correlations and weights
Forward citations
Cited by 60 Pith papers
-
Measuring neutrino mass and asymmetry through galaxy pairwise peculiar velocity
Galaxy pairwise peculiar velocities from Cosmicflows-4 yield M_ν = 0.24^{+0.34}_{-0.18} eV and η² = 2.14^{+0.30}_{-0.32} (7σ non-zero asymmetry) in the CMB framework, consistent with prior Planck results.
-
Measurement of the galaxy-velocity power spectrum of DESI tracers with the kinematic Sunyaev-Zeldovich effect using DESI DR2 and ACT DR6
DESI DR2 and ACT DR6 data yield 17σ LRG-velocity, 8.3σ ELG-velocity, and 6.8σ QSO-velocity detections plus a 3.1σ velocity-velocity signal, producing f_NL^loc = 15.9_{-34.4}^{+34.6} from the velocity field.
-
Cosmological analysis of the DESI DR1 Lyman alpha 1D power spectrum
DESI DR1 Lyman-alpha data yields Δ²★=0.379±0.032 and n★=-2.309±0.019 at k★=0.009 km⁻¹s and z=3, sharpening N_eff, α_s, and β_s constraints by factors of 1.18-1.90 when combined with other probes.
-
DESI DR2 Results II: Measurements of Baryon Acoustic Oscillations and Cosmological Constraints
DESI DR2 BAO data exhibits 2.3 sigma tension with CMB in Lambda-CDM but prefers evolving dark energy (w0 > -1, wa < 0) at 3.1 sigma with CMB and 2.8-4.2 sigma when including supernovae.
-
DESI 2024 VI: Cosmological Constraints from the Measurements of Baryon Acoustic Oscillations
First-year DESI BAO data are consistent with flat LambdaCDM and, when combined with CMB, show a 2.5-3.9 sigma preference for evolving dark energy (w0 > -1, wa < 0) that strengthens with certain supernova datasets.
-
Cobaya: Code for Bayesian Analysis of hierarchical physical models
Cobaya is a modular Bayesian analysis code that exploits model interdependencies via automatic caching and a novel parameter-blocking algorithm to minimize sampling cost.
-
The Amplitude-Growth Degeneracy and Implied $A_s$ Diagnostic for Background-Inert Modified Gravity
Any background-inert λ in coincident f(Q) gravity degenerates with σ80 via an As-D0(λ) link, inflating σ80 to unphysical levels and raising As by 20-30% in tension with Planck unless fixed by As priors.
-
CMB Limits on the Absorption of Light Vector and Axial-Vector Dark Matter
Planck CMB data set upper limits on vector and axial-vector dark matter-electron couplings for masses 100 eV to 100 keV via energy injection from inelastic scattering and hydrogen absorption.
-
Saturation Mechanisms in the Interacting Dark Sector
Nonlinear dark-sector interaction models with a half-saturation sparseness scale are observationally preferred over their linear counterparts at >95% confidence for two of three cases.
-
Double the axions, half the tension: multi-field early dark energy eases the Hubble tension
Two-field axion-like early dark energy reduces Hubble tension to 1.5 sigma residual and improves high-ell CMB fits over single-field models.
-
Non-minimally coupled quintessence with sign-switching interaction
A new quintessence model with non-minimal coupling produces an effective sign-switching interaction that fits current data better than LambdaCDM or w0waCDM and accounts for late-time dark energy weakening without phan...
-
Model-independent test of the cosmic distance duality relation with recent observational data
Two model-independent methods applied to latest SN and BAO data find the cosmic distance duality relation consistent with observations within 1 sigma and no evidence of violation.
-
Constraining Neutrino Mass with the Void Weak Lensing Effect
Simulations of void-shear cross-correlation demonstrate that void lensing can constrain total neutrino mass to σ(M_ν)=0.096 eV without shape noise and 0.340 eV with Stage-III-like noise.
-
Evidence for deviation in gravitational light deflection from general relativity at cosmological scales with KiDS-Legacy and CMB lensing
KiDS-Legacy weak lensing plus CMB data yields a 3 sigma deviation in light deflection from GR in a Lambda CDM background, with the signal driven by large-scale CMB lensing amplitudes.
-
Strong Lensing Model and Dust Extinction Maps of the Host Galaxy of Type Ia Supernova H0pe
Extended-image strong lensing model of cluster G165 reduces mass-parameter uncertainties by over an order of magnitude and maps dust extinction in the host of SN H0pe at z=1.78, finding A_V ≈ 0.9 mag near the explosion site.
-
Generalized Distributions of Host Dispersion Measures in the Fast Radio Burst Cosmology
Generalizing the host galaxy dispersion measure distribution in FRB cosmology with 125 events produces Hubble constant estimates consistent with Planck 2018 and SH0ES while strongly favoring these models over narrow-p...
-
SPT-3G D1: CMB temperature and polarization power spectra and cosmology from 2019 and 2020 observations of the SPT-3G Main field
SPT-3G delivers the most precise CMB EE and TE spectra at high multipoles to date, giving LCDM parameters with H0 = 66.66 ± 0.60 km/s/Mpc from ground-based data alone and reaching Planck-level constraints when combine...
-
DESI 2024 VII: Cosmological Constraints from the Full-Shape Modeling of Clustering Measurements
DESI DR1 full-shape clustering yields Ω_m = 0.2962 ± 0.0095 and σ_8 = 0.842 ± 0.034 in flat ΛCDM, tightening to H_0 = 68.40 ± 0.27 km/s/Mpc with CMB and DESY3, while favoring w_0 > -1, w_a < 0 and limiting neutrino ma...
-
DESI 2024 IV: Baryon Acoustic Oscillations from the Lyman Alpha Forest
DESI measures BAO from the Lyα forest at z_eff=2.33, reporting H(z) = (239.2 ± 4.8) (147.09 Mpc/rd) km/s/Mpc and DM(z) = (5.84 ± 0.14) (rd/147.09 Mpc) Gpc.
-
The Atacama Cosmology Telescope: DR6 Gravitational Lensing Map and Cosmological Parameters
ACT DR6 CMB lensing map gives σ8 = 0.819 ± 0.015 and H0 = 68.3 ± 1.1 km/s/Mpc, consistent with Planck ΛCDM but 1.7-2.1σ higher in S8 than KiDS, DES, and HSC galaxy surveys.
-
The Atacama Cosmology Telescope: A Measurement of the DR6 CMB Lensing Power Spectrum and its Implications for Structure Growth
ACT DR6 yields a 2.3% precise CMB lensing power spectrum with A_lens = 1.013 ± 0.023 relative to Planck 2018 Lambda CDM, giving S8 = 0.818 ± 0.022 and no evidence for suppressed structure growth.
-
Negative neutrino mass or negative dark energy?
A sign-switching dark energy model (Λ_s CDM) recovers positive effective neutrino masses (0.055 ± 0.050 eV) consistent with oscillation data, unlike ΛCDM which prefers negative values (-0.075 eV), for DESI DR2 + CMB +...
-
Pulse profile modelling of the 2024 outburst of the accreting millisecond pulsar SRGA J144459.2-604207
Joint NICER+IXPE pulse-profile modeling of SRGA J144459.2-604207 favors large neutron-star mass and radius with two independent hotspots but shows strong sensitivity to joint-analysis methodology.
-
(An)Isotropy in Pantheon+ and Type Ia supernova samples: intrinsic limits of directional tests
Directional tests for H0 anisotropy on Pantheon+ and CSP samples cannot robustly determine anisotropy directions because of intrinsic limits in the SN Ia lightcurve method.
-
Cosmological constraints on TeV-scale dark matter subcomponents decaying between recombination and reionisation
Future 21-cm observations may constrain TeV-scale decaying dark matter subcomponents more tightly than CMB data for lifetimes above 10^15 s, with strongest sensitivity for neutrino decay channels due to differences in...
-
Beyond the Cosmological Constant: Breaking the Geometric Degeneracy of $ f(Q) $ cosmology via Redshift-Space Distortions
Hybrid f(Q) cosmology with a 1/Q term is forced into background degeneracy with LambdaCDM but breaks it in the growth sector, yielding moderate preference over LambdaCDM when RSD data are included while leaving the ba...
-
Disentangling cosmic distance tensions with early and late dark energy
Early dark energy resolves CMB-BAO tension and, combined with thawing quintessence, reduces overall cosmological tensions without phantom crossing.
-
Is the $w_0w_a$CDM cosmological parameterization evidence for dark energy dynamics partially caused by the excess smoothing of Planck PR4 CMB anisotropy data?
Planck PR4 CMB data mildly favors dynamical dark energy, but this preference weakens when accounting for possible excess smoothing, indicating the signal may partly arise from data processing issues.
-
Exploring the interplay of late-time dynamical dark energy and new physics before recombination
Model-independent reconstruction finds 96.7-98.5% probability of phantom crossing if recombination is standard, but early new physics to ease Hubble tension weakens this preference while requiring unrealistically high...
-
Measuring neutrino mass in light of ACT DR6 and DESI DR2
New ACT and DESI data yield model-dependent upper limits on sum of neutrino masses, with holographic dark energy giving the tightest bounds and a consistent preference for degenerate hierarchy.
-
Revisiting the Matter Creation Process: Observational Constraints on Gravitationally Induced Dark Energy and the Hubble Tension
Gravitationally induced particle creation models fit cosmological data as well as ΛCDM and reduce the Hubble tension from 4.3σ to 2.4–3σ.
-
Thawing Quintessence: Priors, evidence, and likely trajectories
Bayesian evidence from DESI DR2 BAO, Planck+ACT CMB, and multiple supernova samples favors thawing quintessence over a cosmological constant.
-
Illuminating the Dark Sector: Understanding Modified Gravity Signatures with Cross-Correlations of Gravitational Waves and Large-Scale Structure
Forecasts indicate that LSS-GW cross-correlations with Stage-IV surveys and Einstein Telescope tighten constraints on modified gravity parameters beyond those from LSS observations alone.
-
Probing the sensitivity of dark energy dynamics to equation of state parametrization flexibility
Flexible dark energy equation of state parametrizations mildly favor dynamical phantom-like behavior at z~1-2, but the preference is only ~2 sigma and sensitive to the model form and extrapolation.
-
Cosmological and lunar laser ranging constraints on evolving dark energy in a nonminimally coupled curvature-matter gravity model
Nonminimal curvature-matter coupling produces dynamical dark energy consistent with DESI observations and lunar laser ranging equivalence principle constraints.
-
Reanalyzing DESI DR1: 2. Constraints on Dark Energy, Spatial Curvature, and Neutrino Masses
Reanalysis of DESI full-shape clustering data tightens constraints on neutrino mass, spatial curvature, and dark energy equation-of-state parameters relative to BAO-only results.
-
Symbolic Emulators for Cosmology: Accelerating Cosmological Analyses Without Sacrificing Precision
Symbolic emulators approximate key Lambda CDM functions to 0.001-0.05% accuracy across relevant redshifts and Omega_m values, enabling faster 3x2pt inference with consistent results.
-
Euclid preparation. XCVI. Cosmology Likelihood for Observables in Euclid (CLOE). 3. Inference and Forecasts
CLOE pipeline produces forecasts showing Euclid can reach FoM >400 for dark energy w0 and wa by combining primary probes on synthetic data.
-
Resolving the Planck-DESI tension by nonminimally coupled quintessence
Non-minimally coupled quintessence resolves the Planck-DESI Ω_m tension at >3σ while the effective equation of state stays above w=-1 and other tensions on neutrino mass and growth rate are relieved.
-
SPT-3G D1: Axion Early Dark Energy with CMB experiments and DESI
CMB-only data give f_EDE < 0.07 at 95% CL with no strong AEDE signal, while CMB+DESI yields f_EDE = 0.055^{+0.024}_{-0.047} at 68% CL and lowers Hubble tension to 2.6 sigma.
-
Constraints on Neutrino Physics from DESI DR2 BAO and DR1 Full Shape
DESI DR2 BAO and full-shape data plus CMB yield ∑m_ν < 0.0642 eV (95% CL) under ΛCDM, in 3σ tension with oscillation lower limits, relaxed to <0.163 eV in w0waCDM.
-
CMB lensing from Planck PR4 maps
Planck PR4 maps with optimal filtering yield CMB lensing amplitude 1.004 ± 0.024 and σ8 Ωm^0.25 = 0.599 ± 0.016, the tightest lensing constraint yet.
-
Probing late-time deviations from $\Lambda$CDM with a quadratic dark energy expansion
The QDEE model fits combined cosmological datasets better than Lambda CDM, shifts the Hubble constant higher, and shows strong Bayesian evidence in its favor.
-
Primordial power spectrum reconstructions from BOSS + eBOSS
Non-parametric knot-based reconstruction of the primordial power spectrum P_R(k) from BOSS+eBOSS data up to k=0.3 h/Mpc favors a quasi-scale-invariant power law and constrains n_s = 0.976 ± 0.021 with no evidence for ...
-
Single field matter bounce with dark energy era: comparison with CMB Planck 2018 data and best fit parameters
A matter bounce model driven by a scalar field with exponential potential fits Planck 2018 CMB data comparably to inflationary ΛCDM, with the potential slope λ directly setting the scalar spectral index ns.
-
Probing cosmic anisotropy with galaxy clusters and supernovae
Analysis of galaxy cluster and supernova data reveals a ~2σ directional variation in the Hubble constant, robust across calibration methods and aligned with the CMB dipole.
-
Mapping the redshift drift at various redshifts through cosmography
Cosmographic Taylor and Padé models fitted to Pantheon+SH0ES+GRB+DESI BAO data yield redshift drift predictions compatible with ΛCDM and ω0ω1CDM at 1-2σ, with mock drift data tightening q0 and j0 bounds.
-
Cosmological constraints on the big bang quantum cosmology model
The JCDM model yields H0 of 66.95 plus or minus 0.51 km/s/Mpc and Omega_m of 0.3419 plus or minus 0.0065 in a flat universe, rising to H0 of 69.13 plus or minus 0.56 with slight positive curvature, fitting late-time d...
-
Redshift evolution of the Hubble constant: Constraints and new insights from an interacting dark energy model
Modified IDE model with interaction parameter alpha ~0.01 from late-universe data shows H0 decreasing with redshift, tightening to 10^-5 when CMB priors are added.
-
How Complex is Dark Energy? A Bayesian Analysis of CPL Extensions with Recent DESI BAO Measurements
Bayesian evidence from DESI BAO plus CMB and SN data favors the standard CPL evolving dark energy model over both simpler constant-w and more complex higher-order extensions.
-
Revisiting the Hubble tension problem in the framework of holographic dark energy
HDE models with future event horizon IR cutoff partially ease the Hubble tension while Hubble-scale cutoffs do not, consistent across six models and multiple BAO/SN/CMB combinations.
-
Cosmic Birefringence from the Atacama Cosmology Telescope Data Release 6
Bayesian analysis of ACT DR6 CMB polarization data measures cosmic birefringence angle β = 0.215° ± 0.074° excluding zero at 2.9σ, consistent with prior WMAP and Planck results but limited by unexplained systematics.
-
Interacting $k$-essence field with non-pressureless Dark Matter: Cosmological Dynamics and Observational Constraints
Interacting k-essence dark energy and non-pressureless dark matter models with two interaction forms are shown to reproduce major cosmological epochs and fit observations comparably to LambdaCDM while admitting late-t...
-
Interacting bosonic dark energy and fermionic dark matter in Einstein scalar Gauss-Bonnet gravity
Models of interacting bosonic dark energy and fermionic dark matter in Einstein-scalar-Gauss-Bonnet gravity with exponential and power-law potentials are dynamically analyzed and constrained by observational data, sho...
-
New Insights into Dark Energy from DESI DR2 with CMB and SNIa
Systematic dataset swaps show DESY5 low-redshift SNIa, Planck CMB plus lensing, and DESI-DR2 BAO as the dominant sources of w0waCDM tension with ΛCDM, while other combinations remain consistent.
-
Interacting Scalar Fields as Dark Energy and Dark Matter in Einstein scalar Gauss Bonnet Gravity
Interacting scalar fields coupled to Gauss-Bonnet gravity yield viable dark energy and dark matter models that match Pantheon+ and DES supernova data while preferring over LambdaCDM at high redshifts with Roman mocks.
-
Revisiting $\Lambda$CDM extensions in light of re-analyzed CMB data
Re-analysis with PR4 Planck likelihoods reduces lensing anomaly significance and curvature preference in Lambda CDM extensions while indicating a preference for evolving dark energy consistent with DESI.
-
Cosmic Strings as Dynamical Dark Energy: Novel Constraints
Cosmic string networks are constrained to less than ~1% of the energy density using CMB+BAO+SN data, with some models preferring mildly negative densities but no Bayesian evidence favoring them over LambdaCDM.
-
MUltiplexed Survey Telescope (MUST) Science White Paper I: Overview of Large-Scale Structure Cosmology in the Era of Stage-V Spectroscopic Surveys
MUST is a planned 6.5m Stage-V spectroscopic survey telescope targeting 100M+ galaxies and quasars to z~5.5 for large-scale structure cosmology studies.
-
Updated Cosmological Constraints in Extended Parameter Space with Planck PR4, DESI Baryon Acoustic Oscillations, and Supernovae: Dynamical Dark Energy, Neutrino Masses, Lensing Anomaly, and the Hubble Tension
Extended 12-parameter fits to Planck PR4, DESI BAO, and Pantheon+/DESY5 supernovae find dynamical dark energy not yet robust, an upper bound on neutrino mass sum of 0.3 eV, reduced lensing anomaly, and persistent Hubb...
Reference graph
Works this paper leans on
-
[1]
Initial Parameter Range Estimation: For each parameter, an initial working range (range_min, range_max) is de- termined from the weighted samples. This range excludes extreme outliers by spanning from the range_confidence quantile to the quantile of total weight 1 − range_confidence. By default range_confidence = 0.001, so the range includes 99.8% of the ...
-
[2]
Incorporate Prior Boundaries: Specified hard prior boundaries (limmin, limmax, often from sampler metadata) are considered: • If a prior boundary is close to the initial sample range (from step 1), the correspondingrange_min or range_max is adjusted to this prior boundary, and a flag (has_limits_bot or has_limits_top) is set to indicate an active prior at...
-
[3]
1D Kernel Density Estimation (KDE):A 1D kernel density estimate (KDE) of the marginalized posterior for the param- eter is computed over the range_min to range_max established in steps 1 and 2. This KDE accounts for boundary effects from any active priors and is normalized so its peak value is one
-
[4]
Define “Significant Density” Threshold: For each desired confidence level, calculate a threshold density ratio max_frac_twotail. By default this taken to be the ratio of the probability density at the tails of a Gaussian distribution (at the points defining the specified confidence level, e.g., approximately±1σ for 68%) to its peak density. This threshold...
-
[5]
Assess Density at Range Edges: The KDE density is evaluated at range_min and range_max. Flags (marge_limits_bot, marge_limits_top) are set to indicate if the distribution appears significantly trun- cated by a boundary prior; e.g. marge_limits_bot is true if there is a hard prior at that end ( has_limits_bot is true) and the KDE density at that end is gre...
-
[6]
Handle Fully Prior-Dominated Cases: If both marge_limits_bot and marge_limits_top are true (i.e., the distribution has high density up against active hard priors at both ends, like a uniform posterior filling its prior range), no interval limits are reported for this confidence level, as the parameter is effectively constrained by these priors rather than...
-
[7]
Compute credible interval from KDE: If step 6 does not apply, the algorithm computes a highest density interval containing the required fraction of the total probability using the following procedure: • The KDE grid points are sorted in descending order of density values • The cumulative sum of these sorted density values (each weighted by the grid spacin...
-
[8]
This limit is derived directly from the sorted weighted samples to ensure robustness
Report One-Tailed Limits: If, after step 7, one of marge_limits_bot or marge_limits_top is true (indicating the posterior has significant density up against an active prior at one boundary) while the other is false (indicating the posterior falls off towards the other end of the range), a one-tailed limit is reported. This limit is derived directly from t...
-
[9]
Report Two-Tailed Limits: Otherwise, if both marge_limits_bot and marge_limits_top are false (meaning the posterior density is low at both ends of the established range relative to max_frac_twotail), a two-tailed interval is reported • Calculate an equal-tailed two-tail limit (tail_confid_bot, tail_confid_top) directly from the samples. • Calculate the KD...
-
[10]
Kernel estimator optimization for non-stationary sampling distributions (e.g., nested sampling results). The current im- plementation assumes stationarity in the sampling process, which may not hold for all sampling methods
-
[11]
Integration of general prior boundary effects into kernel optimization. The current approach to kernel smoothing scale selection does not explicitly account for prior boundaries except for the case where priors are aligned with the parameter axes, potentially leading to suboptimal bandwidth choices in more general cases
-
[12]
Handling of complex likelihood topologies, particularly for highly multimodal distributions with varying characteristic scales across different modes. While the current methods remain functional in these cases, the use of a global smooth- ing kernel may be far from optimal. Significant improvements could be achieved by implementing more sophisticated appr...
-
[13]
The current implementation optimizes kernel widths solely for density estimation
Optimization of kernel widths for specific computational tasks. The current implementation optimizes kernel widths solely for density estimation. For other applications, such as calculating tail confidence limits, different optimization criteria may be more appropriate. GetDist can easily be used with any numpy array of samples, but also has built-in supp...
work page 2007
-
[14]
Z. I. Botev, J. F. Grotowski, and D. P. Kroese, Kernel density estimation via diffusion, Ann. Statist.38, 2916 (2010), 1011.2602
work page internal anchor Pith review Pith/arXiv arXiv 2010
-
[15]
N. Metropolis, A. W. Rosenbluth, M. N. Rosenbluth, A. H. Teller, and E. Teller, Equation of state calculations by fast computing machines, J. Chem. Phys. 21, 1087 (1953)
work page 1953
-
[16]
W. Hastings, Monte carlo samping methods using markov chains and their applications, Biometrika 57, 97 (1970)
work page 1970
-
[17]
R. M. Neal, Probabilistic inference using Markov Chain Monte Carlo methods (1993), https://cosmologist.info/Neal93
work page 1993
-
[18]
R. P. Adams, I. Murray, and D. J. C. MacKay, Nonparametric bayesian density modeling with gaussian processes (2009), arXiv:0912.4896 [stat.CO]
work page internal anchor Pith review Pith/arXiv arXiv 2009
-
[19]
R. P. Adams, I. Murray, and D. J. MacKay, The Gaussian process density sampler, inAdvances in Neural Information Processing Systems 21, edited by D. Koller, D. Schuurmans, Y . Bengio, and L. Bottou (2009) pp. 9–16
work page 2009
-
[20]
Efficient Bayesian Inference for a Gaussian Process Density Model
C. Donner and M. Opper, Efficient bayesian inference for a gaussian process density model (2018), arXiv:1805.11494 [stat.ML]
work page internal anchor Pith review Pith/arXiv arXiv 2018
-
[21]
J. D. Hunter, Matplotlib: A 2D graphics environment, Computing in Science & Engineering 9, 90 (2007)
work page 2007
-
[22]
Planck 2018 results. VI. Cosmological parameters
N. Aghanim et al. (Planck), Planck 2018 results. VI. Cosmological parameters, A&A 641, A6 (2020), arXiv:1807.06209 [astro-ph.CO]
work page internal anchor Pith review Pith/arXiv arXiv 2018
-
[23]
Skilling, Nested Sampling, in American Institute of Physics Conference Series , edited by R
J. Skilling, Nested Sampling, in American Institute of Physics Conference Series , edited by R. Fischer, R. Preuss, and U. V . Toussaint (2004) pp. 395–405
work page 2004
-
[24]
W. J. Handley, M. P. Hobson, and A. N. Lasenby, POLYCHORD: next-generation nested sampling, MNRAS 453, 4384 (2015), arXiv:1506.00171 [astro-ph.IM]
work page internal anchor Pith review Pith/arXiv arXiv 2015
-
[25]
F. Feroz and M. P. Hobson, Multimodal nested sampling: an efficient and robust alternative to MCMC methods for astronomical data analysis, Mon. Not. Roy. Astron. Soc. 384, 449 (2008), arXiv:0704.3704 [astro-ph]
work page internal anchor Pith review Pith/arXiv arXiv 2008
-
[26]
Cosmological parameters from CMB and other data: a Monte-Carlo approach
A. Lewis and S. Bridle, Cosmological parameters from CMB and other data: A Monte Carlo approach, Phys. Rev. D 66, 103511 (2002), arXiv:astro-ph/0205436 [astro-ph]
work page internal anchor Pith review Pith/arXiv arXiv 2002
-
[27]
R. M. Neal, Taking bigger metropolis steps by dragging fast variables (2005), arXiv:math/0502099 [math.ST]
work page internal anchor Pith review Pith/arXiv arXiv 2005
-
[28]
Efficient sampling of fast and slow cosmological parameters
A. Lewis, Efficient sampling of fast and slow cosmological parameters, Phys. Rev. D87, 103529 (2013), arXiv:1304.4473 [astro-ph.CO]
work page internal anchor Pith review Pith/arXiv arXiv 2013
-
[29]
M. Wand and M. Jones, Kernel Smoothing (Chapman and Hall, 1994) https://cosmologist.info/ISBN/0412552701
-
[30]
S. J. Sheather, Density estimation, Statist. Sci. 19, 588 (2004). 17
work page 2004
-
[31]
B. Hansen, Lecture notes on nonparametrics (2009), https://www.ssc.wisc.edu/ ∼bhansen/718/NonParametrics1.pdf
work page 2009
-
[32]
A. Z. Zambom and R. Dias, A Review of Kernel Density Estimation with Applications to Econometrics (2012), arXiv:1212.2812 [stat.ME]
work page internal anchor Pith review Pith/arXiv arXiv 2012
-
[33]
A. Poluektov, Kernel density estimation of a multidimensional efficiency profile, Journal of Instrumentation 10 (02), P02011–P02011
-
[34]
Jones, Simple boundary correction for kernel density estimation, Stat
M. Jones, Simple boundary correction for kernel density estimation, Stat. & Comput. 3, 135 (1993), http://link.springer.com/content/pdf/ 10.1007/BF00147776.pdf
-
[35]
M. Jones and D. F. Signorini, A comparison of higher-order bias kernel density estimators, J. Amer. Stat. Assoc. 92, 1063 (1997), http://www.jstor.org/stable/2965571
-
[36]
M. Jones and P. J. Foster, A simple nonnegative boundary correction method for kernel density estimation, Stat. Sinica 6, 1005 (1996), http://www3.stat.sinica.edu.tw/statistica/oldpdf/A6n414.pdf
work page 1996
- [37]
-
[38]
N. W. Hengartnera and E. Matzner-Lober, Asymptotic unbiased density estimators, ESAIM: Prob. & Stat.13, 1 (2009), http://dx.doi.org/ 10.1051/ps:2007055
-
[39]
E. Choi and P. Hall, Miscellanea. data sharpening as a prelude to density estimation, Biometrika 86, 941 (1999)
work page 1999
-
[40]
P. Hall and M. C. Minnotte, High order data sharpening for density estimation, J. Roy. Stat. Soc. Series B (Stat. Meth.) 64, 141 (2002)
work page 2002
- [41]
-
[42]
M. Sk ¨old and G. Roberts, Density estimation for the Metropolis-Hastings algorithm., Scand. J. Stat.30, 699 (2003), http://www.jstor.org/ stable/4616797
-
[43]
P. Janssen, J. S. Marron, N. Veraverbeke, and W. Sarle, Scale measures for bandwidth selection, J. Nonparam. Stat. 5, 359 (1995), http://dx.doi.org/10.1080/10485259508832654
- [44]
-
[45]
O. M. Eidous, M. A. A. S. Marie, and M. H. Ebrahem, A comparative study for bandwidth selection in kernel density estimation, J. Mod. Appl. Stat. Meth. 9, 26 (2010), https://digitalcommons.wayne.edu/jmasm/vol9/iss1/26/
work page 2010
-
[46]
N.-B. Heidenreich, A. Schindler, and S. Sperlich, Bandwidth selection for kernel density estimation: a review of fully automatic selectors, AStA 97, 403 (2013), http://doi.org/10.1007/s10182-013-0216-y
-
[47]
M. D. Marzio and C. C. Taylor, Using small bias nonparametric density estimators for confidence interval estimation, J. Nonparam. Stat. 21, 229 (2009), http://eprints.whiterose.ac.uk/42950/
work page 2009
- [48]
-
[49]
M. Wand and M. Jones, Multivariate plug-in bandwidth selection, Comput. Stat. 9, 97 (1994)
work page 1994
-
[50]
T. Duong and M. Hazelton, Plug-in bandwidth matrices for bivariate kernel density estimation, J. Nonparam. Stat. 15, 17 (2003)
work page 2003
-
[51]
Planck 2013 results. XVI. Cosmological parameters
P. Ade et al. (Planck Collaboration), Planck 2013 results. XVI. Cosmological parameters, A&A 10.1051/0004-6361/201321591 (2014), arXiv:1303.5076 [astro-ph.CO]
work page internal anchor Pith review Pith/arXiv arXiv doi:10.1051/0004-6361/201321591 2013
-
[52]
A. M ´esz´aros, J. F. Schumann, J. Alonso-Mora, A. Zgonnikov, and J. Kober, Robust multi-modal density estimation (2024), arXiv:2401.10566 [cs.LG]
-
[53]
Cobaya: Code for Bayesian Analysis of hierarchical physical models
J. Torrado and A. Lewis, Cobaya: Code for Bayesian Analysis of hierarchical physical models, JCAP 05, 057 (2021), arXiv:2005.05290 [astro-ph.IM]
work page internal anchor Pith review Pith/arXiv arXiv 2021
- [54]
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.