IGCSE Maths · Area 8 · Probability

Conditional Probability

A conditional probability answers a question that has already told you something: the probability of A given that B has happened. The whole skill is deciding which group the question is choosing from, and that group goes on the bottom of the fraction. This page reads conditional probabilities off a two-way table, a Venn diagram and a tree diagram, then uses them to test whether two events are independent.

Not started

Syllabus coverage

  • Calculate conditional probability using Venn diagrams, tree diagrams and tables
  • Extended only: knowledge of the notation P(A given B) and formulas relating to conditional probability is not required
  • Extended only (E8.3): calculate the probability of combined events with or without replacement
  • Extended only (E8.3): use tree diagrams with outcomes at the end of the branches and probabilities beside the branches, and the notation P(A and B) and P(A or B) in the context of Venn diagrams

Part of the IGCSE Maths syllabus 0580.

Conditional probability: three views of the same group1 · Two-way tableWalksBusTotalBoysGirlsTotal18123062430243660the given group: 24 students who walk18/24 = 3/42 · Venn diagramξ = 50CatDog1812812the given group: 20 who own a dog12/20 = 3/53 · Tree diagrambag of 3 red and 2 blue, taken without replacement3/52/5RB2/42/43/41/4RR3/10RB3/10BR3/10BB1/10P(second is red given the first was blue)2/5 × 3/4 = 3/10: both events,not a conditional probability
Conditional probability three ways: from a two-way table, from a Venn diagram and from a tree diagram.

What 'given that' does to the question

A conditional probability is the probability of one event when you already know that another has happened. The phrases that signal it are given that, if, and of the people who: 'the probability that the second counter is red given that the first was blue'.

Nothing about the world changes. What changes is the group you are choosing from. Knowing that the first counter was blue rules out some of the possibilities, so the sample space shrinks to the outcomes that match what you were told. The denominator of the fraction is the size of that smaller group, and the numerator counts the outcomes inside it that also satisfy the event you want.

Two fair dice show the shrinking clearly. The sample space has 36 outcomes and P(total is 8)=536. Now suppose you are told the first dice shows a 4. Only the six outcomes (4,1) to (4,6) are still possible, and just one of them, (4,4), gives a total of 8. So P(total is 8 given the first dice is 4)=16, not 536.

The order matters. P(A given B) and P(B given A) are different questions with different denominators: whatever is named after 'given that' is the group you divide by.

  • Told that the first dice is a 4, the 36 outcomes fall to 6
  • P(total 8)=536, but P(total 8 given first is 4)=16
  • The event named after 'given that' supplies the denominator
  • The numerator is the count of the outcomes in that smaller group that satisfy the event you want
The whole topic is one idea: find the smaller group the question has told you about, then count inside it. Tables, Venn diagrams and trees are three ways of seeing that group quickly.

Reading it off a two-way table

A two-way table is the friendliest place to find a conditional probability, because the group you were given is already a row total or a column total. In this year group of 60 students, 30 are boys and 30 are girls, 18 of the boys and 6 of the girls walk to school, and the rest take the bus.

'Of the students who walk to school, one is chosen at random. Find the probability that the student is a boy.' The given group is the 24 who walk, so the denominator is 24. Of those 24, 18 are boys, so P(boy given walks)=1824=34.

Swap the given group and the answer changes. P(walks given boy)=1830=35, because the denominator is now the 30 boys. The numerator is the same 18 either way; only the group named after 'given that' moves.

The two conditional probabilities for one given group always add to 1. Every student who walks is either a boy or a girl, so 1824+624=1. That is a free check on your reading of the table.

  • P(boy given walks)=1824=34
  • P(girl given walks)=624=14, and the two add to 1
  • P(walks given boy)=1830=35
  • P(bus given girl)=2430=45
WalksBusTotal
Boys181230
Girls62430
Total243660
Never use the grand total in a conditional answer unless the given group is everybody. 1860 answers a different question - the plain probability of choosing a boy who walks.

Reading it off a Venn diagram

On a Venn diagram the given event is one whole circle, overlap included. The denominator is everything inside that circle; the numerator is the part of the overlap that also satisfies the event you want.

In a survey of 50 people, 30 own a cat, 20 own a dog and 12 own both. The four regions are 18 cat only, 12 both, 8 dog only, and 12 who own neither.

Given that a person owns a dog, the group is the 20 inside the dog circle - the 8 dog only plus the 12 who own both. So P(cat given dog)=1220=35.

Reverse it and the circle changes: P(dog given cat)=1230=25. The same 12 sits on top both times, because both questions are about the overlap; only the circle underneath moves.

QuestionDenominatorAnswer
P(cat)50, the whole survey3050=35
P(cat given dog)20, the dog circle1220=35
P(dog given cat)30, the cat circle1230=25
P(cat and dog)50, the whole survey1250=625
The overlap is the numerator of both conditional questions and the whole answer to the 'and' question. The number that changes as you move the 'given that' is the denominator.

