Bayes' theorem: P(A|B) = P(B|A) x P(A) / P(B), which flips a conditional probability and updates a prior belief with evidence.
Example: a disease affects 1% of people; the test detects it 99% of the time and gives a false positive 5% of the time. For a positive test, P(disease|positive) = (0.99 x 0.01) / (0.99 x 0.01 + 0.05 x 0.99) = 0.0099 / 0.0594, about 16.7%.
The surprise comes from the low base rate: most positives are false positives. This is the same reason precision drops on imbalanced datasets.
Naive Bayes classifiers and Bayesian updating build on this theorem.
Loading…