Definitioncore
Posterior predictive distribution
Also called predictive distribution.
The distribution of a new observation given the data, the model density averaged over the posterior of the parameters.
The posterior predictive distribution is the law of a new observation given the observed data . It averages the model density over the posterior of : . It carries two kinds of uncertainty, the scatter of around its mean and the uncertainty about , so it is wider than the plug-in law . It is how a Bayesian predicts, and it is the reference law for posterior predictive checks of a model.
Definition
Let and a future be conditionally independent given , with having density and having density (often ). Let be the posterior from a prior , as in Bayesian inference.
- The posterior predictive distribution of has density
It is the conditional law of given under the joint law of .
- The prior predictive distribution is , the same average before any data. At the observed data it is the marginal likelihood.
- A draw from is a draw from the posterior followed by a draw from .
When depends on also through the model, as for the next value of a time series, replace by .
Mean and variance. Let and . By the tower rules of conditional expectation,
The first term of the variance is the noise of a new observation; the second is the uncertainty about . A plug-in law keeps only the first. The second term shrinks as grows, at rate in regular models, and the first does not.
Chain rule. The joint prior predictive density of factors as , a product of one-step posterior predictive densities. This is a way to compute the marginal likelihood, and it is the base of prequential (one-step-ahead) model evaluation.
Calibration over the prior. Let be drawn from the proper prior , then and from the model. If is a set with under the posterior predictive, then under the joint law, by the same Fubini argument as for a credible interval. At a fixed there is no such guarantee; that statement belongs to a frequentist prediction interval.
Examples and non-examples
Beta-binomial. With trials, successes and the uniform prior, the posterior is Beta with , (a conjugate prior). For Binomial,
where is the beta function. For the probabilities of are , , , , and , that is 0.1813, 0.3022, 0.2747, 0.1648, 0.0641 and 0.0128. Expanding as a polynomial and integrating term by term gives the same six fractions exactly. The mean is and the variance is
The binomial law with fixed at the posterior mean has variance ; the ratio is , the factor that the uncertainty about adds. The plug-in law Binomial at the MLE gives 0.1681, 0.3602, 0.3087, 0.1323, 0.0284 and 0.0024, with variance . It gives 5 successes in 5 about one fifth of the predictive probability.
The next trial. For the predictive probability of a success is , Laplace's rule of succession.
Normal with known variance. With iid , , data 9.8, 10.4, 10.1, 9.6, 10.6 and the prior , the posterior is with and . The posterior predictive of a new is , with standard deviation 0.53675, and its 95% interval is . The plug-in law gives , which is too narrow.
Calibration, measured. Draw from the prior , then five observations and one new , times with seed 1. The 95% posterior predictive interval contained in 0.95245 of the runs; the exact value is 0.95 by the calibration result, and the Monte Carlo standard error is 0.0015. The interval contained in 0.93025 of the runs. Its exact coverage at every fixed is , because .
Normal with unknown variance. With the improper prior density on (see improper prior), the posterior predictive of is , where uses divisor . For the data 2.1, 3.4, 2.9, 3.8, , and , so the 95% interval is . These are the numbers of the exact normal prediction interval, with a different meaning: a posterior probability, not a coverage at every fixed .
Non-example: the plug-in law. treats the estimate as the truth. It is not a posterior predictive distribution, and its intervals are too narrow, most of all for small and for tail events.
Non-example: the posterior of the mean. In the normal example the 95% credible interval for is . It describes , not a new observation, and it shrinks to a point as grows; the predictive interval does not.
Non-example: the prior predictive. ignores the data. It is useful for checking what a prior implies before the data come in, and its value at the data is the marginal likelihood, but it is not a prediction from the data.
Related definitions
- Prediction interval. The frequentist interval for a new observation, with coverage at every fixed parameter value.
- Posterior predictive check. Compares the data with replicated data drawn from the posterior predictive to find misfit.
- Marginal likelihood. The prior predictive density at the data; the chain rule writes it as a product of posterior predictive densities.
- De Finetti's theorem. For an exchangeable sequence, the predictive law of the next value given the past is the posterior predictive of a mixture model.
- Bayesian linear regression and Gaussian process regression. Their posterior predictive laws are a Student t and a normal law in closed form.
- Conformal prediction. Prediction sets with finite-sample marginal coverage under exchangeability alone, with no prior.
References
- Andrew Gelman, John B. Carlin, Hal S. Stern, David B. Dunson, Aki Vehtari and Donald B. Rubin, Bayesian Data Analysis, 3rd edition, CRC Press, 2013, Chapter 1 (prior and posterior predictive distributions), Chapter 2 (the binomial and normal examples) and Chapter 6 (predictive checks)
- Christopher M. Bishop, Pattern Recognition and Machine Learning, Springer, 2006, Section 2.1.1 (the predictive probability of the next trial under a beta prior) and Section 3.3.2 (the predictive distribution of Bayesian linear regression)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag Z7WPWJ Edit this page History Report an error Markdown