Conditional probability

A level Maths (Edexcel) · Edexcel 9MA0 · S3.2 · Statistics › Probability

2 exam-style questions plus unlimited generated ones on this topic, at up to four difficulty levels, with full mark schemes. Notes and Full packs are open to everyone. Practice needs a free account.

Or take a quick quiz: 10 questions on this subtopic in A level Maths (Edexcel), marked as you tap.

Revision notes

Finding the probability of an event given that another event has happened, using two-way tables, Venn diagrams, tree diagrams and the formula \(P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}\). Typical questions are ‘given that’ probabilities, reversed tree diagrams and independence checks.

Key facts

  • \(P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}\)
  • \(P(A \cap B) = P(A) \times P(B \mid A)\)
  • \(P(A \cup B) = P(A) + P(B) - P(A \cap B)\)
  • \(P(B) = P(A)P(B \mid A) + P(A')P(B \mid A')\)
  • Independent if and only if \(P(A \mid B) = P(A)\)
  • Two-way table: divide by the total of the ‘given’ row or column

Notes

What conditional probability means

diagram
  • \(P(A \mid B)\) is the probability that A happens given that B has happened.
  • Knowing that B has happened narrows the possibilities down to B only, so \(P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}\)
  • ABA ∩ BP(A | B) = P(A ∩ B) ÷ P(B): shaded part ÷ whole of B
    Given B, the circle B becomes the whole sample space
  • With frequencies (a two-way table or Venn diagram), \(P(A \mid B) = \dfrac{n(A \cap B)}{n(B)}\): divide by the total for B, not the grand total.
  • In general \(P(A \mid B) \ne P(B \mid A)\)

The multiplication rule and tree diagrams

diagram
  • \[P(A \cap B) = P(A) \times P(B \mid A)\]
  • On a tree diagram the second-stage branches are conditional probabilities: the branch to B after A is \(P(B \mid A)\)
  • P(A)AP(B|A)BP(A)P(B|A)P(B′|A)B′P(A)P(B′|A)P(A′)A′P(B|A′)BP(A′)P(B|A′)P(B′|A′)B′P(A′)P(B′|A′)
    Second-stage branches are conditional. P(B) = sum of the blue paths
  • Total probability: \(P(B) = P(A)P(B \mid A) + P(A')P(B \mid A')\)⁠, adding every path that ends in B.
  • Reversing a tree: \(P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}\), where the top is one path and the bottom is the total of all the paths ending in B.

Conditional probability and independence

  • A and B are independent if and only if \(P(A \mid B) = P(A)\) (equivalently \(P(B \mid A) = P(B)\)).
  • In a two-way table, compare the proportion within the given row (or column) with the overall proportion.

