Bayes’ Theorem
How to update a belief with new evidence, and why gut feeling fails on rare events.
Bayes' theorem tells you how to update a belief when new evidence arrives. You start with how likely something was before, then adjust it by how well the evidence fits. The classic interview trap is the rare disease test. If only one person in a thousand has the disease, a test that is 99 percent accurate still flags far more healthy people than sick ones, simply because healthy people vastly outnumber the sick. In ML, the same idea powers Naive Bayes and Bayesian optimisation.