Priors
Let be a parametric family for the data and be a family of prior distributions on is a conjugate prior family for if and only if the posterior distribution belongs to whenever the prior does, for every possible observation.
With a conjugate prior the posterior is found by updating the parameters of the prior, called hyperparameters to distinguish them from the parameter rather than by integration. Let be iid given with Standard conjugate pairs are:
- or data with gives with for Bernoulli data;
- data with gives
- data with gives
- data with gives where is the vector of category counts;
- data with known and gives a normal posterior whose precision, the reciprocal of the variance, is the sum of the prior precision and the data precision, and whose mean is the precision-weighted average of the prior mean and the sample mean,
In each case the posterior mean is a weighted average of the prior mean and the maximum likelihood estimate, with the weight on the data increasing with and the hyperparameters can be read as a prior sample size of pseudo-observations: the prior acts like prior successes and prior failures. For normal data with unknown mean and variance the conjugate prior is the normal-inverse-gamma distribution, in which has an inverse-gamma prior and given has a normal prior.
Conjugate priors exist for every exponential family. Let the data have the exponential family form The family of priors
with hyperparameters and is conjugate, and the posterior given iid observations has hyperparameters
so plays the role of the natural statistics of prior observations. All of the conjugate pairs above are instances of this construction.
A prior is proper if it is a probability distribution and improper if its pmf or pdf has an infinite sum or integral over such as on An improper prior cannot represent beliefs, but it can be used formally in Bayes’ theorem provided the resulting posterior is proper, which holds if and only if the marginal likelihood is finite. For example, the prior on a normal mean gives the proper posterior Improper priors are often limits of conjugate priors as the prior sample size tends to zero.
A non-informative prior is intended to let the data dominate the posterior by expressing as little prior knowledge as possible. The flat prior is the obvious candidate, but it is not invariant under reparametrisation: if has a flat prior then by the change of variables formula has prior which is not flat unless is affine, so flatness depends on the parametrisation chosen. The Jeffreys prior is proportional to the square root of the Fisher information,
for a vector parameter, and is invariant under reparametrisation, since the Fisher information transforms as and the square root exactly cancels the change of variables factor. The Jeffreys prior for a Bernoulli probability is for a normal mean with known variance it is flat and for a normal standard deviation with known mean it is which is flat in It is often improper and can perform poorly for vector parameters.
Let and be pmfs or pdfs on the same space. The Kullback–Leibler divergence from to is the expected log ratio of the two densities under
which by Jensen’s inequality applied to the concave logarithm satisfies with equality if and only if almost everywhere. It measures how different is from but is not symmetric and so is not a distance. A reference prior is the prior that maximises the expected Kullback–Leibler divergence from the prior to the posterior, that is the expected information about gained from the data, in the limit of large samples. For a scalar parameter under the regularity conditions the reference prior is the Jeffreys prior, and for vector parameters the reference prior construction treats parameters of interest and nuisance parameters in turn and avoids the problems of the multivariate Jeffreys prior.
A weakly informative prior is a proper prior that rules out implausible parameter values but is otherwise diffuse relative to the information in the data, such as a normal prior with a large variance on a location parameter or a half-Cauchy or half-normal prior on a scale parameter. Weakly informative priors regularise the posterior, keep it proper and stabilise computation, and are the usual default in practice.
Let be the parameters of related groups of observations. A hierarchical prior models the group parameters as iid draws from a common distribution with its own unknown hyperparameters which are given a hyperprior.
A model with such levels is a hierarchical model, and the group parameters are exchangeable given The posterior for each combines that group’s data with information from the other groups through the posterior of so the estimates are pulled towards the common mean by an amount that depends on the group sample size and the estimated between-group variation. This shrinkage or partial pooling interpolates between estimating each group separately and pooling all groups into one, and reduces the mean squared error of the group estimates. Empirical Bayes replaces the hyperprior by a point estimate of obtained by maximising the marginal likelihood which approximates the hierarchical analysis but ignores the uncertainty in
Let be the true parameter value and suppose the prior pdf is continuous and positive at As the likelihood becomes increasingly concentrated near and the posterior follows it. Posterior consistency states that the posterior probability of every neighbourhood of converges to one almost surely, so the posterior concentrates at the truth regardless of the prior. The Bernstein–von Mises theorem states that under the regularity conditions the posterior distribution is asymptotically normal and centred at the maximum likelihood estimate with variance given by the Fisher information,
in the sense that the total variation distance between the two distributions converges to zero in probability. The prior therefore washes out: two analysts with different positive priors reach nearly the same posterior given enough data, and Bayesian interval estimates asymptotically coincide with frequentist confidence intervals. The theorem fails when the regularity conditions do not hold, when the true value lies on the boundary of the parameter space, or when the number of parameters grows with the sample size, as in non-parametric models, where the prior can matter even asymptotically.