Skip to content
Gioi Toan
Start learning
A smiling die next to a coin

Notes on Lesson 2: Total probability formula and Bayes' formula (Maths 12 Chan troi sang tao, Chapter VI)

Lesson summary

Given two events AA and BB with 0<P(B)<10 < P(B) < 1.

Suppose AA and BB are two random events satisfying P(A)>0P(A) > 0 and 0<P(B)<10 < P(B) < 1.

You can picture event AA as the "destination", while BB and B‾\overline{B} are two paths leading to it.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Sử dụng được công thức xác suất toàn phần và công thức Bayes

In medicine, a rapid test can give a positive result, but whether the person actually has the disease depends on the rate of the disease in the community. Today's lesson will equip you with two powerful tools: the total probability formula, which helps compute the probability of an event by splitting it into cases, and Bayes' formula, which helps "reverse" the problem to find the cause when the result is known. These two formulas are useful not only in medical testing but also in many other real situations such as product inspection, weather forecasting,...

Practise similar problems

Key ideas: what do you need to know?

The total probability formula

  • Given two events AA and BB with 0<P(B)<10 < P(B) < 1. Then we have the formula: P(A)=P(B)⋅P(A∣B)+P(B‾)⋅P(A∣B‾).P(A) = P(B) \cdot P(A \mid B) + P(\overline{B}) \cdot P(A \mid \overline{B}). This formula is called the total probability formula.
  • In many problems, event BB often plays the role of the "cause" (for example: a shipment, a production line, a disease status), while event AA is the "result" whose probability we need to compute.
  • The condition 0<P(B)<10 < P(B) < 1 ensures that both BB and B‾\overline{B} can occur, and the conditional probabilities P(A∣B)P(A \mid B), P(A∣B‾)P(A \mid \overline{B}) are all defined.
  • Example: A factory has two workshops I and II. Workshop I produces 40% of the products, workshop II produces 60% of the products. The defective rate of workshop I is 2%, of workshop II is 1%. Let AA be the event "the product is defective", BB be the event "the product was made by workshop I". Then P(B)=0,4P(B) = 0,4, P(B‾)=0,6P(\overline{B}) = 0,6, P(A∣B)=0,02P(A \mid B) = 0,02, P(A∣B‾)=0,01P(A \mid \overline{B}) = 0,01. Applying the formula: P(A)=0,4⋅0,02+0,6⋅0,01=0,014P(A) = 0,4 \cdot 0,02 + 0,6 \cdot 0,01 = 0,014.

In plain words: You can picture event AA as the "destination", while BB and B‾\overline{B} are two paths leading to it. To compute the probability of reaching the destination, add the probabilities of the two ways: going along path BB and then reaching AA, and going along path B‾\overline{B} and then reaching AA. Each way is a multiplication: the probability of choosing the path times the probability of reaching the destination once on that path. Why multiply and then add? Because the two paths are two cases that cannot happen at the same time, while within each case the two steps happen one after the other. The condition 0<P(B)<10 < P(B) < 1 makes sure that both paths can be chosen, and the conditional probability is defined.

Phrase by phrase
total probability formula
The formula for computing the probability of event AA as the sum of the products of the probability of each case with the corresponding conditional probability.Example: P(A)=P(B)P(A∣B)+P(B‾)P(A∣B‾)P(A) = P(B)P(A \mid B) + P(\overline{B})P(A \mid \overline{B}).
0<P(B)<10 < P(B) < 1
The condition for both events BB and B‾\overline{B} to be able to occur, and the conditional probabilities P(A∣B)P(A \mid B), P(A∣B‾)P(A \mid \overline{B}) to be defined.Example: If P(B)=0P(B) = 0 then P(A∣B)P(A \mid B) is not defined.
event BB is the cause, AA is the result
In many problems, BB is usually the known information (such as the product rate of a workshop), while AA is what we care about (such as a defective product).Example: BB: the product was made by workshop I; AA: the product is defective.

Common mistakesConfusing P(A∣B)P(A \mid B) with P(B∣A)P(B \mid A): the problem gives the defective-product rate of workshop I as 2%, that is P(A∣B)=0,02P(A \mid B) = 0,02, but then uses 0.02 as the probability that a product comes from workshop I. You need to identify correctly which is the condition: the event after the sign ∣| is the condition.

