Essential ScienceSystemsRisk

Posterior Predictive Checking

Definition

A posterior predictive check fits a Bayesian model to the observed data, repeatedly draws parameters from its posterior and simulates replicate datasets. Calculate the same feature on observed and simulated datasets and see whether the observed value is unusual.

Core rule: Choose a feature that matters for action, such as extremes, zeros or runs of backlog. Simulate datasets with the same size and recording rules, plot the feature for each replicate and mark the observed value.

In the late nineteenth century, Simon Newcomb kept timing light as it traveled a fixed distance. Most of his sixty-six readings sat close together, but two came in much shorter. Statisticians later took his figures and asked a model to make a stack of records of its own.

If the model had already seen those measurements, why did its simulated records struggle to produce a reading that short?

That's a question for Posterior Predictive Checking. Use a fitted Bayesian model to simulate the observations again and see whether it can generate a feature that matters in the actual data. We'll follow those short readings through one such check.

How it works

Nobody had to rebuild Newcomb's experiment. Andrew Gelman and his colleagues used it to show what a fitted model would expect another set of readings to look like. They started with a normal model, in which measurements vary around a central value.

Start a fresh record by drawing a possible center and spread from the distribution you got after seeing the data. That's the posterior, which tells you how much room is left for different values. Use the pair you drew to generate sixty-six readings, the same number Newcomb recorded.

  1. 01 · Choose the feature Select a feature that matters for decisions, such as the number of three-day runs.
  2. 02 · Simulate replicated records Draw posterior parameters and generate one dataset per draw under the original sample size and observation plan.
  3. +1 more mechanism steps & animation in the app

When it fails & limits

A reassuring plot answers a question about what you've plotted. It's easy to let that answer stand in for a much broader check.

✦ Unlock full lesson in ConceptFlow

Unlock the full Posterior Predictive Checking lesson in ConceptFlow

You’ve read the core idea and opening case. Get the ConceptFlow app to continue through the full breakdown, failure modes, 5-minute audio lesson, and decision practice.

  • ▸5-minute English & Mandarin audio lesson
  • ▸5 more deep-dive case & mechanism insights
  • ▸All 5 failure boundaries & counter-examples
  • ▸4-point decision checklist + 6-step practice

Tap a store button on mobile, or scan with your phone camera on desktop.