betaFeedback

WorksPhysics and Astronomy

Dark Energy Survey Year 6 Results: fast and interpretable posterior predictive checks for correlated cosmic probes

Abstract

We present a fast and numerically stable framework for conducting posterior predictive distribution (PPD) tests of internal consistency in correlated cosmological probes. Our method, developed as a validation check for the Dark Energy Survey (DES) Year 6 combined analysis of weak lensing and galaxy clustering, employs a Gaussian-mixture model to efficiently approximate the high-dimensional PPD and introduces a scalar consistency metric, ΔPPDΔ_{\rm PPD}, defined as the fraction of the PPD at lower probability density than the observed data. This method avoids challenges related to calibration and numerical stability that impacted PPD methods previously used in DES Year 3. After demonstrating performance with a toy model, we confirm that when applied to DES Year 3 measurements, ΔPPDΔ_{\rm PPD} identifies the same inter-probe tensions as published, calibrated PPD results while requiring only minutes per test. We further validate the method on several noise realizations of simulated DES Y6 analyses, demonstrating that ΔPPDΔ_{\rm PPD} responds coherently to injected inconsistency, while highlighting two effects which can complicate the interpretation of PPD tests for increasingly complex models. First, internal tensions that can be absorbed as shifts in nuisance parameters become more difficult to detect. Second, poorly constrained directions in parameter space can induce projection effects in PPDs for disjoint sets of observables, producing reports of tension even for consistent data. We conclude that ΔPPDΔ_{\rm PPD} provides a practical PPD-based diagnostic for multiprobe unblinding, to be interpreted with care alongside other validation checks. This framework has already played an important role in DES analyses and is well suited for application to forthcoming Stage-IV surveys such as LSST, Euclid, and Roman, where fast, robust internal consistency tests will be essential.

(DES Collaboration) 27 Ruhr University Bochum, Faculty of Physics and Astronomy, Astronomical Institute, German Centre for Cosmological Lensing, 44780 Bochum, Germany

28 Departament de Física, EEBE, Universitat Politècnica de Catalunya, c/ Eduard Maristany 16, E-08019 Barcelona, Spain

29 University of Copenhagen, Dark Cosmology Centre, Juliane Maries Vej 30, 2100 Copenhagen O, Denmark

30 Institute of Astronomy, University of Cambridge, Madingley Road, Cambridge CB3 0HA, UK

31 Instituto de Física Teórica UAM/CSIC, Universidad Autónoma de Madrid, 28049 Madrid, Spain

32 Laboratoire de physique des 2 infinis Irène Joliot-Curie, CNRS Université Paris-Saclay, Bât. 100, F-91405 Orsay Cedex, France

33 McWilliams Center for Cosmology and Astrophysics, Department of Physics, Carnegie Mellon University, Pittsburgh, PA 15213, USA

34 ICTP South American Institute for Fundamental Research Instituto de Física Teórica, Universidade Estadual Paulista, São Paulo, Brazil

35 Department of Physics, Duke University Durham, NC 27708, USA

36 Institute for Astronomy, University of Edinburgh, Edinburgh EH9 3HJ, UK

37 INAF-Osservatorio Astronomico di Trieste, via G. B. Tiepolo 11, I-34143 Trieste, Italy

38 Institute of Cosmology and Gravitation, University of Portsmouth, Portsmouth, PO1 3FX, UK

39 Department of Physics & Astronomy, University College London, Gower Street, London, WC1E 6BT, UK

40 School of Mathematics and Physics, University of Queensland, Brisbane, QLD 4072, Australia

41 Oxford College of Emory University, Oxford, GA 30054, USA

42 Department of Physics, IIT Hyderabad, Kandi, Telangana 502285, India

43 Centre for Astrophysics & Supercomputing, Swinburne University of Technology, Victoria 3122, Australia

44 Center for Cosmology and Astro-Particle Physics, The Ohio State University, Columbus, OH 43210, USA

45 Department of Physics, The Ohio State University, Columbus, OH 43210, USA

46 Department of Physics, University of Michigan, Ann Arbor, MI 48109, USA

47 Australian Astronomical Optics, Macquarie University, North Ryde, NSW 2113, Australia

48 Lowell Observatory, 1400 Mars Hill Rd, Flagstaff, AZ 86001, USA

49 George P. and Cynthia Woods Mitchell Institute for Fundamental Physics and Astronomy, and Department of Physics and Astronomy, Texas A&M University, College Station, TX 77843, USA

50 Institució Catalana de Recerca i Estudis Avançats, E-08010 Barcelona, Spain

51 Kavli Institute for Particle Astrophysics & Cosmology, P. O. Box 2450, Stanford University, Stanford, CA 94305, USA

52 Physics Department, Lancaster University, Lancaster, LA1 4YB, UK

53 Computer Science and Mathematics Division, Oak Ridge National Laboratory, Oak Ridge, TN 37831

54 Central University of Kerala, Kasaragod, Kerala, India, 671325

55 Max Planck Institute for Extraterrestrial Physics, Giessenbachstrasse, 85748 Garching, Germany

56 Universitäts-Sternwarte, Fakultät für Physik, Ludwig-Maximilians Universität München, Scheinerstr. 1, 81679 München, Germany

Version October 5, 2026

Introduction

While the growing volume of cosmological data represents great promise for furthering our understanding of the Universe, it also necessitates advances in methodology to ensure analyses are accurate and robust. A crucial component of this effort is the development and characterization of internal consistency tests. This is because many studies, including recent joint analyses of galaxy clustering and weak lensing [21, 43, 56, 72], rely on the combined analysis of multiple correlated observables to separate signals of cosmological physics from astrophysical and measurement uncertainties. Internal consistency tests can include goodness-of-fit assessments, comparisons of parameter constraints derived from data subsets, and model comparison [14, 60, 45, 65, 49, 66, 52, 39, 63, 10, 71]. Tests that can be carried out without revealing cosmology results play a vital role in blind analysis methods [59] when used as pre-unblinding validation checks. In this paper we present a novel approach to conducting internal consistency tests based on posterior predictive distributions (PPD), developed as part of the Dark Energy Survey (DES, Dark Energy Survey Collaboration 2016) Year 6 (Y6) combined analysis of galaxy clustering and weak lensing [24]. Our focus is on the ”3 × 2pt” analysis, which analyzes three two-point correlation functions—cosmic shear, galaxy-galaxy lensing (GGL), and galaxy clustering—in a unified framework, making it a cornerstone of modern cosmological analyses.

The PPD is a Bayesian construction [34] for quantifying the consistency of observables conditioned on an assumed model. It is formally defined as the convolution of a posterior distribution in parameter space with a likelihood function, yielding a probability distribution in data space. Given posterior samples (e.g., from MCMC), the PPD can be readily sampled by drawing from the likelihood evaluated at each posterior sample, without needing to compute this convolution explicitly. Comparing new data to that expected distribution allows us to assess consistency between different measurements. In practice, PPD tests involve applying a summary function to compress the high-dimensional data-space distribution into consistency metrics which can be practically employed as part of analysis validation checks. The underlying rationale is that if the model and data are consistent, the summary of the observed data should lie within the bulk of the PPD summary distribution, and measurements

that are extreme relative to that distribution could indicate problems with the analysis. This is intuitively analogous to reduced-χ2\chi^2 goodness-of-fit tests, where a too-high or too-low minimum χ2\chi^2 indicates, respectively, a model’s inability to fit the data or underestimated error bars. PPD methods have an advantage over reduced χ2\chi^2 tests in that they do not rely on point-estimates of the best-fit parameters, which tend to be noisy and difficult to estimate in high-dimensional parameter spaces. This analogy is not incidental: although the predictive distribution is Bayesian, comparing the observed data to hypothetical replications is a sampling-theory calculation. The PPD thus provides a frequentist form of model criticism built on Bayesian estimation [12, 68].

PPD tests have previously been applied in the DES Year 3 clustering and lensing analyses (DES Y3, [4, 21, 35, 29]) and in a recent LSST modified-gravity forecast to quantify agreement with general relativity [50]. The Kilo-Degree Survey (KiDS) lensing analyses [71, 6] employ a related technique, the translated posterior distribution [45]. Beyond cosmology, PPD methods find applications in diverse quantitative fields, including ecology [13, 18], attesting to their generality as a model-checking framework.

Translating high dimensional PPDs into interpretable consistency metrics, and in particular calibrating them to obtain formal pp-values, remains an open problem in statistics. Here a pp-value refers to the probability, assuming a model is correct, that the observables (or a summary function thereof) will be at least as extreme as the measured data. Existing approaches in statistics often assume that independent and identically distributed data realizations are available [57, 58] (Li & Huggins 2022), and are therefore ill-suited for large-scale structure cosmological analyses where only a single data realization exists. In previous large-scale structure analyses, including the DES Y3 combined analysis of galaxy clustering and weak lensing, a commonly used summary function is χ2\chi^2 difference between model predictions and either the observed data or realizations of simulated observables drawn from the PPD. Compressing this into a consistency metric remains difficult, as this comparison requires analyzing many synthetic data realizations at each of many locations in parameter space, introducing challenges related to computational cost and numerical stability. This process additionally requires calibration via simulated analyses to obtain a pp-value, as uncalibrated PPD χ2\chi^2 metric can be severely biased towards reporting inconsistency [7, 27]. While this DES Y3 PPD methodology was effective enough to serve as a key component of the DES Y3 analysis validation, the associated computational challenges made the process labor-intensive and thus a bottleneck during unblinding.

We propose two innovations to address these challenges: a numerically stable approximation of the PPD using a Gaussian mixture model, and a consistency metric, denoted ΔPPD\Delta_{\mathrm{PPD}}, that leverages this approximation to efficiently quantify agreement between data and model in an interpretable way even without formal calibration. A key feature of both developments is their streamlined implementation, designed so that the amount of work needed to conduct PPD tests is comparable to other MCMC chain post-processing operations routinely performed in cosmology studies. After introducing this PPD methodology, we present three sets of tests used to characterize its performance. A toy model study serves as an initial test of the Gaussian mixture PPD estimate and ΔPPD\Delta_{\mathrm{PPD}} metric, and builds intuition for what this metric captures. Next, we apply it to DES Y3 galaxy-clustering and weak-lensing measurements, to assess the agreement between our new ΔPPD\Delta_{\mathrm{PPD}} metric and the calibrated pp-value previously employed in that analysis. Finally we study the behavior of our PPD consistency metric when applied to simulated DES Y6 galaxy-clustering and weak-lensing analyses, with and without injected inconsistencies.

While in general our updated PPD framework performs well—particularly regarding improved ease of use and numerical stability compared to previous methods—two findings from our simulated DES Y6 tests merit closer examination. These will be discussed in more detail below, but we highlight them here as important considerations when incorporating PPD tests into an analysis validation strategy. First, we note that the PPD consistency metric can be less sensitive to an injected inconsistency than one might naively expect. If the model is sufficiently flexible, data contamination may shift nuisance parameter posteriors rather than ΔPPD\Delta_{\mathrm{PPD}} itself. Second, for consistency tests between two different observables, PPD tests can be subject to projection effects when the test and conditioning observables are sensitive to different degenerate combinations of model parameters. Projection effects, studied in the context of their impact on marginalized parameter constraints in e.g. [69, 2, 41, 64, 42], can skew PPD metrics including ΔPPD\Delta_{\mathrm{PPD}} towards values indicating inconsistency even for consistent input data. This can be accounted for via calibration studies, or more simply — and as was done in practice for DES Y6 — by using simulated analyses to guide how PPD tests should be used during pre-unblinding checks. Taken together, these results support the idea that this PPD framework is a useful diagnostic tool for complex cosmological analyses, but one that should be used with care and in conjunction with complementary validation tests.

