Skip to content
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

This module opens on its first lesson free; the rest of it unlocks with Premium. Every calculator and simulation below is free.

Probability Foundations lessons (first free)Probability calculatorsCombinatorics calculatorsCoin & Dice simulationPractice questions

Keep reading

More topics

Previous: IndependenceNext: Counting PrinciplesAll statistics topics
StatRiseStatistics, worked step by step.
CalculatorsLessonsPracticeSimulationsGuidesTopicsFormulasPremiumRestore purchasePrivacyTerms

© 2026 StatRise. Calculators, lessons, practice, and simulations for intro statistics and AP Statistics. Progress stays in your browser - no account required.

Results are a study aid. Check anything that matters before you rely on it.

More study tools: CalcRef · Discretica · ScoreMint · PhysRef · Trigonify · SyntaxShelf