Websink Prep UKGCSE MathsTextbook contentsMaths textbooksYear 1Year 2Year 4Year 5Year 6GCSEBrowse allPast papersFind a tutorBecome a tutor
GCSE Maths · EdexcelChapter 23 · Probability
GCSE Maths · Probability · Higher · Lesson 23.9

GCSE Maths: Conditional probability and probability with algebra (Higher)

Part of the GCSE Maths probability chapter (Higher). Chapter overview · whole chapter on one page · Download worksheet (PDF) · Answers (PDF)

Download worksheet (PDF)Answers (PDF)
23.9

Conditional probability and probability with algebra

Edexcel 1MA1: P9, P8
Grade 6-9

Sometimes we are told something has already happened, and we are asked how likely something else is given that. This is conditional probability. It is written P(A | B), read “the probability of A given B”. For example, “P(girl | walks)” means: choose a student who walks, and ask how likely it is that this student is a girl.

The word given shrinks the sample space. We are no longer choosing from everyone. We are choosing only from the group we are told about. So the bottom of the probability fraction is the size of that group, not the grand total.

WalkBusTotal
Boys12618
Girls9817
Total211435
P(girl | walks): look only at the Walk column. 9 of the 21 students who walk are girls, so P = 9/21 = 3/7.

From a two-way table: restrict to the row or column named after “given”. From a Venn diagram: P(A | B) = n(A ∩ B) ÷ n(B). From a tree diagram: use the rule P(A | B) = P(A and B) ÷ P(B), where P(A and B) is a route probability and P(B) is found by adding the routes where B happens. On a tree with dependent events the branch for the second stage is already a conditional probability: for example, the branch probability 3/9 on the second stage after a red is P(second red | first red).

Order matters. P(A | B) is usually not the same as P(B | A). The probability that a person who owns a pet is a child is different from the probability that a child owns a pet. Independence. Events A and B are independent exactly when knowing B does not change the probability of A, that is P(A | B) = P(A), which is the same as P(A and B) = P(A) × P(B).

Algebra and probability. Probabilities can contain unknowns. If a bag has x red counters and 5 blue counters, then P(red) = x/(x + 5). If we are told P(red) = 3/5, we form an equation and solve it. We use two facts again and again: all the probabilities of the outcomes add up to 1, and probabilities of picks without replacement multiply with the numbers going down by one.

Key ideas

  • P(A | B) means the probability of A given that B has happened. “Given” shrinks the sample space to the group B.
  • Table or Venn: P(A | B) = n(A ∩ B) ÷ n(B). Tree: P(A | B) = P(A and B) ÷ P(B).
  • P(A | B) is not usually the same as P(B | A).
  • A and B are independent when P(A | B) = P(A), that is P(A and B) = P(A) × P(B).
  • With algebra: write each probability as a fraction containing the unknown, make an equation, and solve it. All probabilities add up to 1.
Worked example 23.9.1
The table shows how 35 students travel to school. A student who walks is chosen at random. Find the probability that the student is a girl.
WalkBusTotal
Boys12618
Girls9817
Total211435

Key words. Conditional probability is the probability of an event given that another event has happened. The word “given” shrinks the sample space to just the group we are told about. P(A | B) = n(A ∩ B) ÷ n(B).

Method. For a conditional probability, shrink the sample space to the group we are told about (the “given” group), then work out probability = favourable ÷ size of that group.

  1. Narrow down to the group we are told about: the student walks. The word “given” tells us the choice has already been made from this group only. The size of this group goes on the bottom.
    Walk column total = 12 + 9 = 21 students
  2. Count how many in that group also have the event: the student is a girl. This is the number we want. It goes on the top.
    9 of them are girls, so 9
  3. Write the probability as a fraction. Probability = number of favourable outcomes ÷ total number of equally likely outcomes.
    P(the student is a girl | the student walks) = 921
  4. Simplify the fraction. Divide the top and the bottom by their highest common factor, 3. The value does not change but the numbers are smaller.
    9 ÷ 3 = 3 and 21 ÷ 3 = 7
    921 = 37

Check. The other 12 outcomes do not fit the event, so P(the event does not happen) = 47. Then 921 + 1221 = 2121 = 1, as the probabilities of an event happening and not happening must add up to 1. ✓

