Bayes' theorem is the engine of learning from evidence. It tells you how to revise a probability when new information arrives, and it repairs one of the most common and consequential errors in reasoning.
The theorem
Often you know the probability of the evidence given the cause, but you want the reverse: the probability of the cause given the evidence. Bayes' theorem flips one into the other:
Here is your prior: the probability before the evidence; is how likely the evidence is if is true; and is the posterior, your updated belief after seeing .
The rare-disease test
The classic example is a medical test. Suppose a disease affects in people, and a test for it is accurate: it catches almost every case and only rarely misfires. You test positive. What is the chance you are actually sick? Most people guess about . The true answer is closer to .

Why the base rate wins
Picture people. About have the disease and nearly all test positive: call it . But of the healthy people, even a error rate produces about false positives. So there are roughly true positives among positives in total, and your chance of really being sick is about . The disease is so rare (the prior so low) that false alarms swamp the true cases.
The lesson
Ignoring the prior is the base-rate fallacy, and it drives real mistakes in medicine, law, and security screening. Bayes' theorem forces the base rate into the calculation, which is why it underlies spam filters, diagnostic reasoning, and modern machine learning. Its message is simple and profound: evidence should update what you already believed, not replace it.