Back to homeMathematics · 5th Year OL · Change subject
Start for free
5th Year OL · Mathematics
Probability · Probability

Tree Diagrams

Before you start, make sure you know: Percentages (2nd Year, Junior Cycle)

Aoife is picking a Gaelic football team and a hurling team for two different days, and wants to know how likely it is that the weather spoils both. A bus to training might be late, then the match might be called off. Once an experiment has two, three or more stages, it is easy to get lost. The tree diagram keeps it all organised. In this section you will learn to build one carefully and use it for Leaving Cert Section A and B questions. At the end you will answer Aoife's question.

Constructing a tree diagram

Two-stage tree diagram with events A1 and A2 in the first stage, and conditional branches of B and its complement in the second. P(A₁)P(A₂) P(B|A₁)P(B̄|A₁) P(B|A₂)P(B̄|A₂) A₁∩BA₁∩B̄ A₂∩BA₂∩B̄
Practice★☆☆Not started
A box contains $4$ red balls and $6$ blue balls. A ball is drawn at random, its colour is noted, it is returned to the box, and a second ball is drawn. Draw the…

A box contains $4$ red balls and $6$ blue balls. A ball is drawn at random, its colour is noted, it is returned to the box, and a second ball is drawn. Draw the corresponding tree diagram and calculate the probability of obtaining two blue balls.

You can do it on paper and send a photo with your answer.

Solve
Practice★☆☆Not started
Complete the following tree diagram representing the tossing of a biased coin twice consecutively, given that the probability of getting heads is $\frac{1}{3}$. From the…

Complete the following tree diagram representing the tossing of a biased coin twice consecutively, given that the probability of getting heads is $\frac{1}{3}$. From the tree diagram, calculate the probability of getting heads first and then tails.

1/3 ? Heads Tails 1/3 ? Heads Tails ? ? Heads Tails
Solve
Practice★☆☆Not started
A basketball player has a probability of $0.8$ of scoring a free throw. If they take two free throws independently, draw the probability tree diagram and determine the…

A basketball player has a probability of $0.8$ of scoring a free throw. If they take two free throws independently, draw the probability tree diagram and determine the probability that they miss both shots.

You can do it on paper and send a photo with your answer.

Solve

Paths and outcomes: multiply and add

Tree diagram of two consecutive draws with replacement: the second-stage probabilities are the same on every branch. G: 6/10S: 4/10 G: 6/10S: 4/10 G: 6/10S: 4/10 1st coin (G = gold, S = silver)2nd coin
Practice★☆☆Not started
A café offers two types of set menu: $60\,\%$ of the customers choose the set menu of the day and $40\,\%$ choose the vegetarian menu. Of those who choose the menu of…

A café offers two types of set menu: $60\,\%$ of the customers choose the set menu of the day and $40\,\%$ choose the vegetarian menu. Of those who choose the menu of the day, $70\,\%$ order coffee for dessert. Of those who choose the vegetarian menu, $80\,\%$ order tea. Calculate the probability that a randomly chosen customer ordered the menu of the day and also ordered coffee.

Solve
Practice★☆☆Not started
In a wardrobe there are $5$ white T-shirts and $3$ black T-shirts. Two T-shirts are chosen at random, one after the other and without replacing the first back into the…

In a wardrobe there are $5$ white T-shirts and $3$ black T-shirts. Two T-shirts are chosen at random, one after the other and without replacing the first back into the wardrobe. Calculate the probability that both T-shirts are white.

Solve
Practice★★☆Not started
A Spanish pack of $40$ cards is available. Three cards are drawn consecutively without replacement. Calculate the probability that all three cards are of the same suit…

A Spanish pack of $40$ cards is available. Three cards are drawn consecutively without replacement. Calculate the probability that all three cards are of the same suit (coins, cups, swords or clubs).

Solve

Total probability read from the tree

Tree diagram with the output of three machines and dashed branches leading to the probability of a defective piece. 50%30%20% Mach AMach BMach C def: 2%def: 4%def: 5%
Practice★★☆Not started
In an electronic components factory, three machines (A, B, and C) produce $50\,\%$, $30\,\%$, and $20\,\%$ of the parts, respectively. The percentages of defective parts…