Bayes' formula

  • Suppose AA and BB are two random events satisfying P(A)>0P(A) > 0 and 0<P(B)<10 < P(B) < 1. Then: P(B∣A)=P(B)⋅P(A∣B)P(B)⋅P(A∣B)+P(B‾)⋅P(A∣B‾).P(B \mid A) = \frac{P(B) \cdot P(A \mid B)}{P(B) \cdot P(A \mid B) + P(\overline{B}) \cdot P(A \mid \overline{B})}. This formula is called Bayes' formula.
  • Note:
  • Bayes' formula still holds for any event BB: when P(A)>0P(A) > 0 and P(B)>0P(B) > 0, we have P(B∣A)=P(B)⋅P(A∣B)P(A)P(B \mid A) = \frac{P(B) \cdot P(A \mid B)}{P(A)}; this form is also called Bayes' formula (the denominator P(A)P(A) is usually computed with the total probability formula).
  • Bayes' formula allows computing a conditional probability in the reverse direction: from the result AA that has occurred, infer the probability of the cause BB.
  • Example: A factory has two workshops I and II. Workshop I produces 40% of the products, workshop II produces 60% of the products. The defective rate of workshop I is 2%, of workshop II is 1%. A product is checked at random and found to be defective. Compute the probability that this product was made by workshop I. Let AA be the event "the product is defective", BB be the event "the product was made by workshop I". We have P(B)=0,4P(B) = 0,4, P(B‾)=0,6P(\overline{B}) = 0,6, P(A∣B)=0,02P(A \mid B) = 0,02, P(A∣B‾)=0,01P(A \mid \overline{B}) = 0,01. By Bayes' formula: P(B∣A)=0,4⋅0,020,4⋅0,02+0,6⋅0,01=0,0080,014=47P(B \mid A) = \frac{0,4 \cdot 0,02}{0,4 \cdot 0,02 + 0,6 \cdot 0,01} = \frac{0,008}{0,014} = \frac{4}{7}.

In plain words: The total probability formula helps you go from cause to result: knowing the rate of each workshop and the defective rate of each workshop, you can compute the probability of picking a defective product. Bayes' formula helps you go backwards: holding the defective product in your hand, you want to know which workshop it came from. The numerator is exactly the contribution of workshop BB to the probability P(A)P(A), while the denominator is the whole P(A)P(A). So P(B∣A)P(B \mid A) is the share of BB in the total, so it always lies between 0 and 1. The condition P(A)>0P(A) > 0 is required, because P(B∣A)P(B \mid A) only makes sense when AA can occur.

Phrase by phrase
Bayes' formula
The formula for conditional probability in the reverse direction, from the result AA deducing the cause BB.Example: P(B∣A)=P(B)P(A∣B)P(A)P(B \mid A) = \frac{P(B)P(A \mid B)}{P(A)}.
P(A)>0P(A) > 0
The condition for the conditional probability P(B∣A)P(B \mid A) to be determined.Example: If P(A)=0P(A) = 0 then P(B∣A)P(B \mid A) cannot be calculated.
Bayes' formula with denominator P(A)P(A)
Another way of writing Bayes' formula, valid for any event BB (when P(B)>0P(B) > 0), in which the denominator is exactly the probability of event AA (already calculated with the total probability formula).Example: P(B∣A)=P(B)P(A∣B)P(A)P(B \mid A) = \frac{P(B)P(A \mid B)}{P(A)}.

Common mistakesComputing Bayes by dividing by the contribution of the very source you are looking for instead of dividing by P(A)P(A), so the result always comes out as 1.

Described by a tree diagram

  • A tree diagram is a visual tool for describing the total probability formula and Bayes' formula.
  • From the root OO, draw two branches OAOA and OA‾O\overline{A} (or more branches if there are more cases). On branch OAOA write P(A)P(A), on branch OA‾O\overline{A} write P(A‾)P(\overline{A}).
  • From each node AA and A‾\overline{A}, draw branches to BB and B‾\overline{B}. On branch ABAB write P(B∣A)P(B \mid A), on branch AB‾A\overline{B} write P(B‾∣A)P(\overline{B} \mid A), on branch A‾B\overline{A}B write P(B∣A‾)P(B \mid \overline{A}), on branch A‾ B‾\overline{A}\,\overline{B} write P(B‾∣A‾)P(\overline{B} \mid \overline{A}).
  • There are two tree branches leading to BB, namely OABOAB and OA‾BO\overline{A}B. By the multiplication rule along a path, the probability of path OABOAB is P(A)⋅P(B∣A)P(A) \cdot P(B \mid A), and of path OA‾BO\overline{A}B is P(A‾)⋅P(B∣A‾)P(\overline{A}) \cdot P(B \mid \overline{A}). By the addition rule over the branches, P(B)=P(A)P(B∣A)+P(A‾)P(B∣A‾)P(B) = P(A)P(B \mid A) + P(\overline{A})P(B \mid \overline{A}).
  • Bayes' formula on the tree: P(A∣B)P(A \mid B) equals the probability of path OABOAB divided by the sum of the probabilities of the paths leading to BB.

