P(A|B) = P(A∩B)/P(B) · Bayes' theorem · rare-disease paradox

P(A|B) = P(A∩B)/P(B) — the probability of A given that B has occurred.
Conditional probability is the chance of occurring given that has occurred:
When the “reverse” probabilities are known, we apply Bayes' theorem:
The denominator is from the law of total probability. Bayes' theorem updates our knowledge: it combines the prior probability with the “sensitivity” of the observation . Beware the rare-disease paradox — even an accurate test gives a low when is low.
A way of “inverting” a conditional probability: given P(B|A) we find P(A|B). It combines the prior probability with a new observation, which is why it is the foundation of statistical inference.
For a very rare disease (low P(A)), false alarms from the large group of healthy people outweigh the true detections. This is the rare-disease paradox — a positive result still gives a low P(diseased).
Teaching? Embed this calculator on your site.
Free widget — paste it on your school site, blog or notes. It links to the full version.