9A

Venn diagrams, two-way tables and set notation

Using set notation (union, intersection, complement, n(A)), Venn diagrams and two-way tables to count outcomes and find probabilities.

Surveys sort people into overlapping groups: plays sport, learns an instrument, both, neither. Venn diagrams and two-way tables keep the counting honest, so no one is counted twice or missed.

Probability basics

When all outcomes are equally likely:

Probability of an event
$$P(A) = \frac{\text{number of outcomes in } A}{\text{total number of outcomes}}$$

Probabilities run from $0$ (impossible) to $1$ (certain). The complement of $A$ is "not $A$", and $P(\text{not } A) = 1 - P(A)$.

Set notation

SymbolMeaning
$\xi$the universal set: everything being considered
$n(A)$the number of elements in $A$
$A \cap B$intersection: in $A$ and in $B$
$A \cup B$union: in $A$ or $B$ or both
$A'$complement: not in $A$
Example 1●

$\xi = \{1, 2, 3, \ldots, 10\}$, $A$ is the even numbers and $B$ is the multiples of $3$. List $A \cap B$, $A \cup B$ and $A'$.

$A \cap B = \{6\}$
A = {2, 4, 6, 8, 10} and B = {3, 6, 9}. Only 6 is in both.
$A \cup B = \{2, 3, 4, 6, 8, 9, 10\}$
Everything in either set, each listed once.
$A' = \{1, 3, 5, 7, 9\}$
The numbers in ξ that are not even.

Venn diagrams

Two overlapping circles inside a rectangle make four regions: $A$ only, both, $B$ only, and neither (outside both circles). Always fill in the overlap first.

Example 2●●

In a class of $30$, $18$ play sport ($S$), $12$ learn music ($M$) and $5$ do both. Find the number in each region, then $P(S \cup M)$ and $P(M \text{ only})$.

Both: $5$
Start with the overlap, which is given.
$S$ only: $18 - 5 = 13$. $M$ only: $12 - 5 = 7$
The 18 in S includes the 5 in both, so subtract them. Same for M.
Neither: $30 - 13 - 5 - 7 = 5$
Whatever is left of the 30 is outside both circles.
$P(S \cup M) = \dfrac{25}{30} = \dfrac56$, and $P(M \text{ only}) = \dfrac{7}{30}$
S ∪ M is everything inside the circles: 13 + 5 + 7 = 25.

That gives a useful rule: $n(A \cup B) = n(A) + n(B) - n(A \cap B)$. You add the circles, then take away the overlap you counted twice. If $A \cap B$ is empty, the events are mutually exclusive: they can't happen together.

Set notation on a Venn diagram

Click regions of the Venn diagram to shade them. The matching cells of the two-way table light up. The readout names the shaded region in set notation.

Try this

Shade $A \cap B$, then $A \cup B$, then $A'$. For each one, predict the count before you click. Which region on its own is $(A \cup B)'$?

Two-way tables

A two-way table holds the same four numbers as a Venn diagram, plus totals. Here is Example 2 again:

MusicNo musicTotal
Sport$5$$13$$18$
No sport$7$$5$$12$
Total$12$$18$$30$

Each row and each column adds up to its total, which makes the table a good way to check your Venn diagram.

Your turn

Of $50$ people, $30$ have a dog, $20$ have a cat and $8$ have neither. How many have both?

Show the working

$50 - 8 = 42$ people are inside the circles. But $30 + 20 = 50$, so $50 - 42 = 8$ people were counted twice. $8$ have both a dog and a cat.

Flashcards
$A cap B$
In $A$ and $B$ (the overlap)
$A cup B$
In $A$ or $B$ or both
$n(A cup B)$
$n(A) + n(B) - n(A \cap B)$
Practice
  1. $A \cap B$ means the elements that are:

  2. $\xi = \{1, 2, \ldots, 12\}$ and $A$ is the set of multiples of $3$. Find $n(A)$.

  3. $A = \{1, 2, 3, 4\}$ and $B = \{3, 4, 5, 6, 7\}$. Find $n(A \cup B)$.

  4. $\xi = \{1, 2, 3, 4, 5, 6\}$ and $A = \{2, 4, 6\}$. Then $A' =$

  5. Of $40$ students, $22$ like tea, $25$ like coffee and $10$ like both. How many like neither?

  6. For the same $40$ students, find $P(\text{coffee only})$ as a decimal.

  7. For the same students, find $P(\text{tea} \cup \text{coffee})$ as a decimal.

  8. Events $A$ and $B$ are mutually exclusive. This means:

  9. Challenge: $n(A) = 15$, $n(B) = 12$ and $n(A \cup B) = 20$. Find $n(A \cap B)$.

  10. Challenge: In a group of $50$ students, $18$ are in the band, $25$ are in the choir, and $12$ are in neither. Find the probability that a randomly chosen student is in both, as a decimal.

Formula sheet