[Paper Review] Simulation-Based Calibration Checking for Bayesian Computation: The Choice of Test Quantities Shapes Sensitivity
This paper introduces a new simulation-based calibration (SBC) method that enhances sensitivity to computational errors in Bayesian inference by incorporating data-dependent test quantities, particularly the joint likelihood of the data. The approach enables detection of previously undetectable issues—such as posterior-prior equality—by redefining SBC to use flexible test statistics, significantly improving validation power while providing theoretical grounding and practical implementation in the SBC R package.
Simulation-based calibration checking (SBC) is a practical method to validate computationally-derived posterior distributions or their approximations. In this paper, we introduce a new variant of SBC to alleviate several known problems. Our variant allows the user to in principle detect any possible issue with the posterior, while previously reported implementations could never detect large classes of problems including when the posterior is equal to the prior. This is made possible by including additional data-dependent test quantities when running SBC. We argue and demonstrate that the joint likelihood of the data is an especially useful test quantity. Some other types of test quantities and their theoretical and practical benefits are also investigated. We provide theoretical analysis of SBC, thereby providing a more complete understanding of the underlying statistical mechanisms. We also bring attention to a relatively common mistake in the literature and clarify the difference between SBC and checks based on the data-averaged posterior. We support our recommendations with numerical case studies on a multivariate normal example and a case study in implementing an ordered simplex data type for use with Hamiltonian Monte Carlo. The SBC variant introduced in this paper is implemented in the $\mathtt{SBC}$ R package.
Motivation & Objective
- To address the limitation of standard SBC in failing to detect major computational errors, such as when the posterior equals the prior.
- To improve the sensitivity of SBC by incorporating data-dependent test quantities, especially the joint likelihood of data and parameters.
- To provide a theoretically rigorous framework for understanding how test quantity choice affects SBC performance.
- To clarify common misconceptions in the literature, particularly distinguishing SBC from data-averaged posterior checks.
- To support practical adoption through numerical case studies and integration into the SBC R package.
Proposed method
- Proposes a variant of SBC that includes additional data-dependent test quantities beyond the parameter alone.
- Uses the joint likelihood π_joint(y,θ) as a particularly effective test quantity due to its strong sensitivity to model and computation errors.
- Derives theoretical conditions under which test statistics satisfy SBC, including constraints on quantile functions and cumulative distribution functions.
- Introduces a framework for analyzing families of test quantities and their impact on SBC sensitivity, using stochastic ordering and functional constraints.
- Employs numerical case studies on multivariate normal models and Hamiltonian Monte Carlo implementations to validate the method.
- Implements the new SBC variant in the SBC R package for practical use in Bayesian computation validation.
Experimental results
Research questions
- RQ1How does the choice of test quantity affect the sensitivity of simulation-based calibration to computational errors in Bayesian inference?
- RQ2Can SBC detect cases where the posterior is identical to the prior—a failure mode previously undetected by standard SBC?
- RQ3What theoretical conditions must test statistics satisfy to ensure valid SBC performance across different model structures?
- RQ4How does the joint likelihood of data and parameters compare to other test quantities in terms of error detection power?
- RQ5What are the practical implications of using data-dependent test quantities in SBC for real-world Bayesian computation?
Key findings
- The proposed SBC variant can detect any computational error in the posterior, including cases where the posterior is identical to the prior—previously undetectable by standard SBC.
- Using the joint likelihood as a test quantity significantly increases sensitivity, as it imposes strong constraints on the posterior distribution across all data values.
- Theoretical analysis shows that test quantity choice fundamentally shapes SBC's ability to detect deviations, with some choices leading to strict functional constraints on posterior families.
- In discrete parameter spaces, SBC with test quantities like the parameter itself leads to highly constrained solution spaces, often forcing the posterior to match the true posterior or prior.
- Numerical case studies confirm that the new method detects errors missed by standard SBC, particularly in complex models like the ordered simplex implementation for HMC.
- The implementation in the SBC R package enables researchers to easily apply the enhanced SBC method to validate posterior approximations in practice.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.