Posterior Summaries
The posterior distribution is the complete answer to a Bayesian inference problem, but it is usually summarised by a point estimate, an interval or a decision. These summaries are derived from decision theory, in which the consequences of each choice are assessed under the posterior distribution. Let be a set of actions and be a loss function, where is the loss incurred by taking action when the true parameter value is The utility of an action is the negative of its loss, so minimising loss and maximising utility are equivalent.
The posterior expected loss of an action is its expected loss under the posterior distribution,
and a Bayes action minimises the posterior expected loss.
A decision rule maps each possible data set to an action, and its frequentist risk at is its expected loss over repeated sampling with fixed, The Bayes risk of a decision rule is its frequentist risk averaged over the prior,
and a Bayes rule minimises the Bayes risk. The decision rule that takes the Bayes action for every data set is a Bayes rule, so acting optimally conditional on the observed data is also optimal on average over data sets. Estimating is the decision problem with and a Bayes action for it is a Bayes estimator.
The Bayes estimator depends on the loss function. The squared error loss gives the posterior mean,
whose posterior expected loss is the posterior variance The absolute error loss gives the posterior median, the median of the posterior distribution. The zero-one loss for small gives, in the limit the posterior mode or maximum a posteriori (MAP) estimate,
The MAP estimate is the maximum likelihood estimate under a flat prior and in general is a penalised maximum likelihood estimate with penalty a normal prior centred at zero penalises and a Laplace prior penalises which are the penalties of ridge and lasso regularisation. The posterior median is invariant under monotonic reparametrisation, the posterior mean only under affine reparametrisation and the posterior mode under neither, since the change of variables factor moves the maximum of the density. The posterior standard deviation is the Bayesian analogue of the standard error.
Let A credible set of credible level is a set that has posterior probability
and a credible interval is a credible set that is an interval. Unlike a confidence interval, which has probability of containing over repeated samples before the data are observed, a credible interval contains with posterior probability given the observed data, which is the statement that a confidence interval is often mistakenly taken to make. Credible sets of a given level are not unique, and two choices are standard. The equal-tailed credible interval places probability in each tail of the posterior distribution,
where is the posterior quantile function, and transforms correctly under monotonic reparametrisation. The highest posterior density (HPD) region is the set of parameter values with posterior density above a threshold chosen to give the required level,
which is the smallest set of that level, is an interval when the posterior is unimodal, may be a union of intervals when it is multimodal and is not invariant under reparametrisation. The two coincide for a symmetric unimodal posterior. By the Bernstein–von Mises theorem both are approximately for large where is the -quantile of the standard normal distribution.
Let and be hypotheses with The posterior probability of a hypothesis is the posterior probability of its parameter set,
and the Bayes action under the loss that charges for wrongly rejecting and for wrongly accepting it is to reject if and only if The hypotheses are treated symmetrically and can be accepted, in contrast to a frequentist test, and the posterior probability of a composite hypothesis is a direct measure of its plausibility rather than a -value. A simple hypothesis has posterior probability zero under a continuous prior, so testing it requires a prior that places positive probability on which is treated as a comparison of two models.
The posterior predictive distribution is summarised in the same way. The Bayes prediction of a future observation under squared error loss is the posterior predictive mean and a predictive interval of level is an interval with posterior predictive probability which is wider than a credible interval for because by the law of total variance
adds the variability of the observation to the uncertainty about the parameter.