Sets and Venn diagrams

Sets and Venn diagrams

IB MYP Maths Standard: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • A set is a collection of elements in curly brackets; ξ\xi is the universal set.
  • 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 a Venn diagram from the middle outwards.
  • P(event)=n(event)n(ξ)P(\text{event})=\frac{n(\text{event})}{n(\xi)}.

Sets and notation

A set is written in curly brackets, and the universal set contains every element being considered.

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.

  • x∈Ax\in A: xx is an element of AA
  • n(A)n(A): the number of elements in AA
  • ∅\varnothing or { }\{\ \}: the empty set

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

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

B={3,6,9,12}B=\{3,6,9,12\}. What is n(B)n(B)?

Union, intersection, complement

Union is everything in either set, intersection is the overlap, and the complement is everything outside the set.

  • Union A∪BA\cup B: elements in AA or BB (or both).
  • Intersection A∩BA\cap B: elements in both AA and BB.
  • Complement A′A': elements of ξ\xi that are not in AA.

The counting rule is n(A∪B)=n(A)+n(B)−n(A∩B)n(A\cup B)=n(A)+n(B)-n(A\cap B), because the intersection is counted twice if you just add.

2, 4, 8, 103, 96, 121, 5, 7, 11
Sets A (even numbers) and B (multiples of 3) in the universal set 1 to 12
  • n(A∪B)n(A\cup B)n(A)+n(B)−n(A∩B)n(A)+n(B)-n(A\cap B)

Worked example

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\} with ξ={1,…,12}\xi=\{1,\dots,12\}. Find A∩BA\cap B, A∪BA\cup B and (A∪B)′(A\cup B)'.

n(A)=6n(A)=6, n(B)=4n(B)=4 and n(A∩B)=2n(A\cap B)=2. What is n(A∪B)n(A\cup B)?

Drawing Venn diagrams

Write the overlap first, then subtract it from each set total to find the "only" regions.

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

  1. Write the number in the overlap A∩BA\cap B first.
  2. Subtract it from each set total to find 'only AA' and 'only BB'.
  3. Subtract the total of all regions from n(ξ)n(\xi) to find the number outside the circles.
14 football only10 basketball only8 both12 neither
44 students: football (F), basketball (B) and neither

Worked example

There are 44 students, n(F)=22n(F)=22, n(B)=18n(B)=18 and 8 play both. Fill in the diagram.

n(A)=15n(A)=15, n(A∩B)=6n(A\cap B)=6. How many are in AA only?

Three sets

Start with the region where all three sets overlap and work outwards.

With three sets, 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.

Next find each 'only' region. Finally, find the number outside all circles by subtracting the total of the regions from n(ξ)n(\xi).

  1. 1

    All three

    the centre region first

  2. 2

    Exactly two

    subtract the centre from each pair total

  3. 3

    Only one

    subtract the other regions

  4. 4

    Outside

    subtract all regions from the universal set

Order for three sets

Worked example

Of the 22 members of HH, 8 are also in TT (including 5 in all three sets) and 4 are in HH and the third set only. Find the number in HH and TT only, and the number in HH only.

Why do you start with the region where all three sets overlap?

Probability from a Venn diagram

Add the numbers in the regions that make up the event and divide by the total number of elements.

Probabilities come from the numbers in the regions:

P(event)=number of elements in the eventn(ξ)P(\text{event})=\frac{\text{number of elements in the event}}{n(\xi)}

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.

  • P(event)P(\text{event})n(event)n(ξ)\dfrac{n(\text{event})}{n(\xi)}

Worked example

In the group of 44, find P(exactly one sport)P(\text{exactly one sport}).

Using the group of 44, what is P(neither sport)P(\text{neither sport})?

Try an exam question

In a group of 4444 students, 2222 play football, 1818 play basketball and 88 play both. Find the number who play neither sport, and the probability that a student plays exactly one sport.

[4 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