Bayesian Inference
In Bayesian statistics the unknown parameter of a population is modelled as a random variable, so that uncertainty about is expressed with a probability distribution and probability statements can be made about itself rather than only about data. Let be a random sample from the population with pmf or pdf which as a function of for observed is the likelihood The prior distribution of with pmf or pdf represents beliefs about before the data are observed. A Bayesian model is the joint distribution of the data and the parameter,
in which the likelihood is the conditional distribution of the data given the parameter.
The posterior distribution of is its conditional distribution given the observed data, obtained from Bayes’ theorem for densities.
The denominator is the marginal likelihood or evidence, the marginal pmf or pdf of the data obtained by integrating the parameter out of the Bayesian model,
with the integral replaced by a sum for a discrete parameter. It does not depend on so the posterior distribution is determined up to a normalising constant by the product of the likelihood and the prior.
The posterior distribution contains everything the data and the prior say about and all Bayesian inference about is derived from it. For example, let be iid with successes and prior Then
which is the kernel of a distribution, so the posterior mean the mean of the posterior distribution, lies between the prior mean and the maximum likelihood estimate and moves towards the latter as grows.
Since the likelihood depends on the data only through a sufficient statistic by the factorisation theorem, so does the posterior distribution: More generally the posterior depends on the data only through the likelihood function, so two experiments that produce proportional likelihoods lead to the same inference, a property known as the likelihood principle that frequentist procedures based on sampling distributions do not share.
Bayesian updating is sequential: if the data arrive in two parts and that are conditionally independent given then the posterior after the first part serves as the prior for the second, and the result is the same as updating on all the data at once.
For iid data the posterior therefore does not depend on the order in which the observations are processed.
Let where only is of interest and is a nuisance parameter. The marginal posterior distribution of is obtained by integrating the nuisance parameter out of the joint posterior, which accounts for the uncertainty about rather than fixing it at an estimate.
Let be a future observation from the same population, conditionally independent of given The posterior predictive distribution of is its conditional distribution given the observed data, obtained by averaging the population distribution over the posterior distribution of the parameter.
The posterior predictive distribution incorporates both the randomness of given and the remaining uncertainty about so it is more dispersed than for any point estimate The marginal likelihood is the prior predictive distribution, the same construction with the prior in place of the posterior, and describes what data the model expects before any are seen. In the Bernoulli example the posterior predictive probability of a success is the posterior mean,
The use of a prior distribution is justified by the following representation of data that are judged to be symmetric. A sequence of random variables is exchangeable if and only if the joint distribution of any finite subcollection is invariant under permutations of the indices,
so that the order of the observations carries no information. An iid sequence is exchangeable, but an exchangeable sequence need not be independent: if and the are iid given then the are exchangeable but positively correlated, since each observation carries information about the common
De Finetti’s representation theorem states that an infinite sequence of binary random variables is exchangeable if and only if it is a mixture of iid Bernoulli sequences: there exists a unique distribution on such that
where is the almost sure limit of the relative frequency and is its distribution. The theorem generalises to real-valued exchangeable sequences, which are mixtures of iid sequences from some distribution with a prior over It shows that assuming exchangeability is equivalent to assuming a parametric model with iid observations given a parameter together with a prior distribution on that parameter, so the prior is not an optional addition but the distribution of the limiting frequency implied by the symmetry judgement, and the parameter is given meaning as a long-run property of the observable sequence.