Home / IGCSE Mathematics 0580 / Conditional probability
Cambridge IGCSE Mathematics 0580 · Probability

Conditional probability

The probability of an event when you already know that another event has happened. How to find it from two-way tables, Venn diagrams and tree diagrams by working only inside the group you are told about.

E8.4Extended onlyFree lesson
What the syllabus says

E8.4 (Extended)

  • Calculate conditional probability using Venn diagrams, tree diagrams and tables.

Notes and examples

  • Knowledge of notation, P(A|B), and formulas relating to conditional probability is not required.

Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.

What conditional probability means Extended

A conditional probability is the probability of an event given that something else is already known to have happened.

Compare these two questions about a class:

  • "A student is chosen at random. What is the probability that the student wears glasses?"
  • "A student is chosen at random. Given that the student is a girl, what is the probability that she wears glasses?"

In the second, you are told the student is a girl, so the boys can be ignored completely. The question has become: what fraction of the girls wear glasses?

That is the whole idea. The given information shrinks the group you choose from. The bottom of the fraction is no longer everybody; it is only the members of the group you have been told about.

probability=number in the given group who also have the propertynumber in the given group

Questions use words such as "given that", "if", or "a student who ... is chosen". You do not need any special notation or formula for this topic: understanding which group you are now choosing from is enough.

Conditional probability from a table Extended

A two-way table sorts the same people in two ways at once, with totals for every row and column. To find a conditional probability:

  1. Find the row or column for the given group, and read its total. That is the bottom of the fraction.
  2. In that same row or column, read the number who also have the property asked about. That is the top.
  3. Divide.

The most common mistake is to divide by the grand total, as if nothing had been given. The second most common is to divide by the wrong row or column: "given that the student is in Year 10" means divide by the Year 10 total, not by the football total.

Worked example 1 Extended

The table shows the main sport of 80 students. A student is chosen at random. (a) Given that the student is in Year 11, find the probability that their main sport is netball. (b) Given that the student's main sport is football, find the probability that the student is in Year 10.

Year 10 and Year 11 students and their main sport
FootballNetballSwimmingTotal
Year 1018121040
Year 111520540
Total33321580
  1. (a) The student is in Year 11, so choose only from the Year 11 row: 40 students.

  2. 20 of them play netball. Probability =2040=12.

  3. (b) The main sport is football, so choose only from the football column: 33 students.

  4. 18 of them are in Year 10. Probability =1833=611.

  5. Compare with the probability that a student chosen from everyone is in Year 10 and plays football: 1880. The given information changes the answer.

Answer: (a) 12 (b) 611

Check yourself Extended

Use the table in Worked example 1. Given that a student's main sport is swimming, find the probability that the student is in Year 11.

Answer it in the portal, where your answer is checked as you type →

Conditional probability from a Venn diagram Extended

On a Venn diagram the given group is usually a circle, or the part outside a circle.

  • "Given that the person is in B": the bottom is the total of circle B (both of its regions).
  • "Given that the person is not in B": the bottom is everything outside B, including the region outside both circles.
  • "Given that the person is in at least one set": the bottom is everything inside the circles.

Then the top is the part of that group that has the property asked about.

The method is identical when the regions hold probabilities instead of numbers. Probabilities are just the numbers divided by the total, so the ratio is the same: divide the probability of the part you want by the probability of the whole given group. For example, if P(B)=0.4 and the overlap is 0.1, then given B, the probability of A is 0.10.4=0.25.

Worked example 2 Extended

The Venn diagram shows how many of 40 students drink tea (T) and coffee (C). A student is chosen at random. (a) Given that the student drinks coffee, find the probability that they also drink tea. (b) Given that the student does not drink coffee, find the probability that they drink tea.

ℰTC146911
  1. (a) The given group is circle C: 6+9=15 students.

  2. Of these, 6 also drink tea. Probability =615=25.

  3. (b) The given group is everyone outside C: 14+11=25 students.

  4. Of these, 14 drink tea. Probability =1425.

Answer: (a) 25 (b) 1425

