Abstract
Approximate Bayesian computation (ABC) is an approach to sampling from an approximate posterior distribution in the presence of a computationally intractable likelihood function. A common implementation is based on simulating model, parameter and dataset triples from the prior, and then accepting as samples from the approximate posterior, those model and parameter pairs for which the corresponding dataset, or a summary of that dataset, is ‘close’ to the observed data. Closeness is typically determined though a distance measure and a kernel scale parameter. Appropriate choice of that parameter is important in producing a good quality approximation. This paper proposes diagnostic tools for the choice of the kernel scale parameter based on assessing the coverage property, which asserts that credible intervals have the correct coverage levels in appropriately designed simulation settings. We provide theoretical results on coverage for both model and parameter inference, and adapt these into diagnostics for the ABC context. We re-analyse a study on human demographic history to determine whether the adopted posterior approximation was appropriate. Code implementing the proposed methodology is freely available in the R package abctools.
Introduction
In complex scientific domains such as population genetics and climate modeling, the likelihood function—the probability of observing data given specific parameters—is often computationally intractable. Approximate Bayesian Computation (ABC) provides a "likelihood-free" alternative by simulating data from a model and retaining parameters that generate results "close" to observed data.
A central challenge in ABC is selecting the tolerance parameter, $\epsilon$. An excessively large $\epsilon$ causes the posterior to revert to the prior, while an overly small $\epsilon$ results in insufficient samples for a valid distribution. Historically, $\epsilon$ selection has been heuristic. This paper introduces a robust diagnostic framework based on the coverage property to principledly select $\epsilon$ and validate posterior approximations.
Methodology
The core of the proposed diagnostic is the coverage property: in a well-calibrated Bayesian analysis, an $\alpha\%$ credible interval should contain the true parameter value exactly $\alpha\%$ of the time.
ABC Importance Sampling
The authors build upon the standard ABC importance sampling approach, which serves as the baseline for their diagnostic developments. It involves sampling from the prior and weighting based on a kernel distance to observed data.
Key Innovations
- Efficient Diagnostics (Algorithm 2): To avoid the prohibitive cost of running thousands of independent ABC analyses, the authors propose a "leave-one-out" approach. This reuses a single large pool of simulations to perform multiple "pseudo-analyses" on simulated data points near the observed data.
- Truncated Prior Testing: Standard tests often evaluate coverage across the entire prior range, which can mask local inaccuracies. The authors suggest testing coverage specifically on datasets similar to the observed one (the "truncated prior"), increasing sensitivity to problem-specific errors.
- Model Choice Diagnostics: The framework extends beyond continuous parameters to discrete model selection, ensuring that the probability assigned to competing models (e.g., Model A vs. Model B) is well-calibrated.
Empirical Evaluation
The methodology was tested using both simulated and real-world datasets:
- $g$-and-$k$ Distribution: A flexible distribution with no closed-form likelihood, used to compare a standard Normal model against the $g$-and-$k$ model.
- Human Demographic History: A re-analysis of a genetic study comparing three models of human evolution: a null model, a bottleneck model, and a fragmentation model.
Key Insights and Results
The research yielded several critical insights for ABC practitioners:
- The Prior False Positive: The prior distribution inherently satisfies the coverage property relative to itself. Diagnostics must be sufficiently sensitive to ensure the ABC process has actually learned from the data rather than just returning the prior.
- Necessity of Regression Adjustment: "Raw" ABC often fails coverage tests unless $\epsilon$ is extremely small. However, applying regression-adjustment post-processing (local linear or non-linear models) significantly improves coverage, allowing for larger, more efficient $\epsilon$ values.
- Visual Diagnostics: The authors advocate for diagnostic plots, such as histograms of $p$-values and probability matching plots, over single summary statistics like Kolmogorov-Smirnov tests, as they provide better insight into how coverage fails.
In the human demographic re-analysis, the diagnostics confirmed that the original study's $\epsilon$ was appropriate only when combined with regression adjustment; without it, the posterior was significantly biased.
Conclusion
This work provides a principled foundation for validating ABC approximations. By focusing on the coverage property, researchers can move beyond heuristic parameter selection. The proposed tools are available in the R package abctools, facilitating their adoption in the broader scientific community. Future work remains in addressing the impact of summary statistic selection and developing multivariate coverage tests.
Summary updated