Skip to content

When can we trust Bayesian cross-validation computation? Diagnostics and new methods

Aki Vehtari, Florence Bockting

stat.ME

Abstract

Cross-validation (CV) for Bayesian models is computed from a finite number of posterior draws, so every CV estimate has a Monte Carlo error. Current diagnostics check each fold separately, and brute-force, which refits the model once for every fold, usually serves as the reference. We give every CV method a self-diagnostic: an estimate of the error of the total CV estimate, with a bias predictor of known sign, and a trust rule that decides whether the estimate can be trusted. In 100 runs on each of 37 combinations of models and data sets, we check whether these self-diagnostics are calibrated. Brute-force can fail in specific scenarios, but its self-diagnostic flags these cases. We introduce the CV bridge, which combines the brute-force draws with the full-data draws and provides a more accurate reference. We also introduce balanced mixture importance sampling and, based on our results, propose a practical workflow that tells a user what to do when a self-diagnostic flags a problem.

Create a lesson

Metadata

Categories
stat.ME, stat.CO
Comments
32 pages