0% found this document useful (0 votes)
64 views

Counting Probability

There are 6 key concepts covered in the document: 1. Counting principles including the product rule, sum rule, and principle of inclusion-exclusion. 2. Ways to arrange and select objects using factorials and combinations. 3. The pigeonhole principle. 4. Probability definitions including probability of events, independent events, and mutually exclusive events. 5. Sample counting and probability problems are provided along with step-by-step solutions.

Uploaded by

kintat ng
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
64 views

Counting Probability

There are 6 key concepts covered in the document: 1. Counting principles including the product rule, sum rule, and principle of inclusion-exclusion. 2. Ways to arrange and select objects using factorials and combinations. 3. The pigeonhole principle. 4. Probability definitions including probability of events, independent events, and mutually exclusive events. 5. Sample counting and probability problems are provided along with step-by-step solutions.

Uploaded by

kintat ng
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Counting and 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.

• Principle of Inclusion-Exclusion (Subtraction Rule): If a task can be completed in a ways or b


ways and there are c ways that are common to both, then the number of ways to complete the
task is a + b − c.

• 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.

• If all outcomes are equally likely, then the probability of event A is


number of outcomes in A
P (A) =
total number of possible outcomes

• 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).

• P (A or B) = P (A) + P (B) − P (A and B)


Sample Problems
1. How many positive 4-digit numbers begin with an odd digit or are divisible by 5?
Solution
We start by determining the number of 4-digit numbers that begin with an odd digit. There
are 5 choices for the first digit and 10 choices for each of the remaining 3 digits. Therefore,
there are 5(10)(10)(10) = 5000 4-digit numbers that begin with an odd digit.
Next, we determine the number of 4-digit numbers that are divisible by 5. An integer is divisible
by 5 exactly when its final digit is 0 or 5. Therefore, there are 9 choices for the first digit since
we can’t use the digit 0, 10 choices for the second and third digits, and 2 choices for the final
digit. Thus, there are 9(10)(10)(2) = 1800 4-digit numbers that are divisible by 5.
However, there is some overlap between these two sets. The number of 4-digit numbers that
begin with an odd digit and are divisible by 5 are 5(10)(10)(2) = 1000.
Therefore, the total number of positive 4-digit numbers that begin with an odd digit or are
divisible by 5 is 5000 + 1800 − 1000 = 5800.

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.
 

The number of committees with one student is 64 81 = 15(8) = 120.


 

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.

2. A permutation of a list of numbers is an ordered arrangement of the numbers in that list.


For example, 3, 2, 4, 1, 6, 5 is a permutation of 1, 2, 3, 4, 5, 6. We can write this permutation as
a1 , a2 , a3 , a4 , a5 , a6 , where a1 = 3, a2 = 2, a3 = 4, a4 = 1, a5 = 6, and a6 = 5. Determine the
average value of
a1 − a2 + a3 − a4 + a5 − a6 + a7
over all permutations a1 , a2 , a3 , a4 , a5 , a6 , a7 of 1, 2, 3, 4, 5, 6, 7.

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:

• each of its terms is an element of the set of consecutive integers {1, 2, 3, . . . , N },


• the sequence is increasing, and
• the terms in odd numbered positions are odd and the terms in even numbered positions
are even.

For example, the four Eden sequences from {1, 2, 3} are

1 3 1, 2 1, 2, 3

Determine the number of Eden sequences from {1, 2, 3, 4, 5}.

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.

(a) Determine the value of f (7, 3).


(b) Prove that f (n, k) = f (n − 1, k) + f (n − 2, k − 1) for all integers n ≥ 3 and k ≥ 2.

You might also like