The remainder of this paper is organized as follows. In § 2, we review posterior predictive distributions, describe our Gaussian–mixture approximation to the PPD, and introduce our new density-based PPD metric, ΔPPD\Delta_{\mathrm{PPD}}. In § 3, we apply the method to DES Y3 data and compare its behavior to the published, calibrated PPD tests used in that analysis. § 4 presents our validation of the method on simulated DES Y6 3×2pt3 \times2\mathrm{pt} data, including tests with and without an injected XlensX_{\mathrm{lens}} inconsistency, and discusses effects that can complicate the interpretation of ΔPPD\Delta_{\mathrm{PPD}}: absorption of tensions by nuisance parameters, and projection effects in disjoint PPD tests. We summarize our findings and discuss the role of ΔPPD\Delta_{\mathrm{PPD}} within broader consistency tests in § 5.

Formalism

We consider two sets of measurements from one or several experiments, x\mathbf{x} and y\mathbf{y}. At this stage, x\mathbf{x} and y\mathbf{y} may correspond to (i) independent realizations of the same measurement, or (ii) disjoint, but potentially correlated, measurements. The vector θ\boldsymbol{\theta} represents parameters of the statistical model for those observables. We use N(x;μx,C)\mathcal{N}(\mathbf{x};\boldsymbol{\mu}_{x},\mathbf{C}) to denote a multivariate Gaussian distribution on x\mathbf{x} with mean μx\boldsymbol{\mu}_{x} and covariance C\mathbf{C}.

Definitions

The posterior predictive distribution (PPD) is the distribution of future realizations of the measurement y\mathbf{y}, conditioned on the observation of a previous realization of x\mathbf{x}, labeled xobs\mathbf{x}_{\mathrm{obs}}. It is given by

P(y∣xobs)=∫P(y∣xobs,θ)P(θ∣xobs) dθ.(1)\mathrm{P}\left(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}}\right)=\int\mathrm{P}\left(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}},\boldsymbol{\theta}\right)\mathrm{P}\left(\boldsymbol{\theta}\mid\mathbf{x}_{\mathrm{obs}}\right)\,\mathrm{d}\boldsymbol{\theta}. \tag*{(1)}

Here P(θ∣xobs)\mathrm{P}\left(\boldsymbol{\theta}\mid\mathbf{x}_{\mathrm{obs}}\right) is the posterior distribution inferred from xobs\mathbf{x}_{\mathrm{obs}}, while P(y∣xobs,θ)\mathrm{P}\left(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}},\boldsymbol{\theta}\right) is the conditional distribution of y\mathbf{y} given model parameters θ\boldsymbol{\theta} and the observed data xobs\mathbf{x}_{\mathrm{obs}}. In other words, the PPD is obtained by marginalizing the conditional distribution of y\mathbf{y} over the posterior uncertainty on θ\boldsymbol{\theta} given xobs\mathbf{x}_{\mathrm{obs}}. As a result, the PPD is generally broader than the likelihood based on a point estimate of θ\boldsymbol{\theta} (e.g., the best fit), since it incorporates both parameter uncertainty and the intrinsic scatter described by P(y∣xobs,θ)\mathrm{P}\left(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}},\boldsymbol{\theta}\right). While this integral is intractable in general, it can be estimated using a Monte-Carlo sampling method that we propose in the following sections.

To build intuition for what information the PPD captures, it is instructive to consider the analytically tractable case of a linear Gaussian model, where μx(θ)=Mxθ\boldsymbol{\mu}_{x}(\boldsymbol{\theta})=\mathbf{M}_{x}\boldsymbol{\theta} and μy(θ)=Myθ\boldsymbol{\mu}_{y}(\boldsymbol{\theta})=\mathbf{M}_{y}\boldsymbol{\theta}. Assuming a Gaussian likelihood with covariance Cx\mathbf{C}_{x} and a Gaussian prior P(θ)=N(θ;θ0,Σ0)\mathrm{P}(\boldsymbol{\theta})=\mathcal{N}(\boldsymbol{\theta};\boldsymbol{\theta}_{0},\mathbf{\Sigma}_{0}), the posterior is also Gaussian. The posterior mean θp\boldsymbol{\theta}_{p} and covariance Σp\mathbf{\Sigma}_{p} are given by

θp=Σp(Σ0−1θ0+MxTCx−1xobs)(2)\boldsymbol{\theta}_{p}=\boldsymbol{\Sigma}_{p}\left(\boldsymbol{\Sigma}_{0}^{-1}\boldsymbol{\theta}_{0}+\mathbf{M}_{x}^{\mathsf{T}}\mathbf{C}_{x}^{-1}\mathbf{x}_{\mathrm{obs}}\right) \tag*{(2)}
Σp=(Σ0−1+MxTCx−1Mx)−1(3)\boldsymbol{\Sigma}_{p}=\left(\boldsymbol{\Sigma}_{0}^{-1}+\mathbf{M}_{x}^{\mathsf{T}}\mathbf{C}_{x}^{-1}\mathbf{M}_{x}\right)^{-1} \tag*{(3)}

where the mean coincides with the posterior maximum (see, e.g., Raveri & Hu [65]). If we also assume that x\mathbf{x} and y\mathbf{y} are disjoint and uncorrelated, the PPD is then also Gaussian with mean yPPD\mathbf{y}_{\mathrm{PPD}} and covariance CPPD\mathbf{C}_{\mathrm{PPD}} given by

yPPD=Myθp,(4)\mathbf{y}_{\mathrm{PPD}}=\mathbf{M}_{y}\boldsymbol{\theta}_{p}, \tag*{(4)}
CPPD=Cy+MyΣpMyT.(5)\mathbf{C}_{\mathrm{PPD}}=\mathbf{C}_{y}+\mathbf{M}_{y}\boldsymbol{\Sigma}_{p}\mathbf{M}_{y}^{\mathsf{T}}. \tag*{(5)}

Here the two covariance terms capture the contributions from data noise and parameter uncertainty, respectively. This is in contrast to a χ2\chi^2 goodness-of-fit test, which conditions on a point estimate of θ\boldsymbol{\theta} and therefore accounts only for data noise—a distinction that proves important when the posterior is broad, as the PPD will then be wider than the likelihood alone (a visual example is provided in § 2.4).

A PPD consistency test is typically based on a scalar-valued function T(y)T(\mathbf{y}), and in particular, on the comparison of its observed value T(yobs)T(\mathbf{y}_{\mathrm{obs}}) to the distribution of T(y)T(\mathbf{y}) from PPD samples y∼P(y∣xobs)\mathbf{y}\sim P(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}}). More generally, one may define a parameter-dependent summary T(y,θ)T(\mathbf{y},\boldsymbol{\theta}) where, at each posterior sample θ∼P(θ∣xobs)\boldsymbol{\theta}\sim P(\boldsymbol{\theta}\mid\mathbf{x}_{\mathrm{obs}}), T(yobs,θ)T(\mathbf{y}_{\mathrm{obs}},\boldsymbol{\theta}) is compared to the distribution of T(y,θ)T(\mathbf{y},\boldsymbol{\theta}) sampled at y∼P(y∣xobs,θ)\mathbf{y}\sim P(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}},\boldsymbol{\theta}). The fraction of PPD samples with a summary function lower (or higher) than that computed on the data defines a PPD-based metric in the range [0,1][0,1]: values too close to 0 indicate inconsistency while values too close to 1 indicate either over-estimated uncertainty or underestimated cross-correlations. As noted in the introduction, this is analogous to how we interpret too-low or too-high values for the minimum χ2\chi^2 per degree of freedom in point-estimate goodness-of-fit tests.

If the likelihood L(y∣θ)≡P(y∣θ)\mathcal{L}(\mathbf{y}\mid\boldsymbol{\theta})\equiv P(\mathbf{y}\mid\boldsymbol{\theta}) is Gaussian, then a natural choice for T(y,θ)T(\mathbf{y},\boldsymbol{\theta}) is the χ2\chi^2 difference between y\mathbf{y} and μy(θ)\boldsymbol{\mu}_{y}(\boldsymbol{\theta}). As we shall see, this parameter-dependent metric has drawbacks, especially when considering consistency tests of disjoint data sets, as explored in Doux et al. [27]. We instead propose to use the density of the PPD itself, P(y∣xobs)P(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}}), which will become tractable even in high-dimensions for the cosmological analyses we target, given few additional assumptions.

Approximating the PPD for Gaussian likelihoods

For 3×2pt3\times2\mathrm{pt} analyses we typically assume a Gaussian likelihood with a parameter-independent covariance.1 This assumption allows us to introduce an efficient approximation for the PPD using a Gaussian mixture model.

For a set of posterior samples {θi}\{\boldsymbol{\theta}_{i}\} with weights {wi}\{w_{i}\} such that ∑iwi=1\sum_i w_i=1, a Monte-Carlo estimate of the integral in Eq. (1) may be obtained by writing the PPD as a mixture of conditional likelihood distributions evaluated at the posterior samples, such that

P(y∣xobs)≈∑iwiP(y∣xobs,θi).(6)P(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}})\approx\sum_i w_i P(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}},\boldsymbol{\theta}_i). \tag*{(6)}

We distinguish two cases:

  1. Goodness-of-fit tests. If x\mathbf{x} and y\mathbf{y} refer to independent measurement realisations where y\mathbf{y} represents either the same observables as x\mathbf{x} or a subset of them, then P(y∣xobs,θ)P(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}},\boldsymbol{\theta}) reduces to the likelihood L(y∣θ)\mathcal{L}(\mathbf{y}\mid\boldsymbol{\theta}). If the likelihood is a multivariate Gaussian around a mean μy(θ)\boldsymbol{\mu}_{y}(\boldsymbol{\theta}) with parameter-independent covariance Cyy\mathbf{C}_{yy}, then Eq. (6) can be written

P(y∣xobs)≈∑iwiN(y;μy(θi),Cyy).(7)P(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}})\approx\sum_i w_i\mathcal{N}(\mathbf{y};\boldsymbol{\mu}_{y}(\boldsymbol{\theta}_i),\mathbf{C}_{yy}). \tag*{(7)}

This is a mixture of multivariate Gaussian distributions with matching covariances but different means, with one Gaussian for each posterior sample θi\boldsymbol{\theta}_i.

  1. Disjoint internal consistency tests. If x\mathbf{x} and y\mathbf{y} refer to disjoint components of a set of correlated measurements, then it may be challenging to analytically express the conditional distribution P(y∣xobs,θ)P(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}},\boldsymbol{\theta}) in the general case. However, if the likelihood of the full measurement of both x\mathbf{x} and y\mathbf{y} is a multivariate Gaussian, then so are the conditional distributions. For disjoint data vector subsets x\mathbf{x} and y\mathbf{y}, we write

