8E

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.

Example 1●

Fill in the four regions of the Venn diagram.

Both: $8$
Always start with the overlap: the 8 who play both.
Soccer only: $22 - 8 = 14$
The soccer circle holds 22 in total, and 8 are already in the overlap.
Basketball only: $15 - 8 = 7$
Same for basketball.
Neither: $40 - (14 + 8 + 7) = 11$
Everyone else is outside both circles.

And, or, only, neither

WordsRegionCount above
soccer and basketballthe overlap$8$
soccer or basketballanywhere in either circle (including both)$14 + 8 + 7 = 29$
soccer onlysoccer circle, outside the overlap$14$
neitheroutside 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:

BasketballNo basketballTotal
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.

Example 2●●

A student is chosen from those who play soccer. What is the probability they also play basketball?

$8$ of the $22$ soccer players play basketball.
We only look at the soccer row now, so the total is 22, not 40.
$P = \dfrac{8}{22} = \dfrac{4}{11}$
Venn diagram and two-way table

Click regions of the Venn diagram to shade them. The matching cells of the two-way table light up.

Try this

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$.

Practice
  1. Of $40$ students, $22$ play soccer, $15$ play basketball and $8$ play both. How many play soccer only?

  2. Of $40$ students, $22$ play soccer, $15$ play basketball and $8$ play both. How many play neither sport?

  3. 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.

  4. In a Venn diagram, "$A$ or $B$" means:

  5. Of $40$ students, $22$ play soccer, $15$ play basketball and $8$ play both. Find $P(\text{soccer or basketball})$ as a decimal.

  6. 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?

  7. 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.

  8. 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:

  9. Challenge: in a group of $40$, $24$ like apples, $18$ like bananas and $6$ like neither. How many like both?

  10. 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.

Formula sheet