Skip to content
MathClicksIGCSE← All notes Cambridge IGCSE® Mathematics 0580 Extended Chapter 24 — Probability Using Tree Diagrams and Venn Diagrams

24.3  Conditional Probability

Probability when you already know something happened — restricted totals, second draws without replacement, and P(A given B) calculated from trees, tables and Venn diagrams.

New information shrinks the sample space

In 24.2 you met the phrase that changes everything: “given that…”. This lesson gives that idea its proper name — conditional probability — and shows you how to handle it from every picture the exam uses: two-way tables, Venn diagrams and the tree diagrams of 24.1. The method never changes; what changes is that you will now spot the situation instantly, whatever costume the question wears.

The idea itself is one sentence long. Before you know anything, probabilities are measured out of everyone. The moment the question tells you something has already happened — the student is a girl, the first counter was red, the person is in set B — everyone who does not fit that information vanishes, and you recalculate out of whoever is left.

Key idea The conditional probability of A given B, written P(A | B) and read “the probability of A, given B”, is the probability of A measured inside the world where B has happened. The words after “given that” name your new total, and both the top and the bottom of your fraction must come from inside it.
Exam tip Underline the words after “given that” the moment you read the question — they name your new total. If your denominator is still the grand total after a “given that”, you have answered a different question. This one habit fixes more conditional-probability errors than any amount of theory.

The same Venn diagram, before and after “given that the person is in B”

Before: choosing from all 30 ℰ A B 9 6 5 10 → After: only the 11 inside B exist ℰ A B 9 6 5 10 New total: n(B) = 6 + 5 = 11 — the 9 and the 10 have vanished P(A | B) = 6/11 — the overlap over the whole B circle
About the notation The 0580 syllabus never demands the bar notation or any formula — the exam asks conditional questions in words (“given that…”) and expects a fraction built from a restricted total. Treat P(A | B) as useful shorthand for your working, exactly as 24.2 introduced it. The marks come from the right numerator over the right restricted denominator, not from the symbols.
Example 1The table shows 80 students sorted by year group and whether they play a musical instrument. Year 10: 24 play, 16 do not. Year 11: 18 play, 22 do not. A student is chosen at random. Find (a) P(plays an instrument), (b) P(plays an instrument given that the student is in Year 11).
1
Complete the totals first — row totals 40 and 40, column totals 42 and 38, grand total 80. plays: 24 + 18 = 42    does not: 16 + 22 = 38    42 + 38 = 80 ✓
2
(a) No condition, so the choice is from all 80. P(plays) = 42/80 = 21/40
3
(b) Underline “given that the student is in Year 11” — the Year 11 row is your new world. New total: 40. Year 11 row: 18 play, 22 do not  →  total 40
4
Of those 40, the players number 18. P(plays | Year 11) = 18/40 = 9/20
(a) 2140     (b) P(plays | Year 11) = 920
Notice The answers differ: 21/40 = 0.525 but 9/20 = 0.45. Knowing the student is in Year 11 genuinely changed the probability — that is conditional probability doing its job, not an arithmetic accident.

Source 1: Venn diagrams and tables — restrict, then count

When the information arrives as counts — a filled Venn diagram or a two-way table — conditional probability is pure region-reading, exactly as you practised in 24.2. Only now you know what you are doing is called conditional probability, and you can write it down like an examiner:

P(A | B) = number in A ∩ Bnumber in B Counts version — the given set is the new total; the favourable part of it goes on top

From a Venn diagram

“Given B” makes the whole B circle the new total — overlap included. The numerator is the part of that circle which is also in A: the overlap A ∩ B. So with regions 9, 6, 5, 10 you get P(A | B) = 6/(6 + 5) = 6/11.

From a two-way table

“Given girl” makes the girls row the new total; “given walks” makes the walk column the new total. The numerator is one cell inside that row or column. The grand total in the corner never appears in a conditional answer.

Watch out The classic mix-up is between P(A ∩ B) and P(A | B). Both have the overlap on top; the difference is the bottom. “Find the probability that the person is in A and B” divides by n(ℰ): 6/30. “Given B, find the probability of A” divides by n(B): 6/11. Same top, different worlds.

Conditional probability explorer

Type the four region counts, then choose the “given” set and the target set — the diagram shades your new total and the fraction is built step by step. Swap given and target to watch the order matter.

Source 2: tree diagrams — the second stage was conditional all along

Here is the secret 24.1 kept from you: every time you recalculated the second-stage fractions of a without-replacement tree, you were already doing conditional probability. Take the bag from 24.1 — 5 red and 3 blue counters, two taken without replacement. The second-stage branch “red then red” carries 4/7, because once you know the first counter was red, only 4 reds remain among 7 counters. That sentence is precisely P(red 2nd | red 1st) = 4/7.

24.1’s bag again — 5 red, 3 blue, two taken without replacement

