- Foundation
- About 13 min
- 5 practice questions
Venn diagrams and two-way tables
Organise counts in a Venn diagram or a two-way table and read probabilities from them, including the probability within a known group.
If something looks wrong, please tell us.
When a group is described by two features, such as liking tea and liking coffee, or boys and girls who pass or fail, a table or a Venn diagram keeps the counts straight. Probability then becomes counting from the diagram. This lesson shows both pictures and uses them to answer typical questions.
A Venn diagram
In a class of 40 students, 25 like tea, 18 like coffee, and 8 like both. Start from the middle of the diagram. The overlap (both) is 8. Tea only is 25 − 8 = 17. Coffee only is 18 − 8 = 10. Together, those who like at least one drink are 17 + 8 + 10 = 35. So the number who like neither is 40 − 35 = 5.
Filling the Venn diagram from the middle
- Both 8.
- The 'only' parts Tea only 25 − 8 = 17; coffee only 18 − 8 = 10.
- At least one 17 + 8 + 10 = 35.
- Neither 40 − 35 = 5.
| Region | Number of students |
|---|---|
| Tea only | 17 |
| Coffee only | 10 |
| Both | 8 |
| Neither | 5 |
| Total | 40 |
Worked example 1: reading probabilities
A student is chosen at random from the class of 40. P(likes tea) = 25/40 = 5/8, because all 25 tea-lovers count, including the 8 who like both. P(likes both) = 8/40 = 1/5. P(neither) = 5/40 = 1/8. P(likes tea or coffee) = 35/40 = 7/8. P(only coffee) = 10/40 = 1/4. Check: the four regions' probabilities 17/40 + 10/40 + 8/40 + 5/40 add to 40/40 = 1.
Fill a Venn diagram from the middle outwards: both first, then the 'only' parts, then 'neither' from the total.
A two-way table
A table is useful when each person has two features, one in each direction. Suppose 50 students took a test, with 30 boys and 20 girls.
| Item | Pass | Fail | Total |
|---|---|---|---|
| Boys | 24 | 6 | 30 |
| Girls | 18 | 2 | 20 |
| Total | 42 | 8 | 50 |
Check that the rows and columns add up: 24 + 6 = 30, 18 + 2 = 20, 24 + 18 = 42, 6 + 2 = 8, and 30 + 20 = 50 = 42 + 8.
Worked example 2: from the table
A student is chosen at random from the 50. P(passed) = 42/50 = 21/25. P(a girl who passed) = 18/50 = 9/25. P(a boy who failed) = 6/50 = 3/25. Each probability is the count in the relevant cell divided by the grand total of 50.
Worked example 3: choosing from a group
Now suppose a boy is chosen, and we ask for the probability that he passed. We restrict attention to the row of boys. The total is now 30, not 50, and 24 of them passed. So the probability is 24/30 = 4/5. The change from 50 to 30 is the key: when we know the student is a boy, the other students are no longer possible outcomes. For girls, the probability of passing is 18/20 = 9/10.
Which total do you divide by?
-
Anyone from the 50
- Divide by the grand total, 50
- P(passed) = 42/50 = 21/25
-
A boy is known
- Shrink to the boys' row: total 30
- P(passed) = 24/30 = 4/5
This is an early look at conditional probability: the chance of one thing when something else is already known. The method is always to shrink the table to the row or column that is known and count within it.
Key takeaways
- Fill a Venn diagram from the overlap outwards.
- In a table, check that rows and columns add up to the totals.
- For a random person from the whole group, divide the cell count by the grand total.
- If a group is already known, divide by that group's total instead.
Check your understanding
-
1. In a class of 40, 25 like tea, 18 like coffee and 8 like both. How many like neither?
- 3
- 5
- 7
- 10
Show answer
Answer: B. At least one: 25 + 18 − 8 = 35. Neither = 40 − 35 = 5.
-
2. In the same class, a student is chosen at random. What is the probability that the student likes only coffee?
- 1/4
- 18/40
- 1/5
- 1/8
Show answer
Answer: A. Only coffee = 18 − 8 = 10 students, so P = 10/40 = 1/4.
-
3. In the same class, what is the probability that a random student likes tea or coffee?
- 5/8
- 3/4
- 1/8
- 7/8
Show answer
Answer: D. At least one drink: 35 students, so P = 35/40 = 7/8.
-
4. In the test table (24 boys and 18 girls passed, 6 boys and 2 girls failed), a student is chosen from all 50. What is the probability that the student is a girl who passed?
- 9/10
- 9/25
- 18/20
- 3/5
Show answer
Answer: B. 18 students are girls who passed, so P = 18/50 = 9/25.
-
5. A boy is chosen from the 30 boys in the test table. What is the probability that he passed?
- 24/50
- 2/5
- 4/5
- 3/5
Show answer
Answer: C. 24 of the 30 boys passed, so P = 24/30 = 4/5.
Sign in to keep track of the lessons you finish.