Sets and Venn diagrams

Sets and Venn diagrams

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A set is a collection of elements; ξ\xi is the universal set, n(A)n(A) counts elements.
  • Union A∪BA\cup B is "or"; intersection A∩BA\cap B is "and"; complement A′A' is "not in AA".
  • n(A∪B)=n(A)+n(B)−n(A∩B)n(A\cup B)=n(A)+n(B)-n(A\cap B).
  • Fill in a Venn diagram from the middle outwards, and check the regions add to n(ξ)n(\xi).
  • Probability from a Venn diagram: P=elements in the eventn(ξ)P=\frac{\text{elements in the event}}{n(\xi)}.

Sets and notation

A set is a collection of elements in curly brackets; a few symbols cover the notation you need.

A set is a collection of objects called elements, written in curly brackets, for example A={2,4,6,8}A=\{2,4,6,8\}. The universal set ξ\xi contains every element being considered.

With ξ={1,…,12}\xi=\{1,\dots,12\} and AA the even numbers, A={2,4,6,8,10,12}A=\{2,4,6,8,10,12\} and n(A)=6n(A)=6.

A246810121357911
ξ = {1, …, 12} and A = {2, 4, 6, 8, 10, 12}: the even numbers lie inside the circle, so n(A) = 6.

x∈Ax\in A

  • xx is an element of AA

n(A)n(A)

  • the number of elements in AA

∅\varnothing

  • the empty set

ξ\xi

  • the universal set

How many elements are in A={2,4,6,8}A=\{2,4,6,8\}, so what is n(A)n(A)?

Union, intersection and complement

Union is "or", intersection is "and" and the complement is "not in the set".

The union A∪BA\cup B has elements in AA or BB (or both). The intersection A∩BA\cap B has elements in both. The complement A′A' has the elements of ξ\xi that are not in AA.

With A={2,4,6,8,10,12}A=\{2,4,6,8,10,12\} and B={3,6,9,12}B=\{3,6,9,12\}: A∩B={6,12}A\cap B=\{6,12\}, A∪B={2,3,4,6,8,9,10,12}A\cup B=\{2,3,4,6,8,9,10,12\} and (A∪B)′={1,5,7,11}(A\cup B)'=\{1,5,7,11\}.

2, 4, 8, 106, 123, 91, 5, 7, 11
Left circle A (even numbers), right circle B (multiples of 3), outside = neither
  • Counting rulen(A∪B)=n(A)+n(B)−n(A∩B)n(A\cup B)=n(A)+n(B)-n(A\cap B)

Worked example

With A={2,4,6,8,10,12}A=\{2,4,6,8,10,12\} and B={3,6,9,12}B=\{3,6,9,12\}, find n(A∪B)n(A\cup B).

n(A)=10n(A)=10, n(B)=7n(B)=7 and n(A∩B)=3n(A\cap B)=3. What is n(A∪B)n(A\cup B)?

Drawing Venn diagrams

Start with the overlap, subtract it from each set total, then find the number outside.

A Venn diagram shows sets as overlapping circles inside a rectangle that represents ξ\xi. Fill it in from the middle outwards.

44 students, n(F)=22n(F)=22, n(B)=18n(B)=18, 8 play both. Football only =14=14, basketball only =10=10, both =8=8, neither =44−32=12=44-32=12.

1481012
44 students: F = football (left), B = basketball (right)
  1. 1

    Overlap first

    write the number in A ∩ B

  2. 2

    Only A and only B

    subtract the overlap from each set total

  3. 3

    Outside

    n(ξ) minus the total of all the regions

Filling in a Venn diagram

30 students: 1818 play tennis, 1212 play chess and 55 play both. How many play neither?

Three sets

Start with the centre, then the regions where exactly two sets overlap, then the "only" regions and the outside.

Start with the region where all three overlap. Then work out each region where exactly two sets overlap by subtracting the all-three number from each pair total.

If n(H∩T)=8n(H\cap T)=8 includes 5 in all three sets, only HH and TT is 8−5=38-5=3. Next find each "only" region by subtracting its other regions from the set total, and finally the outside from n(ξ)n(\xi).

A onlyB onlyC onlyA, BA, CB, Callnone
The seven regions of a three-set diagram: fill in the centre first
  1. 1

    All three

    start with the centre region

  2. 2

    Exactly two

    pair total minus the centre

  3. 3

    Only one

    set total minus all its other regions

  4. 4

    Outside

    n(ξ) minus the sum of the regions

Filling in a three-set Venn diagram

n(H∩T)=8n(H\cap T)=8 and 55 of these are in all three sets. How many are in HH and TT only?

Probability from a Venn diagram

Add the regions that make up the event and divide by n(ξ)n(\xi).

Probabilities come from the numbers in the regions. In the group of 44, P(exactly one sport)=14+1044=611P(\text{exactly one sport})=\frac{14+10}{44}=\frac{6}{11}.

Use set notation to describe the event: "art but not music" is A∩M′A\cap M', and "neither" is (M∪A)′(M\cup A)'. Add only the regions that belong to the event, and check that the regions do not overlap.

FootballBasketball1481012
Venn diagram of the 44 students: football only 14, both 8, basketball only 10, neither 12. Exactly one sport: (14 + 10) ÷ 44 = 6/11.
  • ProbabilityP=elements in the eventn(ξ)P=\dfrac{\text{elements in the event}}{n(\xi)}

Worked example

Using the 44 students (football only 1414, basketball only 1010, both 88, neither 1212), find P(exactly one sport)P(\text{exactly one sport}).

Using the same 44 students, find P(plays both sports)P(\text{plays both sports}).

Try an exam question

30 students: 1818 play tennis (TT), 1212 play chess (CC) and 55 play both. Find n(T∪C)n(T\cup C) and the number who play neither.

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Which set is A∩BA\cap B?

1 mark, marked against the mark scheme

Revision notes