In plain words: A tree diagram is just the total probability formula and Bayes' formula drawn as a picture. Start from the root and go up: whichever branch you turn into, multiply by the probability written on that branch, and when you reach the destination BB, add the probabilities of all the paths leading to BB. To find out "which branch it came from", take the probability of that path and divide it by the sum of the probabilities of the paths to BB. Why is the multiplication rule correct? Because going along branch AA and then to BB are two consecutive steps, so we use the multiplication rule for conditional probability. The tree is especially handy when the experiment has many stages, because each stage is one branching.

Phrase by phrase
tree diagram
A drawing that splits into branches stage by stage, each path from root to tip represents one case.Example: The first stage shows P(A)P(A) and P(A‾)P(\overline{A}), the second stage shows P(B∣A)P(B \mid A) and P(B∣A‾)P(B \mid \overline{A}).
multiplication rule along a path
The probability of a path equals the product of the probabilities written on the branches of that path.Example: Path OABOAB has probability P(A)⋅P(B∣A)P(A) \cdot P(B \mid A).
addition rule over the branches
The probability of event BB equals the sum of the probabilities of all the paths leading to BB.Example: P(B)=P(A)P(B∣A)+P(A‾)P(B∣A‾)P(B) = P(A)P(B \mid A) + P(\overline{A})P(B \mid \overline{A}).
Bayes on the tree
The conditional probability P(A∣B)P(A \mid B) equals the probability of the path through AA to BB divided by the sum of the probabilities of the paths to BB.Example: P(A∣B)=P(A)P(B∣A)P(B)P(A \mid B) = \frac{P(A)P(B \mid A)}{P(B)}.

TipOn a tree diagram: multiply along a path, add over the routes; Bayes means taking one path and dividing by the sum of all paths to the same endpoint.

Procedure for solving problems with the total probability formula and Bayes' formula

  • Step 1: Name the events. Identify the complete system of events (usually the "origins" such as workshops, batches, disease status) and the outcome event whose probability is to be calculated.
  • Step 2: Write the prior probabilities of the events in the complete system and the conditional probabilities of the outcome event given each event in the system. Check that the sum of the prior probabilities equals 1.
  • Step 3: Calculate the probability of the outcome event using the total probability formula.
  • Step 4: If the problem asks in reverse (given the result, ask about the origin), use Bayes' formula, taking the contribution of the origin you need divided by the probability of the outcome event.
  • After calculating, check: the sum of the posterior probabilities of all the origins must equal 1.

In plain words: These four steps are like a recipe: prepare the ingredients (name the events), measure (write the probabilities), cook (calculate), and taste again (check). Many students go wrong just because they read the problem and rush straight into calculating, which leads to confusion between P(B∣A)P(B \mid A) and P(A∣B)P(A \mid B). The key sentence for telling them apart: an event that comes with phrases like "given that", "having drawn" is usually the condition, that is, the event after the ∣| sign. The final check step is well worth doing, because if the sum of the posteriors is not 1 then something is certainly wrong somewhere.

Phrase by phrase
complete system
A group of events that are pairwise mutually exclusive and whose union is the certain event, covering every possibility.Example: The two workshops I and II form a complete system.
prior probability
The probability of an event in the complete system, known before there is any information about the result.Example: P(B)=0,4P(B) = 0,4 is the prior probability of the event "the product was made by workshop I".
posterior probability
The probability of an event in the complete system after the result is known to have happened.Example: P(B∣A)P(B \mid A) is the posterior probability of the event "the product was made by workshop I" given that the product is defective.
check that the sum of the posteriors equals 1
After calculating, the sum of the posterior probabilities of all the origins must equal 1 because they still form a complete system.Example: P(B∣A)+P(B‾∣A)=1P(B \mid A) + P(\overline{B} \mid A) = 1.