P((xy)∣θ)=N((xy);(μx(θ)μy(θ)),(CxxCxyCyxCyy)),(8)P\left(\left.\begin{pmatrix}\mathbf{x}\\\mathbf{y}\end{pmatrix}\right|\boldsymbol{\theta}\right)=\mathcal{N}\left(\begin{pmatrix}\mathbf{x}\\\mathbf{y}\end{pmatrix};\begin{pmatrix}\boldsymbol{\mu}_{x}(\boldsymbol{\theta})\\\boldsymbol{\mu}_{y}(\boldsymbol{\theta})\end{pmatrix},\begin{pmatrix}\mathbf{C}_{xx}&\mathbf{C}_{xy}\\\mathbf{C}_{yx}&\mathbf{C}_{yy}\end{pmatrix}\right), \tag*{(8)}

where Cxy\mathbf{C}_{xy} represents the cross-covariance matrix between x\mathbf{x} and y\mathbf{y}. It can be shown that P(y∣x,θ)P(\mathbf{y}\mid\mathbf{x},\boldsymbol{\theta}), the distribution of y\mathbf{y} conditioned on x\mathbf{x} and θ\boldsymbol{\theta}, is then also a multivariate Gaussian with mean μy∣x(θ)\boldsymbol{\mu}_{y\mid x}(\boldsymbol{\theta}) and covariance Cy∣x\mathbf{C}_{y\mid x} given by

μy∣x(θ)=μy(θ)+CyxCxx−1(x−μx(θ)),(9)\boldsymbol{\mu}_{y\mid x}(\boldsymbol{\theta})=\boldsymbol{\mu}_{y}(\boldsymbol{\theta})+\mathbf{C}_{yx}\mathbf{C}_{xx}^{-1}\left(\mathbf{x}-\boldsymbol{\mu}_{x}(\boldsymbol{\theta})\right), \tag*{(9)}
Cy∣x=Cyy−CyxCxx−1Cxy.(10)\mathbf{C}_{y\mid x}=\mathbf{C}_{yy}-\mathbf{C}_{yx}\mathbf{C}_{xx}^{-1}\mathbf{C}_{xy}. \tag*{(10)}

Given a measurement of xobs\mathbf{x}_{\mathrm{obs}} and associated posterior samples {θi}\{\boldsymbol{\theta}_{i}\} with weights {wi}\{w_{i}\}, we thus may approximate Eq. (6) as a mixture of multivariate Gaussian distributions

P(y∣xobs)≈∑iwiN(y;μy∣x(θi),Cy∣x).(11)P(\mathbf{y}\mid\mathbf{x}_{\mathrm{obs}})\approx\sum_i w_i\mathcal{N}(\mathbf{y};\boldsymbol{\mu}_{y\mid x}(\boldsymbol{\theta}_i),\mathbf{C}_{y\mid x}). \tag*{(11)}

Again, this corresponds to a mixture of multivariate Gaussians with varying means. Note that if the covariance is assumed to be independent of model parameters, the covariance matrix for the conditional distribution is also independent of model parameters.

In both above cases, the posterior predictive distribution is approximated by a mixture of multivariate Gaussians. We can then sample from that approximate distribution and compute the probability density function for a given data realization (observed or simulated). This enables us to define and efficiently compute a new, density-based PPD metric, which will be described in the following section.

PPD consistency metric

In practice, to use the PPD as a tool for validating analyses, we must compress this probability distribution defined over high-dimensional data space into an interpretable summary statistic. To this aim, we define a consistency metric, ΔPPD\Delta_{\mathrm{PPD}}, given by the probability that a data realization drawn from the PPD has lower probability than the observed data. In other words, this quantity is the fraction of the posterior predictive distribution at lower density than the isocontour corresponding to the probability of the observed data realization yobs\mathbf{y}_{\mathrm{obs}}. This is formally given by

ΔPPD(yobs∣xobs)≡∫P(y∣xobs)<P(yobs∣xobs)P(y∣xobs) dy.(12)\Delta_{\mathrm{PPD}}(\mathbf{y}_{\mathrm{obs}} \mid\mathbf{x}_{\mathrm{obs}}) \equiv\int_{P(\mathbf{y} \mid\mathbf{x}_{\mathrm{obs}})<P(\mathbf{y}_{\mathrm{obs}} \mid\mathbf{x}_{\mathrm{obs}})} P(\mathbf{y} \mid\mathbf{x}_{\mathrm{obs}})\,\mathrm{d}\mathbf{y}. \tag*{(12)}

A low value of ΔPPD\Delta_{\mathrm{PPD}} indicates that the observed data yobs\mathbf{y}_{\mathrm{obs}} falls in a low-density region of the PPD relative to typical PPD samples, signaling inconsistency of the data with the model used to describe them. This is similar to the metric defined to quantify tensions in parameter space for difference distributions in Raveri & Doux [63], and corresponds to using the density of the PPD as summary function, i.e. T(y)=P(y∣xobs)T(\mathbf{y}) = P(\mathbf{y} \mid\mathbf{x}_{\mathrm{obs}}).

Equation (12) may be evaluated numerically to arbitrary precision by rejection sampling. To do so, we generate samples y∼P(y∣xobs)\mathbf{y} \sim P(\mathbf{y} \mid\mathbf{x}_{\mathrm{obs}}) from the approximate Gaussian mixture and compute the corresponding probability density for each. By comparing these to the density evaluated at the observed data vector P(yobs∣xobs)P(\mathbf{y}_{\mathrm{obs}} \mid\mathbf{x}_{\mathrm{obs}}), we can find the fraction of samples with lower probability, which serves as an unbiased estimator of ΔPPD\Delta_{\mathrm{PPD}}. Note that for goodness-of-fit tests, the PPD is a distribution over hypothetical future data, but the test assesses the position of the actual observed data within this distribution. Here, the posterior estimate and PPD metric are both evaluated for the same realization, so with yobs=xobs\mathbf{y}_{\mathrm{obs}} = \mathbf{x}_{\mathrm{obs}}. In contrast, for disjoint tests, the PPD is conditioned on one observed dataset, xobs\mathbf{x}_{\mathrm{obs}}, and assesses the position of a separate observed dataset, yobs\mathbf{y}_{\mathrm{obs}}.

The reliability of this estimator depends on the fidelity of the PPD approximation, which is tied to the accuracy of the posterior estimate. Given a posterior sample, the stability of the mixture model can be tested by bootstrapping posterior samples and recomputing the PPD and the ΔPPD\Delta_{\mathrm{PPD}} metric. This procedure yields stable results across all tests presented here. This robustness is expected, since the data covariance governs the effective width of both the likelihood and the posterior, ensuring that representative posterior samples map faithfully into data space through the PPD.

The metric ΔPPD\Delta_{\mathrm{PPD}} has the desirable characteristic that for consistency tests over disjoint data subsets x\mathbf{x} and y\mathbf{y}, if x\mathbf{x} is weakly informative about y\mathbf{y} (in the sense that y\mathbf{y} depends on model parameters that are poorly constrained by x\mathbf{x}), the test should generally favor consistency. This is because we expect that for weak constraints, the PPD P(y∣xobs)P(\mathbf{y} \mid\mathbf{x}_{\mathrm{obs}}) will be a broad distribution dominated by parameter uncertainty rather than data noise, and thus likely to have high probability density at yobs\mathbf{y}_{\mathrm{obs}}, resulting in values of ΔPPD\Delta_{\mathrm{PPD}} that indicate consistency. Note that this expectation may not hold in certain scenarios where y\mathbf{y} has greater sensitivity to parameters that are weakly constrained by x\mathbf{x}, as projection effects can shift the PPD away from yobs\mathbf{y}_{\mathrm{obs}} and bias ΔPPD\Delta_{\mathrm{PPD}} towards inconsistency, as will be discussed in § 3 and § 4.

It is also important to note that ΔPPD\Delta_{\mathrm{PPD}} is not guaranteed to be uniformly distributed over [0,1][0,1] under the null hypothesis of model-data consistency, and therefore does not constitute a pp-value in a formal sense. In Appendix § 9, we demonstrate this explicitly using the toy model presented in the next section. Deriving a formal pp-value from ΔPPD\Delta_{\mathrm{PPD}} would require characterizing its sampling distribution under data replication, which is not uniquely defined in a Bayesian setting. This was nevertheless done for the calibrated DES Y3 PPD metric by repeatedly generating mock data at best fit and computing the PPD metric over those realizations (Doux et al. [27]), as discussed in § 3.1 below.2 In this work, we do not perform such a calibration for ΔPPD\Delta_{\mathrm{PPD}}. Instead, in § 3 and § 4 we demonstrate on both real and simulated data that ΔPPD\Delta_{\mathrm{PPD}} itself generally serves as a reliable diagnostic indicator of internal consistency—while also identifying certain regimes where its interpretation requires care.

Toy model

To build intuition for the ΔPPD\Delta_{\mathrm{PPD}} statistic, we illustrate our PPD framework with a concrete numerical example using a simple toy model. Consider a data vector denoted by

x=(x1,…,xn)x=(x_1,\ldots,x_n), corresponding to samples of a parameterized curve x(t)x(t) evaluated at nn fixed times, tit_i with i∈{1,…,n}i \in\{1,\ldots,n\}, and let t=(t1,…,tn)\boldsymbol{t}=(t_1,\ldots,t_n). Let us assume the theoretical prediction is

μx(θ)(t)=at3−bt2+c3,(13)\boldsymbol{\mu}_x(\boldsymbol{\theta})(t)=a t^3-b t^2+c^3, \tag*{(13)}

with parameters θ=(a,b,c)\boldsymbol{\theta}=(a,b,c). The likelihood then takes the Gaussian form L(x∣θ)=N(x;μx(θ),C)\mathcal{L}(x \mid\boldsymbol{\theta})=\mathcal{N}(x;\boldsymbol{\mu}_x(\boldsymbol{\theta}),C), where CC is a fixed covariance matrix with mild correlations between adjacent points. For illustration we choose input values a0=0.5a_0=0.5, b0=1.5b_0=1.5, and c0=0c_0=0. The priors are uniform for aa and bb with ranges [0,1][0,1] and [0,3][0,3], respectively, while cc follows a unit Gaussian prior.

As illustrated in Figure 1, we first evaluate the model at the input parameters (blue line) and draw a realization from the likelihood (red points with error bars), shown in the left panel. We then estimate the posterior distributions of aa, bb, and cc from this realization (middle panel) and use the resulting posterior samples to generate the PPD. The PPD is shown in orange in the left panel, with the line denoting the PPD mean and the shaded region showing its standard deviation. Finally, we sample from the PPD to compute a histogram of probability-density values and compare them with the observed data (right panel). The quantity ΔPPD\Delta_{\mathrm{PPD}} indicates the fraction of PPD samples with probability density below that of the observed data. In this demonstration we find ΔPPD=0.61\Delta_{\mathrm{PPD}}=0.61, indicating internal consistency.