Watch out. The bottom of a conditional probability is the size of the group after “given”, not the total of everyone.

Worked example 23.9.2
The Venn diagram shows 24 students: A is the set who study art and B is the set who study music. A student who studies music is chosen at random. Find P(A | B).
ABξ4875

Key words. Conditional probability is the probability of an event given that another event has happened. The word “given” shrinks the sample space to just the group we are told about. P(A | B) = n(A ∩ B) ÷ n(B).

Method. For a conditional probability, shrink the sample space to the group we are told about (the “given” group), then work out probability = favourable ÷ size of that group.

  1. Narrow down to the group we are told about: B. The word “given” tells us the choice has already been made from this group only. The size of this group goes on the bottom.
    n(B) = 5 + 7 = 12 students study music
  2. Count how many in that group also have the event: A. This is the number we want. It goes on the top.
    n(A ∩ B) = 5 students are in both
  3. Write the probability as a fraction. Probability = number of favourable outcomes ÷ total number of equally likely outcomes.
    P(A | B) = 512

Check. The other 7 outcomes do not fit the event, so P(the event does not happen) = 712. Then 512 + 712 = 1212 = 1, as the probabilities of an event happening and not happening must add up to 1. ✓

Watch out. The bottom of a conditional probability is the size of the group after “given”, not the total of everyone.

Worked example 23.9.3
A bag has 4 red and 6 blue counters. Two counters are taken without replacement. Given that the second counter is red, find the probability that the first counter was also red.
4/10R3/9R6/9B6/10B4/9R5/9B

Key words. Conditional probability is the probability of an event given that another event has happened. The word “given” shrinks the sample space to just the group we are told about. P(A | B) = n(A ∩ B) ÷ n(B).

Method. P(A | B) = P(A and B) ÷ P(B). Use the tree to find P(B) and P(A and B), then divide.

  1. Write the rule. Conditional probability: the probability of the event given the condition is the probability of both, divided by the probability of the condition.
    P(first red | second red) = P(first red and second red)P(second red)
  2. Find P(second red). Find every route on the tree where the condition happens, multiply along each, and add.
    red then red: 410 × 39 = 1290 = 215
    blue then red: 610 × 49 = 2490 = 415
    215 + 415 = 615 = 25
    P(second red) = 25
  3. Find P(first red and second red). Of those routes, pick the ones where the event also happens.
    red then red: 410 × 39 = 1290 = 215
    P(first red and second red) = 215
  4. Divide. Write both probabilities over a common denominator, so we can just divide the numerators.
    215 ÷ 615 = 2 ÷ 6 = 13

Check. Think of 6 equally likely cases where the condition holds, of which 2 also have the event: 13. ✓

Watch out. The bottom is the probability of the given condition, not 1 and not the total.

Worked example 23.9.4
A medical test is given to 1000 people. 2% have the condition. The test is positive for 90% of people with the condition and for 5% of people without it. A person has a positive test. Find the probability that they have the condition.

Key words. Conditional probability is the probability of an event given that another event has happened. The word “given” shrinks the sample space to just the group we are told about. P(A | B) = n(A ∩ B) ÷ n(B).

Method. Use expected numbers (a frequency tree). The “given positive” group is everyone with a positive test, so find its size.

  1. Find the number with the condition. 2% of 1000.
    0.02 × 1000 = 20 people have the condition, 980 do not.
  2. Find the positive tests in each group. 90% of 20 and 5% of 980.
    0.9 × 20 = 18
    0.05 × 980 = 49
  3. Find the total number of positive tests. This is the size of the group we are told about (“given positive”).
    18 + 49 = 67
  4. Find how many of these have the condition. Positive tests among those with the condition.
    18 people
  5. Write the probability. Number with the condition and positive, over all positives.
    1867
  6. Show the frequency tree. This summarises all the numbers.
    People1000Has condition20Positive18Negative2No condition980Positive49Negative931

Check. 18 ÷ 67 = 0.269: only about 27%, even though the test looks accurate, because the condition is rare. ✓

Watch out. The bottom is all the positive tests, not all 1000 people and not just the 20 who have the condition.

Worked example 23.9.5
P(A) = 0.4, P(B) = 0.5 and P(A and B) = 0.2. Find P(A | B) and say whether A and B are independent.

