ArticleslgStudy

mathematics

Law of total probability

Law of total probability is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Law of total probability rather than just read about it. In short: In probability theory, the law (or formula) of total probability is a fundamental rule relating marginal probabilities to conditional probabilities. It expresses the total probability of an outcome which can be realized via several distinct events, hence the name.

Law of total probability — main illustration
Law of total probability — illustration

Key takeaways

  • Law of total probability belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Law of total probability to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Law of total probability from memory before moving on to harder problems.

Reference excerpt

In probability theory, the law (or formula) of total probability is a fundamental rule relating marginal probabilities to conditional probabilities. It expresses the total probability of an outcome which can be realized via several distinct events, hence the name.

Statement The law of total probability is a theorem that states, in its discrete case, if {Bn:n=1,2,3,…} is a finite or countably infinite set of mutually exclusive and collectively exhaustive events, then for any event A P(A)=∑nP(A∩Bn) or, alternatively, P(A)=∑nP(A∣Bn)P(Bn), where, for any n, if P(Bn)=0, then these terms are simply omitted from the summation since P(A∣Bn) is finite. The summation can be interpreted as a weighted average, and consequently the marginal probability, P(A), is sometimes called "average probability"; "overall probability" is sometimes used in less formal writings. The law of total probability can also be stated for conditional probabilities: P(A∣C)=P(A,C)P(C)=∑nP(A,Bn,C)P(C)=∑nP(A∣Bn,C)P(Bn∣C)P(C)P(C)=∑nP(A∣Bn,C)P(Bn∣C) Taking the Bn as above, and assuming C is an event independent of any of the Bn: P(A∣C)=∑nP(A∣C,Bn)P(Bn)

Continuous case The law of total probability extends to the case of conditioning on events generated by continuous random variables. Let (Ω,ℱ,P) be a probability space. Suppose X is a random variable with distribution function FX, and A an event on (Ω,ℱ,P). Then the law of total probability states P(A)=∫−∞∞P(A|X=x)dFX(x). If X admits a density function fX, then the result is P(A)=∫−∞∞P(A|X=x)fX(x)dx. Moreover, for the specific case where A={Y∈B}, where B is a Borel set, then this yields P(Y∈B)=∫−∞∞P(Y∈B|X=x)fX(x)dx.

Example Suppose that two factories supply light bulbs to the market. Factory X's bulbs work for over 5000 hours in 99% of cases, whereas factory Y's bulbs work for over 5000 hours in 95% of cases. It is known that factory X supplies 60% of the total bulbs available and Y supplies 40% of the total bulbs available. What is the chance that a purchased bulb will work for longer than 5000 hours? Applying the law of total probability, we have: P(A)=P(A∣BX)⋅P(BX)+P(A∣BY)⋅P(BY)=99100⋅610+95100⋅410=594+3801000=9741000 where

P(BX)=610 is the probability that the purchased bulb was manufactured by factory X; P(BY)=410 is the probability that the purchased bulb was manufactured by factory Y; P(A∣BX)=99100 is the probability that a bulb manufactured by X will work for over 5000 hours; P(A∣BY)=95100 is the probability that a bulb manufactured by Y will work for over 5000 hours. Thus each purchased light bulb has a 97.4% chance to work for more than 5000 hours.

Other names The term law of total probability is sometimes taken to mean the law of alternatives, which is a special case of the law of total probability applying to discrete random variables. One author uses the terminology of the "Rule of Average Conditional Probabilities", while another refers to it as the "continuous law of alternatives" in the continuous case. This result is given by Grimmett and Welsh as the partition theorem, a name that they also give to the related law of total expectation.

See also Law of large numbers Law of total expectation Law of total variance Law of total covariance Law of total cumulance Marginal distribution

Notes

References

Illustrations

Law of total probability illustration

Worked examples

Example 1 — a first encounter with Law of total probability

Start with the simplest possible case. Write down what Law of total probability claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Law of total probability before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Law of total probability ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Law of total probability

In research
Law of total probability appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Law of total probability in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Law of total probability is common in secondary-school and first-year university syllabi. It links to neighbouring topics Statistical laws, Theorems in probability theory, so understanding it makes those chapters shorter.
In everyday life
Look for Law of total probability outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Law of total probability” →

How to study Law of total probability in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Law of total probability means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Law of total probability out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Law of total probability in simple terms?

In probability theory, the law (or formula) of total probability is a fundamental rule relating marginal probabilities to conditional probabilities. It expresses the total probability of an outcome which can be realized via several distinct events, hence the name.

Why does Law of total probability matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Law of total probability?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Law of total probability.

Tags

  • Statistical laws
  • Theorems in probability theory

Keep exploring