Conditional probability and independence

Maths: Analysis and Approaches · Statistics and probability. The idea in plain words, the rules to remember, the mistake to avoid and a worked example, written and checked by Mega Lecture.

Test this topic freeAll Maths: Analysis and Approaches topics

The idea

Conditional probability is the probability of an event when you already know that another event has happened. P(A | B) means the probability of A given B. Knowing B makes the sample space smaller: you now look only at the outcomes inside B, and ask what fraction of them are also in A.

In a table or Venn diagram, divide the number in both A and B by the total for B. In a tree diagram, the second set of branches already shows conditional probabilities, so multiply along the branches and add the routes you need.

Two events are independent when one happening does not change the probability of the other, so P(A | B) = P(A).

Rules to remember

Common mistake

Dividing by the wrong probability. In P(A | B) the event after the line is the one you know has happened, so its probability goes underneath: P(A | B) and P(B | A) are usually different.

Worked example

Machine X makes 60% of the items in a factory and machine Y makes 40%. 5% of the items from X are faulty and 10% of the items from Y are faulty. An item is found to be faulty. Find the probability that it came from X.

  1. P(X and faulty) = 0.6 × 0.05 = 0.03
  2. P(Y and faulty) = 0.4 × 0.10 = 0.04
  3. P(faulty) = 0.03 + 0.04 = 0.07
  4. P(X | faulty) = 0.03 ÷ 0.07 = 3/7

Answer: 3/7, which is about 0.429

Ask about this

Type what you are stuck on. The helper finds the explanation, worked examples and the notes to read, free and instant.

Read the full notes

Keep going

← Probability and combined eventsDiscrete random variables and the binomial distribution →Take a Maths: Analysis and Approaches test