Introduction
Some probability questions are hard because several different situations can lead to the same outcome. The law of total probability offers a practical way to handle them: divide the possibilities into clear, non-overlapping cases, work out the chance of the outcome within each case, and combine those chances using the likelihood of each case. This article explains the method, its conditions, and how to avoid common mistakes.
- The Basic Idea: Split One Question into Cases
- What Makes a Good Set of Cases?
- A Worked Example with Two Suppliers
- How to Apply the Rule Step by Step
- A Second Example: A Fair Die
- Why the Weights Matter
- Common Mistakes to Avoid
- How It Relates to Conditional Probability and Bayes’ Rule
- When the Law Is Especially Useful
- Conclusion
The Basic Idea: Split One Question into Cases
The law of total probability is a rule for finding the chance of an event when that chance depends on which situation applies. Instead of trying to calculate the event directly, break the problem into cases that cover every possibility. Then calculate the event’s probability within each case and weight it by how likely that case is.
For example, a parcel might arrive through one of several delivery routes, and the chance of delay may differ by route. The overall chance of a delay depends both on how often each route is used and on how often parcels on that route are delayed. Looking only at the delay rate for one route would not answer the question for all parcels.
In probability notation, let A be the event of interest and let B₁, B₂, …, Bₙ be a set of cases. The law says:
P(A) = P(A|B₁)P(B₁) + P(A|B₂)P(B₂) + … + P(A|Bₙ)P(Bₙ)
Here, P(A) means the probability that A happens. P(Bᵢ) is the probability that case Bᵢ applies, and P(A|Bᵢ) means the probability of A given that Bᵢ applies. Each conditional probability is multiplied by the probability of its case. The resulting weighted values are added.
What Makes a Good Set of Cases?
The cases must meet two important conditions. First, they must be mutually exclusive: no single outcome can belong to two cases at once. Second, they must be exhaustive: together, they must include every possibility in the situation being considered. In everyday language, the cases should not overlap, and there should be no missing case.
Suppose a small shop receives products from Supplier A or Supplier B. If every product comes from exactly one of these suppliers, “from A” and “from B” form a suitable set of cases. But if there is also a Supplier C, leaving it out would make the list incomplete. The formula could then miss part of the overall probability.
Cases do not have to be equally likely. One case may account for most of the situation, while another is rare. The weighting in the formula accounts for this difference. A high event rate in a rare case may contribute less to the overall probability than a moderate event rate in a common case.
A Worked Example with Two Suppliers
Imagine a shop receives 60% of its items from Supplier A and 40% from Supplier B. In this hypothetical example, 2% of A’s items and 5% of B’s items have a packaging flaw. What is the probability that a randomly selected item has the flaw?
The event of interest is “the item has a packaging flaw.” The cases are “the item came from A” and “the item came from B.” These cases are mutually exclusive and exhaustive because each item comes from one of the two suppliers.
For Supplier A, the contribution is 0.60 × 0.02 = 0.012, or 1.2 percentage points. For Supplier B, it is 0.40 × 0.05 = 0.020, or 2 percentage points. Add the contributions: 0.012 + 0.020 = 0.032. The overall probability of a flaw is therefore 3.2% in this example.
It would be incorrect simply to average 2% and 5%, which gives 3.5%, unless the suppliers were equally likely sources. Since more items come from A, A’s rate deserves greater weight. The law of total probability captures the actual mix of sources.
How to Apply the Rule Step by Step
1. Define the event. State precisely what probability you want. A clear event avoids confusion later. In the supplier example, the event was a packaging flaw, not the item coming from a particular supplier.
2. Choose the cases. Identify the different situations that could apply. Cases may describe a source, a route, a category, or a stage in a process. Choose a level of detail that makes the conditional probabilities understandable without making the list unmanageable.
3. Check the cases. Confirm that they do not overlap and that they cover every possibility. If an outcome could fit in two cases, refine the categories. If some outcomes fit nowhere, add a missing case.
4. Find each case probability. Work out P(Bᵢ), the chance that each case applies. These values should add to 1 when the cases are exhaustive and are defined over the same set of possibilities.
5. Find the conditional probabilities. For each case, calculate P(A|Bᵢ): the chance of the event within that case. Pay attention to the direction of the condition. “Chance of a flaw given Supplier A” is not the same question as “chance the item came from A given that it has a flaw.”
6. Multiply and add. Multiply each case probability by its corresponding conditional probability, then sum the results. Keeping the pairs together helps prevent accidentally using the event rate from one case with the probability of another.
A Second Example: A Fair Die
The rule also works when cases are categories of outcomes rather than sources. Consider a fair six-sided die and ask for the probability of rolling an even number. One way to divide the outcomes is into the cases “roll a 1, 2, or 3” and “roll a 4, 5, or 6.” Each case has probability one-half.
Given the first case, only the 2 is even, so the conditional probability of an even result is one-third. Given the second case, both 4 and 6 are even, so the conditional probability is two-thirds. Applying the rule gives (1/3 × 1/2) + (2/3 × 1/2) = 1/2.
The direct method—counting the three even faces out of six—also gives one-half. The case-based method reaches the same answer while demonstrating how a larger probability can be assembled from smaller conditional questions. The best method depends on which makes the structure of a particular problem clearest.
Why the Weights Matter
The law is a weighted average of the conditional probabilities. The weights are the probabilities of the cases, and they add to 1. As a result, the overall probability must fall between the smallest and largest conditional probabilities, provided the cases have nonzero probability and cover the full situation.
This gives a useful reasonableness check. If every case has an event probability between 2% and 8%, an overall probability of 20% cannot follow from correctly weighted cases. Something in the setup or arithmetic is likely wrong. The check does not identify the error, but it can flag an implausible result.
Weighting also explains why changing the mix of cases can change the overall probability even when the conditions within each case stay the same. If a larger share of items comes from a supplier with a higher flaw rate, the combined rate may rise. The conditional rates have not changed; the composition has.
Common Mistakes to Avoid
Using an incomplete list. If the cases leave out a possible source or outcome, the sum does not represent the full probability. Check that the case probabilities add to 1.
Allowing overlap. If an outcome is counted in two cases, it may be included twice. Make the categories distinct, or use a more carefully designed probability model.
Taking an unweighted average. Averaging conditional probabilities equally is appropriate only when the cases are equally likely. In general, multiply each conditional probability by its case probability.
Reversing a conditional probability. P(A|B) asks for the chance of A among cases where B is known to apply. It generally differs from P(B|A). Knowing the flaw rate for products from a supplier does not, by itself, tell you what proportion of flawed products came from that supplier.
Mixing incompatible information. Each conditional probability must match its case. If the cases describe delivery routes, use delay rates for those same routes—not rates grouped by some unrelated category.
How It Relates to Conditional Probability and Bayes’ Rule
The law of total probability is built from conditional probabilities. It combines them to recover an overall probability. Conditional probability moves in the other direction from the original broad question: instead of asking how likely an event is overall, it asks how likely the event is after a particular case is known.
Bayes’ rule uses the same ingredients but answers a different question. It can find the probability of a case after learning that an event occurred. In symbols, P(Bᵢ|A) = P(A|Bᵢ)P(Bᵢ) / P(A), when P(A) is greater than zero. The law of total probability can supply the denominator P(A) by adding contributions across all cases.
In the supplier example, the law gives the overall chance of a flaw. A Bayes’ rule question would instead ask: if an item is known to have a flaw, what is the chance it came from Supplier A? That distinction matters whenever information is used to update what is known about the source of an outcome.
When the Law Is Especially Useful
The method is most helpful when an event has different probabilities under different conditions and the overall question does not specify which condition applies. It appears in quality checks, reliability estimates, weather-related planning, survey analysis, and many other settings. The details differ, but the pattern is the same: identify cases, estimate their weights, and calculate the event chance within each one.
It is also useful for organizing a complicated problem. A direct calculation may seem difficult because several pathways lead to the same result. Dividing those pathways into cases can reveal simpler calculations. The method does not make uncertain or incomplete information reliable, however. Its result is only as sound as the case definitions and probability estimates used.
Conclusion
The law of total probability turns a broad question into a set of smaller conditional questions. To use it, divide all possibilities into non-overlapping, exhaustive cases, multiply each case’s probability by the event’s probability within that case, and add the contributions. Careful weighting is essential: the overall answer reflects both what happens in each case and how often that case occurs.

