Counting Techniques
Senior 6 · Basic Mathematics
Counting Techniques
Lesson 1 of 5
25 min
How many ways can a class choose a captain and a vice-captain? How many different lunches can a canteen serve from its menu? How many students in a school play neither football nor volleyball? Each question asks for a number of possibilities, and each can be answered by listing, if the list is short. This unit builds methods for when the list is too long to write out. It starts with four ways of organising the outcomes so that none is missed and none is counted twice.
Definition
An experiment is an action with a set of possible results, such as rolling a die. Each result is an outcome. The set of all outcomes is the sample space . An event is a subset of . For any set , is the number of elements in .
Example: rolling a die, . The event "an even number" is , so .
In an S6 class of 40 students, 22 play football, 15 play volleyball and 6 play both. How many play neither?
Fill the diagram from the inside out: first the overlap (6), then "football only" and "volleyball only" . The students who play at least one sport number , so play neither.
The same reasoning gives the inclusion–exclusion rule. Adding and counts the overlap twice, so it is subtracted once:
Worked example
Worked example 1: three sets. Of 50 students, 20 are in the Debate club (D), 18 in Drama (R) and 15 in Music (M). 7 are in both D and R, 5 in both D and M, 4 in both R and M, and 2 are in all three. How many are in no club, and how many in exactly one?
Inside out. All three: 2. Exactly D and R: . Exactly D and M: . Exactly R and M: .
D only: . R only: . M only: .
At least one club: . No club: . Exactly one club: .
Check with inclusion–exclusion for three sets:
This agrees with the count above.
A school canteen serves rice or cooked bananas, with beans, peas or fish. A tree diagram shows every possible plate: one branch for each choice at each stage. Each path from the start to the right-hand end is one outcome.
There are 6 paths, so 6 possible plates. Notice that : every one of the 2 first choices can be followed by each of the 3 second choices. The next lesson turns this into a rule.
A contingency (two-way) table counts individuals classified by two characteristics at once. The 120 S6 students of a school (illustrative):
| Boarding | Day | Total | |
|---|---|---|---|
| Sciences | 30 | 18 | 48 |
| Languages | 14 | 16 | 30 |
| Humanities | 22 | 20 | 42 |
| Total | 66 | 54 | 120 |
Each cell is an "and": 16 students are Languages and day. The totals let you check your reading: rows and columns must add up to 120.
The Organic Chemistry Tutor solves word problems with three overlapping categories. Notice that he always starts with the centre region, as in worked example 1.
Worked example
Worked example 2. From the contingency table, how many students are in Sciences or boarding (or both)?
Sciences: 48. Boarding: 66. The 30 who are both have been counted twice, so
Check by counting the cells directly: . ✓
Warning
Filling a Venn diagram from the outside in is the most common error. "22 play football" includes the 6 who play both, so writing 22 in the "football only" region counts those 6 twice. Always start from the centre.
Tip
Choose the tool by the question: Venn diagram for overlapping groups, tree diagram for choices made in stages, contingency table for two ways of classifying the same individuals.
Practice
Important
. Fill Venn diagrams from the centre outwards, and check every table with its totals.
Sources and credits
Text, diagrams, data, worked examples and exercises: Written by Ganzaa. All data are illustrative.
Video: Venn Diagram Word Problems With 3 Categories, The Organic Chemistry Tutor, embedded from YouTube.