Tree diagrams: the branches already are conditional

On a tree diagram the second level of branches is a set of conditional probabilities. Each one answers 'given that this first outcome happened, what now?'. That is exactly why the numbers on the second level are unequal when the first counter is not replaced.

A bag holds 3 red and 2 blue counters, and two are taken without replacement. The first pair of branches is 35 and 25. After a red, four counters remain with 2 red and 2 blue, so the second pair is 24 and 24. After a blue, four counters remain with 3 red and 1 blue, so that pair is 34 and 14.

Reading a conditional probability off the tree is a one-step job. P(the second counter is red given the first was blue)=34, straight off the branch that follows blue. To find the probability of both events, multiply along the path: P(the first is blue and the second is red)=25×34=620=310.

Notice how the two answers differ. 34 is a single branch and is conditional; 310 is the product of two branches and is not. A question that says 'given that' is asking for the branch, and multiplying there loses the mark.

Number on the treeWhat it means
35, first levelP(the first counter is red)
24, after a redP(the second is red given the first was red)
24, after a redP(the second is blue given the first was red)
34, after a blueP(the second is red given the first was blue)
310, a whole pathP(the first is blue and the second is red)=25×34
Every fork adds to 1, and the second fork is where the conditional probabilities live: 2/4 + 2/4 = 1 after a red, and 3/4 + 1/4 = 1 after a blue.

The multiplication rule, rearranged

Multiplying along a tree path gives P(A and B)=P(A)×P(B given A). The second factor is conditional because it is the probability of B in the world where A has already happened.

Rearranged, the same rule turns a joint probability into a conditional one: P(B given A)=P(A and B)P(A). Divide the probability of both events by the probability of the one you were given.

The cat and dog survey shows it working. P(cat and dog)=1250 and P(dog)=2050, so P(cat given dog)=1250÷2050=1220=35, which is the answer the Venn diagram gave by counting.

The rule also explains why the denominator is the given event. P(A) is the fraction of the world in which A happened, and dividing by it rescales the world so that A is certain. Everything you can find by counting regions follows from that one line.

  • P(A and B)=P(A)×P(B given A)
  • P(B given A)=P(A and B)P(A)
  • Two dice: P(total 8 and first is 4)=16×16=136, and 136÷16=16 gives back the conditional probability found by counting
The syllabus note on E8.4 says that the notation P(A given B) and the formulas are not required. Cambridge gives you a Venn diagram, a table or a tree diagram and expects the answer read from it. The rule is here because it explains the reading, not because you have to quote it.

Independence: when knowing one event changes nothing

Two events are independent when being told that one has happened leaves the probability of the other exactly as it was: P(A given B)=P(A). That single equation is the test, and it is the only test Cambridge expects.

Two dice are independent. P(the first dice is a 6)=16, and if you are told the second dice showed a 3, the first is still a 6 with probability 16. The information is irrelevant, so the two numbers match.

Two counters taken from a bag without replacement are not independent. With 3 red and 2 blue, P(the second is red)=35 - the same as for the first, by symmetry - but P(the second is red given the first was red)=24=12. Since 12 is not 35, the two draws are not independent.

Independence is also what makes the 'and' rule from combined events work. When A and B are independent, P(B given A)=P(B), so the multiplication rule becomes P(A and B)=P(A)×P(B). When they are not independent, that shortcut is wrong and the conditional branch has to be used.

  • Independent: P(A given B)=P(A), and P(A and B)=P(A)×P(B)
  • Not independent: P(A given B) differs from P(A), and the second set of tree branches is unequal
  • Telling you the second dice showed a 3 does not change P(first is a 6)=16, so the dice are independent
  • With 3 red and 2 blue taken without replacement, P(second red)=35 but P(second red given first red)=12, so the draws are not independent
Independent is a statement about probability, not about cause. Compare the two numbers and say which is which; deciding from the story alone scores nothing.

Key terms you must be able to define