Figure 1. Illustration of the toy model PPD computation for a goodness-of-fit test, where xx and yy denote independent realizations of the same observables. Left: model at input parameters (blue), an observed realization xobsx_{\mathrm{obs}} sampled from the likelihood (red), and the PPD band P(y∣xobs)P(y \mid x_{\mathrm{obs}}) showing its mean ±1σ\pm1\sigma (orange). Middle: posterior distributions of aa, bb, and cc for this realization, with input parameters indicated by dashed lines. Right: histogram of log-density values for PPD samples (smoothed with a kernel density estimate) compared to the PPD log-density for the observed data (evaluated for y=xobsy=x_{\mathrm{obs}}), with ΔPPD\Delta_{\mathrm{PPD}} corresponding to the shaded area.

Implementation

The computation of ΔPPD\Delta_{\mathrm{PPD}} can be practically separated into two stages. The first step is to calculate model predictions for the observables being tested at each posterior sample ({μy(θi)}\{\boldsymbol{\mu}_y(\boldsymbol{\theta}_i)\} in Eq. (7) and Eq. (11)). This step relies on the same calculations, and thus the same modeling software, used for parameter estimation. In principle, this can be done without additional computation if the predictions are saved as derived parameters when running initial posterior estimation chains. Otherwise, one must parse an existing posterior estimation chain, then compute and save model predictions for each sample. In practice for DES Y6 we do this using the CosmoSIS importance sampler (Zuntz et al. [79]), which allows us to easily run our modeling pipeline for each sample in an initial chain, saving the theoretical prediction for the full 3×23 \times2pt data vector3 using the software’s extra_output setting.4 The distribution of these model predictions gives the posterior for the associated observables which we must convolve with a distribution accounting for data noise to obtain the PPD.

The second stage of our calculation accounts for this by generating a Gaussian mixture PPD from those model predictions. This step is independent of the modeling pipeline (e.g., of CosmoSIS). We employ the TensorFlow Probability framework (Dillon et al. [26]) to efficiently compute the approximate (log) density of the PPD from Eqs. (7) and (11). Its implementation of mixture distributions leverages GPU vectorization and memory-efficient operations, allowing fast evaluation once posterior samples and corresponding means are available. With our implementation, computing ΔPPD\Delta_{\mathrm{PPD}} for a given posterior typically takes only a few minutes.

The code for this implementation is publicly available at https://github.com/des-science/y6-ppd-public/.

Application to DES Y3 data

PPD tests were used in DES Y3 as part of the pre-unblinding validation of the joint analyses of galaxy clustering, galaxy–galaxy lensing (GGL), and cosmic shear presented in Amon et al. [4]; DES Collaboration [21]; Giannini et al. [35]; Elvin-Poole, MacCrann et al. [29]. These tests evaluated goodness-of-fit for the 1×21 \times2 (shear), 2×22 \times2 (clustering plus GGL), and 3×23 \times2 (all three) combinations, as well as internal consistency tests in which one two-point function is conditioned on the other two, all under a Λ\LambdaCDM model. As an initial validation of ΔPPD\Delta_{\mathrm{PPD}}, we repeat these tests and compare our results to the published calibrated values.

Before presenting the comparison, we emphasize one subtlety that affects consistency tests between disjoint sets of observables in particular. These tests are sensitive to how informative the conditioning data are about the probe being tested, as mentioned in § 2.3. As an example relevant to the studies presented below, both GGL and galaxy-clustering measurements are sensitive to galaxy bias parameters, but for GGL that dependence is approximately linear, while for galaxy clustering it is approximately quadratic.5 That stronger sensitivity to galaxy bias means that the PPD of galaxy clustering given GGL plus shear will yield a broad distribution, resulting in a statistically weak test of internal consistency. This outcome is driven by the limited information that GGL provides on clustering biases. In the following sections, we review how this effect impacted the DES Y3 metric and imposed a calibration step, and demonstrate how our proposed metric, ΔPPD\Delta_{\mathrm{PPD}}, provides interpretable outputs without calibration.

Calibration challenges of the DES Y3 PPD method

To provide context for comparison with our new PPD framework, here we briefly outline the DES Y3 PPD methodology and the calibration challenges it presented, which are described in detail in Doux et al. [27]. At each posterior sample θi\boldsymbol{\theta}_i, a theory prediction μy(θi)\boldsymbol{\mu}_y(\boldsymbol{\theta}_i) is computed and two χ2\chi^2 values are evaluated: one quantifying the difference between μy(θi)\boldsymbol{\mu}_y(\boldsymbol{\theta}_i) and the observed data yobs\boldsymbol{y}_{\mathrm{obs}}, and one comparing μy(θi)\boldsymbol{\mu}_y(\boldsymbol{\theta}_i) and a simulated data realization y\boldsymbol{y} drawn from the PPD (in practice, drawn from the Gaussian likelihood for the observables evaluated at θi\boldsymbol{\theta}_i).

For each posterior sample, we can evaluate whether the theory-vs-PPD-draw χ2\chi^2 is larger than the theory-vs-data χ2\chi^2. The consistency metric for DES Y3 was defined as the fraction of posterior samples where that condition holds: where there is better agreement between the data and model prediction than between the model and random PPD draws.6 While intuitive, this approach has a key limitation, in that it is systematically biased towards inconsistency for tests where the width of the PPD is dominated by parameter uncertainty rather than by the data covariance, because in that case the theory-vs-data χ2\chi^2 is then systematically larger than the theory-vs-PPD χ2\chi^2. Obtaining interpretable pp-values therefore requires calibration.

For DES Y3 analyses, calibration was achieved by first evaluating this χ2\chi^2-based PPD metric for many noise realizations for simulated data, drawn around the best-fit model prediction. This step samples the expected distribution of the uncalibrated metric assuming the best-fit parameters. We can then compare that distribution to the PPD metric evaluated for the observed data. The fraction of simulated data analyses for which the χ2\chi^2-based PPD metric is lower than for real data can then be interpreted as a calibrated p~\tilde{p}-value. Difficulties with this approach arose because running a full posterior analysis for each simulated realization was computationally prohibitive. In practice this calibration step was based on approximate posteriors for the simulated data obtained by importance sampling the observed data’s posterior. That importance sampling step was numerically challenging and required careful fine-tuning to yield stable results. Although the published calibrated DES Y3 p~\tilde{p}-values were verified to be accurate, these difficulties directly motivated the development of the new PPD methodology presented in this paper. Because our new Gaussian-mixture model approximation for the PPD and the associated ΔPPD\Delta_{\mathrm{PPD}} metric generally yield interpretable metrics without calibration, this lessens the need for the numerically unstable importance sampling step.

Results

Like the DES Y3 approach, our new PPD method enables intuitive visual comparisons between the PPD and measured data. Figure 2 shows an example for DES Y3 lensing (ξ+\xi_+ and ξ−\xi_- shown together). In that Figure, the red points indicate real data and the orange band shows the PPD mean ±\pm one standard deviation, computed using a Gaussian mixture PPD conditioned on that same cosmic shear data. Samples drawn from the PPD (not shown) reproduce the expected mean and variance, confirming consistency of the construction.

Figure 2. Visual representation of the goodness-of-fit test for DES Y3 cosmic shear data (ξ+\xi_{+} and ξ−\xi_{-} are stacked) with standard scale cuts. Real data points are shown in red, while the PPD is represented by the orange band (analytic computation) representing the mean of the distribution, plus or minus one standard deviation. Grey dashed lines separate the measurements from different tomographic bin pairs, which are indicated at the bottom.

Table 1 compares our new ΔPPD\Delta_{\mathrm{PPD}} metric to the published DES Y3 calibrated PPD p~\tilde{p}-values for three variations of DES Y3 joint analyses of lensing and clustering data. These analyses utilize different lens samples: redMaGiC (2.6 million galaxies in five tomographic bins) and MagLim (11 million galaxies in six bins, with the two farthest bins excluded in the final analysis). Despite anticipated differences in numerical values, (since we do not calibrate ΔPPD\Delta_{\mathrm{PPD}}) the two metrics show remarkably consistent trends across all tests, demonstrating that our approach recovers known tensions while avoiding the numerical fragility of the Y3-method.

TestQuoted PPD p~\tilde{p}-valueΔPPD\Delta_{\mathrm{PPD}} (this work)
redMaGiC (5 bins)
3×23 \times2 goodness-of-fit0.0050.002
2×22 \times2 goodness-of-fit0.0380.004
1×21 \times2 goodness-of-fit0.2550.32
Shear vs GGL+clustering0.0190.029
GGL vs shear+clustering0.016<0.0001< 0.0001
Clustering vs shear+GGL0.008<0.0001< 0.0001
MagLim (6 bins)
3×23 \times2 goodness-of-fitN/A<0.0001< 0.0001
2×22 \times2 goodness-of-fit<0.001< 0.001<0.0001< 0.0001
1×21 \times2 goodness-of-fit0.2680.31
Shear vs GGL+clusteringN/A0.36
GGL vs shear+clusteringN/A<0.0001< 0.0001
Clustering vs shear+GGLN/A<0.0001< 0.0001
MagLim (4 bins)
3×23 \times2 goodness-of-fit0.0230.020
2×22 \times2 goodness-of-fit0.0190.021
1×21 \times2 goodness-of-fit0.2180.31
Shear vs GGL+clustering0.2970.37
GGL vs shear+clustering0.0040.002
Clustering vs shear+GGL0.5260.32

Table 1. Comparison of PPD tests on DES Y3 data. The first column indicates the specific test, while the second and third columns show results using the calibrated DES Y3 metric and the new metric proposed in this work, ΔPPD\Delta_{\mathrm{PPD}}, respectively. Results are given for the two DES Y3 lens samples, redMaGiC and MagLim (using either all six bins or with the two farthest bins removed). We evaluate goodness-of-fit for the 1×21 \times2 case (shear), 2×22 \times2 case (clustering plus galaxy–galaxy lensing, GGL), and 3×23 \times2 case (all three), as well as internal consistency tests where one two-point function is conditioned on the other two. When no PPD samples have a probability lower than the data, an upper bound (<0.0001< 0.0001) is reported.

We consider in particular how these metrics respond to a property of the DES Y3 redMaGiC galaxy sample captured by a systematics parameter, XlensX_{\mathrm{lens}}, applied as a multiplicative factor to the GGL signal. Effectively, it causes the GGL measurements to be modeled with different galaxy bias parameters than the galaxy clustering signal. While this kind of scaling is expected at small (halo-sized) scales due to the stochastic decorrelation between galaxy and matter distributions, finding Xlens≠1X_{\mathrm{lens}} \ne1 at large scales is likely a sign of systematic measurement errors. While the redMaGiC sample passed the DES Y3 unblinding requirements (PPD tests gave p~>0.01\tilde{p} > 0.01 for shear and 2×22 \times2pt goodness of fit, as well as the disjoint test of shear vs 2×22 \times2pt), in the course of unblinding 2×22 \times2pt measurements were found to favor lower S8S_8 values than shear alone or 3×23 \times2pt, and additional post-unblinding PPD tests revealed low p~\tilde{p}-values. Investigation revealed that the property driving this behavior was described by a stochasticity parameter with marginalized constraints of Xlens=0.88±0.02X_{\mathrm{lens}} = 0.88 \pm0.02, indicating a ∼10%\sim10\% suppression of the galaxy–galaxy lensing amplitude relative to the fiducial model, measured at the 5σ5\sigma level. This suppression was traced to a color-dependent photometric issue in the redMaGiC galaxy sample, which was subsequently addressed by modifying the selection criteria [61]. The fact that our new metric ΔPPD\Delta_{\mathrm{PPD}} and the calibrated Y3 p~\tilde{p}-value metric report a similarly low 3×23 \times2pt goodness-of-fit, and a comparably good 1×21 \times2pt fit suggests it is responding to the same XlensX_{\mathrm{lens}}-like decorrelation. We also see that ΔPPD\Delta_{\mathrm{PPD}} gives an order-of-magnitude lower number for 2×22 \times2pt goodness-of-fit, and substantially lower values for the disjoint tests singling out either GGL or clustering. This is not necessarily a concern because these two metrics p~\tilde{p} and ΔPPD\Delta_{\mathrm{PPD}} are not expected to be identical. Rather, here we are concerned with whether low ΔPPD\Delta_{\mathrm{PPD}} values would raise alerts to the same inconsistencies where there were low values for the Y3 p~\tilde{p} metric.

