Quantitative Techniques For Management Decisions: Paper.15-Conditional Probabilitym Bayes, Theorem
Quantitative Techniques For Management Decisions: Paper.15-Conditional Probabilitym Bayes, Theorem
Quantitative Techniques For Management Decisions: Paper.15-Conditional Probabilitym Bayes, Theorem
Prof. S P Bansal
Principal Investigator Vice Chancellor
Maharaja AgrasenUniversity, Baddi
vishwavidayalaya.
1
ITEMS DESCRIPTION OF MODULE
Objectives To study the basic concept of conditional probability and the rules for its
computation.
QUADRANT – 1
Introduction
Suppose all 100 employees of a company were asked whether they are in favour of or against
paying high salaries to chief executive officers of U.S. companies. Table 3 gives a two way
classification of the response of these 100 employees.
Table 1. Two way classifications of the responses of the employees
In favour Against
Male 15 45
Female 4 36
2
Table 1 gives the distribution of 100 employees based on two variables or characteristics:
gender (male or female) and opinion (in favour or against). Such a table is called a
contingency table. In table 1, each box that contains a number is called a cell. Notice that
there are four cells in Table 1. Each cell gives frequencies for two characteristics. For
example, 15 employees in this group possess two characteristics: They are male and in favour
of paying high salaries to CEOs. We can interpret the number in other cells the same way. By
adding the row of totals and the column of totals to Table 1, we write Table 2.
Table 2 two way classifications of employees
In favour Against Total
Male 15 45 60
Female 4 36 40
Total 19 81 100
Suppose one employee is selected at random from these 100 employees. This employee may
be classified either on the basis of gender alone or on the basis of opinion. If only one
characteristic is considered at a time, the employees selected can be male, a female, in favour,
or against. The probability of each of these four characteristics events is called marginal
probability or simple probability. These probabilities are called marginal probabilities
because they are calculated by dividing the corresponding row margins (totals for the rows)
or column margins (totals for the columns by the grand total.
MARGINAL PROBABILITY:
Marginal probability is the probability of a single event without consideration of any other
event .Marginal probability is also called simple probability.
Table 3. Listing the marginal probabilities
In favour (A) Against (B) Total
Male (M) 15 45 60
Female (F) 4 36 40
Total 19 81 100
3
a male has already occurred. What is the probability that the employee selected (male) is in
favour of paying high salaries to CEOs?
This probability is called conditional probability i.e. P (in favour / male).
CONDITIONAL PROBABILITY:
The Probability that an event A will occur, knowing that a certain event B has already
occurred is called the conditional probability of A for given B and denoted by P(A / B) .
.
𝑝(𝐴 ⋂ 𝐵)
p(A / B) = and
𝑝(𝐵)
𝑝(𝐴 ⋂ 𝐵)
p (B / A) =
𝑝(𝐴)
Example: The probability that a regular scheduled flight depart in time is 0.85 and the
probability that it arrives in time is 0.80. The probability that it arrives and departs in time
0.75. Find the probability that a plane arrives in time given that it departed on time.
Solution: p (event of departure) = p (D) = 0.85
p (event of arrival) = p (A) = 0.80
p (A ⋂ 𝐷) = 0.75.
Required probability is
𝑝 (𝐴 ⋂ 𝐷) 0.75 15
P (A / D) = = = = 0.88
𝑝 (𝐷) 0.85 17
Bayés Theorem: Thomas Bayes a renowned British Mathematician introduced the concept
of inverse probability.
This theory finds the probability of an event by taking into account a given sample
information.
This is called inverse probability because it consists of finding the probability of a
probability.
This is called posterior probability as it is calculated after information is taken into
account.
Bayes theorem is based on the formula for conditional probability.
When A1 & A2 are two events which are mutually exclusive (i.e. the two events
cannot occur together) & exhaustive (i.e. the two events A1 & A2 are the entire experiment).
B is a sample event which intersects each of the A events as shown then part of B which is
within A1 shows the area “A1 & B” whereas the part of B within A2 represents the area.
4
INDEPENDENT EVENTS:
The occurrence of one event does not change the probability of the occurrence of other event
is called independent events
either P(A/B) = P(A) or P(B/A) = P(B)
Multiplication Rule:
The probability that events A and B happen together is called the joint probability of
events A and B can also be denoted by P (𝐴 ⋂ 𝐵) or P (AB).
The probability of event A1 given event B is
𝑝(𝐴1 ⋂ 𝐵) p(A2 ⋂ B)
P (A1/B) = also P (A/B) =
𝑝(𝐵) p(B)
5
Here we use (1) to replace P(B) and use P(𝐴𝑖 ⋂ 𝐵) = P(Ai)P(B/Ai) to replace P(A𝑖 ∩
𝐵)
𝑃(𝐴𝑖)𝑃(𝐵/𝐴𝑖)
P(𝐴𝑖/𝐵) =
𝑃(𝐴1)𝑃(𝐵/𝐴1)+𝑃(𝐴2)𝑃(𝐵/𝐴2)…………….+𝑃(𝐴𝑛)𝑃(𝐵/𝐴𝑛).
𝑃(𝐴𝑖)𝑝(𝐵/𝐴𝑖)
OR P(Ai/B) = ∑𝑛
[2]
𝑖=1 𝑃(𝐵/𝐴𝑖)
𝑝(𝐴1 )𝑝(𝐵/𝐴1 )
=
𝑝(𝐴1 ) 𝑝(𝐵/𝐴1)……..+ 𝑝 (𝐴𝑛 ) 𝑃(𝐵/𝐴𝑛 )
Example : An item is manufactured by three machines M1, M2 M3. Out of the total
manufactured during a specified production period, 50% are manufactured on M1, 30% on
M2 and 20% of M3. It is also known that 2% of the item produced by M1 and M2 are
defective, while 3% of those manufactured by M3 are defective. All the items are put into one
bin. From the bin, one item is drawn at random and is found to be defective. What is the
probability that it was made on M1, M2 or M3.
Answer : Let
B : the item is defective.
A1 : the item was made on M1.
A2 : the item was made on M2.
A3 : the item was made on M3.
It an item is drawn at random, we know that a prior probability.
P(A1) = 0.5, P(A2) = 0.3, P(A3) = 0.2
We also know P(B/A1) = 0.02. P(B/A2) = 0.02, P(B/A3) = 0.3. We are interested in
finding the posterior probability, i.e. having known that the item is defective, what is the
probability that it was manufactured on M1, M2 or M3.
6
𝑀1 ,P(B/𝐴1 )=0.02
P(𝐴1 )=0.5
P(𝐴2 )=0.3 P(B/𝐴2 )=0.02
𝑀2 P(B/𝐴3 )=0.03
P(𝐴2 )=0.2
𝑀3
P(𝐴1 ) P(B/𝐴1 )=(0.5)(.02) =0.01
Example.2 A company has two plants to manufacture, sctoors plant I manufacture 70% of
the sctoors and plant II manufactures 30%. At plant I, 80% of sctoors are good
standard quality and at plant II, 90% of sctoors are rated standard quality. A sctoor is
picted up at random and is found to be of standard quality. What is the chance that it
has come from plant I or plant II.
Ans : Let A1 = The event of drawing a sctoor produced by plant I.
A2 = The event of drawing a scooter produced by plant II
E = Event of drawing a standard quality scooter either by plant I
or plant II.
P(A1) = 70% = 0.7 P(A2) = 30% = 0.3
P(E / A1) = 80% = 0.8 P(E / A2) = 0.9
P (E ⋂ 𝐴1 ) = P(E / A1) x P(A1) = 0.8 x 0.7 = 0.56
P(E ⋂ 𝐴2 ) = P(E / A2) x P(A2) = 0.9 x 0.3 = 0.27
The probability that a standard quality scooter is chosen at random is manufactured by
plant I is given by the Bay’s theorem as :
𝐸
𝑝(𝐴 ) ×𝑝(𝐴1 )
1
P (A1 / E) = 𝐸 𝐸
𝑝(𝐴 ) × 𝑝(𝐴1 )+ 𝑝(𝐴 ) × 𝑝(𝐴2 )
1 2
0.56 56
= =
0.56 + 0.27 83
7
Similarly, we can obtain P(A2/E)
= 0.424
Example 3. – A box contains 20 cassettes, 4 of which are defective. If 2 cassettes are selected
at random (without replacement) from this box, what is the probability that both are
defective?
Solution: Let us define the following events for this experiment.
G1 = event that the first cassette selected is good
D1 = event that the first cassette selected is defective
G2 = event that the second cassette selected is good
D2 = event that the second cassette selected is defective.
We are to calculate the joint probability of D1 and D2, which is given by
P(D1 and D2) = P(D1) P(D2 I D1)
As we know, there are 4 defective cassettes in 20. Consequently, the probability of selecting a
defective cassette at the first selection is
P(D1) = 4/20
To calculate the probability P(D2/ D1), we know that the first cassette selected is defective
because D1 has already occurred. Because the selections are made without replacement, there
are 19 total cassettes and 3 of them are defective at the time of the second selection.
Therefore,
P(D2 / D1)= 3/19
Hence, the required probability is
P(D1 and D2) = P(D1) P(D2 / D1) = (4/20) (3/19) = .032
The tree diagram in Figure shows the selection procedure and the final four outcomes
for this experiment along with their probabilities. The joint probability of D1 and D2 is
highlighted in the tree diagram.
Conditional probability was discussed already . It is obvious from the formula for
joint probability that we know the probability of an even A and the joint probability of
events A and B i.e. P (𝐴 ⋂ 𝐵) , then we can calculate the conditional probability of B given A
i.e. P(B/A)..
8
First Slection Second Slection
Final out comes
G1
G 2/ 9 P(G1 and G2 ) = (16/20) (15/19) = .632
15/1
D
G1 2/
4/1 G1
/20 9
16 P(G1 and D2 ) = (16/20) (4/19)
D
2/
3/1 D1
9
P(D1 and D2 ) = (4/20) (3/19) =0 .032
Fig.I
Example 4.Compute the conditional probability P (in favour / male) for the data on 100
employees given in table.
Solution – The probability P (in favour/male) is the conditional probability that a randomly
selected employee is in favour given that this employee is a male. It is known that the venet
“male” has already occurred. Based on the information that the employee selected is a male,
we can infer that the employee seleted must be one of the 60 males and, hence, must belong
to the first row of table 3. Therefore, we are concerned only with the first row of that table.
In Favor Against Total
Male 15 45 60
Male who are in favour Total number of males
The required conditional probability is calculated as follows.
𝑁𝑢𝑚𝑏𝑒𝑟𝑠 𝑜𝑓 𝑚𝑎𝑙𝑒𝑠 𝑤ℎ𝑜 𝑎𝑟𝑒 𝑖𝑛 𝑓𝑎𝑣𝑜𝑟 15
P(in favour/male) = = = .25
60
𝑇𝑜𝑡𝑎𝑙 𝑛𝑢𝑚𝑏𝑒𝑟 𝑜𝑓 𝑚𝑎𝑙𝑒𝑠
As we can observe from this computation of conditional probability the total number of males
(the event that has already occurred) is written in the denominator and the number of males
who are in favour (the event whose probability we are to find) is written in the numerator.
Note that we are considering the row of the event that has already occurred. The tree diagram
in figure II as follows :
9
we are to find
probability of this event
a le
u rs /M
o
This has Fav 5 /60 required probability
1
already occurred Ag
a in
s
Male 4 5/ t/Ma
60 le
Fe le
m ma
40 ale /Fe
/10 r s
0 ou
Fav 4/4 0
Ag
ain
s
36 t/Fe
/40 m
a le
Fig II
Summary
The probability of an event is subject to the condition that another event has already
occurred is conditional probability. This type of probability opens many spheres for
researchers to make inferences/decisions. It involves independent verses dependent
probability, mutually exclusive verses mutually non-exclusive events along with
complementary events. Bayes’ Theorem involves such type of problem e.g. the
following table involves two-way classification of all scientists & engineers (Male &
Female)
Male Female
Scientists 680 120
Engineers 527 108
10