Skip to main content

TL;DR

Law of Total Probability: Break a complex probability into cases by partitioning the sample space. This concept is essential for quantitative trading interviews and is frequently tested at top firms.

By Valenke Exam Prep Team·Last updated 2026-06-01
Probability

Law of Total Probability

Break a complex probability into cases by partitioning the sample space.

Prerequisites

The Law of Total Probability says: if B1,B2,,BnB_1, B_2, \ldots, B_n partition the sample space (mutually exclusive, collectively exhaustive), then for any event AA: P(A)=i=1nP(ABi)P(Bi)P(A) = \sum_{i=1}^n P(A \mid B_i)\, P(B_i) Intuition: You cannot compute P(A)P(A) directly, but you can compute it within each scenario BiB_i. Weight each conditional probability by how likely that scenario is, and sum. Think of it as a weighted average of probabilities across cases. Concrete example: A factory has two machines. Machine 1 produces 60% of items with a 2% defect rate. Machine 2 produces 40% with a 5% defect rate. What is the overall defect rate? P(defect)=P(defectM1)P(M1)+P(defectM2)P(M2)=0.02(0.6)+0.05(0.4)=0.032P(\text{defect}) = P(\text{defect} \mid M_1)P(M_1) + P(\text{defect} \mid M_2)P(M_2) = 0.02(0.6) + 0.05(0.4) = 0.032 The continuous version replaces the sum with an integral: P(A)=P(AX=x)fX(x)dxP(A) = \int P(A \mid X=x)\, f_X(x)\, dx. When to use: This is the workhorse for computing unconditional probabilities when the problem naturally breaks into cases — different coin types, different urn compositions, different states of the world. It is also the denominator in Bayes' theorem, so mastering it is essential for Bayesian problems. Law of Total Expectation: The same idea extends to expectations: E[X]=iE[XBi]P(Bi)E[X] = \sum_i E[X \mid B_i]\, P(B_i), or in continuous form, E[X]=E[E[XY]]E[X] = E[E[X \mid Y]]. This "tower property" is fundamental in stochastic processes.

Ready to practice for the Valenke Finance Exam?

Adaptive practice powered by Item Response Theory targets your weak areas. Start with 3 free sessions.

Start free practice →