Priors
Let be a parametric family for the data and be a family of prior distributions on The family is a conjugate prior family for if and only if the posterior distribution belongs to whenever the prior does, for every possible observation.
Let be a prior distribution on indexed by The parameters of the prior distribution are its hyperparameters, named to distinguish them from the parameter With a conjugate prior the posterior is found by updating the hyperparameters rather than by integration.
Let be iid given with The following are standard conjugate pairs:
- 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 with
Let be a random variable with variance The precision of is the reciprocal of its variance, In the normal conjugate pair the posterior precision is the sum of the prior precision and the data precision, and the posterior mean is the precision-weighted average of the prior mean and the sample mean.
Let be a conjugate prior. The prior sample size of the prior is the number of pseudo-observations that the hyperparameters can be read as representing. Conjugate priors have the following properties:
- in each standard pair the posterior mean is a weighted average of the prior mean and the maximum likelihood estimate, with the weight on the data increasing with
- 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.
Let the data have the exponential family form and and be hyperparameters. The exponential family conjugate prior is the family of priors
The exponential family conjugate prior has the following properties:
- it is conjugate, and the posterior given iid observations has hyperparameters and
- plays the role of the natural statistics of prior observations;
- all of the standard conjugate pairs above are instances of this construction, so conjugate priors exist for every exponential family.
Let be a non-negative function on used as a prior. The prior is proper if and only if it is a probability distribution, that is, its sum or integral over is finite. The prior is improper if and only if its sum or integral over is infinite, such as on Improper priors have the following properties:
- an improper prior cannot represent beliefs, but it can be used formally in Bayes’ theorem provided the resulting posterior is proper;
- the posterior is proper if and only if the marginal likelihood is finite;
- 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 a prior intended to let the data dominate the posterior by expressing as little prior knowledge as possible.
The flat prior is the prior The flat prior 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.
Let be the Fisher information of the population. The Jeffreys prior is the prior proportional to the square root of the Fisher information, or of the determinant of the Fisher information matrix for a vector parameter.
The Jeffreys prior has the following properties:
- it is invariant under reparametrisation, since the Fisher information transforms as and the square root exactly cancels the change of variables factor;
- for a Bernoulli probability it is
- for a normal mean with known variance it is flat;
- 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
The Kullback–Leibler divergence has the following properties:
- by Jensen’s inequality applied to the concave logarithm, 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. The reference prior has the following properties:
- for a scalar parameter under the regularity conditions the reference prior is the Jeffreys prior;
- 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 is a prior that models the group parameters as iid draws from a common distribution with its own unknown hyperparameters The hyperprior is the prior distribution placed on the hyperparameters.
A hierarchical model is a Bayesian model with such levels. In a hierarchical model the group parameters are exchangeable given
Let be group parameters in a hierarchical model. Shrinkage or partial pooling is the property that the posterior for each combines that group’s data with information from the other groups through the posterior of so that the estimates are pulled towards the common mean by an amount that depends on the group sample size and the estimated between-group variation. Shrinkage interpolates between estimating each group separately and pooling all groups into one, and reduces the mean squared error of the group estimates.
Empirical Bayes is the method that replaces the hyperprior by a point estimate of obtained by maximising the marginal likelihood Empirical Bayes approximates the hierarchical analysis but ignores the uncertainty in
Let be the true parameter value and the prior pdf be continuous and positive at Posterior consistency is the property that the posterior probability of every neighbourhood of converges to one almost surely as As the likelihood becomes increasingly concentrated near and the posterior follows it, so the posterior concentrates at the truth regardless of the prior.
Let be the true parameter value, the prior pdf be continuous and positive at and the regularity conditions hold. The Bernstein–von Mises theorem states that 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 Bernstein–von Mises theorem has the following properties:
- the prior washes out: two analysts with different positive priors reach nearly the same posterior given enough data;
- 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.