Abstract
Goodness-of-fit (GoF) testing is a cornerstone of statistical inference, yet testing composite null hypotheses remains challenging due to the need for test statistics with tractable distributions across the entire parameter space. Co-sufficient sampling (CSS) provides a solution by conditioning on sufficient statistics, but its applicability is limited to a narrow class of models. This paper introduces Approximate Co-Sufficient Sampling (aCSS), leveraging approximate sufficiency to extend valid GoF testing to nearly any parametric model with an asymptotically efficient estimator. We demonstrate that aCSS maintains valid Type I error control for any choice of test statistic, with inflation vanishing under standard maximum likelihood asymptotics.
Introduction
A fundamental challenge in statistics is determining whether a dataset follows a proposed model, a task known as Goodness-of-Fit (GoF) testing. While simple null hypotheses are easily tested, most practical applications involve composite nulls with unknown nuisance parameters. Traditional approaches often require the test statistic to have a known distribution regardless of the parameter values, which severely limits the choice of statistics.
Co-Sufficient Sampling (CSS) offers a theoretically elegant alternative: by conditioning the data on a sufficient statistic, the remaining randomness becomes parameter-independent. This allows for the generation of "null" data copies to which the observed data can be compared. However, CSS is often "degenerate" in complex models—like logistic regression with continuous predictors—where the only sufficient statistic is the data itself, leaving no room for resampling.
The aCSS Framework
To address the limitations of exact CSS, we propose Approximate Co-Sufficient Sampling (aCSS). The core innovation is conditioning on an approximately sufficient statistic, specifically a noisy version of the Maximum Likelihood Estimator (MLE).
The aCSS procedure involves:
- Noisy Estimation: Calculating the MLE and adding a small amount of Gaussian noise ($\sigma$).
- Conditional Sampling: Generating synthetic data copies from the distribution of the data conditioned on this noisy estimator.
- Inference: Comparing a user-defined test statistic $T(X)$ from the observed data against the distribution of $T$ from the synthetic copies to derive a p-value.
This conditioning step is the key differentiator from the standard parametric bootstrap. While the bootstrap simply "plugs in" estimated parameters, aCSS uses conditioning to ensure the test remains valid even when using highly customized or "black-box" test statistics.
Results and Discussion
The validity of aCSS is supported by both theoretical proofs and extensive simulations. The authors prove that the distance to exchangeability—and thus the Type I error inflation—vanishes as the sample size $n$ grows.
In simulations across various models, including logistic regression and multivariate t-distributions, aCSS consistently outperformed traditional methods in terms of flexibility and reliability. A key finding is the comparison of p-value distributions under the null hypothesis. As shown below, the standard parametric bootstrap can lead to significant p-value distortion, resulting in inflated false-positive rates. In contrast, conditioning-based methods like CSS (and the proposed aCSS) maintain the uniform distribution required for valid testing.
This flexibility allows researchers to use domain-specific test statistics to detect particular types of model departures without the burden of deriving their null distributions analytically.
Conclusion
Approximate Co-Sufficient Sampling provides a robust and flexible framework for goodness-of-fit testing in a wide array of parametric models. By bridging the gap between exact sufficiency and practical estimation, aCSS allows for the use of arbitrary test statistics while maintaining rigorous error control. Future research will focus on improving the computational efficiency of the required MCMC sampling and extending the theoretical guarantees to high-dimensional settings.
Summary updated