Lably
Skip to content

Posterior predictive distribution

Distribution of new data marginalized over the posterior

  • 7 min read
  • 3 chapters

Related on Lably

Through Normal distribution, Average and Variance

Given a set of N i.i.d. observations X={x1,…,xN}, a new value x~ will be drawn from a distribution that depends on a parameter θ∈Θ, where Θ is the parameter space.

p(x~|θ)

It may seem tempting to plug in a single best estimate θ^ for θ, but this ignores uncertainty about θ, and because a source of uncertainty is ignored, the predictive distribution will be too narrow. Put another way, predictions of extreme values of x~ will have a lower probability than if the uncertainty in the parameters as given by their posterior distribution is accounted for.

A posterior predictive distribution accounts for uncertainty about θ. The posterior distribution of possible θ values depends on X:

p(θ|X)

And the posterior predictive distribution of x~ given X is calculated by marginalizing the distribution of x~ given θ over the posterior distribution of θ given X:

p(x~|X)=∫Θp(x~|θ)p(θ|X)dθ

Because it accounts for uncertainty about θ, the posterior predictive distribution will in general be wider than a predictive distribution which plugs in a single best estimate for θ.

Prior vs. posterior predictive distribution

The prior predictive distribution, in a Bayesian context, is the distribution of a data point marginalized over its prior distribution G. That is, if x~∼F(x~|θ) and θ∼G(θ|α), then the prior predictive distribution is the corresponding distribution H(x~|α), where

pH(x~|α)=∫θpF(x~|θ)pG(θ|α)dθ

This is similar to the posterior predictive distribution except that the marginalization (or equivalently, expectation) is taken with respect to the prior distribution instead of the posterior distribution.

Furthermore, if the prior distribution G(θ|α) is a conjugate prior, then the posterior predictive distribution will belong to the same family of distributions as the prior predictive distribution. This is easy to see. If the prior distribution G(θ|α) is conjugate, then

p(θ|X,α)=pG(θ|α′),

i.e. the posterior distribution also belongs to G(θ|α), but simply with a different parameter α′ instead of the original parameter α. Then,

p(x~|X,α)=∫θpF(x~|θ)p(θ|X,α)dθ=∫θpF(x~|θ)pG(θ|α′)dθ=pH(x~|α′)

Hence, the posterior predictive distribution follows the same distribution H as the prior predictive distribution, but with the posterior values of the hyperparameters substituted for the prior ones.

The prior predictive distribution is in the form of a compound distribution, and in fact is often used to define a compound distribution, because of the lack of any complicating factors such as the dependence on the data X and the issue of conjugacy. For example, the Student's t-distribution can be defined as the prior predictive distribution of a normal distribution with known mean μ but unknown variance σx2, with a conjugate prior scaled-inverse-chi-squared distribution placed on σx2, with hyperparameters ν and σ2. The resulting compound distribution t(x|μ,ν,σ2) is indeed a non-standardized Student's t-distribution, and follows one of the two most common parameterizations of this distribution. Then, the corresponding posterior predictive distribution would again be Student's t, with the updated hyperparameters ν′,σ2′ that appear in the posterior distribution also directly appearing in the posterior predictive distribution.

In some cases the appropriate compound distribution is defined using a different parameterization than the one that would be most natural for the predictive distributions in the current problem at hand. Often this results because the prior distribution used to define the compound distribution is different from the one used in the current problem. For example, as indicated above, the Student's t-distribution was defined in terms of a scaled-inverse-chi-squared distribution placed on the variance. However, it is more common to use an inverse gamma distribution as the conjugate prior in this situation. The two are in fact equivalent except for parameterization; hence, the Student's t-distribution can still be used for either predictive distribution, but the hyperparameters must be reparameterized before being plugged in.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Statistics