Year 2 Statistics · Chapter 2

Conditional Probability

Specification: Edexcel Paper 3 §3.1–3.3 — Probability  ·  AQA section M1–M3

In this chapter
  1. 1. Conditional probability
  2. 2. Tree diagrams
  3. 3. Independence
  4. 4. Modelling with probability
  5. Practice

Key facts — this chapter

  • P(A∣B)P(A \mid B) is the probability of AA given that BB has happened: P(A∣B)=P(A∩B)P(B)P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}.
  • Knowing BB shrinks the sample space to BB: count, or add up probabilities, inside BB only.
  • Multiplication rule: P(A∩B)=P(A)×P(B∣A)P(A \cap B) = P(A) \times P(B \mid A). On a tree diagram, the second-stage branches are conditional probabilities.
  • P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) are usually different. To reverse a tree, divide: P(first∣second)=P(both)P(second)P(\text{first} \mid \text{second}) = \dfrac{P(\text{both})}{P(\text{second})}.
  • AA and BB are independent exactly when P(A∣B)=P(A)P(A \mid B) = P(A): knowing BB doesn’t change the chance of AA. Then P(A∩B)=P(A)×P(B)P(A \cap B) = P(A) \times P(B).
  • A probability model rests on assumptions, such as fixed probabilities and independence. Say whether they are realistic, and what happens if they fail.

Information changes chances. The probability that a student cycles to school depends on which year they are in; a positive medical test changes the chance that someone has the disease. Conditional probability is the probability of one event once you know that another has happened, and it is the idea behind every tree diagram you have drawn.

Set notation

  • A∩BA \cap B: AA and BB both happen.
  • A∪BA \cup B: AA or BB or both happen.
  • A′A': AA does not happen.
  • P(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B), from Year 1.

1. Conditional probability

P(A∣B)P(A \mid B) is read “the probability of AA given BB”. Once you know that BB has happened, every outcome outside BB is ruled out: the sample space shrinks to BB alone, and you ask what fraction of it lies in AA.

Worked example 2.1 · From a two-way table

The table shows how 200 sixth-form students travel to school. A student is chosen at random. Find the probability that the student cycles, the probability that the student cycles given that they are in Year 12, and the probability that the student is in Year 13 given that they cycle.

CyclesDoes not cycleTotal
Year 12276390
Year 132288110
Total49151200

  1. P(cycles)=49200=0.245P(\text{cycles}) = \tfrac{49}{200} = 0.245.

  2. Given Year 12, only the 90 students in that row count, and 27 of them cycle: P(cycles∣Y12)=2790=0.3P(\text{cycles} \mid \text{Y}12) = \tfrac{27}{90} = 0.3.

  3. Given that the student cycles, only the 49 cyclists count, and 22 of them are in Year 13: P(Y13∣cycles)=2249=0.449P(\text{Y}13 \mid \text{cycles}) = \tfrac{22}{49} = 0.449 (3 s.f.).

Dividing counts is the same as dividing probabilities, since each count is a probability multiplied by 200. That gives the general rule.

Conditional probability

P(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)}

100 people, each either in A or not, and in B or not. Choose what you are told about the person chosen: everyone it rules out fades away, and the conditional probability is read from the people who are left.

A Venn diagram with two overlapping circles A and B inside a rectangle. A only holds 0.25, the overlap 0.2, B only 0.2, and 0.35 lies outside both circles
Example 2.2: fill in the overlap first, then the rest of each circle, then the outside.

Worked example 2.2 · From a Venn diagram

