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:
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
| Symbol | Meaning |
|---|---|
| $\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$ |
$\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'$.
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.
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})$.
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.
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.
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:
| Music | No music | Total | |
|---|---|---|---|
| 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.
$A \cap B$ means the elements that are:
$\cap$ is intersection: the overlap, in $A$ and in $B$.
$\xi = \{1, 2, \ldots, 12\}$ and $A$ is the set of multiples of $3$. Find $n(A)$.
$A = \{3, 6, 9, 12\}$, so $n(A) = 4$.
$A = \{1, 2, 3, 4\}$ and $B = \{3, 4, 5, 6, 7\}$. Find $n(A \cup B)$.
$A \cup B = \{1, 2, 3, 4, 5, 6, 7\}$, which has $7$ elements. Or: $4 + 5 - 2 = 7$.
$\xi = \{1, 2, 3, 4, 5, 6\}$ and $A = \{2, 4, 6\}$. Then $A' =$
$A'$ is everything in $\xi$ that is not in $A$.
Of $40$ students, $22$ like tea, $25$ like coffee and $10$ like both. How many like neither?
Tea only $= 12$, coffee only $= 15$, both $= 10$. Inside the circles: $37$. Neither $= 40 - 37 = 3$.
For the same $40$ students, find $P(\text{coffee only})$ as a decimal.
Coffee only $= 25 - 10 = 15$. $P = \dfrac{15}{40} = 0.375$.
For the same students, find $P(\text{tea} \cup \text{coffee})$ as a decimal.
$n(T \cup C) = 22 + 25 - 10 = 37$. $P = \dfrac{37}{40} = 0.925$.
Events $A$ and $B$ are mutually exclusive. This means:
Mutually exclusive events can't happen together, so they have no outcomes in common.
Challenge: $n(A) = 15$, $n(B) = 12$ and $n(A \cup B) = 20$. Find $n(A \cap B)$.
$n(A \cup B) = n(A) + n(B) - n(A \cap B)$, so $20 = 27 - n(A \cap B)$ and $n(A \cap B) = 7$.
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.
Inside the circles: $50 - 12 = 38$. Both $= 18 + 25 - 38 = 5$. $P = \dfrac{5}{50} = 0.1$.
Coaching Centre