Conditional probability
The probability of one event when it is known that another has happened. The group named after 'given that' is the group you divide by.
Given that
The phrase that names the group the probability is calculated inside. It changes the denominator, not the events.
Sample space
Every outcome that can happen. For two dice it has 36 outcomes.
Reduced sample space
The outcomes that are left once you are told the given event happened. Told that the first dice is a 4, the sample space of 36 falls to 6.
Independent events
Events where P(A given B)=P(A): knowing one has happened does not change the probability of the other, so P(A and B)=P(A)×P(B).
Dependent events
Events where knowing one has happened changes the probability of the other, so the conditional probability differs from the plain one. Two counters taken without replacement are dependent.
Two-way table
Counts sorted by two features at once, with row totals, column totals and a grand total. The given group is one of those totals.
Venn diagram
Two overlapping circles inside a rectangle. The given event is one whole circle, overlap included.
Tree diagram
Branches with probabilities beside them and outcomes at the ends. The second level of branches holds the conditional probabilities.
Intersection, A∩B
The outcomes in both A and B: the overlap. It is the numerator of both P(A given B) and P(B given A).
Union, A∪B
The outcomes in A, in B, or in both. P(A∪B)=P(A)+P(B)−P(A∩B).
Complement, A′
The outcomes not in A, with P(A′)=1−P(A).
Without replacement
The first item is not put back, so the second draw is made from a smaller group and the two draws are dependent.
Multiplication rule
P(A and B)=P(A)×P(B given A), which rearranges to P(B given A)=P(A and B)P(A).
Mutually exclusive
Events that cannot both happen, so P(A and B)=0. Not the same as independent: mutually exclusive events are usually dependent.
At random
Every member of the group is equally likely to be chosen, which is what makes counting inside the group work.

In context

Cambridge sets 0580 in real situations - a recipe, a bank statement, a map, a garden, a graph of a car's journey. These show how the mathematics appears in a question, then you write your own working for the numbers you are given.

Two dice

P(the total is 8)=536. Given that the first dice shows a 4, only the six outcomes (4,1) to (4,6) remain and one of them gives 8, so P(total is 8 given first is 4)=16. The group shrank from 36 outcomes to 6.

A two-way table

Of 60 students, 30 are boys and 30 are girls; 18 boys and 6 girls walk to school. P(boy given walks)=1824=34, and P(walks given boy)=1830=35. The same 18 is on top both times; the group underneath is what changes.

A Venn diagram

Of 50 people, 30 own a cat, 20 own a dog and 12 own both. P(cat given dog)=1220=35 uses the dog circle of 20, while P(dog given cat)=1230=25 uses the cat circle of 30.

A tree diagram

A bag holds 3 red and 2 blue counters and two are taken without replacement. P(second is red given the first was blue)=34 is read straight off the branch, and P(first is blue and second is red)=25×34=310 is found by multiplying along the path.

Testing for independence

P(A)=0.5, P(B)=0.3 and P(A and B)=0.2. Then P(B given A)=0.20.5=0.4, which is not P(B)=0.3, so A and B are not independent.

Flashcards

Click a card to flip it. Mark honestly — the tracker uses this.

Q1What does 'given that' tell you to do?
It names the group you are choosing from. The size of that group goes on the bottom of the fraction.
Q2P(the total is 8)=536 for two dice. What is P(the total is 8 given the first dice is a 4)?
16. Only the six outcomes (4,1) to (4,6) remain, and one of them gives a total of 8.
Q3In a two-way table, which total do you divide by for a conditional probability?
The total of the given row or column - the group named after 'given that' - and not the grand total.
Q4On a Venn diagram, what goes underneath the fraction for P(A given B)?
Everything in the B circle, including the overlap with A.
Q5State the multiplication rule in its conditional form.
P(A and B)=P(A)×P(B given A).
Q6How do you rearrange the multiplication rule to get a conditional probability?
P(B given A)=P(A and B)P(A): divide the probability of both events by the probability of the one you were given.
Q7What is the test for two independent events?
P(A given B)=P(A). Knowing that B has happened leaves the probability of A unchanged.
Q8Are two counters taken without replacement independent?
No. The first draw changes the fractions for the second, so P(second is red given the first was red) differs from P(second is red).
Q9A bag holds 3 red and 2 blue counters. What is P(the second is red given the first was blue)?
34. After a blue is taken, four counters remain and three of them are red.
Q10What is P(the second is red given the first was red) for the same bag?
24=12, because two of the four remaining counters are red.
Q11P(A)=0.5, P(B)=0.3 and P(A and B)=0.2. Are A and B independent?
No. P(B given A)=0.20.5=0.4, which is not P(B)=0.3.
Q12Where on a tree diagram do you find a conditional probability?
On the second-level branches. Each one is the probability of that outcome given the first-level outcome it follows.
Q13Is 'mutually exclusive' the same as 'independent'?
No. Mutually exclusive events cannot both happen, so P(A and B)=0. That normally makes them dependent, because knowing one happened makes the other impossible.
Q14Do the two conditional probabilities for one given group add to anything useful?
Yes, they add to 1. If 24 students walk, then P(boy given walks)+P(girl given walks)=1824+624=1.
0 of 14 marked as known

Exam-style questions

7 questions, 20 marks. Write your answer, then reveal the mark scheme and tick each point you actually made. Answering honestly here is what makes the rest of the site useful.

