Bayes’ Theorem
The mathematical recipe for updating beliefs given evidence — and why intuition fails on rare events.
Bayes’ Theorem updates a prior probability P(A) into a posterior P(A|B) upon observing evidence B: P(A|B) = P(B|A)P(A) / P(B). In machine learning, it underpins Naive Bayes, MAP estimation, Bayesian optimization, and VAEs. The key interview insight is base-rate neglect: when prior probability is low, even a test with 99% accuracy yields more false positives than true positives.