Skip to content

Statistics · Ch 5 — Probability

Bayes' Theorem (Introduction)

6

Bayes' Theorem (Introduction)

Bayes' Theorem answers a distinctive kind of question: given that an OUTCOME has already been observed, what is the probability it came from one particular CAUSE among several possible causes? This reverses the usual direction of a conditional-probability question (which normally runs cause → effect); Bayes' Theorem runs effect → cause.

Setup — the Law of Total Probability. Suppose E1,E2,…,EnE_1, E_2, \ldots, E_n are mutually exclusive and exhaustive events (they partition the sample space — exactly one of them must occur), and AA is any event that can occur along with one of the EiE_i's. The overall probability of AA is then built up from every possible 'path' to it:

P(A)=P(E1)P(A∣E1)+P(E2)P(A∣E2)+⋯+P(En)P(A∣En)=∑i=1nP(Ei)P(A∣Ei)P(A)=P(E_1)P(A|E_1)+P(E_2)P(A|E_2)+\cdots+P(E_n)P(A|E_n)=\sum_{i=1}^{n}P(E_i)P(A|E_i)

Bayes' Theorem. Given that AA has occurred, the (reversed) probability that it happened via cause EiE_i specifically is:

P(Ei∣A)=P(Ei) P(A∣Ei)∑j=1nP(Ej) P(A∣Ej)P(E_i|A)=\dfrac{P(E_i)\,P(A|E_i)}{\displaystyle\sum_{j=1}^{n}P(E_j)\,P(A|E_j)} …

Definition 1Law of Total Probability and Bayes' Theorem

P(A)=∑iP(Ei)P(A∣Ei)P(A)=\sum_i P(E_i)P(A|E_i); Bayes' Theorem: P(Ei∣A)=P(Ei)P(A∣Ei)∑jP(Ej)P(A∣Ej)P(E_i|A)=\dfrac{P(E_i)P(A|E_i)}{\sum_j P(E_j)P(A|E_j)}, where E1,…,EnE_1,\ldots,E_n are mutually …