Worked example 3 Extended

The Venn diagram shows the probabilities of events A and B. Find the probability that B happens, given that A happens.

ℰAB0.350.250.150.25
  1. Given A, work inside circle A: its probability is 0.35+0.25=0.6.

  2. The part of A where B also happens is the overlap, 0.25.

  3. Probability =0.250.6=2560=512.

Answer: 512

Conditional probability on a tree diagram Extended

On a tree diagram for events that depend on each other, the second set of branches already shows conditional probabilities. In a bag of 3 red and 5 white counters taken without replacement, the branch "red" after a first red counter is 27: that is the probability the second counter is red given that the first was red.

Harder questions turn this round and give you the result, asking about what came first: "given that the second counter is red, find the probability that the first was red." Use the same idea as before, with probabilities:

  1. Find the probability of the given result by adding every path that leads to it. This is the given group.
  2. Find the probability of the path or paths that also have the property asked about.
  3. Divide the second by the first.

Why this works. Imagine the experiment done many times. The given result happens on a certain fraction of occasions; you only look at those. Among them, the fraction that also had the first property is the ratio of the two probabilities, exactly as dividing two counts in a table.

Worked example 4 Extended

A bag contains 3 red and 5 white counters. Two counters are taken at random without replacement. (a) Given that the first counter is white, write down the probability that the second is red. (b) Find the probability that the second counter is red. (c) Given that the second counter is red, find the probability that the first counter was red.

3/8Red2/7Red5/7White5/8White3/7Red4/7WhiteFirst counterSecond counter
  1. (a) Read it from the branch after white: 37.

  2. (b) Red, red: 38×27=656. White, red: 58×37=1556.

  3. Second red: 656+1556=2156=38.

  4. (c) The given group is "second red", probability 2156. The part of it where the first was also red is 656.

  5. Probability =656÷2156=621=27.

Answer: (a) 37 (b) 38 (c) 27

Worked example 5 Extended

A test for a fault in a machine part is not perfect. 10% of parts have the fault. If a part has the fault, the test shows "faulty" with probability 0.9. If a part does not have the fault, the test shows "faulty" with probability 0.05. A part shows "faulty". Find the probability that it really has the fault.

0.1Fault0.9Shows faulty0.1Shows fine0.9No fault0.05Shows faulty0.95Shows finePartTest
  1. Has the fault and shows faulty: 0.1×0.9=0.09.

  2. No fault but shows faulty: 0.9×0.05=0.045.

  3. Shows faulty (the given group): 0.09+0.045=0.135.

  4. Probability it really has the fault =0.090.135=90135=23.

  5. So one in three parts that the test calls faulty is actually fine, even though the test looks accurate. This is why the given group matters.

Answer: 23

Check yourself Extended

Use the tree diagram in Worked example 4. Given that the two counters are different colours, find the probability that the first counter was red.

Answer it in the portal, where your answer is checked as you type →

Key points

  • "Given that" tells you which group you are choosing from. Ignore everything outside it.

  • Table: divide by the total of the given row or column, not the grand total.

  • Venn diagram: the given group is a circle, the outside of a circle, or the inside of both circles; divide by its total.

  • With probabilities instead of numbers, divide the probability of the part you want by the probability of the given group.

  • Tree diagram: the second branches are already conditional probabilities.

  • Given the result, asking about the first stage: add the paths for the given result, then divide the matching path by that total.

Where marks are lost

  • Dividing by the grand total, as if nothing had been given.

  • Dividing by the wrong group: "given that the student swims" divides by the swimmers, not by Year 11.

  • In a Venn diagram, forgetting the region outside both circles when the given group is "not in B".

  • Giving the probability of the whole path (such as 656) when the question asks for a probability given the result.

  • Reading a branch probability as the answer when the question is given the result of the second stage.

  • Rounding the top and bottom before dividing. Keep fractions, or full calculator values, until the end.

Related IGCSE Mathematics 0580 lessons

All IGCSE Mathematics 0580 lessons →

An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.