Counting Probability
Counting Probability
Toolkit
Counting
• Product Rule: Consider two independent tasks. If there are a ways of completing one task and
b ways of completing another task, then there are ab ways of completing both tasks.
• Sum Rule: If a task can be completed in a ways or b ways where there is no overlap between
these two ways, then the number of ways to complete the task is a + b.
• Complementary Counting: If there are a items in a set satisfying a given property, then
a = (total number of items in the set)−(number of items which do not satisfy the given property)
• The number of ways to arrange n distinct objects is n! = n(n − 1)(n − 1) · · · (3)(2)(1). Note
that 0! = 1.
n n!
• The number of ways to select k objects from n distinct objects is = .
k (n − k)!k!
• Pigeonhole Principle: Let k be a positive integer. If k + 1 objects are placed into k boxes, then
there is at least one box containing two or more of the objects.
Probability
Let A be the set of possible outcomes satisfying a given condition. We write A to represent the set of
possible outcomes which are not in set A. Let B be the set of possible outcomes satisfying another
condition.
• P (A) = 1 − P (A)
• If A and B are independent events (the occurrence of one event has no effect on the other
event), then P (A and B) = P (A)P (B).
2. How many 5-person committees can be selected from six teachers and eight students if there
must be at least two students included?
Solution 1
The number of committees with no restrictions is 14
5
= 2002.
The number of committees with no students is 65 80 = 6(1) = 6.
Therefore, the number of committees with at least two students is 2002 − 6 − 120 = 1876.
Solution 2
6
8
The number of committees with r students is 5−r r
. Therefore, the number of committees
with at least two students is
6 8 6 8 6 8 6 8
+ + + = (20)(28) + 15(56) + 6(70) + 1(56) = 1876
3 2 2 3 1 4 0 5
3. If you put 15 different pairs of socks into a drawer and then randomly choose one sock at a
time, how many socks must you choose before you are guaranteed to have a matching pair of
socks?
Solution
You must choose 16 socks. The first 15 socks you choose could all be different. But the
pigeonhole principle guarantees that with 16 socks and 15 types, there must be two socks of
the same type. Therefore, you are guaranteed a matching pair.
4. A die with the numbers 1, 2, 3, 4, 6 and 8 on its six faces is rolled. If an odd number is rolled,
then all odd numbers on the die are doubled. If an even number is rolled, all even numbers on
the die are halved. If the given die changes in this way, what is the probability that a 2 will be
rolled on the second roll of the die?
Solution
There are two possibilities for the first roll. It could be even or odd.
Case 1: first roll is odd
2 1
The probability of an odd roll is = .
6 3
After doubling all the odd numbers, the faces on the die are 2, 2, 6, 4, 6, 8. Therefore, the prob-
2 1
ability of rolling a 2 with these faces is = . Thus, the probability of rolling an odd number
6 3
1 1 1
on the first roll and a 2 on the second roll is × = .
3 3 9
Case 2: first roll is even
4 2
The probability of an even roll is = .
6 3
After halving all the even numbers, the faces on the die are 1, 1, 3, 2, 3, 4. Therefore, the prob-
1
ability of rolling a 2 with these faces is . Thus, the probability of rolling an even number on
6
2 1 1
the first roll and a 2 on the second roll is × = .
3 6 9
These cases have no overlap and so we can just add their probabilities. Therefore, the proba-
1 1 2
bility of rolling a 2 on the second roll is + = .
9 9 9
5. The integers 1, 2, 3, 4, 5, 6, 7 are arranged at random to form a 7-digit number. What is the
probability that the number formed is less than 3 200 000?
Solution:
The number formed is less than 3 200 000 if one of two cases occurs: (i) the first digit is 1 or 2
or (ii) the first digit is 3 and the second digit is 1. The probability that the first digit is 1 or
2 1
2 is . The probability that the first digit is 3 is . The probability that the second digit is
7 7
1
1 given that the first digit is 3 is . Therefore, the probability that the first digit is 3 and the
6
1 1 1
second digit is 1 is × = .
7 6 42
These cases have no overlap and so we can just add their probabilities. Therefore, the proba-
2 1 13
bility that the number formed is less than 3 200 000 is + = .
7 42 42
6. If 5 fair coins are tossed, what is the probability that at least two of them are heads?
Solution:
Since there are five coins and each coin has two options, there are 25 = 32 outcomes. It is easier
to count the number of outcomes that do not have at least two heads and then subtract this
from the total number of outcomes. These outcomes will have no heads or exactly one head.
There is only one outcome with no head. There are five outcomes with exactly one head, as
the head could be any of the five coins. Therefore, the probability that at least two of the coins
32 − (1 + 5) 13
are heads is = .
32 16
Problem Set
1. Let a, b, c, d, e be five distinct positive integers. Show that we can choose three of these integers
such that their sum is divisible by 3.
3. Three different numbers are chosen at random from the set {1, 2, 3, 4, 5}. The numbers are ar-
ranged in increasing order. What is the probability that the resulting sequence is an arithmetic
sequence?
4. How many positive integers less than 1000 have only odd digits?
5. Tanner has two identical dice. Each die has six faces which are numbered 2, 3, 5, 7, 11, 13. When
Tanner rolls the two dice, what is the probability that the sum of the numbers on the top faces
is a prime number?
6. Blaise and Pierre will play 6 games of squash. Since they are equally skilled, each is equally
likely to win any given game. (In squash, there are no ties.) The probability that each of them
5
will win 3 of the 6 games is 16 . What is the probability that Blaise will win more games than
Pierre?
7. A bag contains 40 balls, each of which is black or gold. Feridun reaches into the bag and
randomly removes two balls. Each ball in the bag is equally likely to be removed. If the
5
probability that two gold balls are removed is 12 , how many of the 40 balls are gold?
8. An integer n, with 100 ≤ n ≤ 999, is chosen at random. What is the probability that the sum
of the digits of n is 24?
9. Billy and Crystal each have a bag of 9 balls. The balls in each bag are numbered from 1 to 9.
Billy and Crystal each remove one ball from their own bag. Let b be the sum of the numbers
on the balls remaining in Billy’s bag. Let c be the sum of the numbers on the balls remaining
in Crystal’s bag. Determine the probability that b and c differ by a multiple of 4.
10. Oi-Lam tosses three fair coins and removes all of the coins that come up heads. Then she tosses
the coins that remain, if any. Determine the probability that she tosses exactly one head on
the second toss.
11. Two bags each contain 10 balls, labelled with the positive integers from 1 to 10. Pierre removes
one ball from each bag. (In each bag, each ball is equally likely to be chosen.) Determine the
probability that the product of the numbers on the two balls that he chooses is divisible by 10.
12. The string AAABBBAABB is a string of ten letters, each of which is A or B, that does not
include the consecutive letters ABBA.
The string AAABBAAABB is a string of ten letters, each of which is A or B, that does include
the consecutive letters ABBA.
Determine, with justification, the total number of strings of ten letters, each of which is A or
B, that do not include the consecutive letters ABBA.
13. For each positive integer N , an Eden sequence from {1, 2, 3, . . . , N } is defined to be a sequence
that satisfies the following conditions:
1 3 1, 2 1, 2, 3
14. Suppose there are n plates equally spaced around a circular table. Ross wishes to place an
identical gift on each of k plates, so that no two neighbouring plates have gifts. Let f (n, k)
represent the number of ways in which he can place the gifts. For example f (6, 3) = 2, as
shown below.