Lecture 7
Lecture 7
Example 4
During a month with 30 days, a baseball team plays at least
one game a day, but no more than 45 games. Show that there
must be a period of some number of consecutive days during
which the ream must play exactly 14 games.
3
Permutations and Combinations
4
PERMUTATIONS
A permutation of a set of distinct objects is an ordered
arrangement of these objects.
Example:
Let S = {1, 2, 3}.
a) The 2-permutations of S are:
b) Permutations of S are:
5
PERMUTATIONS
The number of r-permutations of a set with n distinct elements is
denoted by 𝑷(𝒏, 𝒓).
Theorem:
If 𝑛 is a positive integer and r is an integer with 1 ≤ 𝑟 ≤ 𝑛, then there
are
𝑃(𝑛, 𝑟) = 𝑛(𝑛 – 1)(𝑛 – 2) … (𝑛 – 𝑟 + 1)
r-permutations of a set with n distinct elements.
Corollary
𝑛!
If n and r are integers with 1 ≤ 𝑟 ≤ 𝑛 then 𝑃(𝑛, 𝑟) =
𝑛−𝑟 !
6
Examples
1. Suppose that there are eight runners in a race. The
winner receives a gold medal, the second-place finisher
receives a silver medal, and the third-place finisher
receives a bronze medal. How many different ways are
there to award these medals, if all possible outcomes of
the race can occur and there are no ties?
7
COMBINATIONS
An r-combination of elements of a set is an unordered
selection of r elements from the set.
Thus, an r-combination is simply a subset of the set with r
elements.
The number of r-combinations of a set with n distinct
elements is denoted by 𝑪(𝒏, 𝒓).
8
COMBINATIONS
Theorem
The number of 𝑟 − 𝑐𝑜𝑚𝑏𝑖𝑛𝑎𝑡𝑖𝑜𝑛𝑠 of a set with
𝑛 elements, where 𝑛 is a nonnegative integer and 𝑟 is an
integer with 0 ≤ 𝑟 ≤ 𝑛, equals
𝑛!
𝐶 𝑛, 𝑟 =
𝑟! 𝑛 − 𝑟 !
Corollary.
Let 𝑛 and 𝑟 be nonnegative integers with 𝑟 ≤ 𝑛. Then
𝐶(𝑛, 𝑟) = 𝐶(𝑛, 𝑛 − 𝑟)
9
Example
10
PASCAL’S IDENTITY
11
Pascal’s Triangle
•In Pascal’s triangle, each number is the sum of the
numbers to its upper left and upper right:
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
… … … … … …
12
Pascal’s Triangle
Since we have 𝐶(𝑛 + 1, 𝑘) = 𝐶(𝑛, 𝑘 – 1) + 𝐶(𝑛, 𝑘) and
𝐶(0, 0) = 1, we can use Pascal’s triangle to simplify the
computation of 𝐶(𝑛, 𝑘):
C(0, 0) = 1
C(1, 0) = 1 C(1, 1) = 1
n
C(2, 0) = 1 C(2, 1) = 2 C(2, 2) = 1
C(3, 0) = 1 C(3, 1) = 3 C(3, 2) = 3 C(3, 3) = 1
C(4, 0) = 1 C(4, 1) = 4 C(4, 2) = 6 C(4, 3) = 4 C(4, 4) = 1
13
Binomial Coefficients
• A binomial expression is the sum of two terms, such as (a + b).
𝑛
• Expressions of the form 𝐶 𝑛, 𝑘 = 𝑘 are also called binomial
coefficients because these numbers occur as coefficients in the
𝑛
expansion of power of the binomial expressions such as 𝑎 + 𝑏
14
Example
15
COROLLARIES
𝑛
1. Let n be a nonnegative integer. Then σ𝑛𝑘=0 𝑘
= 2𝑛
𝑛
2. Let n be a nonnegative integer. Then σ𝑛𝑘=0 −1 𝑘
𝑘
=0
𝑛
3. Let n be a nonnegative integer. Then σ𝑛𝑘=0 2𝑘 𝑘 = 3𝑛
16
COMBINATORICS
• Section 6.1 – The Basics of Counting
Ex. 1-16, 20-37, 44-51, 54-57, 65, 69, 75,76
• Section 6.2 – The Pigeonhole Principle
Ex. 1-9,11,15,17,18,21,37,43,46
• Section 6.3 – Permutations and Combinations
Ex. 10-22, 25, 28, 32, 42-44
• Section 6.4 Binomial Coefficients and Identities
Ex. 1-19, 28-33
17
Discrete Probability
18
Discrete Probability
19
Discrete Probability
Example II:
What is the probability that when two dice are
rolled, the sum of the numbers on the two dice is
7?
21
Example III:
What is the probability of winning the lottery 6/49,
that is, picking the correct set of six numbers out
of 49?
22
Complimentary Events
Example:
What is the probability that at least two out of 36
people have the same birthday?
24
Union of Events
Theorem 2. Let 𝐸1 and 𝐸2 be events in the sample
space S.
Then we have:
𝑝 𝐸1 ∪ 𝐸2 = 𝑝 𝐸1 + 𝑝 𝐸2 − 𝑝(𝐸1 ∩ 𝐸2 )
25
Discrete Probability
Example:
What is the probability of a positive integer
selected at random from the set of positive
integers not exceeding 100 to be divisible by 2 or
5?
26
CW
• What is the probability that a five-card poker hand contains the two of
diamonds and the three of spades? (ex 10 pg. 475)
• What is the probability that a five-card poker hand contains exactly one
Ace?
• What is the probability that a five-card poker hand contains a flush, that is,
five cards of the same suit?
• What is the probability that a player of a lottery wins the prize offered for
correctly choosing five (but not six) numbers out of six integers chosen at
random from the integers between 1 and 40, inclusive?