For the MagLim sample, the DES Y3 analysis initially used all six bins but ultimately adopted a more conservative approach by excluding the two highest-redshift bins to mitigate potential systematics and improve robustness. The MagLim analysis also found evidence for a decorrelation similar to that seen for redMaGiC, but the use of fewer redshift bins and the optimized sample selection helped to reduce the impact of systematics, leading to more stable cosmological constraints ([62]). As before, we see that where the Y3 p~\tilde{p} reported low consistency, so does our new ΔPPD\Delta_{\mathrm{PPD}} metric. Note that cases marked with ‘N/A’ are PPD tests that were not reported in DES Y3 publications.

Application to DES Y6 unblinding

The lessons from DES Y3 directly inform the DES Y6 unblinding protocol, where, among other tests, PPD tests are adopted as a fast and interpretable tool for assessing internal consistency across data subsets, as detailed in Section IV and Appendix § 9 of DES Collaboration [24]. In the DES Y6 analysis, we use PPD to evaluate goodness-of-fit for the 3×23 \times2pt, 2×22 \times2pt, and 1×21 \times2pt combinations, as well as internal consistency tests in which one two-point function is conditioned on the other two. In the absence of formal calibration, we adopt a pragmatic interpretation of the PPD metric: ΔPPD\Delta_{\mathrm{PPD}} values above 0.01 are considered consistent, values below that trigger further investigation and are assessed in the context of other diagnostics such as nuisance parameter posteriors and standard χ2\chi^2 goodness-of-fit.

Here we present a brief overview of the DES Y6 analysis in order to contextualize the simulated PPD tests presented below. Measurements are made from the DES Y6 Gold catalog ([8]) built from the final DES Data Release 2 ([25]). We consider an updated MagLim lens sample split into six tomographic bins ([75]) using a combination of weights and masking to protect against observational systematics ([67]), and a source sample split into four bins ([76]), with point-spread function modeling done using the PIFF software ([70]). Cosmic shear, GGL, and the 2×22 \times2pt combination of GGL and galaxy clustering are described in DES Collaboration [22], Giannini et al. [36], and DES Collaboration [23], respectively. The DES Y6 modeling framework builds upon Y3 with several important refinements which provide greater physical realism ([46, 69] (To et al. 2025)). Nonlinear matter clustering is described with HMCode2020 ([55]), validated against the Euclid Emulator v2 ([30] (Euclid Collaboration 2021)), and baryonic effects are modeled via the parameter log⁡TAGN\log T_{\mathrm{AGN}} fixed to a fiducial value of 7.7. Galaxy bias is treated using both a linear prescription and a nonlinear description based on Eulerian perturbation theory, implemented with Fast-PT ([54, 32]) and validated against the Aemulus-HET simulations ([78]). In the nonlinear bias model, each of the six lens galaxy bins ii has two galaxy bias parameters, b1ib_1^i and b2ib_2^i, corresponding to linear and quadratic bias terms in the expansion. In the linear bias model there is one galaxy bias parameter bib^i for each lens redshift bin. Additionally, the contribution of magnification to observed galaxy clustering is accounted for with one coefficient per lens bin ([48]), with priors based on synthetic source injections ([5]). Intrinsic alignments are modeled using the TATT parameterization ([11]) in a simplified four-parameter framework. Uncertainties over redshift distributions are marginalized over using mode-projection ([9]), with priors set based on self-organizing map methods and cross-correlations with spectroscopic clustering measurements ((Yin et al. 2025; Giannini et al. 2026b; d’Assignies et al. 2026)). One multiplicative shear bias per source bin accounts for shear calibration uncertainties ([76]), with priors set by image simulation studies ([53]). Scale cuts are validated iteratively to mitigate contamination from baryons, nonlinear clustering, and galaxy bias modeling approximations ([69]).

Simulated Y6 analysis

To validate our PPD methodology for DES Y6, we apply it to simulated analyses. Unlike most simulated analyses used to validate the DES Y6 modeling pipeline, tests of the PPD metric cannot rely on noiseless synthetic data, since by definition the PPD quantifies the statistical consistency between noisy realizations of the data and the model. We therefore generate ten Gaussian noise realizations drawn from the analytic data covariance of ([69]) and add them to two model predictions evaluated at the fiducial cosmology: one unperturbed, and one with an injected internal inconsistency corresponding to a GGL-vs-clustering decorrelation of Xlens=0.9X_{\mathrm{lens}} = 0.9. Based on the marginalized constraints from a simulated analysis with free XlensX_{\mathrm{lens}}, we find that value produces an effective 5σ5\sigma deviation in parameter space relative to Λ\LambdaCDM (Xlens=1X_{\mathrm{lens}} = 1).

To make the analysis of ten noisy realizations computationally feasible, we employ a fast, approximate version of the DES Y6 3×23 \times2pt pipeline. This version replaces the full nonlinear matter power spectrum with the Eisenstein & Hu linear approximation ([28]). Also, because this fast pipeline was developed prior to the finalization of the fiducial Y6 nuisance parameter priors and scale cuts, it uses the simpler shift–stretch parameterization of photometric redshift uncertainties (as in Y3) and slightly different angular scale cuts than the final configuration. We consider versions of this analysis with both linear and nonlinear galaxy bias, employing different scale cuts to account for the fact that nonlinear bias modeling is accurate to smaller angular scales. The simulated analyses use normalized redshift distributions based on DES Y3 samples, but the covariance matrix is updated to reflect the larger area and reduced shape noise of Y6. Magnification bias is fixed for each lens bin, rather than varied with a Gaussian prior as in the final Y6 setup, and the covariance does not yet include the large-scale structure weights correction applied in the final analysis. Overall, our simulated DES Y6 3×23 \times2pt data vector with linear (nonlinear) bias consists of a total of 653 (669) data points, which are modeled in flat Λ\LambdaCDM with 6 cosmological parameters including neutrino mass, 6 (12) galaxy bias parameters, and 24 other nuisance parameters describing intrinsic alignments, shear calibration, and photo-zz uncertainties. Many of the nuisance parameters have Gaussian priors informed by calibration and sample characterization studies. Because this fast pipeline approximately preserves the parameter space dimensionality and modeling degrees of freedom of the full Y6 pipeline, we expect these PPD to be broadly representative of performance for the real data analysis. However, as we will discuss in § 5, the fact that differences between these pipelines may influence the detailed behavior of the PPD metric was a consideration when designing the DES Y6 unblinding protocol.

We use this pipeline to rehearse the PPD-relevant component of the DES Y6 unblinding protocol across three model variants: (i) a nonlinear bias model, (ii) a linear bias model, and (iii) a linear bias model with fixed nuisance parameters. For each variant, we compute PPD metrics for both the fiducial data vector and the one with injected XlensX_{\mathrm{lens}} tension,7 sampling posteriors across all ten noise realizations to evaluate ΔPPD\Delta_{\mathrm{PPD}}.

Results

The results of our simulated DES Y6 analyses are summarized in Figure 3. In that figure, the three columns correspond to different modeling choices, with the most complex nonlinear galaxy bias model on the left, linear bias in the middle, and a version of the linear bias model with fixed nuisance parameters on the right. Each row shows a different PPD test configuration, with sub-panels showing how the inferred ΔPPD\Delta_{\mathrm{PPD}} changes when evaluated for simulated data with and without an injected XlensX_{\mathrm{lens}} inconsistency. Each set of colored markers corresponds to one of the ten noise realizations studied.

Figure 3. PPD tests for DES Y6 simulated data under different model variations. Each column corresponds to a different modeling choice: nonlinear galaxy bias (left), linear bias (middle), and linear bias with fixed nuisance parameters (right). Each row corresponds to a different test, with goodness-of-fit tests shown in the top five rows and consistency tests between disjoint data subsets in the bottom three rows. Individual panels display ΔPPD\Delta_{\mathrm{PPD}} computed from multiple noise realizations (one color per realization), comparing the fiducial data vector (top of each panel) to a modified data vector with Xlens=0.9X_{\mathrm{lens}} = 0.9 (bottom). We see that fixing nuisance parameters in the linear bias model (right column) yields the strongest shifts in ΔPPD\Delta_{\mathrm{PPD}} towards inconsistency in the 3×23 \times2 goodness-of-fit test (top row) and disjoint consistency tests (bottom three rows). This sensitivity decreases as the model becomes more flexible, with the nonlinear bias model (left column) yielding much smaller shifts, which we interpret as XlensX_{\mathrm{lens}} being partially absorbed by the additional bias and nuisance parameters.

We quantify the shift in ΔPPD\Delta_{\mathrm{PPD}}, defined as the difference between the mean ΔPPD\Delta_{\mathrm{PPD}} values for the fiducial and Xlens=0.9X_{\mathrm{lens}} = 0.9 data vectors, normalized by their standard deviations over the ten noise realizations added in quadrature:

shift=ΔˉPPD(Xlens=0.9)−ΔˉPPD(fid)(σXlens)2+(σfid)2.(14)\mathrm{shift} = \frac{\bar{\Delta}_{\mathrm{PPD}}^{(X_{\mathrm{lens}}=0.9)}-\bar{\Delta}_{\mathrm{PPD}}^{(\mathrm{fid})}}{\sqrt{(\sigma_{X_{\mathrm{lens}}})^2+(\sigma_{\mathrm{fid}})^2}}. \tag*{(14)}

The sign convention is such that negative values indicate reduced PPD consistency for the contaminated (Xlens=0.9X_{\mathrm{lens}} = 0.9) data vector relative to the fiducial case. The resulting shifts for all goodness-of-fit and consistency tests, and for each modeling choice considered, are reported in Table 2.

TestNonlinear biasLinear biasLinear bias + fixed nuis.
3×23 \times2 goodness-of-fit-0.2-0.1-1.7
2×22 \times2 goodness-of-fit0.00.0-0.0
1×21 \times2 goodness-of-fit0.00.00.0
Shear+GGL goodness-of-fit0.00.00.0
Shear+clustering GoF0.00.00.0
Shear vs clustering+GGL-1.2-1.2-1.4
GGL vs shear+clustering-1.3-1.8-2.5
Clustering vs shear+GGL-0.5-1.6-1.6

