Venn diagrams and two-way tables
Organising data in Venn diagrams and two-way tables, using "and", "or", "only" and "neither", and finding probabilities.
When people can belong to two groups at once (they might play soccer, basketball, both or neither), a simple list double counts. Venn diagrams and two-way tables sort everyone into exactly one region, so the counting is clean.
Venn diagrams
Each circle shows a group. The overlap shows who is in both groups. Anyone in neither group goes outside the circles, inside the rectangle.
Take a class of $40$ students: $22$ play soccer, $15$ play basketball and $8$ play both.
Fill in the four regions of the Venn diagram.
And, or, only, neither
| Words | Region | Count above |
|---|---|---|
| soccer and basketball | the overlap | $8$ |
| soccer or basketball | anywhere in either circle (including both) | $14 + 8 + 7 = 29$ |
| soccer only | soccer circle, outside the overlap | $14$ |
| neither | outside both circles | $11$ |
So, choosing a student at random, $P(\text{soccer or basketball}) = \dfrac{29}{40}$ and $P(\text{neither}) = \dfrac{11}{40}$.
Two-way tables
A two-way table shows the same four groups in a grid, with totals for each row and column. Here is the class again:
| Basketball | No basketball | Total | |
|---|---|---|---|
| Soccer | $8$ | $14$ | $22$ |
| No soccer | $7$ | $11$ | $18$ |
| Total | $15$ | $25$ | $40$ |
Each inner cell matches one region of the Venn diagram. The rows and columns must add to their totals, which gives you a built-in check.
A student is chosen from those who play soccer. What is the probability they also play basketball?
Click regions of the Venn diagram to shade them. The matching cells of the two-way table light up.
Predict, then check: $P(\text{dog only})$, $P(\text{dog or cat})$ and $P(\text{exactly one pet type})$. Which cells of the table make up "exactly one"?
Your turn
In a group of $30$, $17$ like pizza, $12$ like pasta and $6$ like neither. How many like both?
Show the working
$30 - 6 = 24$ people are inside the circles. The circles add to $17 + 12 = 29$, which counts the "both" group twice. So both $= 29 - 24 = 5$.
Of $40$ students, $22$ play soccer, $15$ play basketball and $8$ play both. How many play soccer only?
$22 - 8 = 14$.
Of $40$ students, $22$ play soccer, $15$ play basketball and $8$ play both. How many play neither sport?
Inside the circles: $14 + 8 + 7 = 29$. Neither: $40 - 29 = 11$.
Of $40$ students, $22$ play soccer, $15$ play basketball and $8$ play both. A student is chosen at random. Find $P(\text{plays both})$ as a decimal.
$\dfrac{8}{40} = 0.2$.
In a Venn diagram, "$A$ or $B$" means:
In maths, "or" includes the overlap: anything in either circle.
Of $40$ students, $22$ play soccer, $15$ play basketball and $8$ play both. Find $P(\text{soccer or basketball})$ as a decimal.
$\dfrac{29}{40} = 0.725$.
A survey of $50$ people found: $6$ own a dog and a cat, $14$ own a dog but no cat, $10$ own a cat but no dog, and $20$ own neither. How many own a dog?
Dog owners: $6 + 14 = 20$.
In a survey of $50$ people, $6$ own a dog and a cat, $14$ a dog only, $10$ a cat only and $20$ neither. Find $P(\text{cat but no dog})$ as a decimal.
$\dfrac{10}{50} = 0.2$.
In a survey of $50$ people, $6$ own a dog and a cat, $14$ a dog only, $10$ a cat only and $20$ neither. A dog owner is chosen at random. The probability that they also own a cat is:
Only dog owners count now: $20$ of them. $6$ also own a cat. $\dfrac{6}{20} = \dfrac{3}{10}$.
Challenge: in a group of $40$, $24$ like apples, $18$ like bananas and $6$ like neither. How many like both?
Inside the circles: $40 - 6 = 34$. The circle totals add to $24 + 18 = 42$, counting "both" twice. Both $= 42 - 34 = 8$.
Challenge: in a group of $40$, $24$ like apples, $18$ like bananas and $6$ like neither. Find the probability that a person chosen at random likes exactly one of the two fruits. Give a decimal.
Apples only: $24 - 8 = 16$. Bananas only: $18 - 8 = 10$. Exactly one: $26$. $\dfrac{26}{40} = 0.65$.
Coaching Centre