P(A)=0.45P(A) = 0.45, P(B)=0.4P(B) = 0.4 and P(A∪B)=0.65P(A \cup B) = 0.65. Find P(A∩B)P(A \cap B), P(A∣B)P(A \mid B), P(B∣A)P(B \mid A) and P(A′∣B′)P(A' \mid B').


  1. P(A∩B)=0.45+0.4−0.65=0.2P(A \cap B) = 0.45 + 0.4 - 0.65 = 0.2. The Venn diagram follows: 0.250.25 in AA only, 0.20.2 in BB only and 0.350.35 outside both.

  2. P(A∣B)=0.20.4=0.5P(A \mid B) = \dfrac{0.2}{0.4} = 0.5 and P(B∣A)=0.20.45=49P(B \mid A) = \dfrac{0.2}{0.45} = \dfrac{4}{9}.

  3. A′∩B′A' \cap B' is the region outside both circles, and P(B′)=0.6P(B') = 0.6, so

    P(A′∣B′)=0.350.6=712P(A' \mid B') = \frac{0.35}{0.6} = \frac{7}{12}

Common mistake

P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) are different questions with different answers. In Example 2.1, 30% of Year 12 students cycle, but only 55% of cyclists are in Year 12. The event after the bar is the one you already know about: it sets the denominator.

2. Tree diagrams

The multiplication rule

P(A∩B)=P(A)×P(B∣A)P(A \cap B) = P(A) \times P(B \mid A)

On a tree diagram, each second-stage branch is a conditional probability: the probability of the second event given the branch you are already on.

Trees are drawn in the order things happen, but questions often ask the other way round: given what you can see (a test result), how likely is what you can’t (the disease)? Find the two probabilities from the tree, then divide.

A tree diagram. The first branches are has the disease, 0.02, and does not, 0.98. From the disease branch, a positive test has probability 0.95 and negative 0.05. From the no-disease branch, positive has probability 0.1 and negative 0.9. The end probabilities are 0.019, 0.001, 0.098 and 0.882
Example 2.3: two of the four paths end in a positive test.

Worked example 2.3 · A positive test