Table 2. Quantitative summary of the ΔPPD\Delta_{\mathrm{PPD}} shifts shown in Figure 3. The table reports the shifts in ΔPPD\Delta_{\mathrm{PPD}}, as defined in Eq. (14), for the DES Y6 simulated data tests under the three model variations considered: nonlinear bias, linear bias, and linear bias with fixed nuisance parameters. Each entry corresponds to the change in ΔPPD\Delta_{\mathrm{PPD}} induced by setting Xlens=0.9X_{\mathrm{lens}} = 0.9, for goodness-of-fit tests (top five rows) and consistency tests between disjoint data subsets (bottom three rows). As seen in Figure 3, the largest shifts appear in cross-probe consistency tests and are enhanced when nuisance parameters are fixed.

To aid in the interpretation of these results, it is helpful to consider how the observed two-point functions respond to different parameter combinations. If bb labels generic galaxy bias parameters, shear signals scale like σ82\sigma_8^2 and are independent of galaxy bias, GGL signals scale like the product Xlensbσ82X_{\mathrm{lens}} b \sigma_8^2, and galaxy clustering scales like b2σ82b^2\sigma_8^2. Given these dependencies, we neither expect nor observe goodness-of-fit PPD tests for any pair of these correlation functions to be sensitive to an injected XlensX_{\mathrm{lens}} inconsistency. In contrast, we do expect XlensX_{\mathrm{lens}} to impact goodness-of-fit tests for the full 3×23 \times2pt measurement and to impact disjoint tests of one probe conditioned on the other two. Our findings are aligned with

this expectation: the injected inconsistency tends to lower ΔPPD\Delta_{\mathrm{PPD}} for data combinations that are able to break degeneracies between σ8\sigma_8, XlensX_{\mathrm{lens}}, and galaxy bias. While most ΔPPD\Delta_{\mathrm{PPD}} values decrease with the injected XlensX_{\mathrm{lens}} inconsistency, a few instances show an increase; this behavior can arise from statistical fluctuations in the data noise, finite posterior sampling, or the way nuisance parameters interact with their prior boundaries, although we do not attribute these cases to a single specific effect.

However, while ΔPPD\Delta_{\mathrm{PPD}} generally performs as expected, these tests also reveal two counterintuitive behaviors that inform the metric’s practical application. First, we note that the 3×2pt3\times2\mathrm{pt} goodness-of-fit tests are less sensitive to contamination than one might expect given the 5σ5\sigma parameter shift of the injected Xlens=0.9X_{\mathrm{lens}}=0.9. Second, we find that for the nonlinear galaxy bias model, the disjoint PPD test of galaxy clustering conditioned on GGL plus shear reports inconsistency even for internally consistent data (see the plot in the bottom-left of Figure 3). We trace these behaviors to different manifestations of the model’s flexibility, as described below.

Nuisance parameters can absorb data contamination.

The 3×2pt3\times2\mathrm{pt} goodness-of-fit tests show surprisingly weak responses to the injected tension, with shifts of approximately −0.2-0.2 for the nonlinear bias model and −0.1-0.1 for the linear model. We cross check this PPD test with the best-fit χ2\chi^2, roughly estimated from posterior samples,8 finding the presence of the XlensX_{\mathrm{lens}} contamination increases the minimum χ2\chi^2 by only Δχ2∼5.5±2.8\Delta\chi^2\sim5.5\pm2.8 (mean and standard deviation over the ten realizations) for the contaminated versus fiducial 3×2pt3\times2\mathrm{pt} data vector. Given the size of the data vector (corresponding to hundreds of degrees of freedom), this is a modest response to a nominally 5σ5\sigma injected inconsistency. Inspection of the nuisance parameter posteriors reveals why: several lens photo-zz width parameters shift 1−2σ1-2\sigma below their Gaussian priors, particularly at low redshift, allowing the model to partially compensate for the XlensX_{\mathrm{lens}} mismatch by boosting the clustering signal relative to GGL. The model thus absorbs the injected inconsistency through its nuisance degrees of freedom rather than expressing it in ΔPPD\Delta_{\mathrm{PPD}}. This is confirmed by the fixed-nuisance tests shown in the third column of Figure 3 and Table 2, in which the 3×2pt3\times2\mathrm{pt} goodness-of-fit shifts by −1.7-1.7.

The fact that inconsistencies are being absorbed by nuisance parameters does not mean that we are insensitive to them, just that they cannot be detected with a PPD-based metric. Nuisance parameter priors are informed by other aspects of measurements (e.g. photo-zz calibration), so if a nuisance parameter posterior is offset relative to its prior, this indicates the presence of some effect that is not well described by the model or assumptions about the data. These results underscore the importance of examining nuisance parameter posteriors alongside PPD metrics during unblinding.

Beyond the muted sensitivity due to nuisance parameters, this behavior also highlights an intrinsic property of goodness-of-fit tests in high-dimensional data spaces. A 5σ5\sigma injected inconsistency means that a model comparison adding XlensX_{\mathrm{lens}} as a free parameter would show a ∼5σ\sim5\sigma preference over the fixed-XlensX_{\mathrm{lens}} model, corresponding to Δχ2∼25\Delta\chi^2\sim25 at the best fit. In contrast, goodness-of-fit tests assess χ2\chi^2 relative to the number of degrees of freedom, and the probability-to-exceed becomes increasingly insensitive to moderate χ2\chi^2 changes as the number of data points grows ([65]). For our simulated DES Y6 analyses with ∼600\sim600 degrees of freedom, the standard deviation of χ2\chi^2 is Nd.o.f.∼25\sqrt{N_{\mathrm{d.o.f.}}}\sim25, so Δχ2∼25\Delta\chi^2\sim25 corresponds to only a ∼1σ\sim1\sigma shift in the goodness-of-fit. In other words, goodness-of-fit tests are less sensitive to a given feature than model comparison tests, which measure how significantly that feature is captured by a single additional parameter.

We expect this to be a general property of goodness-of-fit tests, including those based on PPDs. A benefit of this property is that even if PPD-based tests are conducted for a Λ\LambdaCDM cosmological model, they are unlikely to report inconsistency simply due to the data preferring an alternative cosmological model, such as dynamical dark energy. In other words: using PPD tests as part of unblinding checks can alert us to significant issues with the analysis pipeline, it presents very little risk of artificially guiding the analysis towards Λ\LambdaCDM results.

Projection effects can skew PPDs.

A distinct phenomenon appears in internal consistency tests that condition clustering on shear and GGL, particularly for the nonlinear bias model: ΔPPD\Delta_{\mathrm{PPD}} takes anomalously low values even for fiducial, internally consistent data. We posit that the origin of this behavior lies in projection effects related to parameter degeneracies.