R B R B R B 5/8 3/8 4/7 3/7 5/7 2/7 5/8 × 4/7 = 20/56 5/8 × 3/7 = 15/56 3/8 × 5/7 = 15/56 3/8 × 2/7 = 6/56 Purple fractions are conditional: 4/7 = P(R 2nd | R 1st), 5/7 = P(R 2nd | B 1st)

Reading the tree with your new vocabulary also explains the multiply-along rule from 24.1. Multiplying along a path is a conditional chain: the probability that both things happen is the probability of the first, times the probability of the second given the first.

P(A ∩ B) = P(A) × P(B | A) Multiply along the branches — the second factor is always conditional
Exam tip When Paper 4 says “Write down the probability that the second counter is red, given that the first was red”, it means exactly that: read the single second-stage branch straight off the tree — 4/7 — with no multiplying. Multiplying by the first branch here is the standard way to turn a 1-mark gift into 0 marks: that product answers “both red”, a different question.
Example 2A box contains 6 white and 4 black counters. Two counters are taken at random without replacement. (a) Write down P(second is white given that the first is white). (b) Find the probability that both counters are white. (c) Given that the first counter is black, find the probability that the second is also black.
1
(a) The condition has removed one white counter. 5 whites remain among 9 counters — a single branch, no multiplying. P(white 2nd | white 1st) = 5/9
2
(b) “Both white” is a path, so chain the unconditional first draw with the conditional second draw. P(both white) = 6/10 × 5/9 = 30/90 = 1/3
3
(c) Now the given event is “first is black”: 3 blacks remain among 9. Again one branch, read straight off. P(black 2nd | black 1st) = 3/9 = 1/3
(a) 59    (b) 13    (c) 13
Watch out In (a) and (c) the denominator is 9, never 10 — the given first draw has already left the bag. If a 10 appears under a “given that” second-draw fraction, the condition has been ignored.

Source 3: probabilities instead of counts — and why order matters

Sometimes a question gives you no population at all — just probabilities: “P(A) = 0.6, P(B) = 0.5 and P(A ∩ B) = 0.2. Find P(A | B).” The restriction idea still works; it just runs on probabilities instead of counts. The share of B-world that is also in A is the overlap divided by the whole of B:

P(A | B) = P(A ∩ B)P(B) Probabilities version — the same restriction, written with P instead of n
Not on the formula sheet — and not required The syllabus states that knowledge of this formula is not required: every 0580 conditional question can be finished by restricting a diagram. But when the question hands you probabilities, this one line is the diagram restriction, written faster. If you prefer to avoid it entirely, use the trick in the card below — both routes score full marks.

No formula? Invent a population

Multiply every probability by 100 and pretend there are 100 people. With P(A) = 0.6, P(B) = 0.5, P(A ∩ B) = 0.2: put 20 in the overlap, then A only = 60 − 20 = 40, B only = 50 − 20 = 30, and neither = 100 − 90 = 10. Now it is a 24.2 question: P(A | B) = 20/50 = 2/5. Filling from the inside out still applies.

Example 3Events A and B are such that P(A) = 0.6, P(B) = 0.5 and P(A ∩ B) = 0.2. Find (a) P(A | B), (b) P(B | A).
1
(a) Given B, so P(B) is the denominator — the whole of B-world. P(A | B) = P(A ∩ B) / P(B) = 0.2/0.5 = 2/5
2
(b) Given A, so the denominator changes to P(A). The numerator does not change — the overlap is the overlap. P(B | A) = P(A ∩ B) / P(A) = 0.2/0.6 = 1/3
3
Sense-check both against the invented population of 100: 20/50 = 2/5 ✓ and 20/60 = 1/3 ✓.
(a) P(A | B) = 25     (b) P(B | A) = 13
Exam tip Fractions or decimals are both accepted here — 2/5 or 0.4. What is not accepted is a rounded decimal for an exact answer: write 1/3 or 0.333… shown to at least 3 significant figures, never a bare 0.3.

P(A | B) and P(B | A) are different questions

Example 3 makes the point with numbers — 2/5 against 1/3 — but you should also feel it in words. The two conditionals share a numerator and nothing else:

The pilot test

Practically every airline pilot speaks English, so P(speaks English | pilot) is close to 1. But pick a random English speaker: the chance they fly airliners for a living, P(pilot | speaks English), is close to 0. Same overlap — the English-speaking pilots — but divided by two wildly different worlds. Whenever you finish a conditional answer, say the sentence back to yourself: “out of the given group, how many are in the target?” If the sentence sounds reversed, the fraction is reversed too.

Watch out On mark schemes the reversed conditional is a listed wrong answer — the examiners expect it. In Example 1, P(plays | Year 11) = 18/40 but P(Year 11 | plays) = 18/42. Before you divide, ask: which group am I standing inside? The words after “given that” are the group you are standing inside.

More worked examples