Useful Venn diagram results

  • \[P(A \mid B') = \frac{P(A \cap B')}{P(B')}\]
  • \(P(A \mid A \cup B) = \dfrac{P(A)}{P(A \cup B)}\), because \(A \cap (A \cup B) = A\)

How to answer each type of question

M = method mark, A = answer mark, B = a mark on its own.

‘Given that’ questions from a two-way table

3 to 5 marksGrade D
  1. Find the row or column for the ‘given’ event.
  2. Divide the cell you want by that row or column total.
  3. For independence, compare a conditional probability with the overall probability.

Example. The table shows how 200 students travel to school.

BusCarWalk
Year 12402535
Year 13304525
A student is chosen at random. Find
(a) \(P(\text{walks} \mid \text{Year 13})\)
(b) \(P(\text{Year 12} \mid \text{car})\)
(c) Determine whether the events ‘travels by bus’ and ‘is in Year 12’ are independent.

Show the model answerHide the model answer
(a) \(\dfrac{25}{100} = \dfrac{1}{4}\)
(B1)
(b) \(\dfrac{25}{25 + 45} = \dfrac{25}{70}\) (M1) \(= \dfrac{5}{14}\)
(A1)
(c) \(P(\text{bus} \mid \text{Year 12}) = \dfrac{40}{100} = 0.4\) but \(P(\text{bus}) = \dfrac{70}{200} = 0.35\) (M1); these are not equal, so the events are not independent
(A1)

Reverse a tree diagram

4 to 5 marksGrade B
  1. Draw the tree in the order the information is given.
  2. Find the total probability of the event you are told has happened.
  3. Divide the path you want by that total.

Example. 2% of people in a population have a certain condition. A test gives a positive result for 95% of people with the condition and for 8% of people without it. A person is chosen at random and tested.
(a) Find the probability that the test result is positive.
(b) Given that the result is positive, find the probability that the person has the condition.

Show the model answerHide the model answer
0.02C0.95+0.0190.05−0.0010.98C′0.08+0.07840.92−0.9016
(a) \(0.02 \times 0.95 + 0.98 \times 0.08\) (M1) \(= 0.019 + 0.0784 = 0.0974\)
(A1)
(b)\[\begin{aligned}[b]P(C \mid +) &= \frac{P(C \cap +)}{P(+)} \\ &= \frac{0.019}{0.0974}\end{aligned}\]
(M1)
\(= 0.195\) (3 s.f.)
(A1)

Use the formulas with unknown probabilities

4 to 6 marksGrade A
  1. Write down what you know in set notation.
  2. Use \(P(A \cap B) = P(A)P(B \mid A)\) and the addition rule.
  3. Draw a Venn diagram to find any other region, then use the conditional formula.

Example. For events A and B, \(P(A) = 0.5\), \(P(B \mid A) = 0.3\) and \(P(A \cup B) = 0.7\). Find
(a) \(P(A \cap B)\)
(b) \(P(B)\)
(c) \(P(A \mid B')\)

Show the model answerHide the model answer
(a) \(0.5 \times 0.3 = 0.15\)
(B1)
(b) \(0.7 = 0.5 + P(B) - 0.15\) (M1), so \(P(B) = 0.35\)
(A1)
(c) \(P(A \cap B') = 0.5 - 0.15 = 0.35\) and \(P(B') = 0.65\), so \(P(A \mid B') = \dfrac{0.35}{0.65}\) (M1) \(= \dfrac{7}{13}\) or 0.538
(A1)

Don’t lose marks

  • Dividing by the grand total instead of the total of the given event.
  • Mixing up \(P(A \mid B)\) and \(P(B \mid A)\)
  • Using \(P(A \cap B) = P(A) \times P(B)\) when the events are not known to be independent.
  • Missing a path when finding the total probability of the given event.

More tips

Memory tricks

  • The ‘given’ event always goes on the bottom of the fraction.
  • Reverse trees: find the total probability of the event you are given first, then divide.
  • Sense check with test questions: when a condition is rare, a positive result can still leave the condition unlikely.

Exam technique

  • Write the formula with the events named, e.g. \(P(C \mid +) = \dfrac{P(C \cap +)}{P(+)}\), before substituting: this earns the method mark.
  • Draw a tree, table or Venn diagram to organise the information, even when the question doesn't ask for one.
  • Give exact fractions or decimals to 3 significant figures.

What each grade needs

What you need to be able to do, from the first marks up to the top grade.

  1. Grade E
    Find conditional probabilities from a two-way tableDivide by the total of the row or column that you are given.
  2. Grade D
    Use conditional probabilities on tree diagramsThe second-stage branches are conditional probabilities, e.g. \(P(B \mid A)\)
  3. Grade C
    Apply the conditional probability formula\(P(A \mid B) = \dfrac{P(A \cap B)}{P(B)}\), using a Venn diagram or given values.
  4. Grade C
    Show independence using conditional probabilityCheck whether \(P(A \mid B) = P(A)\) to decide whether A and B are independent.
  5. Grade B
    Reverse a tree diagramFind the probability of a first-stage event given a second-stage event: one path divided by the total of all paths ending in that event.
  6. Grade A
    Solve conditional problems with unknown probabilitiesUse \(P(A \cap B) = P(A)P(B \mid A)\) and the addition rule to form and solve equations.
  7. Grade A*
    Handle multi-step conditional problems in contextWork through several conditions in an unfamiliar context, organising them in a tree, table or Venn diagram.

Sample questions

Written for this site in the style of Edexcel exam questions. They are not taken from real past papers.

Question 1Easy3 marks
The table shows information about 105 students invited on a school trip. One student is chosen at random.
YearWent on the tripDid not goTotal
Year 12402868
Year 13261137
Total6639105
(a) Find the probability that the student went on the trip.
[1]
(b) Given that the student was in Year 12, find the probability that the student went on the trip.
[2]
Show the answer and mark scheme
(a) Answer: \(\frac{22}{35} \approx 0.629\)
  • B1 for \(\frac{22}{35}\) (or awrt 0.629)
(b) Answer: \(\frac{10}{17} \approx 0.588\)
  • M1 for \(\dfrac{40}{68}\)
  • A1 for \(\frac{10}{17}\) (or awrt 0.588)
Question 2Medium5 marks
The table shows information about 75 orders placed with a retailer. One order is chosen at random. \(C\) is the event that the order was placed with the city centre branch and \(T\) is the event that the order was delivered on time.
BranchOn timeLateTotal
City centre251035
Retail park231740
Total482775
(a) Given that the order was delivered late, find the probability that the order was placed with the retail park branch.
[2]
(b) Determine whether the events \(C\) and \(T\) are independent. Show your working.
[3]
Show the answer and mark scheme
(a) Answer: \(\frac{17}{27} \approx 0.630\)
  • M1 for \(\dfrac{17}{27}\)
  • A1 for \(\frac{17}{27}\) (or awrt 0.630)
(b) Answer: \(P(T \mid C) = \dfrac{25}{35} = \frac{5}{7}\) and \(P(T) = \dfrac{48}{75} = \frac{16}{25}\), which are not equal, so \(C\) and \(T\) are not independent.
  • M1 for a correct test, e.g. comparing \(P(T \mid C)\) with \(P(T)\), or \(P(C \cap T) = \frac{1}{3}\) with \(P(C) \times P(T) = \frac{7}{15} \times \frac{16}{25}\)
  • A1 for correct values (\(\frac{5}{7}\) and \(\frac{16}{25}\), or equivalent)
  • A1 for the correct conclusion (not independent) with a reason
Question 3Hard10 marks
A screening test for a disease is used on a population in which 2% of people have the disease. If a person has the disease, the probability that the test is positive is 0.95. If a person does not have the disease, the probability that the test is positive is 0.10.
(a) Find the probability that a randomly chosen person tests positive.
[2]
(b) Given that a person tests positive, find the probability that they have the disease.
[2]
(c) A newspaper states: “The test is 95% accurate, so if you test positive you almost certainly have the disease.”
Use your answer to part (b) to comment on this statement.
[2]
(d) People who test positive are tested a second time. Assuming that, for each person, the results of the two tests are independent, find the probability that a person who tests positive twice has the disease.
[3]
(e) Explain why the independence assumption in part (d) may not be valid.
[1]
Show the answer and mark scheme
(a) Answer: 0.117
  • M1 for \(0.02 \times 0.95 + 0.98 \times 0.10\)
  • A1 for 0.117

Worked solution: \(P(+) = 0.02 \times 0.95 + 0.98 \times 0.10 = 0.019 + 0.098 = 0.117\)⁠.

(b) Answer: 0.162 (3 s.f.)
  • M1 for \(\frac{0.019}{0.117}\)
  • A1 for awrt 0.162

Worked solution: \(P(D \mid +) = \dfrac{0.019}{0.117} = 0.162\).

(c) Answer: Only about 16% of people who test positive have the disease. Because the disease is rare, the false positives from the large healthy group outnumber the true positives.
  • B1 for the statement is wrong: only about 16% of positives have the disease
  • B1 for the reason: the disease is rare (2%), so most positive results come from the 98% who do not have it (false positives)

Worked solution: The statement is misleading: only about 16% of people who test positive actually have the disease. Although the test detects 95% of cases, the disease is rare, so the 10% false-positive rate among the 98% without the disease produces many more positives (0.098) than the true positives (0.019).

(d) Answer: 0.648 (3 s.f.)
  • M1 for the numerator \(0.02 \times 0.95^2\)
  • M1 for the denominator \(0.02 \times 0.95^2 + 0.98 \times 0.10^2\)
  • A1 for awrt 0.648

Worked solution: \(P(D \mid ++) = \dfrac{0.02 \times 0.95^2}{0.02 \times 0.95^2 + 0.98 \times 0.1^2} = \dfrac{0.01805}{0.02785} = 0.648\)⁠.

(e) Answer: Whatever caused a false positive in one person (e.g. a similar condition) is likely to cause another false positive, so the two results for the same person are likely to be related.
  • B1 for a reason in context, e.g. a person who gives a false positive once is more likely to do so again (the cause is a feature of that person), so the results are not independent

Worked solution: A false positive is often caused by something about the person (such as a related condition), which would also affect the second test. So a second positive is more likely after a first false positive than the model assumes, and the tests are not independent.

More in Probability

Stuck? Get 1-to-1 help.

Chhetri Academy tutors GCSE and A level Maths and Science online, with a free 30-minute trial lesson.