Worked examples

Example 1

A box has 4 red balls and 6 blue balls, the balls differ only in colour. Two balls are drawn at random one after another, and the ball drawn is not put back in the box. Let AA be the event "the second ball is red". Calculate P(A)P(A) using the total probability formula.

Show the solution to example 1

Step 1: Let BB be the event "the first marble is red". Then B‾\overline{B} is the event "the first marble is blue". The two events BB and B‾\overline{B} form a complete system.
Step 2: Prior probability: P(B)=410=0,4P(B) = \frac{4}{10} = 0,4, P(B‾)=610=0,6P(\overline{B}) = \frac{6}{10} = 0,6.
Step 3: Conditional probability: if the first marble is red, then 3 red remain among 9 marbles, so P(A∣B)=39=13P(A \mid B) = \frac{3}{9} = \frac{1}{3}. If the first marble is blue, then 4 red still remain among 9 marbles, so P(A∣B‾)=49P(A \mid \overline{B}) = \frac{4}{9}.
Why: Drawing without replacement, so the denominator for the second draw is 9, and the numerator depends on the color of the marble drawn.
Step 4: Apply the total probability formula: P(A)=P(B)P(A∣B)+P(B‾)P(A∣B‾)=0,4⋅13+0,6⋅49=215+415=615=25P(A) = P(B)P(A \mid B) + P(\overline{B})P(A \mid \overline{B}) = 0,4 \cdot \frac{1}{3} + 0,6 \cdot \frac{4}{9} = \frac{2}{15} + \frac{4}{15} = \frac{6}{15} = \frac{2}{5}.
Result: P(A)=25=0,4P(A) = \frac{2}{5} = 0,4.

Common mistakesAdding the prior probabilities without checking that they sum to 1, or forgetting one source in the complete system, so P(A)P(A) is missing.

Example 2

A factory has two workshops I and II. Workshop I produces 40% of the products, workshop II produces 60% of the products. The defective rate of workshop I is 2%, of workshop II is 1%. Take one product at random. a) Find the probability that it is defective. b) Given that the product taken is defective, find the probability that it was produced by workshop I.

Show the solution to example 2

Step 1: Let AA be the event "the product is defective", BB be the event "the product was produced by workshop I". Then B‾\overline{B} is the event "the product was produced by workshop II". The two events BB and B‾\overline{B} form a complete system.
Step 2: P(B)=0,4P(B) = 0,4, P(B‾)=0,6P(\overline{B}) = 0,6. The conditional probabilities: P(A∣B)=0,02P(A \mid B) = 0,02, P(A∣B‾)=0,01P(A \mid \overline{B}) = 0,01.
Step 3: a) Apply the total probability formula: P(A)=P(B)P(A∣B)+P(B‾)P(A∣B‾)=0,4⋅0,02+0,6⋅0,01=0,008+0,006=0,014P(A) = P(B)P(A \mid B) + P(\overline{B})P(A \mid \overline{B}) = 0,4 \cdot 0,02 + 0,6 \cdot 0,01 = 0,008 + 0,006 = 0,014.
Why: The two workshops are two sources that cannot happen at the same time, each source is one multiplication, then add them up.
Step 4: b) By Bayes' formula: P(B∣A)=P(B)P(A∣B)P(A)=0,0080,014=47≈0,5714P(B \mid A) = \frac{P(B)P(A \mid B)}{P(A)} = \frac{0,008}{0,014} = \frac{4}{7} \approx 0,5714.
Step 5: Check: P(B‾∣A)=0,0060,014=37P(\overline{B} \mid A) = \frac{0,006}{0,014} = \frac{3}{7}, and 47+37=1\frac{4}{7} + \frac{3}{7} = 1, it matches.
Result: a) P(A)=0,014P(A) = 0,014; b) P(B∣A)=47≈0,5714P(B \mid A) = \frac{4}{7} \approx 0,5714.

Example 3

A rapid SARS-CoV-2 test gives a positive result for 76.2% of cases that are truly infected with the virus and a negative result for 99.1% of cases that are truly not infected with the virus. Suppose the infection rate in a community is 1%. A person in that community takes the test and gets a positive result. Is the chance that the person is truly infected with the virus high or low?

