Lably
Skip to content

Bayesian inference

Method of statistical inference

  • 23 min read
  • 10 chapters

Related on Lably

Through Statistical inference, Bayes' theorem and Evidence

Introduction to Bayes' rule

Formal explanation

Bayesian inference derives the posterior probability as a consequence of two antecedents: a prior probability and a "likelihood function" derived from a statistical model for the observed data. Bayesian inference computes the posterior probability according to Bayes' theorem:

P(H∣E)=P(E∣H)⋅P(H)P(E),

where

  • H stands for any hypothesis whose probability may be affected by data (called evidence below). Often there are competing hypotheses, and the task is to determine which is the most probable.
  • P(H), the prior probability, is the estimate of the probability of the hypothesis H before the data E, the current evidence, is observed.
  • E, the evidence, corresponds to new data that were not used in computing the prior probability.
  • P(H∣E), the posterior probability, is the probability of H given E, i.e., after E is observed. This is what we want to know: the probability of a hypothesis given the observed evidence.
  • P(E∣H) is the probability of observing E given H and is called the likelihood. As a function of E with H fixed, it indicates the compatibility of the evidence with the given hypothesis. The likelihood function is a function of the evidence, E, while the posterior probability is a function of the hypothesis, H.
  • P(E) is sometimes termed the marginal likelihood or "model evidence". This factor is the same for all possible hypotheses being considered (as is evident from the fact that the hypothesis H does not appear anywhere in the symbol, unlike for all the other factors) and hence does not factor into determining the relative probabilities of different hypotheses.
  • P(E)>0, since otherwise the denominator in Bayes' theorem is zero.

For different values of H, only the factors P(H) and P(E∣H), both in the numerator, affect the value of P(H∣E) – the posterior probability of a hypothesis is proportional to its prior probability (its inherent likeliness) and the newly acquired likelihood (its compatibility with the new observed evidence).

In cases where ¬H ("not H"), the logical negation of H, is a valid likelihood, Bayes' rule can be rewritten as follows:

P(H∣E)=P(E∣H)P(H)P(E)=P(E∣H)P(H)P(E∣H)P(H)+P(E∣¬H)P(¬H)=11+(1P(H)−1)P(E∣¬H)P(E∣H)

because

P(E)=P(E∣H)P(H)+P(E∣¬H)P(¬H)

and

P(H)+P(¬H)=1.

This focuses attention on the term

(1P(H)−1)P(E∣¬H)P(E∣H).

If that term is approximately 1, then the probability of the hypothesis given the evidence, P(H∣E), is about 12, about 50% likely - equally likely or not likely. If that term is very small, close to zero, then the probability of the hypothesis, given the evidence, P(H∣E) is close to 1 or the conditional hypothesis is quite likely. If that term is very large, much larger than 1, then the hypothesis, given the evidence, is quite unlikely. If the hypothesis (without consideration of evidence) is unlikely, then P(H) is small (but not necessarily astronomically small) and 1P(H) is much larger than 1 and this term can be approximated as P(E∣¬H)P(E∣H)⋅P(H) and relevant probabilities can be compared directly to each other.

One quick and easy way to remember the equation would be to use rule of multiplication:

P(E∩H)=P(E∣H)P(H)=P(H∣E)P(E).

Alternatives to Bayesian updating

Bayesian updating is widely used and computationally convenient. However, it is not the only updating rule that might be considered rational.

Ian Hacking noted that traditional "Dutch book" arguments did not specify Bayesian updating: they left open the possibility that non-Bayesian updating rules could avoid Dutch books. Hacking wrote: "And neither the Dutch book argument nor any other in the personalist arsenal of proofs of the probability axioms entails the dynamic assumption. Not one entails Bayesianism. So the personalist requires the dynamic assumption to be Bayesian. It is true that in consistency a personalist could abandon the Bayesian model of learning from experience. Salt could lose its savour."

Indeed, there are non-Bayesian updating rules that also avoid Dutch books (as discussed in the literature on "probability kinematics") following the publication of Richard C. Jeffrey's rule, which applies Bayes' rule to the case where the evidence itself is assigned a probability. The additional hypotheses needed to uniquely require Bayesian updating have been deemed to be substantial, complicated, and unsatisfactory.

Sign in to keep reading

9 more chapters are free with a Lably account.

More in Statistics and probability