CalculateAO22 marks
In a year group of 60 students there are 30 boys and 30 girls. 18 of the boys and 6 of the girls walk to school, and the rest take the bus. One of the boys is chosen at random. Calculate the probability that he walks to school.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • A11830=35not checked yet
Examiner tip: 'One of the boys' is the phrase that sets the denominator at 30. The 60 students in the year group are not the group being chosen from.
CalculateAO22 marks
In the same year group of 60 students, 18 of the 30 boys and 6 of the 30 girls walk to school. One of the students who walk to school is chosen at random. Calculate the probability that the student is a girl.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • A1624=14not checked yet
Examiner tip: The same numbers, a different group. The previous question divided by the 30 boys; this one divides by the 24 students who walk.
CalculateAO23 marks
In a survey of 50 people, 30 own a cat, 20 own a dog and 12 own both. One of the people who own a dog is chosen at random. Calculate the probability that this person also owns a cat.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A11220=35not checked yet
Examiner tip: The overlap goes on top because the question asks about people who own both; the dog circle goes underneath because that is the group you were given.
CalculateAO23 marks
A bag contains 3 red counters and 3 blue counters. Two counters are taken at random without replacement. Calculate the probability that the second counter is red given that the first counter was red, and the probability that the second counter is red given that the first counter was blue. Give your two answers in this order.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A125 and 35, in that ordernot checked yet
Examiner tip: Both answers come off the second level of the tree: the denominator is 5 either way, and only the number of red counters left changes. The order of the two answers is part of the question.
CalculateAO22 marks
A and B are two events. The probability that A happens is 0.5, and the probability that both A and B happen is 0.2. Calculate the probability that B happens given that A happens.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • A10.4not checked yet
Examiner tip: Divide the probability of both events by the probability of the event you were given. The formula is not required by the syllabus, but it is the quickest route when the question gives numbers rather than a diagram.
DetermineAO24 marks
A and B are two events with P(A)=0.5, P(B)=0.3 and P(A and B)=0.2. Determine the probability that B happens given that A happens, and state whether A and B are independent. Give your probability first and then yes or no.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • B1
  • B1
  • A10.4 and nonot checked yet
Examiner tip: Independence is decided by comparing P(B given A) with P(B). Write both numbers down, because the comparison itself is what the second mark is for.
CalculateAO24 marks
A leisure centre asked 100 of its users how they exercise. Of the 40 members, 30 swim and 10 use the gym. Of the 60 non-members, 20 swim and 40 use the gym. One of the people who swim is chosen at random. Calculate the probability that this person is a member. One of the members is then chosen at random. Calculate the probability that this person swims. Give your two answers in this order.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • M1
  • A135 and 34, in that ordernot checked yet
Examiner tip: Two questions, two different groups. The first divides by the 50 who swim and the second by the 40 members, with the same 30 on top both times.

Exam technique for this topic

  • Underline the phrase that names the given group - 'given that', 'of the people who', 'one of the boys'. That group is the denominator, and nothing else in the question is.
  • If the question gives a table, take the denominator from the row or column total of the given group. The grand total is only the denominator when the given group is everybody.
  • On a Venn diagram the denominator is the whole circle of the given event, overlap included; the numerator is the overlap when you are asked about the other event.
  • On a tree diagram a 'given that' question is answered by a single branch, not by a product. Multiply along a path only when the question asks for both events.
  • When you are asked whether two events are independent, work out P(A given B), write P(A) beside it, and say which is which. 'They look unrelated' scores nothing.

Why students lose marks here

A student wroteP(a boy given that the student walks)=1860=310.
Why it loses marksThe denominator is the 24 students who walk to school, not the 60 in the year group. 310 answers the plain probability of picking a boy who walks, which is a different question.
The answer that scoresP(boy given walks)=1824=34.
A student wroteP(owns a cat given owns a dog)=1230=25.
Why it loses marksThe two events have been swapped. 'Given owns a dog' names the dog group of 20, not the cat group of 30, so the wrong circle has been used underneath.
The answer that scoresP(cat given dog)=1220=35.
A student wroteTwo counters are taken from a bag of 3 red and 2 blue without replacement, and P(second is red given the first was red)=35.
Why it loses marksThe first counter was not put back, so four counters remain and only two of them are red. Reusing 35 treats the two draws as independent when they are not.
The answer that scoresP(second is red given the first was red)=24=12.
A student wroteP(A)=0.5, P(B)=0.3 and P(A and B)=0.2, so A and B are independent because 0.5−0.3=0.2.
Why it loses marksSubtracting the probabilities has no meaning here. Independence is tested by comparing P(B given A) with P(B), not by looking for a difference that happens to match.
The answer that scoresP(B given A)=0.20.5=0.4, which is not P(B)=0.3, so the events are not independent.
A student wroteP(the second counter is red given the first was blue)=25×34=310.
Why it loses marksMultiplying gives the probability of both events, not the conditional probability of the second one. The branch on its own is the answer to a 'given that' question.
The answer that scores34. The product 310 is the answer to 'the first is blue and the second is red'.