Probability Diagrams (Edexcel GCSE Statistics)

Revision Note

Sample Space Diagrams

What is a sample space diagram?

  • In probability, the sample space means all the possible outcomes

    • A sample space diagram is a way of showing all these outcomes in a systematic and organised way

  • In simple situations sample space diagram can just be a list

    • For flipping a coin, the sample space is: Heads, Tails

      • the letters H, T can be used

      • For flipping two coins the sample space could be given as: HH, HT, TH, TT (4 possible outcomes)

    • For rolling a six-sided dice, the sample space is:  1, 2, 3, 4, 5, 6

      • But for rolling two dice there would be 36 possibilities!

  • When combining two things a grid can be used to show the sample space

    • For example, rolling two six-sided dice and adding their scores

      • A list of all the possibilities would be very long

        • It would be hard to spot if you had missed any possibilities

        • It would be hard to spot any patterns

    • Use a grid instead

A sample space diagram for the sum of the numbers gotten on two dice
  • If you need to combine more than two things you'll probably need to go back to using a list

    • For example, flipping three coins (or flipping one coin three times!)

      • In this case the sample space is:  HHH, HHT, HTH, THH, HTT, THT, TTH, TTT (8 possible outcomes)

How do I use a sample space diagram to calculate probabilities?

  • Probabilities can often be found by counting the possibilities you want,

    • then dividing by the total number of possibilities in the sample space

  • For example, in the sample space 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 you can count 4 prime numbers (2, 3, 5 and 7)

    • So the probability of getting a prime number is  4 over 10 equals 2 over 5

  • Or for rolling two dice and adding the results, the possibility diagram above shows there are 5 ways to get '8', and 36 outcomes in total

    • So the probability of getting an 8 is  5 over 36

  • But be careful - this counting method only works if all possibilities in the sample space are equally likely

    • For a fair six-sided dice: 1, 2, 3, 4, 5, 6 are all equally likely

    • For a fair coin: H, T are equally likely

    • Winning the lottery: Yes, No. These are not equally likely! 

      • You cannot count possibilities here to say the probability of winning the lottery is  1 half 

  • This method can also be used for finding the probability of an event occurring given that another event has occurred (conditional probability)

    • For example when two dice are rolled, you can use the sample space diagram above to find the probability that an individual dice shows a 6, given that the total showing on the two dice is 7

      • count the number of outcomes that sum to 7 (there are 6 of them) - this goes in the denominator

      • count the number of those outcomes in which one of the dice shows a 6 (there are two of these, (1,6) and (6,1)) - this goes in the numerator

      • So the probability is 2 over 6 space open parentheses equals 1 third close parentheses

Examiner Tips and Tricks

  • A questions may not say "by drawing a sample space diagram", so you may have to decide to do it on your own

Worked Example

Two fair six-sided dice are rolled.

(a) Find the probability that the sum of the numbers showing on the two dice is an odd number greater than 5, giving your answer as a fraction in simplest form.

Draw a sample space diagram (in this case a grid) to show all the possible outcomes

A sample space diagram for the sum of the numbers gotten on two dice

Circle the possibilities that are odd numbers greater than 5.
(5 is not included!)

A sample space diagram for the sum of the numbers gotten on two dice, with odd numbers greater than 5 circled

Count the number of possibilities that are circled (12) and divide that by the total number of possibilities in the diagram (36)

12 over 36

Finally, simplify your answer

12 over 36 space equals space fraction numerator 12 cross times 1 over denominator 12 cross times 3 end fraction space equals space 1 third

bold 1 over bold 3

(b) Given that the sum of the numbers showing on the two dice is an odd number greater than 5, find the probability that one of the dice shows the number 2.  Give your answer as a fraction in its simplest form.

From part (a) you already know there are 12 ways to get an odd number greater than 5

Now find how many of those ways (i.e., how many of the circled possibilities in the sample space grid) have one of the dice showing the number 2
There are two of these: (2, 5) and (5, 2)
So the probability we are looking for is 2 divided by 12

2 over 12

Finally, simplify your answer

2 over 12 space equals space fraction numerator 2 cross times 1 over denominator 2 cross times 6 end fraction space equals space 1 over 6

bold 1 over bold 6

