12A

Sets and Venn diagrams

Set notation, equal sets, the size of a set, the empty set, union and intersection, subsets, complements, Venn diagrams and the counting rule.

Probability is about counting outcomes, and outcomes come in collections: "the even numbers on a die", "the hearts in a pack". Sets give us precise words and symbols for those collections, and Venn diagrams let us see how they overlap.

The language of sets

  • A set is a collection of distinct objects called elements, listed in braces: $A = \{2, 4, 6\}$. Order and repeats don't matter, so $\{1, 2\} = \{2, 1, 1\}$. Two sets are equal if they have exactly the same elements.
  • $|A|$ is the size of $A$, the number of elements. The empty set $\varnothing$ has no elements, so $|\varnothing| = 0$.
  • $A \subseteq B$ means $A$ is a subset of $B$: every element of $A$ is also in $B$. Every set is a subset of itself, and $\varnothing$ is a subset of every set.
  • The universal set $U$ (some books use $E$) holds everything relevant to the problem.

And, or, not

WordSymbolNameMeaning
and$A \cap B$intersectionin $A$ and in $B$
or$A \cup B$unionin $A$ or $B$ or both
not$\overline{A}$complementin $U$ but not in $A$

Two sets with no elements in common, $A \cap B = \varnothing$, are called disjoint. A set and its complement are always disjoint, and together they make up $U$.

Example 1●

$U = \{1, 2, \ldots, 12\}$, $A$ is the even numbers and $B$ is the multiples of $3$. Find $A \cap B$, $A \cup B$ and $|\overline{A}|$.

$A = \{2, 4, 6, 8, 10, 12\}$ and $B = \{3, 6, 9, 12\}$
List both sets first.
$A \cap B = \{6, 12\}$
Intersection: the numbers in both lists.
$A \cup B = \{2, 3, 4, 6, 8, 9, 10, 12\}$
Union: everything in either list, each number written once.
$|\overline{A}| = 6$
Not even means odd: 1, 3, 5, 7, 9, 11.

Venn diagrams and the counting rule

A Venn diagram draws $U$ as a rectangle and each set as a circle inside it. Overlapping circles split the rectangle into four regions: $A$ only, both, $B$ only, and neither. The mistake above leads straight to the rule: adding $|A|$ and $|B|$ counts the overlap twice, so subtract it once.

Counting rule
$$|A \cup B| = |A| + |B| - |A \cap B|$$
Example 2●●

In a class of $32$, $20$ play soccer, $14$ play tennis and $7$ play both. How many play neither? How many play soccer only?

Both: $7$. Soccer only: $20 - 7 = 13$. Tennis only: $14 - 7 = 7$.
Fill the Venn diagram from the middle outwards: the overlap first.
$|S \cup T| = 13 + 7 + 7 = 27$
Add the three regions inside the circles (or use the counting rule).
Neither: $32 - 27 = 5$. Soccer only: $13$.
Whatever is left of the 32 is outside both circles.
Venn regions in set notation

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 the region for "exactly one of the two subjects" and write it in set notation before you read the answer. Then find a set of regions whose name is $(A \cap B)'$, and check its count is $50 - 12$.

Your turn

Of $50$ people, $28$ own a dog, $19$ own a cat and $9$ own neither. How many own both?

Show the working

$50 - 9 = 41$ people are in $D \cup C$. The counting rule gives $41 = 28 + 19 - |D \cap C|$, so $|D \cap C| = 47 - 41 = 6$.

Flashcards
$A cap B$ and $A cup B$
Intersection (and), union (or, including both)
Counting rule
$|A \cup B| = |A| + |B| - |A \cap B|$
Number of subsets of an $n$-element set
$2^n$
Practice
  1. If $A = \{1, 2, 3, 4\}$ and $B = \{3, 4, 5\}$, then $A \cap B =$

  2. For the same sets, find $|A \cup B|$.

  3. How many subsets does $\{a, b, c, d\}$ have?

  4. $\overline{A}$ means:

  5. $|A| = 12$, $|B| = 9$ and $|A \cap B| = 4$. Find $|A \cup B|$.

  6. Of $40$ students, $25$ study Maths Extension, $18$ study Physics and $10$ study both. How many study neither?

  7. For the same students, how many study Maths Extension but not Physics?

  8. $A$ and $B$ are disjoint. This means:

  9. Exam style: $U = \{1, 2, \ldots, 20\}$, $A$ is the multiples of $4$ and $B$ is the multiples of $6$. Find $|\overline{A \cup B}|$.

  10. Exam style: $|A \cup B| = 30$, $|A| = 18$ and $|B| = 20$. Find $|A \cap B|$.

Formula sheet