Show the solution to example 3

Step 1: Let AA be the event "the person tested has a positive result", BB be the event "the person tested is truly infected with the virus". The two events BB and B‾\overline{B} form a complete system.
Step 2: The infection rate is 1%, so P(B)=0,01P(B) = 0,01, P(B‾)=0,99P(\overline{B}) = 0,99.
Step 3: Conditional probability: the test is positive for 76.2% of cases that are truly infected, so P(A∣B)=0,762P(A \mid B) = 0,762. The test is negative for 99.1% of cases that are truly not infected, so P(A‾∣B‾)=0,991P(\overline{A} \mid \overline{B}) = 0,991, hence P(A∣B‾)=1−0,991=0,009P(A \mid \overline{B}) = 1 - 0,991 = 0,009.
Why: The specificity of 99.1% refers to a negative result when not infected, so you must take the complement to get the false positive probability.
Step 4: Apply the total probability formula: P(A)=P(B)P(A∣B)+P(B‾)P(A∣B‾)=0,01⋅0,762+0,99⋅0,009=0,00762+0,00891=0,01653P(A) = P(B)P(A \mid B) + P(\overline{B})P(A \mid \overline{B}) = 0,01 \cdot 0,762 + 0,99 \cdot 0,009 = 0,00762 + 0,00891 = 0,01653.
Step 5: By Bayes' formula: P(B∣A)=P(B)P(A∣B)P(A)=0,007620,01653≈0,461P(B \mid A) = \frac{P(B)P(A \mid B)}{P(A)} = \frac{0,00762}{0,01653} \approx 0,461.
Why: Positive results mostly come from the large group of people who are not infected, so the probability of actually being infected is only about 46.1%, even though the sensitivity is as high as 76.2%.
Result: P(B∣A)≈0,461P(B \mid A) \approx 0,461, that is about 46.1%, lower than 50%, so the chance of truly being infected with the virus is low.

Common mistakesUsing the specificity 0.90 as P(A∣B‾)P(A \mid \overline{B}) in the testing problem, while 0.90 is the probability of a negative result when there is no disease, so you must take 1−0,90=0,101 - 0,90 = 0,10.

TipRemember the order with the phrase "total probability goes forward, Bayes goes backward": total probability from the source to the result, Bayes from the result back to the source.

Example 4

A box has 5 red balls and 3 blue balls. Take one ball at random, look at its color, then put it back in the box. Then take another ball at random. Let AA be the event "the second ball is red". a) Draw a tree diagram describing the experiment, writing the probabilities on the branches. b) Find P(A)P(A) using the rule of adding the paths. c) Given that the second ball is red, find the probability that the first ball is also red.

Show the solution to example 4

Step 1: Let BB be the event "the first ball is red". The first level of the tree has two branches: branch BB labelled P(B)=58P(B) = \frac{5}{8}, branch B‾\overline{B} labelled P(B‾)=38P(\overline{B}) = \frac{3}{8}.
Step 2: Because the ball is put back in the box, the second draw still has 8 balls. From each first-level branch, two branches split off toward AA and A‾\overline{A}: on the branch toward AA write P(A∣B)=58P(A \mid B) = \frac{5}{8} and P(A∣B‾)=58P(A \mid \overline{B}) = \frac{5}{8}, on the branch toward A‾\overline{A} write P(A‾∣B)=38P(\overline{A} \mid B) = \frac{3}{8} and P(A‾∣B‾)=38P(\overline{A} \mid \overline{B}) = \frac{3}{8}.
Step 3: b) Multiplication rule along a path: the path BB then AA has probability 58⋅58=2564\frac{5}{8} \cdot \frac{5}{8} = \frac{25}{64}; the path B‾\overline{B} then AA has probability 38⋅58=1564\frac{3}{8} \cdot \frac{5}{8} = \frac{15}{64}. Addition rule over the routes: P(A)=2564+1564=4064=58P(A) = \frac{25}{64} + \frac{15}{64} = \frac{40}{64} = \frac{5}{8}.
Why: Because the ball is put back in the box, the two draws are independent, so the probability for the second draw does not change; the result 58\frac{5}{8} matches intuition.
Step 4: c) Bayes on the tree: P(B∣A)=25/6440/64=2540=58P(B \mid A) = \frac{25/64}{40/64} = \frac{25}{40} = \frac{5}{8}.
Result: a) The tree has 4 paths, two branches at each level; b) P(A)=58P(A) = \frac{5}{8}; c) P(B∣A)=58P(B \mid A) = \frac{5}{8}.

