engg-data-module-3
engg-data-module-3
COUNTING TECHNIQUES
Prepared by:
Engr. Fredalyn D. Igadna, RME
Instructor
Engineering Data Analysis CH3. Counting Techniques
CHAPTER 3
COUNTING TECHNIQUES
Learning Objectives
▪ Understand the concept of sample space and events
▪ Differentiate combination from permutation
𝐴 = {3,6}
𝑨′ = {𝟏, 𝟐, 𝟒, 𝟓}
3.2.2 Intersection
The intersection of two events A and B, denoted by symbol 𝐴 ∩ 𝐵, is the event
containing all elements that are common to A and B.
Example 3.6 In tossing a die, the event A happens when an even number is shown and B when
a number greater than 3 is shown. Obtain 𝐴 ∩ 𝐵.
𝑆 = {1,2,3,4,6}
𝐴 = {2, 4,6}
𝐵 = {4, 5, 6}
𝐴 ∩ 𝐵 = {4, 6}
3.2.3 Disjoint
Two events A and B are mutually exclusive or disjoint if 𝐴 ∩ 𝐵 = ∅, that is if
A and B have no elements in common.
Example 3.7 Let 𝐴 = {𝑎, 𝑒, 𝑖, 𝑜, 𝑢} and 𝐵 = 𝑏, 𝑐, 𝑑, 𝑓, 𝑔. then 𝐴 ∩ 𝐵 = ∅. There is no element
in A that matches with B and vice versa.
3.2.4 Union
The union of two events A and B, denoted by 𝐴 ∪ 𝐵, is the event containing all
the elements that belong to A or B or both.
Example 3.8 If 𝐴 = {2, 4, 6} and 𝐵 = {4, 5, 6}, then
𝐴 ∪ 𝐵 = {2, 4, 5, 6}
The relationship among events and the corresponding sample space can be illustrated
graphically by means of Venn Diagrams. In a Venn diagram, we let the sample space be a
rectangle and the circles be the events.
Page | 3
Engineering Data Analysis CH3. Counting Techniques
𝐵 ∩ 𝐶 = regions 1 and 3
𝐴 ∩ 𝐶= regions 1 and 4
𝐴 ∪ 𝐵= regions 1, 2, 3, 4, 6 and 7
𝐵 ∪ 𝐶= regions 1, 2, 3, 4, 5 and 6
𝐴 ∪ 𝐶= regions 1, 2, 3, 4, 5 and 7
𝐵′ ∩ 𝐴= regions 4 and 7
𝐴 ∩ 𝐵 ∩ 𝐶= region 1
(𝐴 ∪ 𝐵) ∩ 𝐶′= regions 2, 6 and 7
From the figure above, we can see that events A, B and C are all subsets of the sample
space S. it is also clear that event B is a subset of event A. Event 𝐵 ∩ 𝐶 has no elements in
common so they are mutually exclusive. Event 𝐴 ∩ 𝐶 has atleast one element. Event 𝐴 ∪ 𝐵 =
𝐴 since B is only a subset of A.
3.3 Permutation
A permutation is an arrangement of all or part of a set of objects.
3.3.1 Permutation of Different Objects
Example 3.9 In how many ways can the letters of the word “sample” be arranged?
There are 6 letters in the word. Using the box method, create the same number of boxes
as the number of letters.
1 2 3 4 5 6
The fist compartment can be filled in 6 ways because there are 6 choices. The second
compartment can be filled in 5 ways because there are only 5 choices left after the first
compartment is filled, the third with 4 choices, the fourth with 3 choices, the fifth with 2 choices
and the sixth with 1 choice.
1 2 3 4 5 6
6 5 4 3 2 1
By multiplication rule, the number of permutations
𝑛 = 6 × 5 × 4 × 3 × 2 × 1 = 𝟕𝟐𝟎 𝒘𝒂𝒚𝒔
In general, the number of permutations of 𝑛 different objects is 𝑛! where
𝑛! = 𝑛(𝑛 − 1)(𝑛 − 2) … (𝑛 − 𝑛 + 1)
Page | 4
Engineering Data Analysis CH3. Counting Techniques
Page | 5
Engineering Data Analysis CH3. Counting Techniques
The 5 vowels in the word are restricted to be in one definite order so they cannot be permutated
and is considered as one object. The problem involves finding the number of permutations of
9 letters taken all together where 5 letters are considered identical. So
𝑛! 9!
𝑃= = = 𝟏𝟐𝟔 𝒘𝒂𝒚𝒔
𝑛1 ! 𝑛2 ! 𝑛3 ! … 𝑛𝑘 ! 5! 4!
3.4 Combination
A combination happen when 𝑛 different objects taken 𝑟 at a selection out of the 𝑛
objects with no attention given to the order of arrangement. The number of combinations is
𝑛! 𝑛𝑃𝑟
𝑛𝐶𝑟 = =
𝑟! (𝑛 − 𝑟)! 𝑟!
In arranging a set 𝑆 = {𝑎, 𝑏, 𝑐 }, 3 letters at a time there are 3! or 6 ways such as abc,
acb, cab, bac, cba, bca. The subject abc is counted as different from arrangement acb.
In combining a set 𝑆 = {𝑎, 𝑏, 𝑐 }, 3 letters at a time, there is only 1 way which is abc. In
combination, the subject abc is the same as acb and is counted as 1.
In permutation, order counts but in combination, order does not count.
The table shows the permutations and combinations of the letters a, b, c, d and e, 3 at a
time. The table shows the difference of a combination from permutation.
Example 3.14 Ten points are taken on the circumference of a circle.
a. How many chords can be drawn by joining them in all possible ways?
b. How many of these lines pass through one particular point?
c. With these 10 points as vertices, how many triangles can be drawn?
d. How many hexagons?
Solution:
a. Two points determine a line. We must take the 10 points, 2 at a time.
𝑛! 10!
𝑛𝐶𝑟 = = = 𝟒𝟓 𝒍𝒊𝒏𝒆𝒔
𝑟! (𝑛 − 𝑟)! 2! (10 − 2)!
b. Draw the circle and identify the points.
Page | 6
Engineering Data Analysis CH3. Counting Techniques
From point A, draw all lines connecting it with the other points. It can be noted that
from a particular point, 9 lines are drawn.
c. To form a triangle, we need 3 points. So, take the 10 points, 3 at a time.
𝑛! 10!
𝑛𝐶𝑟 = = = 𝟏𝟐𝟎 𝒕𝒓𝒊𝒂𝒏𝒈𝒍𝒆𝒔
𝑟! (𝑛 − 𝑟)! 3! (10 − 3)!
d. Six points determine a hexagon. So, take the 10 points, 6 at a time.
𝑛! 10!
𝑛𝐶𝑟 = = = 𝟐𝟏𝟎 𝒉𝒆𝒙𝒂𝒈𝒐𝒏𝒔
𝑟! (𝑛 − 𝑟)! 6! (10 − 6)!
Page | 7
Engineering Data Analysis CH3. Counting Techniques
LEARNING ACTIVITY 3
Counting Techniques
Name: Date:
Year and Section: Score:
A. Answer the following briefly and in your own words.
1. Define what is a sample space.
2. Define events.
3. Enumerate the different relationships of events and define them.
4. Differentiate permutation from combination.
5. Give atleast two real life application of permutation and combination.
B. Solve for the following problems. Show your complete solution.
1. List the sample space that can be obtained from the following;
a. the set of integers between 1 and 50 divisible by 5
b. throwing a pair of dice
c. tossing three coins at a time
2. If 𝑆 = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} and 𝐴 = {0, 2, 4, 6, 8}, 𝐵 = {1,3, 5, 7,9}, 𝐶 =
{2, 3, 4, 5} and 𝐷 = {1, 6, 7}, list the elements of the following events;
a. 𝐴 ∪ 𝐶
b. 𝐴 ∩ 𝐵
c. 𝐶′
d. (𝑆 ∩ 𝐶)′
e. 𝐴 ∩ 𝐶 ∩ 𝐷′
3. In how many ways can a true or false test consisting of 9 questions be answered?
4. How many distinct permutations can be made from the letters of the word
COLUMNS?
5. in how many ways can 4 boys and 5 girls sit in a row if the boys and girls must
alternate?
6. Four married couples bought 8 seats in the same row for a concert. In how many
different ways can they be seated
a. without restrictions?
b. if each couple is to sit together?
7. In how many ways can a committee of 5 be chosen from 8 people?
8. A class is composed of 13 boys and 7 girls. The teacher would like to form a
committee of 5 consisting of 3 boys and 2 girls. How many ways can the teacher
choose?
Page | 8