Skip to content
All articles
statisticsprobabilityAI

Bayes' Theorem for Beginners

Learn P(A|B) = P(B|A)P(A)/P(B) — the equation for updating beliefs with evidence, from medicine to AI.

7 min read · 2026-06-08

Bayes' theorem tells you how to update prior beliefs when new evidence arrives. Posterior = (likelihood × prior) / evidence.

A medical example

A rare disease affects 1% of people. A test is 99% accurate. If you test positive, what's the chance you have the disease? Bayes says: much lower than 99% — because the disease is rare. Base rates matter.

Modern AI

Spam filters, medical diagnosis tools, and Bayesian neural networks all use this framework. Rational learning from data is Bayes in action.

Explore interactively

Open equation page