Elementary Counting Techniques & Combinatorics: Martina - Litschmannova@vsb - CZ
Elementary Counting Techniques & Combinatorics: Martina - Litschmannova@vsb - CZ
& Combinatorics
Martina Litschmannová
[email protected]
K210
Consider:
How many ways can I return your tests so that no one gets
their own?
𝐴 = 𝑎, 𝑒, 𝑖, 𝑜, 𝑢
2. Describe the set of positive integers.
Since it would be impossible to list all of the positive integers, we
need to use a rule to describe this set.
𝐴 = 𝑥: 𝑥 ∈ ℤ ∧ 𝑥 > 0
Rolling dice
Stats experiments
Statistical experiments have three things in common:
Yes. Two events are independent when the occurrence of one has no
effect on the probability of the occurrence of the other. Neither roll
of the die affects the outcome of the other roll; so each roll of the die
is independent.
Combinatorics
Combinatorics
is the branch of discrete mathematics concerned with
determining the size of finite sets without actually
enumerating each element.
Product rule
occurs when two or more independent events are grouped
together. The first rule of counting helps us determine how
many ways an event multiple can occur.
2 ∙ 2 ∙ 2 ∙ 2
= 𝟏𝟔
2. A business man has 4 dress shirts and 7 ties. How many
different shirt/tie outfits can he create?
4 ∙ 7
= 𝟐𝟖
3. How many different ways can we chose from 4 colors
and paint 3 rooms?
4 ∙ 4 ∙ 4
= 𝟔𝟒
4. How many different ways can we chose from 4 colors and
paint 3 rooms, if no room is to be the same color?
4 ∙ 3 ∙ 2
= 𝟐𝟒
5. How many different orders may 8 people be arranged in?
8 ∙ 7 ∙ 6 ∙ 5 ∙ 4 ∙ 3 ∙ 2 ∙ 1
= 𝟖! = 𝟑𝟔𝟐 𝟖𝟖𝟎
6. How many different 3 people can be selected from a
group of 8 people to a president, vice-president, treasure
of the group?
8 ∙ 7 ∙ 6
= 𝟑𝟑𝟔
7. How many license plates are possible with 3 letters
followed by 4 digits?
A 0
B 1
C 2
. 26 . 10
. .
. .
Z 9
Now suppose each subtask has a choice of ways to perform it, e.g.
• subtask1 can be performed t1 ways,
• subtask2 can be performed t2 ways,
• ...
• subtaskk can be performed tk ways.
𝑡1 + 𝑡2 + ⋯ + 𝑡𝑘
8. You have five novels, four magazines, and three devotional books.
How many options do you have for taking one for your wait in the
bank line?
5 + 4 + 3
= 𝟏𝟐
9. Consider the following road map.
A B C
A B C
from A to B: 4 ways
from B to A: 4 ways
A B C
from A to B from B to C
4 ∙ 2 =𝟖
OR
4 ∙ 4 ∙ 1 = 𝟏𝟔
9. Consider the following road map.
A B C
44/5 = 9
11. How many people must we survey, to be sure at least 50 have the
same political party affiliation, if we use the three affiliations
{Democrat, Republican, neither}?
𝑁/3 = 50
𝑁 = 3 ∙ 49 + 1 = 𝟏𝟒𝟖
Permutations and Combinations
Consider:
How many ways can we choose
r things from a collection of n things?
pick
pick
n ∙ n-1 ∙ n-2 ∙ ⋯ ∙ 1
𝑃 𝑛 = 𝑛!
𝑃 9 = 9! = 𝟑𝟔𝟐 𝟖𝟖𝟎
r-Permutations
pick
∙
∙
1. ball 2. ball 3. ball 4. ball ∙
9 ∙ 8 ∙ 7 ∙ 6 = 𝟑𝟎𝟐𝟒
r-Permutations
𝑛!
𝑃 𝑛; 𝑟 =
𝑛−𝑟 !
Thus, by the product rule, the number of ways to arrange
𝑛!
r of n objects is: 𝑛 ∙ 𝑛 − 1 ∙ ⋯ ∙ 𝑛 − 𝑟 + 1 =
𝑛−𝑟 !
𝑛!
The number of r-permutations is .
𝑛−𝑟 !
13. Consider a horse race with 8 horses.
If a spectator were select three different horses at random to bet on
for first, second and third places, how likely is he to be completely
correct?
8!
𝑃 8; 3 = = 8 ∙ 7 ∙ 6 = 𝟑𝟑𝟔
5!
3-permutations 3-combinations
abc acb bac bca cba cab {a, b, c}
abd adb bad bda dba dab {a, b, d}
adc acd dac dca cda cad {a, c, d}
dbc dcb bdc bcd cbd cdb {b, c, d}
Combinations
This shows that each r-combination has r-permutations possible.
𝑃 𝑛; 𝑟 𝑛! 𝑛
𝐶 𝑛; 𝑟 = = =
𝑟! 𝑟! 𝑛 − 𝑟 ! 𝑟
𝑛
The number of r-combinations is .
𝑟
52! 52! 52 ∙ 51 ∙ 50 ∙ 49 ∙ 48
𝐶 52; 5 = = = =
5! 52 − 5 ! 5! 47! 5∙4∙3∙2∙1
= 𝟐 𝟓𝟗𝟖 𝟗𝟔𝟎
15. A certain club has 5 male and 7 female members.
a) How many ways can any 7 member committee be selected from
the membership?
5 7
Thus: 𝐶 5; 3 ∙ 𝐶 7; 4 = = 10 ∙ 35 = 𝟑𝟓𝟎
3 4
15. A certain club has 5 male and 7 female members.
c) How many ways are there to form a committee of 6 people if 2
woman refuse to serve together?
d) 𝐶 5; 4 − 𝐶 3; 2 ∙ 𝐶 7; 3 = 5 − 3 ∙ 35 = 𝟕𝟎
Study materials :
• http://homel.vsb.cz/~bri10/Teaching/Bris%20Prob%20&%20Stat.pdf
(p. 34 - p.41)
• http://onlinestatbook.com/2/probability/permutations.html
• http://en.wikipedia.org/wiki/Pigeonhole_principle