Abstract
Goodness-of-fit (GoF) testing is ubiquitous in statistics, with direct ties to model selection, confidence interval construction, conditional independence testing, and multiple testing. While testing the GoF of a simple (point) null hypothesis provides an analyst great flexibility in the choice of test statistic while still ensuring validity, most GoF tests for composite null hypotheses are far more constrained, as the test statistic must have a tractable distribution over the entire null model space. A notable exception is co-sufficient sampling (CSS): resampling the data conditional on a sufficient statistic for the null model guarantees valid GoF testing using any test statistic the analyst chooses. But CSS testing requires the null model to have a compact sufficient statistic, which only holds for a very limited class of models. In this paper, we leverage the concept of approximate sufficiency to generalize CSS testing to essentially any parametric model with an asymptotically-efficient estimator; we call our extension "approximate CSS" (aCSS) testing.
Introduction
In statistical modeling, Goodness-of-Fit (GoF) testing is essential for determining whether a chosen model accurately represents the observed data. While testing a simple null hypothesis (where parameters are known) is straightforward, composite null hypotheses (where parameters must be estimated) present significant challenges. Traditional GoF tests for composite hypotheses often require test statistics with tractable distributions across the entire null model space, limiting the analyst's flexibility.
Co-sufficient sampling (CSS) offers a solution by conditioning the data on a sufficient statistic, making the conditional distribution independent of the unknown parameters. However, CSS is limited to models with compact sufficient statistics. For many common models, such as logistic regression, the data itself is the minimal sufficient statistic, rendering CSS powerless in those cases.
Methodology: Approximate Co-Sufficient Sampling (aCSS)
To overcome the limitations of exact CSS, we introduce approximate co-sufficient sampling (aCSS). This framework leverages the concept of approximate sufficiency to extend valid GoF testing to any parametric model with an asymptotically efficient estimator.
The aCSS procedure involves:
- Noisy Estimation: Calculating a perturbed Maximum Likelihood Estimator (MLE) by adding small Gaussian noise ($\sigma$).
- Conditioning: Deriving the conditional density of the data given this noisy estimator.
- MCMC Sampling: Using Markov Chain Monte Carlo (MCMC) techniques, such as the "hub-and-spoke" or "permuted serial" samplers, to generate exchangeable copies of the data.
- P-value Rank: Calculating the p-value based on the rank of the observed test statistic among the generated copies.
This approach allows for the use of arbitrary test statistics—including complex machine learning models—without needing to derive their null distributions analytically.
Evaluation and Results
The paper evaluates aCSS across several challenging model classes, including Logistic Regression, the Behrens-Fisher Problem, Gaussian Spatial Processes, and Multivariate t-distributions.
A critical requirement for any GoF test is the control of Type I error, which is reflected in the uniformity of p-values under the null hypothesis. Our simulations demonstrate that aCSS maintains nearly uniform p-values, whereas the popular parametric bootstrap often fails when paired with arbitrary test statistics.
As shown in the figure above, the parametric bootstrap can lead to significant Type I error inflation (over-rejection or under-rejection). In contrast, the conditional approach (CSS/aCSS) ensures that the test remains valid. Furthermore, aCSS achieves statistical power comparable to an "oracle" test that knows the true parameters.
Conclusion
Approximate co-sufficient sampling provides a flexible and theoretically grounded framework for GoF testing in complex parametric models. By breaking the "zero power" degeneracy of exact CSS through controlled noise, aCSS enables the use of powerful, domain-specific test statistics. Future work will explore applications in high-dimensional settings and latent variable models.
Summary updated