Bayes' Theorem
Bayes' theorem reverses conditional probabilities: it updates the probability of a hypothesis A after observing evidence B. It is central to medical testing, spam filters and Bayesian statistics.
LaTeX
P(A\mid B)=\frac{P(B\mid A)\,P(A)}{P(B)}Variables
- prior probability
- likelihood
- total probability of the evidence
- posterior probability
Example
1% of people have a disease. A test detects it 90% of the time and gives 5% false positives. Probability of disease after a positive test?
- .
- .
Answer: (about 15%).