A disease affects 2% of a population. A test for it is positive for 95% of people who have the disease, and also, wrongly, for 10% of people who do not. A person chosen at random tests positive. Find the probability that they have the disease.


  1. Let DD be “has the disease” and ++ “tests positive”. The two paths that end in a positive test give

    P(D∩+)=0.02×0.95=0.019P(D′∩+)=0.98×0.1=0.098\begin{aligned} P(D \cap +) &= 0.02 \times 0.95 = 0.019 \\ P(D' \cap +) &= 0.98 \times 0.1 = 0.098 \end{aligned}
  2. So P(+)=0.019+0.098=0.117P(+) = 0.019 + 0.098 = 0.117, and

    P(D∣+)=0.0190.117=0.162 (3 s.f.)P(D \mid +) = \frac{0.019}{0.117} = 0.162 \text{ (3 s.f.)}

In context

Only about 16% of people who test positive have the disease. The disease is rare, so the few true positives are outnumbered by false positives from the much larger healthy group.

Common mistake

The test is “95% accurate” for people with the disease, but that is P(+∣D)P(+ \mid D), not P(D∣+)P(D \mid +). Confusing the two is a classic error, in courtrooms and clinics as well as exams.

3. Independence

Two events are independent when knowing that one has happened tells you nothing about the other. Conditional probability says exactly what that means.

Independence

AA and BB are independent exactly when

P(A∣B)=P(A)P(A \mid B) = P(A)

and then also P(B∣A)=P(B)P(B \mid A) = P(B) and P(A∩B)=P(A)×P(B)P(A \cap B) = P(A) \times P(B). Any one of these shows independence. If AA and BB are independent, so are AA and B′B'.

Worked example 2.4 · Testing for independence

Using the table in Example 2.1, determine whether cycling to school is independent of being in Year 12.


P(cycles)=0.245P(\text{cycles}) = 0.245, but P(cycles∣Y12)=0.3P(\text{cycles} \mid \text{Y}12) = 0.3. These are different, so the events are not independent.

In context

Knowing that a student is in Year 12 raises the chance that they cycle, from 24.5% to 30%.

Worked example 2.5 · Using independence

AA and BB are independent events with P(A)=0.3P(A) = 0.3 and P(A∪B)=0.65P(A \cup B) = 0.65. Find P(B)P(B) and P(B∣A′)P(B \mid A').


  1. Independence gives P(A∩B)=0.3P(B)P(A \cap B) = 0.3P(B), so

    0.65=0.3+P(B)−0.3P(B)0.35=0.7P(B)\begin{aligned} 0.65 &= 0.3 + P(B) - 0.3P(B) \\ 0.35 &= 0.7P(B) \end{aligned}

    and P(B)=0.5P(B) = 0.5.

  2. BB is independent of AA, so also of A′A': P(B∣A′)=P(B)=0.5P(B \mid A') = P(B) = 0.5.

4. Modelling with probability

Every probability model rests on assumptions: that outcomes are equally likely, that probabilities stay fixed, that events are independent. A good answer names the assumption, says whether it is realistic in context, and says what would change if it failed.

Worked example 2.6 · Criticising a model

An analyst models a tennis player’s first serves: each lands in with probability 0.620.62, independently of every other serve. Give two criticisms of the model and the likely effect of each.


  1. The probability is unlikely to be fixed. It will fall as the player tires, and vary with the score and the conditions. A single value of 0.620.62 hides this, so the model will be least accurate late in long matches.

  2. Serves are unlikely to be independent. A player who has just served well may gain confidence, and one who has missed may play safe. Successes and failures would then come in longer runs than the model predicts.

Practice

Twelve questions in three tiers. Try each one properly before opening the solution. The solutions show the full method, not just answers. Give answers as exact fractions or decimals, or to 3 significant figures where they aren’t exact.

Warm-up

1 [3 marks]

80 adults were asked whether they prefer tea or coffee.

TeaCoffeeTotal
Under 40122840
40 or over261440
Total384280

One adult is chosen at random. Find (a) P(tea)P(\text{tea}), (b) P(tea∣under 40)P(\text{tea} \mid \text{under } 40), (c) P(under 40∣coffee)P(\text{under } 40 \mid \text{coffee}).

Show solution

(a) 3880=0.475\tfrac{38}{80} = 0.475. (b) 1240=0.3\tfrac{12}{40} = 0.3. (c) 2842=23\tfrac{28}{42} = \tfrac{2}{3}.

2 [2 marks]

P(A)=0.6P(A) = 0.6, P(B)=0.5P(B) = 0.5 and P(A∩B)=0.35P(A \cap B) = 0.35. Find P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A).

Show solution

P(A∣B)=0.350.5=0.7P(A \mid B) = \dfrac{0.35}{0.5} = 0.7 and P(B∣A)=0.350.6=712P(B \mid A) = \dfrac{0.35}{0.6} = \dfrac{7}{12}.

3 [3 marks]

A bag holds 4 red and 6 blue counters. Two are taken without replacement. Find the probability that the second is red given that the first is red, and the probability that both are red.

Show solution

After a red is taken, 3 of the 9 left are red: P(R2∣R1)=39=13P(R_2 \mid R_1) = \tfrac{3}{9} = \tfrac{1}{3}.

P(R1∩R2)=410×13=215P(R_1 \cap R_2) = \tfrac{4}{10} \times \tfrac{1}{3} = \tfrac{2}{15}.

4 [2 marks]

P(A)=0.4P(A) = 0.4, P(B)=0.25P(B) = 0.25 and P(A∩B)=0.1P(A \cap B) = 0.1. Are AA and BB independent?

Show solution

P(A∣B)=0.10.25=0.4=P(A)P(A \mid B) = \dfrac{0.1}{0.25} = 0.4 = P(A), so yes: AA and BB are independent.

Standard

5 [6 marks]