Example 4In a school of 120 students, 50 study French (F), 40 study Spanish (S) and 20 study both. A student is chosen at random. Find (a) P(F | S), (b) P(S | F), and (c) explain why the answers differ although both use the same 20 students.
1
Fill the Venn inside out: 20 in the overlap, then F only = 30, S only = 20, and neither = 120 − 70 = 50. 30 + 20 + 20 + 50 = 120 ✓
2
(a) Given S: new total is the whole S circle. n(S) = 20 + 20 = 40  →  P(F | S) = 20/40 = 1/2
3
(b) Given F: new total is the whole F circle. n(F) = 30 + 20 = 50  →  P(S | F) = 20/50 = 2/5
4
(c) Both fractions carry the same 20 dual-linguists on top, but they are measured against different worlds — 40 Spanish students in (a), 50 French students in (b). Different denominators, different answers.
(a) P(F | S) = 12    (b) P(S | F) = 25    (c) same overlap, different totals
Example 5Paper 4 style. In a group of 60 people, 32 own a cat (C), 25 own a dog (D) and 12 own both. (a) Draw a Venn diagram. (b) Find the probability that a randomly chosen person owns neither animal. (c) Given that a person owns a dog, find the probability that they also own a cat. (d) Given that a person does not own a cat, find the probability that they own a dog.
1
(a) Inside out: 12 in the overlap, C only = 32 − 12 = 20, D only = 25 − 12 = 13, neither = 60 − 45 = 15. 20 + 12 + 13 + 15 = 60 ✓
2
(b) No condition — divide by the full 60. P(neither) = 15/60 = 1/4
3
(c) Given D: the new total is the whole D circle, 25. The cat owners inside it are the 12 in the overlap. P(C | D) = 12/25
4
(d) Given C′: the new world is everyone outside the C circle — the D-only region and the neither region. n(C′) = 13 + 15 = 28
5
Inside that world of 28, the dog owners are the 13 in D only — the 12 in the overlap own cats, so they are gone. P(D | C′) = 13/28
(b) 14    (c) P(C | D) = 1225    (d) P(D | C′) = 1328
Exam tip Part (d) is where Paper 4 earns its reputation: a conditional on a complement. The routine does not change — shade the given region (everything outside C), total it, and count the favourable part of the shading. If you can restrict to a circle, you can restrict to everything-but-a-circle.

Your turn

Practice set

  1. A two-way table for 40 students shows: boys — 9 walk, 11 take the bus; girls — 12 walk, 8 take the bus. Find (a) P(walks | boy) and (b) P(boy | walks).
  2. A Venn diagram shows 8 in A only, 4 in A ∩ B, 6 in B only and 2 in neither. Find P(A | B) and P(B | A).
  3. A bag holds 7 red and 3 green sweets. Two are taken at random without replacement. Write down P(second green | first green), and find P(both green).
  4. P(A) = 0.55, P(B) = 0.4 and P(A ∩ B) = 0.24. Find P(A | B) and P(B | A).
  5. Of 50 club members, 28 like tennis (T), 23 like squash (S) and 8 like neither. Find the number who like both, and hence find P(S | T).

  1. (a) Restrict to the boys row: 9 walkers out of 9 + 11 = 20 boys, so P(walks | boy) = 9/20. (b) Restrict to the walk column: 9 + 12 = 21 walkers, 9 of them boys, so P(boy | walks) = 9/21 = 3/7
  2. n(B) = 4 + 6 = 10, so P(A | B) = 4/10 = 2/5; n(A) = 8 + 4 = 12, so P(B | A) = 4/12 = 1/3
  3. After a green is taken, 2 greens remain among 9 sweets: P(second green | first green) = 2/9. Chain for both: 3/10 × 2/9 = 6/90 = 1/15
  4. P(A | B) = 0.24/0.4 = 0.6; P(B | A) = 0.24/0.55 = 24/55 = 24/55 (≈ 0.436, 3 s.f.)
  5. n(T ∪ S) = 50 − 8 = 42, so both = 28 + 23 − 42 = 9. Given T, the new total is 28, and 9 of those like squash: P(S | T) = 9/28

Key points to remember

  • “Given that” shrinks the sample space: the words after it name your new total, and both top and bottom of the fraction must come from inside that world. Underline them.
  • From a Venn diagram: P(A | B) = overlap ÷ the whole given circle. From a table: cell ÷ the given row or column total. The grand total never appears in a conditional answer.
  • On a without-replacement tree, the second-stage branches are conditional probabilities — “write down” questions want the single branch, unmultiplied.
  • Multiplying along a tree path is the conditional chain: P(A ∩ B) = P(A) × P(B | A).
  • When only probabilities are given, restrict with P(A | B) = P(A ∩ B)/P(B) — or invent a population of 100 and read a Venn diagram. The formula is not required by the syllabus.
  • Order matters: P(A | B) ≠ P(B | A) — same overlap on top, different worlds underneath.
  • Do not confuse P(A ∩ B) (divide by everyone) with P(A | B) (divide by the given set).

Where next?

✅ Mark scheme All notes

Progress is saved on this device only and appears on the notes home page.