Skip to main content
Examonaut

Topic P · Lesson 3 of 5

Tree diagrams and two-way tables

Independent events and tree diagrams

Two events are independent if one happening does not change the probability of the other: tossing a coin and rolling a dice, for example. For independent events, multiply:

P(A and B)=P(A)×P(B)P(A \text{ and } B) = P(A) \times P(B)

Why multiply? If a light is red 0.3 of the time, and on 0.2 of those red days you are late, then you are late after a red light on 0.2×0.3=0.060.2 \times 0.3 = 0.06 of all days.

A tree diagram organises this. Each set of branches shows one event, and the probabilities on each set add up to 1. The diagram shows a traffic light (red R or green G) and then being late (L) or not (N).

0.3R0.7G0.2L0.3 × 0.2 = 0.060.8N0.3 × 0.8 = 0.240.2L0.7 × 0.2 = 0.140.8N0.7 × 0.8 = 0.56traffic lightlate?

How to use a tree diagram

  1. Step 1: Draw one set of branches for each event, with the probability on each branch.
  2. Step 2: Multiply along the branches to get the probability of each complete outcome.
  3. Step 3: If several outcomes satisfy the question, add their probabilities.
  4. Step 4: Check: all the final probabilities add up to 1.

For example, P(late) =0.06+0.14=0.2= 0.06 + 0.14 = 0.2 (red then late, or green then late). The words help: "and" means multiply along a path; "or" means add different paths.

Dependent events: without replacement

If you take a sweet from a bag and eat it, the second pick is from a smaller bag, so its probabilities change: the events are dependent. The second set of branches must show the new probabilities.

Try it: build the tree for a bag of counters, then run thousands of trials to check your answer.

Try it: simulation

Probability trees and Venn diagrams

Loading the simulation…

Worked example

Without replacementgrade 7

A bag has 5 red and 3 blue sweets. Sam takes one at random and eats it, then takes another. Find the probability that the two sweets are different colours.

Show solution
  1. First pick: P(R) =58= \frac{5}{8}, P(B) =38= \frac{3}{8}.
  2. After a red, 7 sweets remain with 4 red: P(R) =47= \frac{4}{7}, P(B) =37= \frac{3}{7}. After a blue, 7 remain with 5 red: P(R) =57= \frac{5}{7}, P(B) =27= \frac{2}{7}. The tree below shows them.
  3. "Different colours" means red then blue, or blue then red: 58×37+38×57=1556+1556=3056=1528\frac{5}{8} \times \frac{3}{7} + \frac{3}{8} \times \frac{5}{7} = \frac{15}{56} + \frac{15}{56} = \frac{30}{56} = \frac{15}{28}.
5/8R3/8B4/7R20/563/7B15/565/7R15/562/7B6/56first sweetsecond sweet

A quicker route for "at least one": P(at least one red) =1−= 1 - P(no reds) =1−656=5056= 1 - \frac{6}{56} = \frac{50}{56}. Look for this whenever a question says "at least".

Assumptions matter. A tree diagram for "two days in a row" assumes the days are independent, which may not be true (weather on Tuesday depends on Monday). Exam questions may ask you to state or criticise such an assumption.

Two-way tables

A two-way table sorts data by two features at once, with totals for each row and column. The diagram shows how 100 students travel to school.

BusCarWalkTotalYear 1018122050Year 112282050Total402040100

P(a student chosen at random is in Year 10 and takes the bus) =18100= \frac{18}{100}, using the overall total.

Practise this topic

Both are part of Premium.