Of 60 students, 30 study Maths (MM), 25 Physics (PP) and 20 Chemistry (CC). 12 study both Maths and Physics, 8 Maths and Chemistry, 7 Physics and Chemistry, and 4 study all three.

  1. Draw a Venn diagram showing the number in each region. [3]
  2. A student is chosen at random. Find P(M∣P)P(M \mid P) and P(C∣M∩P)P(C \mid M \cap P). [2]
  3. Find the probability that the student studies none of the three. [1]
Show solution

(a) Start from the centre, 4, then the pairs without it:

  • Maths and Physics only: 12−4=812 - 4 = 8; Maths and Chemistry only: 8−4=48 - 4 = 4; Physics and Chemistry only: 7−4=37 - 4 = 3.
  • Maths only: 30−8−4−4=1430 - 8 - 4 - 4 = 14; Physics only: 25−8−3−4=1025 - 8 - 3 - 4 = 10; Chemistry only: 20−4−3−4=920 - 4 - 3 - 4 = 9.
  • Outside all three: 60−52=860 - 52 = 8.

(b) P(M∣P)=1225P(M \mid P) = \tfrac{12}{25}, and P(C∣M∩P)=412=13P(C \mid M \cap P) = \tfrac{4}{12} = \tfrac{1}{3}.

(c) 860=215\tfrac{8}{60} = \tfrac{2}{15}.

6 [5 marks]

Machine XX makes 60% of a factory’s components and machine YY the rest. 3% of XX‘s components are faulty, and 5% of YY‘s. A component chosen at random is faulty. Find the probability that it was made by machine XX.

Show solution
P(X∩F)=0.6×0.03=0.018P(Y∩F)=0.4×0.05=0.02\begin{aligned} P(X \cap F) &= 0.6 \times 0.03 = 0.018 \\ P(Y \cap F) &= 0.4 \times 0.05 = 0.02 \end{aligned}

So P(F)=0.038P(F) = 0.038 and P(X∣F)=0.0180.038=919=0.474P(X \mid F) = \dfrac{0.018}{0.038} = \dfrac{9}{19} = 0.474.

7 [4 marks]

AA and BB are independent, with P(A)=0.4P(A) = 0.4 and P(B)=0.3P(B) = 0.3. Find P(A∪B)P(A \cup B), P(A∣B′)P(A \mid B') and P(A′∩B′)P(A' \cap B').

Show solution

P(A∩B)=0.4×0.3=0.12P(A \cap B) = 0.4 \times 0.3 = 0.12, so P(A∪B)=0.4+0.3−0.12=0.58P(A \cup B) = 0.4 + 0.3 - 0.12 = 0.58.

AA is independent of B′B' too, so P(A∣B′)=P(A)=0.4P(A \mid B') = P(A) = 0.4.

P(A′∩B′)=0.6×0.7=0.42P(A' \cap B') = 0.6 \times 0.7 = 0.42 (or 1−0.581 - 0.58).

8 [4 marks]

P(A)=0.3P(A) = 0.3, P(B)=0.4P(B) = 0.4 and P(A∣B)=0.25P(A \mid B) = 0.25. Find P(A∩B)P(A \cap B), P(B∣A)P(B \mid A) and P(A∪B)P(A \cup B).

Show solution

P(A∩B)=P(B)×P(A∣B)=0.4×0.25=0.1P(A \cap B) = P(B) \times P(A \mid B) = 0.4 \times 0.25 = 0.1.

P(B∣A)=0.10.3=13P(B \mid A) = \dfrac{0.1}{0.3} = \dfrac{1}{3}, and P(A∪B)=0.3+0.4−0.1=0.6P(A \cup B) = 0.3 + 0.4 - 0.1 = 0.6.

9 [4 marks]

A weather model assumes that it rains on any day with probability 0.30.3, independently of every other day. It predicts that the chance of a week without rain is 0.77=0.08240.7^7 = 0.0824. Criticise two assumptions of the model and say how each might affect the prediction.

Show solution