Two-way Tables for Probability

For basic information about Two-way Tables see the 'Two-way Tables & Venn Diagrams' revision note in the 'Tabulation, Diagrams & Representation' topic. Here we are looking at how to use two-way tables to calculate probabilities.

How do I find probabilities from a two-way table?

  • Consider the data in the following table, on numbers of Year 12 and 13 students studying Spanish and German in a college with 55 students

    • Here the 'totals' have all been given

    • On an exam you might need to add the totals rows and columns yourself

 

Spanish

German

Total

Year 12

15

10

25

Year 13

5

25

30

Total

20

35

55

  • You can use this to answer probability questions

    • If a random student is selected from the whole college, it will be out of 55

      • The probability a student selected from the college studies Spanish and is in Year 12 is 15 over 55

      • The probability a student selected from the college studies Spanish is 20 over 55

    • If a random student is selected from a specific category, the denominator will be that category total

      • The probability a student selected from Year 13 studies Spanish is 5 over 30

How do I work with two-way tables and conditional probability?

  • With two-way tables, conditional probabilities deal with subsets of things in the table

  • Conditional probability questions are often (but not always!) introduced by the expression 'given that...'

    • For example 'Find the probability that a randomly chosen student studies German, given that the student is in Year 12'

    • The answer would be the number of 'Year 12 and German' students divided by the total for the 'Year 12' row

  • Conditional probabilities can be written using the 'straight bar' notation straight P open parentheses B vertical line A close parentheses

    • That is read as 'the probability of B given A'

      • It is the probability that B will happen if A has happened

    • For example straight P open parentheses German vertical line Year space 12 close parentheses would be the probability that a student studies German, given that the student is in Year 12

      • i.e. if a Year 12 student has been selected, what is the probability that that student will study German

  • The following example shows how conditional probabilities can be calculated from a more complicated two-way table

CP Notes fig5, downloadable IGCSE & GCSE Maths revision notes

Examiner Tips and Tricks

  • If you had to complete a two-way table (or add the 'total' rows and columns), double-check that your numbers are correct

    • If there are errors in the table, probabilities calculated from it will be incorrect and you could lose marks

Worked Example

At an art group, children are allowed to choose between colouring, painting, clay modelling and sketching.

A total of 60 children attend and are split into two classes: class A and class B.

The data for the art group is represented in the following two-way table.

Colouring

Painting

Clay modelling

Sketching

Total

Class A

12

8

2

8

30

Class B

1

12

13

4

30

Total

13

20

15

12

60

A child is selected at random from the art group. Find the probability that the child

(a) chose colouring

A total of 13 children chose colouring, out of 60 students in total

13 over 60

(b) is a member of class B who chose sketching

4 children are in class B and chose sketching
We are still selecting out of 60 children in total

4 over 60

The simplified answer 1 over 15 is also accepted, but is not necessary to get full marks

(c) chose painting, given that the child is a member of class A

Now the choice is only 'out of' the 30 children in class A
8 children in that class chose painting

8 over 30

The simplified answer 4 over 15 is also accepted, but is not necessary to get full marks

(d) is a member of class B, given that the child chose sketching.

Note that this is not the same thing that is asked in part (b)!

The choice here is out of the 12 students who chose sketching
4 of those children are in class B

4 over 12

The simplified answer 1 third is also accepted, but is not necessary to get full marks

Venn Diagrams for Probability

For basic information about Venn Diagrams see the 'Two-way Tables & Venn Diagrams' revision note in the 'Tabulation, Diagrams & Representation' topic. Here we are looking at how to use Venn diagrams to calculate probabilities.

How do I find probabilities from Venn diagrams?

  • For basic probabilities, count the number of items you want and divide by the total number of items

An example of a Venn diagram
  • For the Venn diagram shown above,

    • The probability of being in A  is  fraction numerator 12 plus 4 over denominator 12 plus 4 plus 21 plus 8 end fraction equals 16 over 45

      • There are 16 elements in A out of 45 in total

    • The probability of being in both A  and B  is 4 over 45

      • There are 4 elements in A  and B  (the 'overlap')

    • The probability of being in A, but not B, is 12 over 45

      • 12 elements are in A  but not B

