Probability & Statistics For Scientist and Engineers: Dr. M. M. Bhatti
Probability & Statistics For Scientist and Engineers: Dr. M. M. Bhatti
Dr. M. M. Bhatti
1 Introduction (continues)
Bayes’ Theorem or Rule
Combinatorial Analysis & Fundamental principle of counting
Combinational analysis, counting, and tree diagrams
Permutations
P (Ar )P (A|Ar )
P (Ar |A) = Pn , r = 1, 2, · · · , n (1)
j=1 P (Aj )P (A|Aj )
P (Ar )P (A|Ar )
P (Ar |A) = Pn , r = 1, 2, · · · , n (2)
j=1 P (Aj )P (A|Aj )
Problem 1.18
A bag I contains 4 white and 6 black balls while another Bag II contains 4
white and 3 black balls. One ball is drawn at random from one of the bags,
and it is found to be black. Find the probability that it was drawn from Bag
I.
Let E1 be the event of choosing bag I, E2 the event of choosing bag II, and
A be the event of drawing a black ball.
Then,
1
P (E1 ) = P (E2 ) = (6)
2
Also, P (A|E1 ) = P (drawing a black ball from Bag I)= 6/10 = 3/5.
P (A|E2 ) = P (drawing a black ball from Bag II)= 3/7
By using Bayes’ theorem, the probability of drawing a black ball from bag I
out of two bags,
P (A|E1 )P (E1 )
P (E1 |A) = (7)
P (A|E1 )P (E1 ) + P (A|E2 )P (E2 )
1 3
× 7
P (E1 |A) = 2 5 = (8)
1 3 1 3 12
× + ×
2 5 2 5
Problem 1.19
A man is known to speak the truth 2 out of 3 times. He throws a die and
reports that the number obtained is a four. Find the probability that the
number obtained is actually a four.
Let A be the event that the man reports that number four is obtained.
Let E1 be the event that four is obtained and E2 be its complementary
event.
Then, P (E1 ) = Probability that four occurs= 1/6.
P (E2 ) = Probability that four does not occur = 1 − P (E1 ) = 1 − (1/6) =
5/6.
Also, P (A|E1 ) = Probability that man reports four and it is actually a four
= 2/3
P (A|E2 ) = Probability that man reports four and it is not a four = 1/3.
P (A|E1 )P (E1 )
P (E1 |A) = (9)
P (A|E1 )P (E1 ) + P (A|E2 )P (E2 )
1 2
× 2
P (E1 |A) = 6 3 = (10)
1 2 5 1 7
× + ×
6 3 6 3
In many cases the number of sample points in a sample space is not very
large, and so direct enumeration or counting of sample points needed to
obtain probabilities is not difficult. However, problems arise where direct
counting becomes a practical impossibility. In such cases use is made of
combinatorial analysis, which could also be called a sophisticated way
of counting.
Fundamental principle of counting: tree diagram
If one thing can be accomplished in n1 different ways and after this a second
thing can be accomplished in n2 different ways, . . . , and finally a kth
thing can be accomplished in nk different ways, then all k things can be
accomplished in the specified order in n1 , n2 , . . . , nk different ways.
Example 1.14
Letting the shirts be represented by S1 , S2 and the ties by T1 , T2 , T3 , T4 ,
the various ways of choosing a shirt and then a tie are indicated in the tree
diagram of Fig. 1-4.
Problem 1.20
A committee of 3 members is to be formed consisting of one representative
each from labor, management, and the public. If there are 3 possible repre-
sentatives from labor, 2 from management, and 4 from the public, determine
how many different committees can be formed using (a) the fundamental
principle of counting and (b) a tree diagram.
(a) We can choose a labor representative in 3 different ways, and after this a
management representative in 2 different ways. Then there are 3·2 = 6
different ways of choosing a labor and management representative.
With each of these ways we can choose a public representative in 4
different ways. Therefore, the number of different committees that
can be formed is 3 · 2 · 4 = 24.
Problem 1.21
A coin is tossed 3 times. Use a tree diagram to determine the various
possibilities that can arise.
Suppose that we are given n distinct objects and wish to arrange r of these
objects in a line. Since there are n ways of choosing the 1st object, and after
this is done, n−1 ways of choosing the 2nd object, . . . , and finally n−r+1
ways of choosing the rth object, it follows by the fundamental principle of
counting that the number of different arrangements, or permutations as
they are often called, is given by
where it is noted that the product has r factors. We call n Pr the number
of permutations of n objects taken r at a time.
In the particular case where r = n, (11) becomes
n!
n Pr = (13)
(n − r)!
Suppose that a set consists of n objects of which n1 are of one type (i.e.,
indistinguishable from each other), n2 are of a second type, . . . , nk are of
a kth type. Here, of course, n = n1 + n2 + · · · + nk . Then the number of
different permutations of the objects is
n!
n Pn1 ,n2 ,...,nk = (15)
n1 !n2 ! . . . nk !
Example 1.16
Five red marbles, two white marbles, and three blue marbles are arranged
in a row. If all the marbles of the same color are not distinguishable from
each other, how many different arrangements are possible?
Example 1.17
The number of different permutations of the 11 letters of the word
M ISSISSIP P I, which consists of 1M , 4I 0 s, 4S 0 s, and 2P 0 s, is
11!
= 34, 650 (17)
1!4!4!2!
Problem 1.22
In how many ways can 5 differently colored marbles be arranged in a row?
Problem 1.23
In how many ways can 10 people be seated on a bench if only 4 seats are
available?
The first seat can be filled in any one of 10 ways, and when this has been
done, there are 9 ways of filling the second seat, 8 ways of filling the third
seat, and 7 ways of filling the fourth seat. Therefore:
Number of arrangements of 10 people taken 4 at a time = 10 · 9 · 8 · 7 =
5040
In general
Number of arrangements of n different objects taken r at a time
= n(n − 1)(n − 2) . . . (n − r + 1)
This is also called the number of permutations of n different objects
taken r at a time and is denoted by n Pr . Note that when r = n, n Pn = n!
as in Problem 1.19.
Dr. M. M. Bhatti (SDUST) Chapter 1: Lecture # 5 March 17, 2023 23 / 29
Thank you for your kind attention!