In an electronic components factory, three machines (A, B, and C) produce $50\,\%$, $30\,\%$, and $20\,\%$ of the parts, respectively. The percentages of defective parts produced by each machine are $2\,\%$, $4\,\%$, and $5\,\%$. Use the tree diagram to calculate the probability that a randomly chosen part is defective.

50% 30% 20% Machine A Machine B Machine C 2% 98% Defective Non-defective 4% 96% Defective Non-defective 5% 95% Defective Non-defective
Solve
Practice★★☆Not started
We have two urns. Urn A contains $3$ red balls and $2$ black balls. Urn B contains $4$ red balls and $5$ black balls. We toss a coin: if it comes up heads, we draw a…

We have two urns. Urn A contains $3$ red balls and $2$ black balls. Urn B contains $4$ red balls and $5$ black balls. We toss a coin: if it comes up heads, we draw a ball from urn A; if it comes up tails, we draw a ball from urn B. What is the probability that the drawn ball is red?

Solve
Practice★★☆Not started
In a diagnostic test for an allergy, $5\,\%$ of the population actually has the allergy. If a person has the allergy, the test is positive $90\,\%$ of the time. If they…

In a diagnostic test for an allergy, $5\,\%$ of the population actually has the allergy. If a person has the allergy, the test is positive $90\,\%$ of the time. If they do not have it, the test is negative $95\,\%$ of the time. Draw a tree diagram to illustrate the situation and calculate the probability that a randomly chosen person gets a positive result on the test.

You can do it on paper and send a photo with your answer.

Solve

At least one: use the complement

Often a question asks for the probability of at least one success. Listing every path is slow. Instead, use the complement: $P(\text{at least one}) = 1 - P(\text{none})$, and "none" is a single path.

Practice★★★Not started
A vault alarm system has 3 motion sensors. The probability that sensor A fails during an intrusion is $0.1$; that sensor B fails is $0.05$; and that sensor C fails is…

A vault alarm system has 3 motion sensors. The probability that sensor A fails during an intrusion is $0.1$; that sensor B fails is $0.05$; and that sensor C fails is $0.2$. The sensors act completely independently. Draw the corresponding tree diagram and calculate the probability that, during an actual intrusion, at least one sensor activates and sounds the alarm.

You can do it on paper and send a photo with your answer.

Solve
Practice★★★Not started
An urn contains $5$ red balls and $3$ white balls. Three balls are drawn successively at random and without replacement. The goal is to calculate the probability of…

An urn contains $5$ red balls and $3$ white balls. Three balls are drawn successively at random and without replacement. The goal is to calculate the probability of obtaining at least one white ball.\nThree students propose different strategies using trees:\n- Seán proposes drawing the complete tree of the three draws ($2^3 = 8$ final branches), identifying all paths containing one, two, or three white balls, and adding their probabilities.\n- Aoife proposes calculating the complementary event («no white balls», that is, three consecutive red balls) using a single branch of the tree and subtracting its probability from $1$.\n- Cian proposes a «pruned tree»: if a white ball is drawn on the first or second draw, he stops that branch (it is already a success), and only branches out when a red ball is drawn.\na) Develop and calculate the requested probability using both Aoife's and Cian's methods, verifying that both lead to the exact same irreducible fraction.\nb) Rigorously compare the three methods: indicate how many paths and multiplications each one requires you to calculate, and justify why Seán's method is the least efficient and the most prone to algebraic errors.\nc) If the problem asked to «obtain exactly two white balls», would Aoife's complementary event method still be advantageous? Justify which method would be optimal in that case.

Solve

Reading a tree backwards

The tree can also answer the reverse question: given the final outcome ($B$ has occurred), which branch of the first stage is most likely to have led there?

Tree diagram for Bayes' theorem highlighting the favourable path against the total probability in the denominator. path through A₁ to B all paths to B (A₁, A₂, A₃…) P(A₁|B) = (top row) ÷ (bottom row)
Practice★★★Not started
In a city, $20\,\%$ of drivers are young (under 25 years old) and $80\,\%$ are adults. The probability that a young driver has an accident in a year is $0.15$, whereas…

In a city, $20\,\%$ of drivers are young (under 25 years old) and $80\,\%$ are adults. The probability that a young driver has an accident in a year is $0.15$, whereas for an adult it is $0.05$. A driver is selected at random and turns out to have had an accident this year. Using the branches of a tree diagram, calculate the probability that this driver is young. (Express the result as an irreducible fraction).

Solve

Summary

See all the exercises in this section