Module 5 - Combinatorics and Probability (Handout)
Module 5 - Combinatorics and Probability (Handout)
COMBINATORICS
Combinatorics is the field of mathematics concerned with problems of selection,
arrangement, and operation. It is the study of counting the different outcomes/configurations
of some task.
Definition of Terms
1. Experiment – This is an activity with an observable outcome.
2. Sample Space – This is the set of all possible outcomes of an experiment.
3. Event – This is one or more of the possible outcomes of an experiment.
The possible outcomes are {C, O, M, I, T, E}. From the list, we could count 6 possible
outcomes when one letter from the word committee is chosen.
Example 2:
One number is chosen from the numbers 1 through 9. The sample space is {1, 2, 3, 4,
5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20}.
a. What are the elements in the event that the number chosen is an even number?
{2, 4, 6, 8, 10, 12, 14, 16, 18, 20}
b. What are the elements in the event that the number chosen is a number divisible by 5?
{5, 10, 15, 20}
c. What are the elements in the event that the number chosen is a prime number?
{2, 3, 5, 7, 11, 13, 17, 19}
Example 3:
How many three-digit numbers could be formed from the digits 2, 3 and 4?
From the list, we could count 27 three-digit numbers that could be formed from the
digits 2, 3 and 4.
1 3 8
1 11 13 18
3 31 33 38
8 81 83 88
From the table, we could count 9 two – digit numbers that could be formed from digits
1, 3 and 8.
Example 2:
A coin is flipped and then a die is tossed. Find the number of possible outcomes of the
flipping of a coin and the rolling of a die.
1 2 3 4 5 6
H H1 H2 H3 H4 H5 H6
T T1 T2 T3 T4 T5 T6
From the table, we could count 12 possible outcomes of the flipping of a coin and the
rolling of a die.
From the diagram, we could count 8 possible ways to answer the first three questions in
the true-false test.
Any of the eight runners can be first, so 𝑛1 = 8. Because a runner cannot finish both
first and second, there are seven runners that can finish second; thus 𝑛2 = 7. Similarly, there
are six runners that can finish third; 𝑛3 = 6.
By the counting principle, there are: 8 × 7 × 6 = 336 possible ways on how the top
three finishers could be determined.
Example 2:
Suppose you have a playlist that consists of six songs but you have time to listen to only
four of the songs.
You could choose any one of the six songs to play first. Then, any one of the five
remaining songs to play second. Then, any one of the four remaining four songs to play third.
And any of the remaining three songs to play fourth.
By the counting principle, there are 6 x 5 x 4 x 3 = 360 ways to select 4 songs out of
the 6 songs in the playlist.
Example 2:
From the numbers1, 2, 3 and 4, how many three-digit numbers could be formed if:
1 2 3 4 5 6
H H1 H2 H3 H4 H5 H6
T T1 T2 T3 T4 T5 T6
{H1, H2, H3, H4, H5, H6, T1, T2, T3, T4, T5, T6}
8. Toss a coin and then choose a digit from the digits 1 through 4.
1 2 3 4
H H1 H2 H3 H4
T T1 T2 T3 T4
Sample Problem:
Suppose four different colored squares are arranged in a row. How many different
ways are there to order the colors?
c. N factorial
Note from this example that the number of arrangements equals the product of the
natural numbers n through 1, where n is the number of objects. This product is called a
factorial.
4! = 4 x 3 x 2 x 1 = 24
There are 24 ways on how the four colored squares could be arranged in a row.
Permutation
This is another strategy in counting the different outcomes of a certain task. It counts
the different arrangements of objects in a definite order.
Examples:
1. abc and cba are two different permutations of the letters a, b, and c
2. 122 and 212 are two different permutations of the digits 1 and 2
Sample Problem 1
Suppose you have a playlist that consists of six songs but you have time to listen to only
four of the songs. In how many ways could you select the four songs out of the six songs.
There are 360 ways on how the four songs could be selected from the six songs.
Sample Problem 2
If there are eight people in a race, how many possible ways can the top three finishers
be determined, assuming there are no ties?
There are 336 ways on how the top three finishers could be determined from the 8 racers,
assuming there are no ties.
Sample Problem 3
There were 42 cars entered in the 2004 Daytona 500 NASCAR race. How many
different ways could the first, second, and third places be awarded?
There are 68 880 ways on how the top three finishers could be determined out of the 42 cars
which participated in the 2004 Daytona 500 NASCAR Race.
𝒏!
𝒌𝟏 ! ∙ 𝒌𝟐 ! ∙ … ∙ 𝒌𝒓 !
where 𝑘1 + 𝑘2 + ⋯ + 𝑘𝑟 = 𝑛.
Sample Problem 1
If seven identical dice are rolled, find the number of ways two 4’s, one 5, and four 6’s
can appear on the upward faces.
a. Identify the given
We are looking for the number of permutations of the digits 4456666.
n = 7 (number of dice)
k1 = 2(number of 4’s)
k2 = 1 (number of 5’s)
k3 = 4 (number of 6’s)
Sample Problem 2
How many times can you arrange the letters of the word BANANA?
Circular Permutation
Circular permutation is given by: (𝒏 − 𝟏)!
Combination
This is another strategy in counting the different outcomes of a certain task. It counts
the different outcomes of a certain task for which the order of the objects involved is not
important.
Examples:
1. If you were to receive a one-peso coin, a five-peso coin, and a ten-peso coin, you would
have P16 regardless of the order in which you received the coins.
2. The three-letter sequences acb and bca are different permutations of the letters a, b and c
but the same combination since the letters contained in the two are just the same.
Sample Problem 1
A basketball team consists of 11 players. In how many ways can a coach choose the five
starting players, assuming the position of a player is not considered?
There are 462 ways on how the first five players could be determined from the 11 players.
Sample Problem 2
A committee of five is chosen from five engineers and six entrepreneurs. How many
different committees are possible if the committee must include two engineers and three
entrepreneurs?
There are five engineers from whom two are chosen, which is equivalent to C (5, 2)
combinations. There are six entrepreneurs from whom three are chosen, which is equivalent to
C (6, 3) combinations. Get the product of the two combinations.
5! 6! 5! 6!
𝐶 (5,2) 𝑥 𝐶 (6, 3) = x = x = 10 x 20 = 200
2!(5−2)! 3!(6−3)! 2!(3!) 3!(3!)
There are 200 ways on how a committee of five is chosen from five engineers and six
entrepreneurs if the committee must include two engineers and three entrepreneurs?
Sample Problem 3
A softball team consists of 16 players. In how many ways can a coach choose the nine
starting players, assuming the position of a player is not considered?
There are 11 440 ways on how the first nine players could be determined from the 16 players.
Sample Problem 4
From a standard deck of playing cards, five cards are chosen. How many five-card
combinations contain:
4! 4! 4! 4!
𝐶(4,2) 𝑥 𝐶(4, 3) = 2!(4−2)! x 3!(4−3)! = 2!(2!) x 3!(1!) = 6 x 4 = 24
There are 24 ways five card combinations containing two kings and three queens.
b. five hearts?
n = 13
k=5
𝑛! 13! 13!
𝐶(𝑛, 𝑘) = 𝑘!(𝑛−𝑘)! = 𝐶(13,5) = 5!(13−5)! = 5!(8!) = 1 287
In the Philippines, the likelihood of selecting the winning lottery numbers in Lotto is
approximately 1 in 5,245,786. In contrast, the likelihood of being struck by lightning is about
1 chance in 1,000,000. From this, we can say that one is more likely to be struck by lightning
than to pick the winning Philippine lottery numbers.
I. Probability of an Event
The probability of an event is the likelihood of the occurrence of such event.
NOTE: An event that is not very likely has a probability close to 0 while an event that is very
likely has a probability close to 1. Because any event has from a 0% to 100% chance of
occurring, probabilities are always between 0 and 1, inclusive. If an event must occur, its
probability is 1. If an event cannot occur, its probability is 0.
Sample Problem 1
If a regular six-sided die is rolled, what is the probability that an even number will
result?
number of elements in 𝐸 3
𝑃(𝐸) = total number of elements in sample space Ω = 6 = 0.5 = 50%
Sample Problem 2
If a regular six-sided die is rolled, what is the probability that a number greater than 4
will result?
number of elements in 𝐸 2
𝑃(𝐸) = total number of elements in sample space Ω = 6 = 0.3333 = 33.33%
Sample Problem 3
A fair coin—one for which it is equally likely that heads or tails will result from a single
toss—is tossed twice. What is the probability that one head and one tail will result?
Sample Problem 4
A fair coin—one for which it is equally likely that heads or tails will result from a single
toss—is tossed twice. What is the probability that two heads will result?
number of elements in 𝐸 1
𝑃(𝐸) = total number of elements in sample space Ω = 4 = 0.25 = 25%
Sample Problem 5
A fair coin—one for which it is equally likely that heads or tails will result from a single
toss—is tossed three times. What is the probability that two heads and one tail will result?
Sample space (all possible outcomes): {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}
Elements in the event that two heads and one tail will result: {HHT, HTH, THH}
number of elements in 𝐸 3
𝑃(𝐸) = total number of elements in sample space Ω = 8 = 0.375 = 37.5%
Sample Problem 6
Two fair dice are tossed, one after the other. What is the probability that the sum of the
pips on the upward faces of the two dice equals 8?
number of elements in 𝐸 5
𝑃(𝐸) = total number of elements in sample space Ω = 36 = 0.139 = 13.9%
Sample Problem 7
Two fair dice are tossed, one after the other. What is the probability that the sum of the
pips on the upward faces of the two dice equals 10?
number of elements in 𝐸 3
𝑃(𝐸) = total number of elements in sample space Ω = 36 = 0.0833 = 8.33%
Empirical Probability
This is the probability of an event based on data gathered from an experiment.
𝐧(𝐄) 𝐧𝐮𝐦𝐛𝐞𝐫 𝐨𝐟 𝐭𝐢𝐦𝐞𝐬 𝐞𝐯𝐞𝐧𝐭 𝐄 𝐨𝐜𝐜𝐮𝐫𝐞𝐝
𝐏(𝐄) = =
𝐧(𝛀) 𝐧𝐮𝐦𝐛𝐞𝐫 𝐨𝐟 𝐭𝐢𝐦𝐞𝐬 𝐭𝐡𝐞 𝐞𝐱𝐩𝐞𝐫𝐢𝐦𝐞𝐧𝐭 𝐰𝐚𝐬 𝐩𝐞𝐫𝐟𝐨𝐫𝐦𝐞𝐝
Sample Problem 1
A survey of the COMELEC in City Ta Hi Meek showed the following information on the
ages and party affiliations of registered voters.
If one voter is chosen from the survey, what is the probability that the voter is on the
neutral side?
number of times event E occured 440
P(E) = = 2 120 = 0.208 = 20.8%
number of times the experiment was performed
Sample Problem 2
A survey of the COMELEC in City Ta Hi Meek showed the following information on the
ages and party affiliations of registered voters.
If one voter is chosen from the survey, what is the probability that the voter is from ages
29 – 39?
number of times event E occured 600
P(E) = = 2 120 = 0.2830 = 28.30%
number of times the experiment was performed
Sample Problem 3
A survey of the COMELEC in City Ta Hi Meek showed the following information on the
ages and party affiliations of registered voters.
If one voter is chosen from the survey, what is the probability that the voter is from ages
18-28 and that voter is pro liberal party?
Sample Problem 2
If a regular six-sided die is rolled, what are the odds that an odd number will result?
Sample Problem 3
A fair coin—one for which it is equally likely that heads or tails will result from a single
toss—is tossed three times. What are the odds that two heads and one tail will result?
Sample space: {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}
Favorable: {HHT, HTH, THH}
Unfavorable: {HHH, HTT, THT, TTH, TTT}
Sample Problem 4
A fair coin—one for which it is equally likely that heads or tails will result from a single
toss—is tossed three times. What are three heads will result?
Sample space: {HHH, HHT, HTH, HTT, THH, THT, TTH, TTT}
Favorable: {HHH}
Unfavorable: {HHT, HTH, HTT, THH, THT, TTH, TTT}