Theorem — Bayes
Let and be two events with . Then: If moreover is a partition of , for each :
Proof
From the product formula and , equating the right-hand sides gives the first formula. The second is the first with the total probability in the denominator. ∎
Remark — The intuition behind Bayes
Bayes’ theorem lets us invert a conditional probability: from to . It is the tool for going from a “cause” () to an “effect” () and then asking, given the effect, what is the probability that was the cause. It is at the heart of probabilistic reasoning in medicine, justice, diagnostics, and machine learning.
Example — Diagnostic test, completed
A rare disease affects of the population. A diagnostic test has sensitivity () and specificity (). A person tests positive. What is the probability that they are actually ill?
We have already computed (the sum of the two paths). Bayes: Moral: even though the test is very accurate, the posterior probability of being ill given a positive test is only . The reason is that the disease is so rare that the false positives (healthy people with a positive test) far outnumber the true positives. This is the famous “base rate fallacy” in the interpretation of diagnostic tests.
Links
Topics: Probability
Concepts: Conditional probability · Total probability · Bayes’ theorem
Methods: Bayes · Conditional prob · Total prob
Skills: Calculating probability · Using formulae
People: Thomas Bayes