Bayes’ Rule (Bayes’ Theorem)
Context
“Bayesian inference is important because it provides a normative and general-purpose procedure for reasoning under uncertainty.” Inductive Reasoning: Experimental, Developmental, and Computational Approaches, edited by Aidan Feeney and Evan Heit
Bayesian inference refers to an approach first proposed by Rev. Thomas Bayes (1702-1761), whose rule allows calculating the probability of an event upon observing an event .
Bayes’ Rule
Bayes’ rule relates the conditional and marginal probabilities of events and . When , it gives the probability of given from the probability of given and the marginal probabilities.
Posterior
The posterior probability is the conditional probability of event given event .
“Posterior” describes the probability after conditioning on . The events and can occur in either order.
In the 592-student sample, 94 students have both traits. Among the 215 blue-eyed students, 43.7% have blond hair. Among the 127 blond students, 74.0% have blue eyes. Each bar shows the size of the group being considered.
Prior
The prior probability is the marginal probability of event before conditioning on . The unconditional probability was first called “a priori” by Sir Ronald A. Fisher .
The marginal probability is the probability of event .
“Prior” describes when the probability is assessed relative to conditioning.
Likelihood ratio
This ratio is the multiplier that takes the prior probability to the posterior probability . Its denominator is the marginal probability of .
Blue eyes occur in 74.0% of blond students and 36.3% of all students. Dividing these rates gives the probability multiplier of about 2.04. Applying it to the prior of 21.5% gives a posterior of 43.7%, using unrounded values.
A Bayes factor compares the likelihood of the same evidence under two hypotheses. For hypotheses and , the ratio multiplies the prior odds of versus to give the posterior odds. Kass and Raftery, Bayes Factors
Compare the frequency of blue eyes in the blond group with their frequency in the other hair-color group. Blue eyes are about 2.84 times as likely in the blond group. Multiplying the prior odds by this Bayes factor gives posterior odds of 94 to 121.