How do I use Venn diagrams with conditional probability?

  • With Venn diagrams, conditional probabilities deal with subsets of things in the diagram

  • Conditional probability questions are often (but not always!) introduced by the expression 'given that...'

    • For example 'Find the probability that a randomly chosen item is in A and B, given that the item is in B'

    • The answer would be the number of 'A and B' items divided by the total number of items in B

      • For the above diagram that would be fraction numerator 4 over denominator 4 plus 21 end fraction equals 4 over 25

  • Conditional probabilities can be written using the 'straight bar' notation straight P open parentheses B vertical line A close parentheses

    • That is read as 'the probability of B given A'

      • It is the probability that B will happen if A has happened

    • So for the above example we could write  straight P stretchy left parenthesis A space and space B straight vertical line B stretchy right parenthesis equals 4 over 25

      • i.e. if an item from B has been selected, what is the probability that the item will also be in A

Examiner Tips and Tricks

  • If you had to create the Venn diagram (or fill in some of the numbers), double-check that your numbers are correct

    • If there are errors in the Venn diagram, probabilities calculated from it will be incorrect and you could lose marks

Worked Example

In a class of 30 students, students can study Spanish, German, both, or neither.

The data for the class is represented on the following Venn diagram.

A Venn diagram representing the data for the question

A student is chosen from the class at random. Find the probability that the student

(a) studies German

11 (3+8) students study Spanish, out of 30 students in total

11 over 30

(b) studies Spanish but not German