Key words. Conditional probability is the probability of an event given that another event has happened. The word “given” shrinks the sample space to just the group we are told about. P(A | B) = n(A ∩ B) ÷ n(B).

Method. Use P(A | B) = P(A and B) ÷ P(B), then compare with P(A).

  1. Write the rule. Conditional probability formula.
    P(A | B) = P(A and B) ÷ P(B)
  2. Substitute. Use the given values.
    0.2 ÷ 0.5 = 2 ÷ 5 = 0.4
  3. Compare with P(A). If P(A | B) = P(A), knowing B does not change the chance of A.
    P(A | B) = 0.4 = P(A)
  4. Conclude.
    A and B are independent.

Check. P(A) × P(B) = 0.4 × 0.5 = 0.2 = P(A and B). ✓

Watch out. Independence is tested by P(A | B) = P(A).

Worked example 23.9.6
A bag has 3 red counters and x blue counters. One counter is picked at random. P(blue) = 58. Form an equation and find the value of x.

Method. Write P(blue) as a fraction containing x, put it equal to 5/8, and solve.

  1. Count all the counters. The total is red plus blue.
    Total = 3 + x
  2. Write P(blue). Blue counters over all counters.
    P(blue) = x3 + x
  3. Form the equation. We are told P(blue) = 5/8.
    x3 + x = 58
  4. Cross-multiply. Multiply both sides by 8 and by (3 + x) to clear the fractions.
    8x = 5(3 + x)
  5. Expand and solve. Multiply out the bracket, subtract 5x from both sides, then divide by 3.
    8x = 15 + 5x
    3x = 15
    x = 5

Check. With 5 blue and 3 red there are 8 counters and P(blue) = 5/8. ✓

Watch out. Remember that the number of blue counters is also part of the total on the bottom.

Worked example 23.9.7
A bag has 5 red counters and x blue counters. Two counters are picked at random without replacement. The probability that both are red is 29. Show that x2 + 9x − 70 = 0 and hence find x.

Method. Write P(both red) as a product of two fractions in terms of x, equate to 2/9, rearrange into a quadratic and solve by factorising.

  1. Write the two probabilities. After the first red counter is taken, there is one fewer red and one fewer counter in total.
    P(1st red) = 55 + x, P(2nd red) = 44 + x
  2. Multiply and set equal to 2/9. Both red means first and second.
    55 + x × 44 + x = 20(5 + x)(4 + x) = 29
  3. Cross-multiply. Multiply both sides by 9 and by the bottom, then divide by 2.
    20 × 9 = 2(5 + x)(4 + x)
    90 = (5 + x)(4 + x)
  4. Expand and rearrange. (5 + x)(4 + x) = 20 + 9x + x2. Subtract 90 from both sides.
    20 + 9x + x2 = 90
    x2 + 9x − 70 = 0
  5. Factorise and solve. Two numbers that multiply to −70 and add to 9 are 14 and −5.
    (x + 14)(x − 5) = 0
    x = −14 or x = 5
  6. Choose the sensible answer. The number of counters cannot be negative.
    x = 5

Check. 5 red and 5 blue: P(both red) = 5/10 × 4/9 = 20/90 = 2/9. ✓

Watch out. Reject the negative solution in context.

Watch out

P(A | B) and P(B | A) are different. And the bottom of a conditional probability is the size of the given group: 9/21 for “a girl, given walks”, not 9/35. With algebra, do not forget that a counter taken without replacement also reduces the total: both the top and the bottom change.

Exercise 23M  Conditional probability

