STA116 Chapter 2 - Probability & Counting Rules
STA116 Chapter 2 - Probability & Counting Rules
STA116
Probability & Counting Rules
CHAPTER 2
1
26/3/2023
2.2 Permutation
Any particular arrangement of r objects which
are selected from a set of n distinct object
Permutation is ordered combination.
The order of the arrangement is IMPORTANT.
Example:
‐ The permutation of the trio Ali, Ah Seng and
Raju is DIFFERENT from Raju, Ah Seng and Ali.
‐ Arrangements of letter A and B can be written
as AB and BA.
Permutations are picky!
2.2 Permutation
2
26/3/2023
3
26/3/2023
Example:
A doctor has 3 examination rooms. There are 6
patients in the waiting room. In how many different
ways can the patients be assigned to the
examination room?
How many 4‐digit numbers can be formed from the
set of numbers 1, 2, 3, 4, 5, 6, 7, 8, 9 if repetitions
are not allowed?
How many 4‐digit numbers can be formed from the
set of numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 if repetitions
are not allowed and the first digit of that number
must be a nonzero digit?
How many 4‐digit numbers greater than 4000 can
be formed from the set of numbers 1, 2, 3, 4, 5, 6, 7,
8, 9 if repetitions are not allowed?
n!
p! q! r!
4
26/3/2023
Example:
How many ways can the alphabets in the word
› “MATHEMATICS”
› “STATISTICS”
be arranged?
10
5
26/3/2023
Example:
1) How many arrangements of the word
ACTIVE are there if C & E must always be
together?
2) How any arrangements of the word Kitchen
exist if K and N must always be together?
3) Seven math students (Amy, Brady,
Christopher, Dylan, Ellie, Frank, Gina) are
going to stand in a line. How many ways can
they stand if:
a) the girls must stay together?
b) Brady and Dylan must stay together?
11
Example:
1) How many arrangements of the word active are there
if C and E must never be together?
2) How many arrangements of the word DAUGHTER are
there if none of the vowels can never be together?
12
6
26/3/2023
2.3 Combination
Combination is a subset of elements (objects)
selected from an original set.
13
2.3 Combination
The number of combinations of r different objects
selected without repetition from a set of n
different object is
!
nCr = ! !
Example:
‐ How many ways can a student choose four out of
6 questions in an examination?
‐ In UiTMCS there are five good tennis players. How
many different doubles can be formed from these
five players?
14
7
26/3/2023
Example:
A group of 4 project members are to be selected from 3 girls
and 5 boys. How many different groups can be formed if
‐ there is no restriction,
‐ exactly 1 girl and 3 boys are selected,
‐ at most 2 girls are selected, and
‐ at least 3 boys are selected.
15
Permutation /
combination
Order /
arrangement
important ?
Yes No
Permutation Combination
nP nC
r r
16
8
26/3/2023
Objects selected
with repetition
Yes No
! n!
nPr =
! p! q! r! …
17
18
9
26/3/2023
Experiment/Trial
‐ an action where the result is uncertain
‐ e.g. tossing a coin, throwing dice
Sample space
‐ all the possible outcomes of an experiment
‐ e.g. {H, T} for coin experiment, {1,2,3,4,5,6} for
dice experiment
19
Events
‐ a single result of an experiment
‐ e.g. getting a tail from tossing a coin, rolling no.
‘5’, etc
‐ an event can be one or more of the possible
outcomes e.g. rolling an even number
20
10
26/3/2023
Probability of A = n(A)
n(S)
21
22
11
26/3/2023
Probability Theorems
P(S) = 1, Probability of an event that is certain
to happen is 1.
P() = 0, Probability of an event that is
certain not to be happen is 1
0P(A) 1
P(A’) = 1 – P(A)
23
24
12
26/3/2023
25
Example:
26
13
26/3/2023
Example:
Probability of Permutation & Combination Simple
Cases
27
S
A B
28
14
26/3/2023
Example:
29
Non‐mutually exclusive
If event A and event B are non‐mutually exclusive
events, there is possibility that event A and event B will
happen at the same time.
Formula:
P(A B) = P(A) +P(B) – P(A and B)
P(A B) = P(A) +P(B) – P(A B)
S
A B
30
15
26/3/2023
Example:
1) In a business course in a college, 90% of the
students passed Mathematics , 95% of the students
passed Management , and 88% passed
Mathematics and Management. A student is
selected at random.
31
32
16
26/3/2023
33
6) Let ζ={3,4,5,6,7,8,9,10,11,12,13,14,15}
If A is the event ‘an odd number’
B is the event ‘a multiple of five’
Find P(A B).
34
17
26/3/2023
35
36
18
26/3/2023
37
2.4.4 Probability of
Independent Events
(The Multiplication Rule)
Independent event
When two events occur successively, if two
events are independent, the occurrence of one
event is not affected by the result of the other
event.
P(A B) = P(A) P(B)
38
19
26/3/2023
Suppose you flip a coin and roll a die. Are the two events
independent?
39
Non‐independent event
When the occurrence of one event is affected by
the occurrence of another event.
P (A B) = P(A) P(B|A)
P (A B) = P(B) P(A|B)
When P(B|A) = P(B) or P(A|B) = P(A)
then the two events are independent
Conditional probability is involved
𝑃 𝐴∩𝐵 𝑃 𝐴∩𝐵
P(A|B)= or P(B|A)=
𝑃 𝐵 𝑃 𝐴
40
20
26/3/2023
Example 1:
A coin is tossed and a single 6‐sided dice is
rolled. Find the probability of landing on the
head side of the coin and rolling a 3 on the dice.
Example 2:
A jar contains 3 red, 5 green, 2 blue and 6 yellow
marbles. A marble is chosen at random from the
jar. After replacing it, a second marble is chosen.
What is the probability of choosing a green and
then a yellow marble?
41
42
21
26/3/2023
43
Example 4:
44
22
26/3/2023
45
46
23
26/3/2023
47
48
24
26/3/2023
49
50
25
26/3/2023
Example 1:
Three companies , A, B, and C are competing for a contract to
build a condominium. The probability that companies A, B and
C will win the contract are 0.25, 0.45, and 0.3 respectively. If
the company A, B and C win the contract , the probability that
they will make profit are 0.8, 0.9, 0.7 respectively.
a) Construct a tree diagram based on information given in
the question.
b) What is the probability that the companies will make
profit?
c) If the contract is found to be profitable, find that the
contract was given to company A.
51
Example 2:
In an annual club election, there are three possible
candidates. The probability of En. Mawi, En, Yazer and En
Jefri being nominated are 0.15, 0.55, and 0.30
respectively. If the nominated candidates take part in the
election, the probability that the election is won by En.
MAwi, En. Yazer and En.Jefri are 0.5, 0.65 and 0.4
repectively.
a) Draw a tree diagram for above information
b) Given that someone won the election, what is the
probability that the winner is En. Mawi?
52
26
26/3/2023
A hospital has 300 nurses. During the past year, 48 of the nurses
earned a pay raise. At the beginning of the year, the hospital
offered a special training seminar, which was attended by 138
of the nurses. Twenty‐seven of the nurses who earned a raise
attended the training seminar.
a) Construct a tree diagram to represent the above.
b) What is the probability that a nurse earned a pay raise?
c) If a nurse earned a pay raise, what is the probability that the
person attended the seminar ?
53
54
27
26/3/2023
55
28