12 students study Spanish but not German (the part of the 'S' oval that's outside the 'G' oval)
We are still selecting out of 30 students in total

12 over 30

The simplified answer 2 over 5 is also accepted, but is not necessary to get full marks

(c) studies German, given that they study Spanish

Now the choice is out of the 15 (12+3) students who study Spanish
3 of those students also study German

3 over 15

The simplified answer 1 fifth is also accepted, but is not necessary to get full marks

(d) studies Spanish, given that they do not study German .

Note that this is not the same thing that is asked in part (b)!

There are 19 (12+7) students who do not study German (all the numbers outside the 'G' oval)
12 of those students study Spanish

12 over 19

  • Venn diagrams are also a context in which probability formulae can be used to answer questions

    • See the 'Probability Formulae' revision note to review what these formulae are

Worked Example

The following Venn diagram shows the probabilities associated with two events, A and B.

A Venn diagram showing the probabilities associated with events A and B

It is known that  straight P open parentheses A space or space B close parentheses equals 0.32.

(a) Find the values of x and y.

To find xwe can either use the general addition law straight P open parentheses A space or space B close parentheses equals straight P open parentheses A close parentheses plus straight P open parentheses B close parentheses minus straight P open parentheses A space and space B close parentheses

table row cell 0.32 end cell equals cell open parentheses x plus 0.03 close parentheses plus open parentheses 0.03 plus 0.12 close parentheses minus 0.03 end cell row cell 0.32 end cell equals cell x plus 0.15 end cell row cell 0.17 end cell equals x end table

Or you could just notice that straight P open parentheses A space or space B close parentheses has to be the sum of x, 0.03 and 0.12

To find the value of y, remember that these are probabilities
So all of them must add up to 1

table row cell 0.17 plus 0.03 plus 0.12 plus y end cell equals 1 row cell y plus 0.32 end cell equals 1 row y equals cell 1 minus 0.32 end cell row y equals cell 0.68 end cell end table

x equals 0.17 comma space space space y equals 0.68

(b) Show that A and B are independent.

Remember, if straight P open parentheses A space and space B close parentheses equals straight P left parenthesis A right parenthesis cross times straight P open parentheses B close parentheses is true, then A and B are independent

The Venn diagram from the question with all the probabilities written in

straight P open parentheses A space and space B close parentheses equals 0.03

straight P open parentheses A close parentheses equals 0.17 plus 0.03 equals 0.2 space space space space space space space straight P open parentheses B close parentheses equals 0.03 plus 0.12 equals 0.15

straight P open parentheses A close parentheses cross times straight P open parentheses B close parentheses equals 0.2 cross times 0.15 equals 0.03

straight P open parentheses A space and space B close parentheses equals straight P left parenthesis A right parenthesis cross times straight P open parentheses B close parentheses, so A and B are independent

(c) Find the probability of B given A.

Use  straight P open parentheses B vertical line A close parentheses equals fraction numerator straight P open parentheses A space and space B close parentheses over denominator straight P open parentheses A close parentheses end fraction

P open parentheses B vertical line A close parentheses equals fraction numerator 0.03 over denominator 0.2 end fraction equals 0.15

(You could also use the fact that because A and B are independent,  straight P open parentheses B vertical line A close parentheses equals straight P open parentheses B close parentheses )

straight P open parentheses B vertical line A close parentheses equals 0.15

Tree Diagrams

How do I draw a tree diagram?

  • Tree diagrams can be used for repeated experiments with two outcomes

    • The 1st experiment has outcome A or not A

    • The 2nd experiment has outcome B or not B

  • Read the tree diagram from left to right along its branches 

    • For example, the top branches give A followed by B

      • This is called A and B

How to set up a tree diagram for two experiments each with two possible outcomes

How do I find probabilities from tree diagrams?

  • Write the probabilities on each branch

    • Remember that P(not A) = 1 - P(A)

      • Probabilities on each pair of branches add to 1

  • Multiply along the branches from left to right

    • This gives P(1st outcome and 2nd outcome)

  • Add between the separate cases

    • For example

      • P('A and B' or 'A and not B') = P(A and B) + P(A and not B)

  • The probabilities of all possible cases add to 1

How do I use tree diagrams with conditional probability?

  • Probabilities that depend on a particular thing having happened first in a tree diagram are called conditional probabilities

    • For example a team's win and loss probabilities in one game may change depending on whether they won or lost the previous game

      • You might be interested in the probability of them winning a game after losing the previous one

      • This probability will appear in the tree diagram in the set of branches that follow on from 'lose' in the first set of branches

    • Or you might be asked to draw or complete a tree diagram for, say, the situation when two counters are drawn from a bag of different coloured counters without replacement

      • The probabilities on the second set of branches will change depending on which branch has been followed on the first set of branches

      • The denominators in the probabilities for the second set of branches will be one less than the denominators on the first set of branches

      • The numerators on the second set of branches will also change depending on what has happened on the first set of branches

      • See the second Worked Example below for an example of this 

  • Conditional probability questions are sometimes (but not always!) introduced by the expression 'given that...'

    • For example 'Find the probability that the team win their next game given that they lost their previous game'

  • Conditional probabilities are sometimes written using the 'straight bar' notation straight P open parentheses A vertical line B close parentheses  

    • That is read as 'the probability of A given B'

    • For example straight P open parentheses win vertical line lose close parentheses would be the probability that the team wins, given that they lost their previous game

Examiner Tips and Tricks

  • Remember  straight P left parenthesis not space A italic right parenthesis italic equals 1 italic minus P italic left parenthesis A italic right parenthesis

  • Tree diagrams have built-in checks

    • the probabilities for each pair of branches should add up to 1

    • the probabilities for all final outcomes should add up to 1

  • When multiplying along branches with fractions, don't cancel fractions in your working - having the same denominator makes them easier to add together!

Worked Example

Lisa drives through two sets of traffic lights on her way to work.

Each set of traffic lights has only two options: green or red.

The probability of the first set of traffic lights being on green is 5 over 7.

The probability of the second set of traffic lights being on green is 8 over 9.


(a) Draw and label a tree diagram. Be sure to show the probabilities of every possible outcome.

Work out the probabilities of each set of traffic lights being on red, R
Use P(red) = 1 - P(green)

straight P open parentheses 1 to the power of st space straight R close parentheses equals 1 minus straight P open parentheses 1 to the power of st space straight G close parentheses equals 1 minus 5 over 7 equals 2 over 7
straight P open parentheses 2 to the power of nd space straight R close parentheses equals 1 minus straight P open parentheses 2 to the power of nd space straight G close parentheses equals 1 minus 8 over 9 equals 1 over 9

Draw the branches (with a label of G or R on the ends)
Write the probabilities above each branch
Calculate probabilities of each outcome by multiplying along the branches from left to right

A tree diagram showing different outcomes at traffic lights

(b) Find the probability that both sets of traffic lights are on red.

This is the answer for P(R, R) from the tree diagram

bold 2 over bold 63

(c) Find the probability that at least one set of traffic lights is on red.

This means the 1st is green and the 2nd is red
Or the 1st is red and the 2nd is green
Or the 1st is red and the 2nd is red ('at least one' could mean both)
Add the probabilities for the separate cases

straight P open parentheses at space least space one space straight R close parentheses space equals space straight P open parentheses straight G comma space straight R close parentheses space plus space straight P open parentheses straight R comma space straight G close parentheses space plus space straight P open parentheses straight R comma space straight R close parentheses space equals space 5 over 63 space plus space 16 over 63 space plus space 2 over 63 space equals space 23 over 63

bold 23 over bold 63

Alternative Method
At least one red means all the possible cases shown except two greens
So P(at least 1 red) = 1 - P(two greens)

space 1 space minus space straight P open parentheses straight G comma space straight G close parentheses space equals space 1 space minus space 40 over 63 space equals space 23 over 63 

bold 23 over bold 63

Worked Example

Liana has 10 pets: 7 guinea pigs (G) and 3 rabbits (R).

Liana is choosing two pets to feature in her latest online video. 

Firstly, she is going to choose one of the pets at random. 

Once she has carried that pet to her video studio, she is going to go back and choose a second pet at random, to also feature in the video.

(a) Draw and label a tree diagram including the probabilities of all possible outcomes.

For the 1st pet chosen, there will be a 7/10 probability of choosing a guinea pig, and a 3/10 probability of choosing a rabbit

If the first pet is a guinea pig, there will only be 6 guinea pigs and 3 rabbits left (9 animals total)
So for the second pet the probability of choosing a guinea pig would be 6/9, and probability of choosing a rabbit would be 3/9

If the first pet is a rabbit, there will only be 7 guinea pigs and 2 rabbits left (9 animals total)
So for the second pet the probability of choosing a guinea pig would be 7/9, and probability of choosing a rabbit would be 2/9

Put these probabilities into the correct places on the tree diagram, and then multiply along the branches to find the probabilities for each outcome

Eymcf2I-_question

(b) Write down the probability that the second pet is a guinea pig, given that the first pet was a rabbit.

This conditional probability can be done by looking at the branches, without needing the conditional probability formula

This is the probability on the second pet 'G' branch that follows 'R' for the first pet

7 over 9

Using the conditional probability formula would also give this answer

(c) Find the probability that Liana chooses two rabbits.

As we have already calculated this probability in the tree diagram, we can just write the answer down

straight P stretchy left parenthesis two space rabbits stretchy right parenthesis equals straight P stretchy left parenthesis straight R comma space straight R stretchy right parenthesis equals 6 over 90

The simplified answer 1 over 15 is also accepted, but is not necessary to get full marks

(d) Find the probability that Liana chooses two different kinds of animal.

This would be "G and R" or "R and G" so we need to add two of the final probabilities

straight P open parentheses two space different space kinds close parentheses space equals space straight P open parentheses straight G comma space straight R close parentheses space plus space straight P open parentheses straight R comma space straight G close parentheses space equals space 21 over 90 plus 21 over 90 equals 42 over 90

straight P stretchy left parenthesis two space different space kinds stretchy right parenthesis space equals space 42 over 90 

The simplified answer 7 over 15 is also accepted, but is not necessary to get full marks

You could also do this question using 1 - P(both the same)

Last updated:

You've read 0 of your 5 free revision notes this week

Sign up now. It’s free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Did this page help you?

Roger B

Author: Roger B

Expertise: Maths

Roger's teaching experience stretches all the way back to 1992, and in that time he has taught students at all levels between Year 7 and university undergraduate. Having conducted and published postgraduate research into the mathematical theory behind quantum computing, he is more than confident in dealing with mathematics at any level the exam boards might throw at you.

Dan Finlay

Author: Dan Finlay

Expertise: Maths Lead

Dan graduated from the University of Oxford with a First class degree in mathematics. As well as teaching maths for over 8 years, Dan has marked a range of exams for Edexcel, tutored students and taught A Level Accounting. Dan has a keen interest in statistics and probability and their real-life applications.