Independence: weather comes in spells, so a dry day makes another dry day more likely. Dry weeks are then more common than the model predicts, so 0.08240.0824 is probably too low.

A fixed probability: the chance of rain varies with the season, so one value of 0.30.3 all year will overestimate dry weeks in wet months and underestimate them in dry ones.

Exam style

10 [7 marks]

For events AA and BB, P(A)=0.35P(A) = 0.35 and P(B)=0.4P(B) = 0.4, and the probability that neither happens is 0.350.35.

  1. Find P(A∩B)P(A \cap B) and draw a Venn diagram. [3]
  2. Find P(A∣B)P(A \mid B) and P(B∣A′)P(B \mid A'). [3]
  3. Determine whether AA and BB are independent. [1]
Show solution

(a) P(A∪B)=1−0.35=0.65P(A \cup B) = 1 - 0.35 = 0.65, so P(A∩B)=0.35+0.4−0.65=0.1P(A \cap B) = 0.35 + 0.4 - 0.65 = 0.1. The regions are 0.250.25 (AA only), 0.10.1 (both), 0.30.3 (BB only) and 0.350.35 (neither).

(b) P(A∣B)=0.10.4=0.25P(A \mid B) = \dfrac{0.1}{0.4} = 0.25. P(A′)=0.65P(A') = 0.65 and P(B∩A′)=0.3P(B \cap A') = 0.3, so P(B∣A′)=0.30.65=613=0.462P(B \mid A') = \dfrac{0.3}{0.65} = \dfrac{6}{13} = 0.462.

(c) P(A∣B)=0.25P(A \mid B) = 0.25 but P(A)=0.35P(A) = 0.35, so they are not independent.

11 [8 marks]

A student’s bus is late on 15% of days. When the bus is late, the student is late for school with probability 0.60.6; when it isn’t, with probability 0.10.1.

  1. Find the probability that the student is late on a given day. [3]
  2. Given that the student is late, find the probability that the bus was late. [3]
  3. Assuming days are independent, find the probability that the student is late on exactly one of two days. [2]
Show solution

(a) P(L)=0.15×0.6+0.85×0.1=0.09+0.085=0.175P(L) = 0.15 \times 0.6 + 0.85 \times 0.1 = 0.09 + 0.085 = 0.175.

(b) P(B∣L)=0.090.175=1835=0.514P(B \mid L) = \dfrac{0.09}{0.175} = \dfrac{18}{35} = 0.514.

(c) Late on the first day only, or the second only: 2×0.175×0.825=0.2892 \times 0.175 \times 0.825 = 0.289 (3 s.f.).

12 [8 marks]

Events AA, BB and CC have P(A)=0.2P(A) = 0.2, P(B)=0.5P(B) = 0.5 and P(C)=0.3P(C) = 0.3. AA and CC are mutually exclusive, AA and BB are independent, and P(B∩C)=0.1P(B \cap C) = 0.1.

  1. Find P(A∩B)P(A \cap B). [1]
  2. Draw a Venn diagram showing the probability in each region. [4]
  3. Find P(B∣C)P(B \mid C) and P(A∪B∪C)P(A \cup B \cup C). [3]
Show solution

(a) Independent, so P(A∩B)=0.2×0.5=0.1P(A \cap B) = 0.2 \times 0.5 = 0.1.

(b) AA and CC don’t overlap, so no region is in all three. The regions are AA only 0.10.1, A∩BA \cap B 0.10.1, BB only 0.30.3, B∩CB \cap C 0.10.1, CC only 0.20.2, and outside all three 1−0.8=0.21 - 0.8 = 0.2.

(c) P(B∣C)=0.10.3=13P(B \mid C) = \dfrac{0.1}{0.3} = \dfrac{1}{3}, and P(A∪B∪C)=0.1+0.1+0.3+0.1+0.2=0.8P(A \cup B \cup C) = 0.1 + 0.1 + 0.3 + 0.1 + 0.2 = 0.8.