Bayesian Inference
Let be a random sample from the population with pmf or pdf and parameter In Bayesian statistics the parameter 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. The pmf or pdf viewed as a function of for observed is the likelihood
Let be a parameter modelled as a random variable. The prior distribution of is the probability distribution of with pmf or pdf that represents beliefs about before the data are observed.
Let be a random sample with pmf or pdf and have prior distribution 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.
Let be a Bayesian model. The marginal likelihood or evidence of the data is 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.
Let be a Bayesian model and be the observed data. The posterior distribution of is the conditional distribution of given the observed data, obtained from Bayes’ theorem for densities.
The posterior distribution has the following properties:
- the marginal likelihood 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;
- by the factorisation theorem the likelihood depends on the data only through a sufficient statistic so
Let be a posterior distribution. The posterior mean of is the mean of the posterior distribution. For example, let be iid with successes and prior Then
which is the kernel of a distribution. The posterior mean lies between the prior mean and the maximum likelihood estimate and moves towards the latter as grows.
The likelihood principle is the principle that inference about should depend on the data only through the likelihood function. Bayesian inference satisfies the likelihood principle, since the posterior depends on the data only through the likelihood, so two experiments that produce proportional likelihoods lead to the same inference. Frequentist procedures based on sampling distributions do not satisfy the likelihood principle.
Let the data arrive in two parts and that are conditionally independent given Sequential updating is the property that the posterior after the first part serves as the prior for the second part, 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 be a parameter of which only is of interest. The component is a nuisance parameter.
Let with nuisance parameter and joint posterior The marginal posterior distribution of is the posterior distribution of obtained by integrating the nuisance parameter out of the joint posterior.
The marginal posterior distribution 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 the conditional distribution of 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 In the Bernoulli example the posterior predictive probability of a success is the posterior mean,
Let be an observation from the population. The prior predictive distribution of is the distribution obtained by averaging the population distribution over the prior distribution of the parameter, which is the marginal likelihood. The prior predictive distribution describes what data the model expects before any are seen.
Let be a sequence of random variables. The sequence is exchangeable if and only if the joint distribution of any finite subcollection is invariant under permutations of the indices.
Exchangeability has the following properties:
- the order of the observations carries no information;
- an iid sequence is exchangeable;
- 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
Let be an infinite sequence of binary random variables. De Finetti’s representation theorem states that the sequence is exchangeable if and only if it is a mixture of iid Bernoulli sequences, that is, there exists a unique distribution on such that
De Finetti’s representation theorem has the following properties:
- 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
- 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 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.