Non-calculator
1
FThe table shows how 35 students travel to school. Find the probability that...
WalkBusTotal
Boys12618
Girls9817
Total211435
(a)the student is a boy, given that the student takes the bus
(b)the student walks to school, given that the student is a girl
(c)the student takes the bus, given that the student is a boy
2
FThe Venn diagram shows 22 students: A studies Spanish and B studies French. A student is chosen at random. Find...
ABξ3964
(a)P(A | B)
(b)P(B | A)
(c)P(A | B′)
3
FA fair die is rolled. Given that the score is even, find the probability that the score is greater than 3.
4
FA card is chosen from a standard pack of 52 cards. Given that the card is a heart, find the probability that it is a king.
5
FA bag has 4 red and 6 blue counters. Two counters are taken at random without replacement. Find...
4/10R3/9R6/9B6/10B4/9R5/9B
(a)the probability that the second counter is red, given that the first was red
(b)the probability that the first counter was red, given that the second is red
(c)the probability that the counters are different colours, given that the second is blue
6
PSThe probability of rain on Monday is 0.3. If it rains on Monday, the probability of rain on Tuesday is 0.6. If it is dry on Monday, the probability of rain on Tuesday is 0.2. Find the probability that...
0.3R0.6R0.4D0.7D0.2R0.8D
(a)it rains on both days
(b)it rains on Tuesday
(c)it rained on Monday, given that it rains on Tuesday
7
PSA test is given to 2000 people. 1% have a disease. The test is positive for 95% of people with the disease and for 4% of people without it. Use a frequency tree to find the probability that a person with a positive test has the disease. Give your answer to 2 decimal places.
8
RZara says: “P(A | B) is always the same as P(B | A).” In a Venn diagram n(A) = 13, n(B) = 10 and n(A ∩ B) = 4. Show that Zara is wrong.
9
RP(A) = 0.5, P(B) = 0.4 and P(A and B) = 0.1. Show that A and B are not independent.
10
RThe table shows 80 students. Find the two probabilities below, and say what they tell you about playing an instrument and being in Year 10.
InstrumentNoneTotal
Year 10161430
Year 11242650
Total404080
(a)P(Year 10 | plays an instrument)
(b)P(Year 10)
(c)What the answers tell you
11
PSA bag contains 3 red and 5 blue counters. A counter is picked at random and put aside. A second counter is then picked. Given that the second counter is blue, find the probability that the first counter was red.
12
PSThe Venn diagram shows 40 students who travel by bus (A), bike (B) or car (C). Find...
ABCξ127536241
(a)P(A | B)
(b)P(C | A′)
(c)P(A ∩ B | C)

Exercise 23N  Probability and algebra

Non-calculator
1
FA bag has 3 red counters and x blue counters. P(blue) = 58. Form an equation and find the value of x.
2
FA bag has x red counters, 2x blue counters and 6 green counters. P(green) = 14. Find the value of x and the number of counters in the bag.
3
FThe probabilities that a spinner lands on A, B, C and D are 0.3, x, 2x and x + 0.1. Find the value of x and the probability that it lands on D.
4
FA bag has n counters. 4 of them are red and the rest are blue. Two counters are picked at random without replacement. The probability that both are red is 111. Show that n2 − n − 132 = 0 and find the value of n.
5
FA bag has x red counters and 6 blue counters. A counter is picked, replaced, and a second counter is picked. The probability that both are red is 14. Find the value of x.
6
FA bag has 3 red counters and x blue counters. Two counters are picked without replacement. P(both red) = 15. Show that x2 + 5x − 24 = 0 and find x.
7
PSThe Venn diagram shows 40 students. Find the value of x and then find the probability that a student chosen at random is in both A and B.
ABξx + 3x2x5
8
FP(A) = x, P(B) = 2x, P(A ∩ B) = 0.1 and P(A ∪ B) = 0.5. Find the value of x.
9
PSThe probability that Kim is late on any day is p, independently each day. The probability that she is late on both of two days is 0.09. Find p, and then the probability that she is late on exactly one of the two days.
10
PSA bag contains red and blue counters. P(red) = 35. Four more blue counters are added and then P(red) = 12. Find the original number of counters of each colour.
11
RP(A and B) = 0.12 and P(B) = x. Given that P(A | B) = 0.4, find the value of x.
12
PSThe probability that Mia wins her first game is p. If she wins, the probability she wins her second game is 0.7. If she loses, the probability she wins her second game is 0.4. The probability that she wins the second game is 0.55. Find p.
13
RA bag has x red and y blue counters. Two counters are picked without replacement. Prove that the probability that they are different colours is 2xy(x + y)(x + y − 1).

Websink Prep UK is an independent site. It is not affiliated with, endorsed by or sponsored by AQA, Pearson Edexcel, OCR, WJEC, Eduqas, CCEA, SQA, GL Assessment, CEM or the Department for Education. All exam board names and trademarks belong to their owners. Past papers are linked from the exam boards' own websites and are not hosted here.

About Websink Prep UK · Find a tutor · Privacy · Terms · Cookie settings