Sets and Counting

Stage 16 of 23 Strand 1 of 5 14 lessons

14 illustrated lessons, each teaching the why before the how.

Start with Set Notation in the app →
Revise Sets and Counting with flashcards →

Jump to a lesson

Set Notation

Unions, intersections and the universal set.

A set is a collection, and the universal set is everything under discussion

Read the full lesson →

UA4

A set is a collection of distinct objects. This one is called A.

UA46

The box around it is the universal set: everything we are talking about.

UAB2233

Now add a second set, B. 2 of the 4 elements of A are in B as well.

UAB2233

That overlap is the intersection, A ∩ B: in A and in B at the same time.

UAB2233

Everything in either circle is the union, A ∪ B: in A, in B, or in both.

Now you

UAB3

What is the name for the set of elements in A or B or both?

UAB3

What is the name for the set of elements everything under discussion?

Venn Diagrams

Two sets make four regions, three make eight.

A Venn diagram splits the universal set into regions that never overlap

Read the full lesson →

UAB5342

2 circles make 4 regions: only A, both, only B, and neither.

UABC

3 circles make 8 regions, counting the one outside them all.

UABC2

Fill the middle region first and work outward, or you will double-count.

Now you

UABC

How many separate regions does a Venn diagram of 3 sets have?

UAB

How many separate regions does a Venn diagram of 2 sets have?

Complements and Subsets

Everything that is not in the set.

The complement of a set is everything in the universal set that is not in it

Read the full lesson →

UA713

7 elements are in A, and 13 are not. Those 13 are its complement.

UA713

A set and its complement together make up the whole universal set.

UAB50

If every member of B is also in A, then B is a subset of A: B ⊆ A.

Now you

UA47

The universal set has 53 members and A has 47. How many are not in A?

UA31

The universal set has 54 members and A has 31. How many are not in A?

Cantor’s Diagonal: Bigger Infinities

Some endless things cannot even be listed.

The decimals between 0 and 1 cannot be listed even in an endless list

Read the full lesson →

0123456

The whole numbers are endless, yet you can list them in order: 0, 1, 2, 3 and so on.

1st2nd3rd1230.4150.2710.333diagonal: 4, 7, 3

Now suppose the decimals are listed. The shaded digits run down the diagonal: 4, then 7, then 3.

diagonal 4, 7, 3the new decimal is 0.584change each: 5, 8, 4it differs from row n at place n0.584 is on no row

Change every diagonal digit: 0.584 differs from every row, so this list has missed it.

Now you

0123456

Can the even numbers be put in an endless list?

0123456

Can the prime numbers be put in an endless list?

Counting a Union

Add both, then take the overlap off once.

Adding two sets counts their overlap twice, so subtract it once

Read the full lesson →

UAB754

A has 12 members and B has 9, but the total is not 21.

UAB5

The 5 in the overlap were counted in A and again in B.

UAB7540

So subtract the overlap once: n(A ∪ B) = 12 + 9 − 5 = 16.

Now you

UAB439

n(A) = 7, n(B) = 12, and 3 are in both. What is n(A ∪ B)?

UAB677

n(A) = 13, n(B) = 14, and 7 are in both. What is n(A ∪ B)?

Probability in Set Notation

Saying exactly which outcomes you mean.

Set notation says exactly which outcomes a probability is counting

Read the full lesson →

UAB6455

There are 20 outcomes in all: 6 in A only, 4 in both, 5 in B only, and 5 in neither.

UAB6455

P(A ∩ B) counts only the overlap: 4/20.

UAB6455

P(A ∪ B) counts all three shaded regions: 15/20.

Now you

UAB4533

Out of 15 outcomes, what is P(A ∩ B)?

UAB7532

Out of 17 outcomes, what is P(A ∪ B)?

Conditional Probability from Tables

The given row’s total is the new denominator.

A condition narrows the table to one row and that row’s total becomes the denominator

Read the full lesson →

girlsboystotalwalks7512rides4610total111122

A two-way table answers “given” questions: each condition narrows the table.

girlsboystotalwalks7512rides4610total111122

Given walks, only the walks row counts — its total 12 is the new denominator.

girlsboystotalwalks7512rides4610total111122

Of those 12 walkers, 7 are girls: P(girl | walks) = 7/12, read from one row alone.

Now you

girlsboystotalwalks7310rides639total13619

What is P(walks | girl)?

girlsboystotalwalks8614rides325total11819

What is P(girl | walks)?

Adding and Multiplying Choices

Steps in a row multiply; alternatives add.

Choices made one after another multiply, but a choice of one option or another adds

Read the full lesson →

teacakesconetartbuncoffeecakesconetartbunjuicecakesconetartbun

There are three drinks, then four cakes for each. Each drink opens four more paths.

3drink×4cake3 × 4 = 12 pairs

Because the choices happen one after the other, they multiply.

7one item, from either list3 + 4 = 7 choices

Choosing one option or the other adds the counts instead of multiplying them.

Now you

