Model Checking

Summary

Chapter 6 of BDA3 presents posterior predictive checking as the primary tool for assessing Bayesian model fit. The core idea: simulate replicated data from the fitted model and compare to the observed data.

Posterior Predictive Checking

Generate replicated datasets from the posterior predictive distribution:

If the model fits well, should “look like” the observed data .

Test Quantities and Bayesian p-values

Define a test quantity — any scalar summary of data and parameters. The posterior predictive p-value is:

Values near 0 or 1 indicate model misfit. Unlike classical p-values, this accounts for parameter uncertainty.

Graphical Checks

  • Compare histograms/density plots of vs.
  • Overlay multiple datasets on the observed data
  • Residual plots: Bayesian residuals use a single posterior draw of , not a point estimate
  • Binned residual plots: useful for discrete data where raw residuals are hard to interpret

Key Principles

  • Model checking is about understanding where the model fails, not binary accept/reject
  • Checking is iterative: identify misfit → expand the model → check again (see Bayesian Workflow - Overview)
  • Sensitivity analysis: assess how conclusions change under alternative models or priors

See Also