A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Law of Total Probability

College Depth 93 in the knowledge graph ☐ I know this ☆ Set as goal
568topics build on this
435prerequisites beneath it
See this on the map →
Conditional Probability→→Bayes' TheoremBayes' Theorem and Statistical Inference
probability conditional-probability partitions

Core Idea

If events B₁, B₂, ..., Bₙ partition the sample space, then P(A) = Σ P(A|Bᵢ)P(Bᵢ). This rule allows us to calculate the probability of an event by conditioning on all possible ways it can occur.

How It's Best Learned

Work through examples involving disease diagnosis or quality control where you condition on a known partition. Draw tree diagrams showing all paths to the target event. Practice recognizing when this rule applies.

Common Misconceptions

Not verifying that the events form a partition (they must be mutually exclusive and exhaustive). Forgetting to sum over all conditioning events. Confusing this with just conditional probability.

Explainer

You know from conditional probability that P(A|B) = P(A ∩ B) / P(B), and that rearranging gives the multiplication rule P(A ∩ B) = P(A|B) · P(B). The Law of Total Probability builds directly on this: it asks, what if you want P(A) but it's easier to compute P(A|Bᵢ) for several different conditioning scenarios? The law says that if you have a partition — a collection of events B₁, B₂, …, Bₙ that are mutually exclusive (no two can happen at once) and exhaustive (one of them must happen) — then you can decompose P(A) by conditioning on each partition piece and averaging: P(A) = Σᵢ P(A|Bᵢ) · P(Bᵢ).

The geometric picture makes this transparent. Imagine the sample space as a rectangle. The partition events B₁, B₂, …, Bₙ slice the rectangle into non-overlapping vertical strips that together cover everything. Event A is some blob spread across these strips. The probability P(A) equals the sum of the slices of A within each strip — and each slice is P(A ∩ Bᵢ) = P(A|Bᵢ) · P(Bᵢ). The law is just computing the area of A by summing its area within each strip. The partition requirement ensures the strips cover the whole space with no overlaps, so you account for A exactly once everywhere.

A classic application: suppose 1% of a population has a disease, and a diagnostic test is 90% sensitive (P(positive|disease) = 0.9) and 95% specific (P(negative|no disease) = 0.95, so P(positive|no disease) = 0.05). What is the overall probability of a positive test? The events {disease} and {no disease} partition the population. So P(positive) = P(positive|disease)·P(disease) + P(positive|no disease)·P(no disease) = 0.9 · 0.01 + 0.05 · 0.99 = 0.009 + 0.0495 = 0.0585. Without the Law of Total Probability, you couldn't combine these conditional rates into an overall rate.

This law is the essential prerequisite for Bayes' theorem, which you'll encounter next. Bayes' theorem needs P(A) in the denominator — the "marginal probability" of the evidence — and the Law of Total Probability is exactly how you compute it. Every Bayesian calculation, from medical diagnosis to spam filtering to scientific inference, implicitly uses the Law of Total Probability to compute the denominator. Recognizing that you have a partition, identifying the pieces, and summing the weighted conditionals is the core skill — and the tree diagram is your best tool for staying organized when the partition has more than two parts.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Law of Total Probability

Longest path: 94 steps · 435 total prerequisite topics

Prerequisites (1)

Leads To (2)