Projection effects (sometimes called prior-volume effects) occur in Bayesian analyses when unconstrained directions in higher-dimensional parameter space cause marginalized (projected) posteriors to be offset from best-fit parameter values. As large-scale structure analyses have grown in complexity, projection effects have become increasingly prevalent in recent years, motivating careful characterization using simulated analyses ([69, 2], complementary frequentist methods (e.g. [41, 64 Herold]. & Karwal 2025; Chintalapati et al. 2022, 2024), as well as approaches using simulation-based priors [17].

How is this related to the observed PPD behavior? Since the PPD is the posterior convolved with the likelihood, it inherits any projection effects impacting the marginalized posteriors, thus breaking the intuition that unconstrained parameters should produce broad PPDs and favor consistency, as discussed in § 2.3. In most cases this is not a concern, because projection effects tend to have less impact on parameters more directly related to observables—which is what motivates, for example, sampling products of galaxy bias and σ8\sigma_8 rather than galaxy bias alone Adame et al. [3]. This intuition does not hold, however, for PPD tests between disjoint observables sensitive to different degenerate parameter combinations.

Though combining GGL with shear allows us to break degeneracies between galaxy bias and σ8\sigma_8, for the nonlinear bias model this data combination is only able to constrain degenerate combinations of galaxy bias parameters, leaving individual bias parameters poorly determined, particularly at high redshift. Combined effects from noise, degeneracies with nuisance parameters, and prior boundaries can then produce offsets in marginalized posteriors. Since clustering is sensitive to the square of bias parameters, these offsets are enhanced when translating to predictions for the galaxy-galaxy angular two-point correlation function w(θ)w(\theta), shifting the PPD away from the true data realization and producing low ΔPPD\Delta_{\mathrm{PPD}} even for consistent data (which we observe in the left bottom plot of Figure 3). The disjoint PPD test of GGL conditioned on shear plus clustering is less sensitive to this behavior because of galaxy clustering’s stronger sensitivity to the bias parameters. We would expect that a linear bias model would be less sensitive to this behavior, though the bb versus b2b^2 sensitivity of GGL and clustering respectively could still potentially skew the disjoint PPD if the GGL-plus-shear bias posteriors are impacted by degeneracies with other nuisance parameters.

To support this intuition, Figure 4 shows the galaxy-clustering PPDs for a subset of data vector realizations (upper panels) alongside marginal distributions of the linear (b1b_1) and nonlinear (b2b_2) bias parameters for each lens bin (lower panels). We find that for certain realizations and bins, the posteriors appear somewhat discrepant with the input bias parameter values, with b1b_1 found consistently high (though still within 2σ2\sigma), whereas b2b_2 is skewed towards the prior limits. This propagates into offsets of the predicted clustering signal in the upper panels, especially at small scales where b2b_2 contributes significantly (towards the left between vertical lines separating tomographic bins). This particularly affects high redshift bins (right end of each panel), where lower signal-to-noise translates to weaker constraints on the galaxy bias parameters. Switching to a simpler linear bias model tends to mitigate this effect: posteriors recover the input b1b_1 values and the PPD bands better capture the behavior of the input model at all scales. This figure also illustrates the fact that projection effects can only shift the PPD away from the true data realization when parameter uncertainty dominates the data covariance (in the sense of Eq. (5)), because it is only then that offsets in marginalized posteriors translate into visible shifts in the PPD rather than being washed out by data noise. In Figure 4, the PPD is substantially wider than the likelihood at the input model, especially at small scales and high redshifts, confirming that parameter uncertainty dominates the PPD width.

Figure 4. Illustration of projection effects in simulated DES Y6 internal consistency tests with the nonlinear bias model. Five randomly selected realizations (out of the 10 used in Figure 3) of the full 3×23 \times2pt data vector are shown, each in a different color. Top: clustering measurements w(θ)w(\theta) (colored points) compared to the PPD band predicted from shear and galaxy-galaxy lensing, both shifted by the fiducial input model and normalized by their standard deviations; vertical grey lines mark the boundaries of the tomographic lens bins. Bottom: marginalized posteriors of the linear and nonlinear bias parameters, respectively, inferred from shear and galaxy-galaxy lensing in each lens bin, with grey lines indicating the input values. The vertical extent corresponds to the uniform prior ranges, [1,3][1,3] for b1b_1 and [−3,+3][-3,+3] for b2b_2.

These observations suggest a simple mitigation strategy. When a flexible model is used, PPD tests should be validated with a few realizations of simulated analyses to check for projection effects that might drive ΔPPD\Delta_{\mathrm{PPD}} towards anomalously low values—falsely indicating inconsistency—even for perfectly compatible data. Unblinding criteria can then be adjusted to discount PPD test configurations subject to these effects. This is precisely how PPD tests were deployed in the DES Y6 analysis. Of course, one could perform a large ensemble of simulated analyses to calibrate the size of projection effects, thus translating ΔPPD\Delta_{\mathrm{PPD}} to a formal pp-value. However, as a practical consideration, running simulated analyses for just a few noise realizations and adjusting validation criteria accordingly is much more feasible within the workflow of a cosmological analysis.

Summary and discussion

In this paper we introduced a fast and interpretable posterior-predictive metric, ΔPPD\Delta_{\mathrm{PPD}}, for conducting internal consistency tests of correlated cosmological probes. Defined as the fraction of the posterior predictive distribution (PPD)—approximated as a Gaussian mixture built from posterior samples—at lower probability density than the observed data, it compresses the high-dimensional PPD into an interpretable scalar that can be computed in minutes from existing posterior chains. We emphasize that ΔPPD\Delta_{\mathrm{PPD}} is a diagnostic indicator rather than a calibrated pp-value. This reflects the hybrid nature of PPD tests, which pose a frequentist consistency question using Bayesian machinery: the data-sampling scheme defining the null hypothesis is not unique, and as demonstrated in Appendix § 9, ΔPPD\Delta_{\mathrm{PPD}} is not uniformly distributed under the schemes we consider. Obtaining a formal pp-value would therefore require choosing a scheme and calibrating against a large ensemble of simulated analyses dedicated solely to characterizing its sampling distribution. Given the significant associated computational cost, for practical applications we instead recommend running a few simulated realizations sufficient to validate PPD behavior, which are in any case useful for broader pipeline and model validation.

Applied to DES Y3 data, the uncalibrated metric reproduces the qualitative trends of the calibrated PPD p~\tilde{p}-values reported in DES Y3 analyses (Table 1), identifying the same tensions between probes while avoiding the numerical fragility and computational overhead of DES-Y3-like importance-sampling calibration. We also demonstrate that this PPD method yields intuitive data-space visual checks (Figure 2).

For the simulated DES Y6 analyses, we carried out PPD consistency tests on ten noisy realizations of synthetic 3×2pt3 \times2\mathrm{pt} data, using both internally consistent realizations and realizations with an injected decorrelation between GGL and clustering (Xlens=0.9X_{\mathrm{lens}} = 0.9). We considered three modeling variants: a nonlinear galaxy bias model, a linear bias model, and a linear bias model with fixed nuisance parameters. These tests, reported in Figure 3, allowed us to identify regimes where ΔPPD\Delta_{\mathrm{PPD}} performs as expected, as well as two apparent failure modes that underscore the need to combine PPD tests with other unblinding diagnostics. In some cases, ΔPPD\Delta_{\mathrm{PPD}} remains high despite an injected inconsistency, highlighting that model flexibility can absorb genuine tensions—as we see when lensing-to-zz width parameter estimates drift away from their Gaussian priors to compensate for the injected decorrelation. In such cases, pre-unblinding checks of nuisance parameter posteriors serve as important complements to PPD tests. Conversely, low ΔPPD\Delta_{\mathrm{PPD}} values for consistent simulated data flag potential projection effects due to unconstrained directions in parameter space—as we saw for disjoint tests conditioned on GGL-plus-shear, where poorly constrained bias parameters distort the predicted clustering PPD. This highlights the fact that applications to simulated analyses should guide how PPD tests are used as pre-unblinding checks in a real analysis. In some cases, the study of how projection effects impact the PPD metric may aid in identifying aspects of the modeling that warrant refinement, such as reducing model complexity or tightening prior choices.

These findings directly informed the DES Y6 unblinding protocol, in which PPD tests of real DES Y6 data were used to validate the analysis before cosmological results were revealed and are reported in [22 b,c]. The Y6 protocol used ΔPPD>0.01\Delta_{\mathrm{PPD}} > 0.01 as a threshold for passing consistency tests, with lower values triggering further scrutiny of the analysis pipeline. Goodness-of-fit PPD tests were applied to shear, 2×2pt2 \times2\mathrm{pt} (GGL+clustering) and 3×2pt3 \times2\mathrm{pt} for several model variations, as were disjoint tests for shear conditioned on 2×2pt2 \times2\mathrm{pt} and GGL conditioned on shear-plus-clustering. Based on the projection effects seen in § 4 above, the disjoint test of clustering conditioned on GGL-plus-shear was not used9 and low ΔPPD\Delta_{\mathrm{PPD}} found for nonlinear bias fits to GGL conditioned on shear plus clustering were not treated as a reason to halt the analysis. Notably, the goodness-of-fit PPD tests, supported by scrutiny of nuisance parameter posteriors, were instrumental in identifying a problem with the second lens redshift bin, which was ultimately removed from the fiducial analysis of DES Collaboration [24].

Looking ahead, the framework introduced here is well suited for application to forthcoming Stage-IV surveys such as LSST, Euclid, and Roman. Their increased statistical power will make fast, robust internal consistency tests essential, while their more complex models will require a clear understanding of of how these metrics couple to modeling choices. This represents a crucial task in the broader project of precision large-scale structure cosmology, but one that this work shows we can carry out effectively.

AUTHOR CONTRIBUTIONS

All authors contributed to this paper and/or carried out infrastructure work that made the analysis possible. C. Doux and E. Baxter developed the initial concept of the Gaussian mixture PPD approximation and the ΔPPD\Delta_{\mathrm{PPD}} metric. C. Doux created a prototype code implementation used for proof-of-concept tests and carried out the toy model demonstrations of PPD properties. J. Muir led the implementation of the PPD method within the DES Y6 analysis framework, the simulated analyses supporting its validation, and its application within the real DES Y6 analysis, with support from A. Ferté and D. Sanchez Cid. M. Raveri and N. Weaverdyck contributed insight aiding the interpretation of the simulated DES Y6 test results. C. Doux and J. Muir contributed to the writing of the manuscript. T. Karwal and W. d’Assignies served as the internal review committee and provided valuable feedback on the writing and presentation of this paper. M. A. Troxel, C. Chang, M. Crocce, and M. R. Becker contributed to the development of this work as coordinators of the DES Year 6 analysis. The remaining authors have made contributions to this paper that include, but are not limited to the construction of DE-Cam and other aspects of collecting data: data processing and calibration; developing broadly used methods, codes, and simulations; running the pipeline and validation tests; and promoting the science analysis.

DATA AVAILABILITY

The DES Y6 data used in this analysis, including catalogues, data-vector measurements, likelihoods and chains, are publicly available at https://des.ncsa.illinois.edu/releases/y6a2.

The code implementing the PPD method presented in this work is publicly available at https://github.com/des-science/y6-ppd-public/.

ACKNOWLEDGEMENTS

Funding for the DES Projects has been provided by the U.S. Department of Energy, the U.S. National Science Foundation, the Ministry of Science and Education of Spain, the Science and Technology Facilities Council of the United Kingdom, the Higher Education Funding Council for England, the National Center for Supercomputing Applications at the University of Illinois at Urbana-Champaign, the Kavli Institute of Cosmological Physics at the University of Chicago, the Center for Cosmology and Astro-Particle Physics at the Ohio State University, the Mitchell Institute for Fundamental Physics and Astronomy at Texas A&M University, Financiadora de Estudos e Projetos, Fundação Carlos Chagas Filho de Amparo à Pesquisa do Estado do Rio de Janeiro, Conselho Nacional de Desenvolvimento Científico e Tecnológico and the Ministério da Ciência, Tecnologia e Inovação, the Deutsche Forschungsgemeinschaft and the Collaborating Institutions in the Dark Energy Survey.

The Collaborating Institutions are Argonne National Laboratory, the University of California at Santa Cruz, the University of Cambridge, Centro de Investigaciones Energéticas, Medioambientales y Tecnológicas-Madrid, the University of Chicago, University College London, the DES-Brazil Consortium, the University of Edinburgh, the Eidgenössische Technische Hochschule (ETH) Zürich, Fermi National Accelerator Laboratory, the University of Illinois at Urbana-Champaign, the Institut de Ciéncies de l’Espai (IEEC/CSIC), the Institut de Fisica d’Altes Energies, Lawrence Berkeley National Laboratory, the Ludwig-Maximilians Universität München and the associated Excellence Cluster Universe, the University of Michigan, NSF NOIRLab, the University of Nottingham, The Ohio State University, the University of Pennsylvania, the University of Portsmouth, SLAC National Accelerator Laboratory, Stanford University, the University of Sussex, Texas A&M University, and the OzDES Membership Consortium.

Based in part on observations at NSF Cerro Tololo Inter-American Observatory at NSF NOIRLab (NOIRLab Prop. ID 2012B-0001; PI: J. Frieman), which is managed by the Association of Universities for Research in Astronomy (AURA) under a cooperative agreement with the National Science Foundation.

The DES data management system is supported by the National Science Foundation under Grant Numbers AST-1138766 and AST-1536171. Data access is enabled by Jetstream2 and OSN at Indiana University through allocation PHY240006: Dark Energy Survey from the Advanced Cyberinfrastructure Coordination Ecosystem: Services and Support (ACCESS) program, which is supported by U.S. National Science Foundation grants 2138259, 2138286, 2138307, 2137603, and 2138296. The DES participants from Spanish institutions are partially supported by MICINN under grants PID2021-123012, PID2021-128989, PID2022-141079, SEV-2016-0588, CEX2020-001058-M and CEX2020-001007-S, some of which include ERDF funds from the European Union. IFAE is partially funded by the CERCA program of the Generalitat de Catalunya.

We acknowledge support from the Brazilian Instituto Nacional de Ciência e Tecnologia (INCT) do e-Universo (CNPq grant 465376/2014-2).

This document was prepared by the DES Collaboration using the resources of the Fermi National Accelerator Laboratory (Fermilab), a U.S. Department of Energy, Office of Science, Office of High Energy Physics HEP User Facility. Fermilab is managed by Fermi Forward Discovery Group, LLC, acting under Contract No. 89243024CSC000002.

Some calculations were done using the University of Cincinnati’s Advanced Research Computing center as well as the Symmetry cluster at Perimeter Institute. Research at Perimeter Institute is supported in part by the Government of Canada through the Department of Innovation, Science and Economic Development and by the Province of Ontario through the Ministry of Colleges and Universities.

This work made use of the following software packages: NumPy [40], Matplotlib [44], SciPy [74], TensorFlow [1], TensorFlow Probability [26], Nautilus [47], and CosmoSIS [79].

Is PPD a p-value?

Assuming that the statistical description of x\mathbf{x} and y\mathbf{y} is accurate, i.e. that the likelihood correctly describes the random process that produced the data, then answering this question really amounts to deciding which distribution yobsy_{\mathrm{obs}} is drawn from. This ambiguity is a direct consequence of the hybrid nature of the test: asking whether the observed data are typical of the model is a frequentist question, which requires specifying a data-sampling scheme that Bayesian inference alone does not uniquely define.

Under the hypothesis that the observed yobsy_{\mathrm{obs}} is itself a realization drawn, a posteriori, from the posterior predictive distribution defined for xobsx_{\mathrm{obs}}, then ΔPPD\Delta_{\mathrm{PPD}} is, by construction, uniformly distributed in the range [0,1][0,1] over realizations of y\mathbf{y}, i.e. it is a pp-value.

If, instead, we were to average ΔPPD\Delta_{\mathrm{PPD}} over realizations of yobsy_{\mathrm{obs}} drawn by first sampling the prior on θ\theta and then the likelihood P(xobs,yobs∣θ)\mathrm{P}(x_{\mathrm{obs}},y_{\mathrm{obs}}\mid\theta) simultaneously with xobsx_{\mathrm{obs}}, ahead of inferring the posterior P(θ∣xobs)\mathrm{P}(\theta\mid x_{\mathrm{obs}}), then ΔPPD\Delta_{\mathrm{PPD}} would, in general, not be uniformly distributed. Both hypotheses seem reasonable in a Bayesian framework.

In a frequentist context, where xobsx_{\mathrm{obs}} and yobsy_{\mathrm{obs}} are assumed to be drawn simultaneously from the likelihood P(xobs,yobs∣θ0)\mathrm{P}(x_{\mathrm{obs}},y_{\mathrm{obs}}\mid\theta_0) at the true (but unknown) value of the model parameters θ0\theta_0, then repeating the test over such data realizations would, in general, not yield a uniform distribution.

To verify this, we repeat PPD goodness-of-fit tests with the toy model used in § 2.3 one hundred times, either sampling data realizations from the likelihood at fixed input parameters (θ=θ0(\theta=\theta_0, frequentist approach), or by first sampling the parameters from their priors (θ∼P(θ)(\theta\sim\mathrm{P}(\theta), Bayesian approach). In both cases, we sample the parameter posterior distributions, generate the PPD and compute ΔPPD\Delta_{\mathrm{PPD}}, as illustrated in Figure A1. Figure A2 shows the histogram of ΔPPD\Delta_{\mathrm{PPD}} values, and we find, in both cases, that it does not follow a uniform distribution (although these distributions are themselves indistinguishable using a two-sample Kolmogorov-Smirnov test).

Figure A1. Toy model PPD tests under two frameworks. Left: frequentist approach, where all data realizations are generated from the same input parameters. Right: Bayesian approach, where each data realization is generated from parameters drawn from the prior. In both cases, the corner plot illustrates a subset of posterior distributions (parameters values indicated by grey lines on the left and “+” symbols on the right). The upper-right panels show the histograms of log-density values for PPD samples compared to the data realizations.

Figure A2. Histograms of ΔPPD\Delta_{\mathrm{PPD}} values from 100 realizations, comparing the frequentist (blue) and Bayesian (orange) approaches. In both cases the distributions deviate from uniformity.

This paper was built using the Open Journal of Astrophysics \LaTeX template. The OJA is a journal which provides fast and easy peer review for new papers in the astro-ph section of the arXiv, making the reviewing process simpler for authors and referees alike. Learn more at http://astro.theoj.org.

References

  1. [1]Abadi, M. et al. 2016, in 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI 16), 265
  2. [2]Adame, A. G., Aguilar, J., Ahlen, S., et al. 2025a, J. Cosmology Astropart. Phys., 2025, 008
  3. [3]Adame, A. G., Aguilar, J., Ahlen, S., et al. 2025b, J. Cosmology Astropart. Phys., 2025, 028
  4. [4]Amon, A. et al. 2022, Phys. Rev. D, 105, 023514
  5. [5]Anbajagane, D., Tabbutt, M., et al. 2025, The Open Journal of Astrophysics, 8, 65
  6. [6]Asgari, M., Lin, C.-A., Joachimi, B., et al. 2021, A&A, 645, A104
  7. [7]Baxter, E. J., Omori, Y., Chang, C., et al. 2019, Phys. Rev. D, 99, 023508
  8. [8]Bechtol, K. et al. 2026, ApJS, 282, 62
  9. [9]Bernstein, G. et al. 2026, The Astrophysical Journal, 1002, 95
  10. [10]Bevins, H. T. J., Handley, W. J., & Gessey-Jones, T. 2025, Phys. Rev. D, 112, 043520
  11. [11]Blazek, J. A., MacCrann, N., Troxel, M. A., & Fang, X. 2019, Phys. Rev. D, 100, 103506
  12. [12]Box, G. E. P. 1980, Journal of the Royal Statistical Society A, 143, 383
  13. [13]Chambert, T., Rotella, J. J., & Higgs, M. D. 2014, Ecology and Evolution, 4, 1389
  14. [14]Charnock, T., Battye, R. A., & Moss, A. 2017, Phys. Rev. D, 95, 123535
  15. [17]Chudaykin, A., Ivanov, M. M., & Philcox, O. H. E. 2025, arXiv e-prints, arXiv:2511.20757arxiv.org/abs/2511.20757
  16. [18]Conn, P. B., Johnson, D. S., Williams, P. J., Melin, S. R., & Hooten, M. B. 2018, Ecological Monographs, 88, 526
  17. [21]DES Collaboration. 2022, Phys. Rev. D, 105, 023520
  18. [22]DES Collaboration. 2026a, arXiv e-prints, arXiv:2602.10065
  19. [23]DES Collaboration. 2026b, in prep
  20. [24]DES Collaboration. 2026c, arXiv e-prints, arXiv:2601.14559
  21. [25]DES Collaboration. 2021, ApJS, 255, 20
  22. [26]Dillon, J. V., Langmore, I., Tran, D., et al. 2017, arXiv e-prints, arXiv:1711.10604arxiv.org/abs/1711.10604
  23. [27]Doux, C., Jain, B., Zeurcher, D., et al. 2022, MNRAS, 515, 1942
  24. [28]Eisenstein, D. J. & Hu, W. 1999, ApJ, 511, 5
  25. [29]Elvin-Poole, J., MacCrann, N., et al. 2023, MNRAS, 523, 3649
  26. [30]Euclid Collaboration. 2019, MNRAS, 484, 5509
  27. [32]Fang, X., Blazek, J. A., McEwen, J. E., & Hirata, C. M. 2017, J. Cosmology Astropart. Phys., 2017, 030
  28. [33]Friedrich, O. et al. 2021, MNRAS, 508, 3125
  29. [34]Gelman, A., Carlin, J. B., Stern, H. S., et al. 2014, Bayesian Data Analysis
  30. [35]Giannini, G. et al. 2024, MNRAS, 527, 2010
  31. [36]Giannini, G. et al. 2026a, Phys. Rev. D, 113, 103503
  32. [38]Hall, A. & Taylor, A. 2022, Phys. Rev. D, 105, 125327
  33. [39]Handley, W. & Lemos, P. 2021, Phys. Rev. D, 103, 063529
  34. [40]Harris, C. R. et al. 2020, Nature, 585, 357
  35. [41]Herold, L., Ferreira, E. G. M., & Heinrich, L. 2025, Phys. Rev. D, 111, 083504
  36. [42]Herold, L. & Karwal, T. 2025, arXiv e-prints, arXiv:2506.12004DOI
  37. [43]Heymans, C., Tröster, T., Asgari, M., et al. 2021, A&A, 646, A140
  38. [44]Hunter, J. D. 2007, Computing in Science & Engineering, 9, 90
  39. [45]Köhlinger, F., Joachimi, B., Asgari, M., et al. 2019, MNRAS, 484, 3126
  40. [46]Krause, E. et al. 2021, arXiv e-prints, arXiv:2105.13548arxiv.org/abs/2105.13548
  41. [47]Lange, J. U. 2024, in American Astronomical Society Meeting Abstracts, Vol. 244, American Astronomical Society Meeting Abstracts #244, 229.02
  42. [48]Legnani, E. et al. 2026, Phys. Rev. D, 113, 123520
  43. [49]Lemos, P., Köhlinger, F., Handley, W., et al. 2020, MNRAS, 496, 4647
  44. [50]Leonard, C. D., Alam, S., Mandelbaum, R., et al. 2026, Phys. Rev. D, 113, 043547
  45. [52]Lin, W. & Ishak, M. 2021, J. Cosmology Astropart. Phys., 2021, 009
  46. [53]Mau, S., Becker, M., et al. 2026, in prep
  47. [54]McEwen, J. E., Fang, X., Hirata, C. M., & Blazek, J. A. 2016, J. Cosmology Astropart. Phys., 2016, 015
  48. [55]Mead, A. J., Brieden, S., Tröster, T., & Heymans, C. 2021, MNRAS, 502, 1401
  49. [56]Miyatake, H., Sugiyama, S., Takada, M., et al. 2023, Phys. Rev. D, 108, 123517
  50. [57]Moran, G. E., Blei, D. M., & Ranganath, R. 2019, arXiv e-prints, arXiv:1908.00882DOI
  51. [58]Moran, G. E., Cunningham, J. P., & Blei, D. M. 2021, arXiv e-prints, arXiv:2112.03333DOI
  52. [59]Muir, J. et al. 2020, MNRAS, 494, 4454
  53. [60]Nicola, A., Amara, A., & Refregier, A. 2019, J. Cosmology Astropart. Phys., 2019, 011
  54. [61]Pandey, S. et al. 2022, Phys. Rev. D, 106, 043520
  55. [62]Porredon, A. et al. 2022, Phys. Rev. D, 106, 103530
  56. [63]Raveri, M. & Doux, C. 2021, Phys. Rev. D, 104, 043504
  57. [64]Raveri, M., Doux, C., & Pandey, S. 2024, arXiv e-prints, arXiv:2409.09101arxiv.org/abs/2409.09101
  58. [65]Raveri, M. & Hu, W. 2019, Phys. Rev. D, 99, 043506
  59. [66]Raveri, M., Zacharegkas, G., & Hu, W. 2020, Phys. Rev. D, 101, 103527
  60. [67]Rodríguez-Monroy, M., Weaverdyck, N., et al. 2025, arXiv e-prints, arXiv:2509.07943DOI
  61. [68]Rubin, D. B. 1984, Annals of Statistics, 12, 1151
  62. [69]Sanchez-Cid, D., Ferté, A., et al. 2026, arXiv e-prints, arXiv:2601.14859DOI
  63. [70]Schutt, T. et al. 2025, The Open Journal of Astrophysics, 8, 26
  64. [71]Stölzner, B., Wright, A. H., Asgari, M., et al. 2025, A&A, 702, A169
  65. [72]Sugiyama, S., Miyatake, H., More, S., et al. 2023, Phys. Rev. D, 108, 123521
  66. [74]Virtanen, P., Gommers, R., Oliphant, T. E., et al. 2020, Nature Methods, 17, 261
  67. [75]Weaverdyck, N., Rodríguez-Monroy, M., et al. 2026, arXiv e-prints, arXiv:2601.14484arxiv.org/abs/2601.14484
  68. [76]Yamamoto, M., Becker, M. R., et al. 2025, MNRAS, 543, 4156
  69. [78]Zhai, Z., Tinker, J. L., Becker, M. R., et al. 2019, ApJ, 874, 95
  70. [79]Zuntz, J., Paterno, M., Jennings, E., et al. 2015, Astronomy and Computing, 12, 45

Paper details

Contents