Sub topic 14
Tree Diagrams and Probability Tables
This chapter assumes you can compute a simple probability as favorable over total outcomes. It also assumes you know the multiplication rule for independent events, conditional probability, and the general multiplication rule P(A and B) = P(A) × P(B | A). You should also be able to read a Venn diagram. Here you will learn two organizing tools that keep multi-stage problems from turning into guesswork: the tree diagram and the probability table.
Why organize at all?
Many GRE probability problems have two or three stages. A bag is sampled twice. A part comes from one of two machines and is then checked for defects. A student is chosen from a group and then asked a yes/no question. Each stage may change the probabilities of the next. If you try to hold everything in your head, you tend to drop a branch or multiply the wrong pair of numbers.
A tree diagram lays out the stages left to right. A probability table lays out two categories as rows and columns. Both rest on the same rules you already know.
Tree diagrams
A tree diagram is a picture of a multi-stage process. Each stage is a set of branches. Each branch is labeled with a probability. Each complete path from the left edge to a right-hand tip is one outcome of the whole process.
Three rules govern every tree:
- Branches from one node sum to 1. The branches leaving a single point cover every possibility at that stage, so their probabilities add to 1.
- Second-stage branches are conditional. A branch in the second stage carries the probability of that outcome given the path that led to it. This is where the general multiplication rule enters.
- Multiply along a path, add across paths. The probability of a full path is the product of its branch labels. If an event happens along several paths, add those path probabilities.
Worked example: two draws without replacement
A bag holds 3 red and 2 blue marbles. You draw two marbles without replacement. The tree is below.
Check the first rule at each node. At Start: 3/5 + 2/5 = 1. After a red first draw, 2 red and 2 blue remain, so 2/4 + 2/4 = 1. After a blue first draw, 3 red and 1 blue remain, so 3/4 + 1/4 = 1.
The four path probabilities are 6/20, 6/20, 6/20, and 2/20. They sum to 20/20 = 1. That total is a useful check on your arithmetic.
Now answer questions by selecting paths:
- P(both red) = P(RR) = 6/20 = 3/10.
- P(exactly one red) = P(RB) + P(BR) = 6/20 + 6/20 = 12/20 = 3/5.
- P(second marble is red) = P(RR) + P(BR) = 6/20 + 6/20 = 3/5.
The last result surprises many learners. The second draw has the same probability of red as the first, 3/5, even though the second draw depends on the first. Without knowing the first result, the second draw is just as likely to be any marble as the first.
Pruning the tree
You do not have to draw every branch. If the question asks only for P(both red), draw the red-red path and skip the rest. If a question asks for "at least one," compare drawing the paths you want with drawing the one path you do not want and subtracting it from 1. A tree you can finish in ten seconds beats a complete one that takes a minute.
Probability tables
A probability table suits problems with two categories where you are given or asked for joint, marginal, and conditional probabilities. Rows are one variable, columns are the other. Each cell holds a joint probability P(row and column). The margins hold the totals.
Suppose a company has 200 employees. 120 are in sales and 80 are in engineering. 50 of the sales employees and 20 of the engineering employees work remotely. Fill in counts first.
| Row | Remote | On site | Total |
|---|---|---|---|
| Sales | 50 | 70 | 120 |
| Engineering | 20 | 60 | 80 |
| Total | 70 | 130 | 200 |
Dividing every cell by 200 turns the counts into probabilities. You can also keep counts and divide at the end. Counts are often easier on the GRE.
From this table:
- P(remote) = 70/200 = 7/20. This is a marginal probability, read from the margin.
- P(sales and remote) = 50/200 = 1/4. This is a joint probability, read from a cell.
- P(remote | sales) = 50/120 = 5/12. For a conditional probability, restrict to the row or column named after the bar, then divide the cell by that total.
- P(sales | remote) = 50/70 = 5/7. The roles of numerator and denominator are the same, but the restriction is now the Remote column.
Notice that P(remote | sales) = 5/12 differs from P(remote) = 7/20. Since conditioning on sales changes the probability, "sales" and "remote" are not independent.
Filling a table from partial information
Tables are most useful when only some entries are given. Put in what you know, then use the row and column totals to find the rest. If you know the overall total, the two category totals, and one cell, every other cell follows by subtraction. This is the same method as a two-circle Venn diagram, arranged as a grid.
Checking independence in a table
Independence holds when P(A and B) = P(A) × P(B). In a table, that means every cell equals its row total times its column total, divided by the grand total. One failing cell is enough to show dependence. In the company example, the Sales-Remote cell would need to be 120 × 70 / 200 = 42 if independence held, but it is 50.
You can run the same check by computer. This script builds the company table and tests the cell.
from fractions import Fraction
total = 200
sales, remote, sales_and_remote = 120, 70, 50
p_sales = Fraction(sales, total)
p_remote = Fraction(remote, total)
p_both = Fraction(sales_and_remote, total)
print(p_both) # 1/4
print(p_sales * p_remote) # 21/100
print(p_both == p_sales * p_remote) # FalseTree or table?
| Situation | Better tool |
|---|---|
| Events happen in sequence, and later probabilities depend on earlier results | Tree diagram |
| Two categories described at once, with counts or percentages | Probability table |
| Question asks for a conditional probability from a two-way classification | Probability table |
| Question asks for a probability after several stages, such as draws without replacement | Tree diagram |
Common errors
- Forgetting to update the second stage. Without replacement, the second-stage branches must use the new counts. Writing 3/5 again after a red draw is the most frequent mistake.
- Adding along a path. Along a path you multiply. Across paths you add.
- Using the wrong denominator for a conditional. P(A | B) divides by the total for B, not by the grand total.
- Branches that do not sum to 1. Check every node. If a node fails, a branch is missing or mislabeled.
- Counting a path twice. "Exactly one red" uses RB and BR once each. Do not add RR.
Practice
Exercise
A box holds 4 green and 6 yellow tokens. You draw two tokens without replacement. Using a tree diagram, find the probability that the tokens are different colors.
Show answer
Two paths give different colors. Green then yellow: 4/10 × 6/9 = 24/90. Yellow then green: 6/10 × 4/9 = 24/90. Add the paths: 48/90 = 8/15.
Exercise
In a survey of 100 people, 60 own a bicycle, 40 own a car, and 25 own both. Build a two-way table and find P(owns a car | owns a bicycle). Are the two events independent?
Show answer
Bicycle and car: 25. Bicycle only: 60 - 25 = 35. Car only: 40 - 25 = 15. Neither: 100 - 25 - 35 - 15 = 25. P(car | bicycle) = 25/60 = 5/12. P(car) = 40/100 = 2/5. Since 5/12 is not equal to 2/5, the events are not independent.