s1h1h2h3s2h1h2h3s3h1h2h3

You have 6 shirts and 6 hats. How many shirt-and-hat outfits can you make?

s1h1h2h3s2h1h2h3

You have 2 shirts and 4 hats. How many shirt-and-hat outfits can you make?

Factorials

Every order n different things can sit in.

Arranging n different things in a row can be done in n factorial ways

Read the full lesson →

3first×2second×1third3 × 2 × 1 = 6

Any of the 3 books can fill the first slot. Place one and 2 remain, then 1.

5×4×3×2×15! = 120

The exclamation mark means multiply all the way down to 1, so 5 slots give 120 ways.

0!
1one way to arrange nothing — the empty row

There is exactly one way to arrange nothing, so zero factorial is 1.

Now you

7!what does this come to?

In how many orders can 7 different books sit on a shelf?

5!what does this come to?

In how many orders can 5 different books sit on a shelf?

Permutations

Arrangements, where the order matters.

A permutation counts arrangements, so the order the things land in matters

Read the full lesson →

gold, silver, bronzefirst place is not the same as third placeorder matters

Three medals go to eight runners, and who gets which medal matters.

8gold×7silver×6bronze8 × 7 × 6 = 336

8 runners can take gold, then 7 are left for silver, then 6 for bronze.

n × (n−1) × … × (n−r+1)the divisor is the product of the factors never picked, so they canceln! ÷ (n − r)!

This is written nPr: multiply r factors, counting down from n.

Now you

4P3what does this come to?

How many ways to pick 3 from 4 when the order matters?

8P3what does this come to?

How many ways to pick 3 from 8 when the order matters?

Combinations

Selections, where the order does not.

A combination counts selections, so rearranging the same things changes nothing

Read the full lesson →

a team of 3the same three people, however you picked themorder does not matter

Pick a team of 3 from 8. Nobody on the team has a rank.

8×7×6336 ordered picks3! = 6 → 56

Every team was counted 3! = 6 times, once for each order of picking.

nPr — every group counted r! timesdivide out the orderings within each group

So divide the permutations by r factorial: nCr = nPr / r!.

Now you

6C3what does this come to?

How many ways to choose a team of 3 from 6?

6C2what does this come to?

How many ways to choose a team of 2 from 6?

Repeats and Restrictions

Divide out the swaps you cannot see.

Repeated items are counted too many times, so divide by the arrangements of each repeat

Read the full lesson →

A×N×N×A4! = 24 — but swapping a shaded pair changes nothing

The name Anna has two As and two Ns, so many rearrangements are identical.

4×3×2×14! = 242! × 2! = 4 → 6

Divide by the arrangements of each repeated letter: 24 ÷ 4 = 6.

4 books, 2 must sit togetherthe glued pair counts as one item3! = 6 ordersfree the pair: it can sit either way around6 × 2! = 12

Glue the tied pair into one item: 6 orders, and the pair can sit 2 ways, so 12.

Now you

6 books, 2 tiedhow many orders?

There are 6 books on a shelf, and 2 of them must sit together. How many orders are there?

Toothwhat does this come to?

How many distinct arrangements of the letters of Tooth are there?

Counting with Geometry

Choosing points to make lines and triangles.

Choosing points is a combination, because a line is the same whichever end you name first

Read the full lesson →

ABC

Here are 3 points on a circle: A, B and C.

ABC

Choosing 2 points from 3 gives 3 lines: AB and BA are the same line.

ABCD

Choose 3 points from these 4 and you get 4 triangles. One of them is drawn here.

Now you

5 points sit on a circle. How many straight lines join pairs of them?

4 points sit on a circle. How many straight lines join pairs of them?

Arrangements in a Circle

Seating people around a round table, where turning everyone changes nothing.

Around a table only who sits next to whom counts, so turning everyone round gives the same arrangement

Read the full lesson →

ABCDDABCACBD

Turn everyone one seat round and each person keeps both neighbors: the same arrangement. Swapping B and C makes a new one.

4 people in a line: 4! = 24each seating can be turned to 4 positionsaround a table: 24 ÷ 4 = 6n people: n! ÷ n = (n − 1)!

Each table arrangement can be turned 4 ways, so the 24 orders in a line count it 4 times: 24 ÷ 4 = 6.

A321

Or seat A first, which fixes the turning: the other 3 then fill their seats in 3 × 2 × 1 = 6 ways.

ABCDEFACBDEF

If B and C must sit together, glue them into one item: 5 items make 4! = 24 arrangements, and the pair can sit 2 ways, so 48.

all six: 5! = 120B and C together: 48every arrangement has them together or apartB and C apart: 120 − 48 = 72

To keep B and C apart, take the 48 arrangements with them together away from all 120: that leaves 72.

Now you

ADCBEF

6 people sit around a round table, and A and B must not sit together. How many arrangements are there?

ADCBEFG

7 people sit around a round table, and A and B must not sit together. How many arrangements are there?

Continue your journey in the app — save your progress