AI Glossary / Statistics and probability / Advanced
Posterior predictive distribution
Definition
A posterior predictive distribution describes possible future or replicated observations after accounting for observed data through a Bayesian model. It averages the data-generating distribution over the posterior distribution of unknown parameters. Symbolically, p(y_new|y) = integral p(y_new|theta) p(theta|y) dtheta, with the appropriate conditioning information included. It is a distribution for observations, not merely a distribution for the parameters. It combines uncertainty about model parameters with the randomness represented by the observation model.
What it means
Estimating an average or probability does not determine the next outcome. A Bayesian model can express uncertainty about the parameter and also allow individual observations to vary even if that parameter were known exactly. The posterior predictive distribution carries both forms of uncertainty into predictions. Its quality still depends on the model, prior, data and assumptions about how future observations relate to past ones. It does not automatically include uncertainty from every possible misspecification or unanticipated change in the environment.
How it works
Specify a prior and likelihood, then obtain the posterior from the observed data. To simulate predictions, draw a parameter value from that posterior and generate a new observation from the observation model conditional on that value. Repeat to approximate predictive probabilities, quantiles or other summaries. For several future observations sharing a parameter, generate them using the same parameter draw within each replicated future dataset. This preserves their predictive dependence. Distinguish forecasts for genuinely new data from replicated-data checks, and include future predictor values or their uncertainty as required by the question.
Three practical examples
- Service planning: forecast the distribution of next week's demand rather than only its estimated mean.
- Reliability analysis: predict future event counts while incorporating uncertainty about the event rate under the chosen model.
- Model checking: generate replicated datasets and compare their features with observed data to identify aspects the Bayesian model fails to reproduce.
Think of it this way
Think of forecasting tomorrow using several plausible versions of an unknown situation. Within each version, tomorrow can still vary randomly. Combining those possibilities gives a predictive distribution that reflects both uncertainty about which version is right and variation that remains even after a version is fixed.
Worked example
Consider an original Bernoulli example with a uniform Beta(1,1) prior for success probability theta. After observing one success and one failure, the posterior is Beta(2,2), with posterior mean 0.5. The next single outcome has predictive success probability 0.5. For the number K of successes in two future conditionally independent trials sharing theta, posterior averaging gives probabilities P(K=0)=0.3, P(K=1)=0.4 and P(K=2)=0.3. These sum to one and give predictive mean 1 and variance 0.6. Plugging the posterior mean theta=0.5 into an ordinary Binomial(2,0.5) instead gives probabilities 0.25, 0.5 and 0.25, with variance 0.5. The difference arises because the posterior predictive calculation integrates over theta uncertainty. It does not draw a separate unrelated theta for each future trial. This is a model-based illustration, not evidence that any real success process satisfies the assumptions.
Illustrative case study
In a fictional case, Alder Service uses a Bayesian count model for demand. A dashboard initially displays the posterior interval for the average rate as if it were a range for the next day's observed count. Analysts replace it with a posterior predictive interval generated from both rate draws and count draws. They also inspect replicated data and find that unusually busy days occur more often than the simple model predicts. The team revises the model rather than assuming that Bayesian calculation alone guarantees adequate uncertainty coverage.
Common misconceptions and mistakes
A posterior interval for a mean is not a prediction interval for an individual observation. Replacing all parameter draws with one posterior mean can omit important uncertainty. Future observations may be independent conditional on a shared parameter but dependent after that parameter is integrated out. A narrow predictive distribution is not automatically better; it can be overconfident. Conversely, simply making predictions very wide is not useful forecasting. Posterior predictive checks assess compatibility with aspects of observed data, but they do not prove the model true or replace evaluation on genuinely new observations.
Business use
Businesses can use predictive distributions to estimate the probability of exceeding capacity, missing a service target or requiring additional resources. Tie the reported probability to a specific horizon, exposure and information set. Evaluate forecast calibration and decision relevance over time, including important tail events. Distinguish uncertainty represented by the fitted model from risks excluded by its assumptions, such as a major process change. When communicating intervals, state whether they describe parameters, future single outcomes or aggregates; confusing these can produce inappropriate staffing or planning commitments.
People also ask
Is it the same as the posterior distribution?
No. The posterior concerns unknown parameters or latent quantities; the posterior predictive concerns observations generated using posterior uncertainty.
Must it be calculated analytically?
No. Simulation is often practical when the integral has no convenient closed form.
Does it always have greater variance than a plug-in prediction?
Not universally for every model and plug-in choice. The worked example shows one common way parameter uncertainty increases predictive dispersion.
Check your understanding
To predict two outcomes sharing an unknown probability, should each simulated pair use one common posterior probability draw?
Answer: Yes, under that model. Draw the shared parameter once per simulated pair, then generate both outcomes conditionally on it.
Related terms
- Likelihood
- Posterior predictive check
- Prediction interval
- Bayesian inference
- Posterior distribution
- prior predictive distribution
Learn next
Learn the law of total variance and the distinction between conditional and marginal independence, then practice posterior predictive simulation and out-of-sample forecast evaluation.
More in Statistics and probability
- Poisson distribution - The Poisson distribution is a probability distribution for a count taking the values 0, 1, 2 and so on.
- Policy capturing - Policy capturing is a research method for describing how people combine information when making judgments or decisions.
- Poly-Weibull distribution - The poly-Weibull distribution is a continuous time-to-event distribution constructed by adding several Weibull-type hazard functions.
- Pólya urn model - A Pólya urn model is a probability model in which sampling changes the probabilities of future samples through a specified reinforcement rule.
- Polynomial regression - Polynomial regression models an outcome using powers of one or more numerical predictors.
- Polynomial trend coefficient - A polynomial trend coefficient is a numerical weight used with other such weights to test a specified trend across ordered group means.
Work in finance? Get the free CFO AI Prompt Pack: 7 prompts for finance leaders.
Sources
Stan User's Guide, Posterior Predictive Sampling: https://mc-stan.org/docs/2_36/stan-users-guide/posterior-prediction.html Stan User's Guide, Posterior and Prior Predictive Checks: https://mc-stan.org/docs/2_36/stan-users-guide/posterior-predictive-checks.html
Previous: Posterior predictive check Next: Posterior predictive p-value