Common mistakesIn a tree diagram, adding the probabilities along a branch instead of multiplying along one path, or multiplying the probabilities of two different paths.

Example 5

A quarantine station uses a test to detect a disease in livestock. The rate of livestock with the disease is 4%. For livestock with the disease, the test is positive with probability 0.92; for livestock without the disease, the test is positive with probability 0.06. a) Make a raw data table 2×22 \times 2 for 1000 animals. b) Find the probability that an animal tests positive. c) Given that an animal tests positive, find the probability that it actually has the disease.

Show the solution to example 5

Step 1: For 1000 animals: the number with the disease is 1000⋅0,04=401000 \cdot 0,04 = 40, the number without the disease is 960. Among the 40 animals with the disease, the number testing positive is 40⋅0,92=36,840 \cdot 0,92 = 36,8, rounded to 37; among the 960 animals without the disease, the number testing positive is 960⋅0,06=57,6960 \cdot 0,06 = 57,6, rounded to 58.
Step 2: Raw data table 2×22 \times 2 (rows are test results, columns are disease status):

With diseaseWithout diseaseSum
Positive375895
Negative3902905
Sum409601000

Step 3: b) Read along the positive row: P(A)=951000=0,095P(A) = \frac{95}{1000} = 0,095.
Why: This is exactly the total probability formula 0,04⋅0,92+0,96⋅0,06=0,0368+0,0576=0,09440,04 \cdot 0,92 + 0,96 \cdot 0,06 = 0,0368 + 0,0576 = 0,0944, only slightly different because of rounding to whole numbers.
Step 4: c) Read along the positive row, in the with-disease cell: P(B∣A)=3795≈0,3895P(B \mid A) = \frac{37}{95} \approx 0,3895. The exact value by Bayes' formula is 0,03680,0944≈0,3898\frac{0,0368}{0,0944} \approx 0,3898, slightly different because of rounding the number of animals.
Why: The number of false positives (58) is greater than the number of true positives (37), so even with a positive test, the chance of actually having the disease is under 40%.
Result: a) The table as above; b) P(A)≈0,095P(A) \approx 0,095; c) P(B∣A)≈0,3895P(B \mid A) \approx 0,3895.

TipIn the raw data table 2×22 \times 2: the prior probability is read down a column, as the column sum divided by nn; the conditional probability P(A∣B)P(A\mid B) is the cell A,BA,B divided by the column sum BB; the posterior P(B∣A)P(B\mid A) is the cell A,BA,B divided by the row sum AA.

Terms

total probability formula
The formula for the probability of event AA as the sum of the products of the probability of each case with the corresponding conditional probability.Example: P(A)=P(B)P(A∣B)+P(B‾)P(A∣B‾)P(A) = P(B)P(A \mid B) + P(\overline{B})P(A \mid \overline{B}).
Bayes' formula
The formula for conditional probability in the reverse direction, inferring the cause from the result.Example: P(B∣A)=P(B)P(A∣B)P(A)P(B \mid A) = \frac{P(B)P(A \mid B)}{P(A)}.
prior probability
The probability of an event in the complete system, known before observing the result.Example: P(B)=0,4P(B) = 0,4.
posterior probability
The probability of an event in the complete system after knowing that the result has occurred.Example: P(B∣A)P(B \mid A).
tree diagram
A drawing that splits into branches stage by stage, each path from root to tip represents one case.Example: Level 1 is labelled P(A)P(A), level 2 is labelled P(B∣A)P(B \mid A).
multiplication rule along a path
The probability of a path equals the product of the probabilities written on the branches of that path.Example: P(A)P(B∣A)P(A)P(B \mid A).
addition rule over the branches
The probability of event BB equals the sum of the probabilities of all the paths leading to BB.Example: P(B)=P(A)P(B∣A)+P(A‾)P(B∣A‾)P(B) = P(A)P(B \mid A) + P(\overline{A})P(B \mid \overline{A}).
complete system
A group of events that are pairwise mutually exclusive and whose union is the certain event.Example: AA and A‾\overline{A} form a complete system.

Practise similar problems

Practice questions from the Ket noi tri thuc series on the same ideas as this lesson. Answer each one and get it marked straight away.