# Posterior Predictive Checking

> Canonical page: https://modeladay.com/models/posterior-predictive-checking/
> Topics: science, systems, risk | Difficulty: 3/5 | Updated: 2026-11-27
> Also known as: Posterior Predictive Check, Posterior Predictive Model Check, PPC, 后验预测检查, 后验预测检验, 贝叶斯后验预测检查

## 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.

**In short:** Simulate comparable observations from the fitted model and see whether they reproduce the features you care about.

## Opening scenario

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 Posterior Predictive Checking 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. **Choose the feature** — Select a feature that matters for decisions, such as the number of three-day runs.
2. **Simulate replicated records** — Draw posterior parameters and generate one dataset per draw under the original sample size and observation plan.
3. **Locate the observed feature** — Put the observed feature and simulated distribution on the same plot and look for discrepancies.

## Posterior Predictive Checking examples

Fictional example. A community repair desk fits a model whose mean daily ticket count looks right, yet records show runs of very busy days. Hundreds of simulated histories with the same calendar rarely show such runs. The analyst investigates persistent weather and holiday effects.

Suppose a repair shop models job durations. Comparing the number of very long jobs in simulated and observed data can reveal a tail hidden by the mean.

## How to apply Posterior Predictive Checking

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.

## Posterior Predictive Checking vs. related concepts

Bayesian updating changes beliefs in light of evidence. Posterior predictive checking asks whether the updated model reproduces relevant features of the data.

## Limits: when Posterior Predictive Checking fails

A model has only passed the features actually examined. Reusing fitting data can make some discrepancies harder to detect and gives no score on independent future data. In plots, focus on discrepancies that matter for decisions.

## Analogy

It is like baking several batches from a recipe and checking whether it also produces the largest air pockets seen in the real bread.

## Quick check

**Q:** Simulations match the mean but rarely show the observed tail. What does that suggest?

**A:** The model may miss a process producing extremes. Check the measurement rule and whether the real tail matters for action before revising the model.

## Audio lesson and practice

The full narrated 5-minute Posterior Predictive Checking lesson, the animated mechanism, and decision practice are in the ConceptFlow app:
- iOS App Store: https://apps.apple.com/app/conceptflow-mental-models/id6756862333
- Google Play: https://play.google.com/store/apps/details?id=com.juxianyp.conceptflow

## Related Mental Models

- [Rolling-Origin Evaluation](https://modeladay.com/models/rolling-origin-evaluation/)
- [falsifiability](https://modeladay.com/models/falsifiability/)
- [Bayesian Updating](https://modeladay.com/models/bayesian-updating/)
