Law of total probability

全概率公式

How does the law of total probability work?

Split the sample space into cases; the probability of the event is the sum over cases of the chance within each weighted by the case's probability.

TheoremKP000846

Sign in to read the whole lesson, with 8 exercises

Sign in / Sign up

Mastery goals

  • Can partition a sample space into cases
  • Can compute a probability by conditioning on a partition

7.1.2 The Law of Total Probability

In the last section, to find the probability of entering a bank card PIN correctly, we first wrote a complicated event as the result of operations on simple events and then used the addition rule and the multiplication rule of probability. Here is another problem about the probability of a complicated event.

Because drawing lots is fair, the probability of a red ball on the 2nd draw should also be . But this is not obvious, since the result of the 2nd draw is affected by the result of the 1st. Here is a rigorous derivation.

Let be the event "red ball on the th draw" and the event "blue ball on the th draw", . As in Figure 7.1-2, according to the possible results of the 1st draw (red or blue), the event can be written as the union of two mutually exclusive events: .

P(R₁)P(B₁)P(R₂∣R₁)P(B₂∣R₁)P(R₂∣B₁)P(B₂∣B₁)R₁B₁R₂ ‒ ‒ ‒ R₁R₂B₂ ‒ ‒ ‒ R₁B₂R₂ ‒ ‒ ‒ B₁R₂B₂ ‒ ‒ ‒ B₁B₂
Figure 7.1-2: a tree diagram. The two branches of the first level are a red ball () or a blue ball () on the 1st draw, the second level is the result of the 2nd draw, each branch carries its probability, and the results of the two draws are on the far right.

By the addition rule and the multiplication rule,

The method used here is: by some criterion, write a complicated event as the union of two mutually exclusive events, then use the addition rule and the multiplication rule to find its probability.

In general, let , , …, be pairwise mutually exclusive events with and , . Then for any event ,

We call this formula the law of total probability (the total probability formula). It is one of the most basic formulas in probability theory.

Example 4

A school has two canteens, A and B. On day 1, Wang chooses one of the canteens at random for lunch. If Wang goes to canteen A on day 1, the probability of going to canteen A on day 2 is ; if Wang goes to canteen B on day 1, the probability of going to canteen A on day 2 is . Find the probability that Wang has lunch in canteen A on day 2.

Analysis: Which canteen Wang goes to on day 2 depends on where Wang ate on day 1. According to the canteen chosen on day 1, the sample space can be written as the union of the two mutually exclusive events "canteen A on day 1" and "canteen B on day 1", and then the law of total probability applies.

Solution: Let "lunch in canteen A on day 1", "lunch in canteen B on day 1" and "lunch in canteen A on day 2". Then , and and are mutually exclusive. From the problem,

By the law of total probability,

So the probability that Wang has lunch in canteen A on day 2 is .

Related points

All points in this topic

Cite this page: Law of total probability · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000846