Home / Statistics Topics

Module 2 · Probability Foundations · Topic 8

Bayes' Theorem

Intuition. Bayes’ theorem lets you reverse conditional probabilities. If you know P(B | A) and want P(A | B), Bayes’ theorem connects them using the prior probability P(A) and the total probability P(B).

Open the interactive lessonAll topics

Key formulas

Bayes' Theorem

P(A | B) = P(B | A) × P(A) / P(B)

From the Probability Foundations formula sheet

  • Conditional Probability: P(A | B) = P(A and B) / P(B) — Probability of A after restricting attention to cases where B occurred.
  • Bayes' Theorem: P(A | B) = P(B | A)P(A) / P(B) — Updates a prior probability after observing evidence.

See the full formula reference

Worked example

Medical Test Example

A disease affects 1% of people. A test is 95% sensitive (positive when sick) and 90% specific (negative when healthy). P(sick | positive) = (0.95 × 0.01) / ((0.95 × 0.01) + (0.10 × 0.99)) = 0.0095 / 0.1085 ≈ 8.8%.

When to use it

Base Rate Neglect

The medical test example shows why rare diseases lead to many false positives. Always consider the base rate (prior probability) - ignoring it is one of the most common probability mistakes.

Related glossary terms

  • Independence: Two events are independent when one occurring does not change the probability of the other. Example: Two separate fair coin flips are independent.

Browse the full glossary

Go interactive

Work this topic in StatRise

Start with the free descriptive-statistics module and daily practice; this module's tracked lesson unlocks with Premium.

Probability Foundations lesson (Premium)Probability calculatorsCombinatorics calculatorsCoin & Dice simulationPractice questions

Keep reading

More topics

Previous: IndependenceNext: Counting PrinciplesAll statistics topics
CalculatorsLessonsPracticeGuidesTopicsPremiumRestore purchasePrivacyTerms

© 2026 StatRise. Statistics calculators, lessons, practice, and simulations — progress stays in your browser, no account required.

More study tools: CalcRef · Discretica · ScoreMint · PhysRef