Chapter 4
Chapter 4
2. P ( B |A )=1−P ( B|A )
−
1
2. A lot consists of 20 defective and 80 non-defective items from which two
items are chosen without replacement. Events A & B are defined as A =
{the first item chosen is defective}, B = {the second item chosen is
defective}
a. What is the probability that both items are defective?
b. What is the probability that the second item is defective?
3. In the above example 2, if we choose 3 items after other without
replacement, what is the probability that all items are defective?
The law of total probability
Law of Total Probability: The “Law of Total Probability” (also known as the
“Method of Conditioning”) allows one to compute the probability of an event
B by conditioning on cases, according to a partition of the sample space.
Definition (Partition):- We say that events A1 , A 2 ,… , A n represent a partition
of sample space S
A1 A2 A3 …An
B
A1 A2 A3 … An
( B ∩ A i )∧ ( B ∩ A j ) aremutuallyexclusiveifi ≠ j
∴ P ( B ) =P ( B ∩ A1 ) + P ( B ∩ A 2 ) + P ( B∩ A 3 ) +…+ P ( B ∩ A n )
2
¿ P[ ( B∨ A 1) P ( A1 ) ∪ ( B∨ A 2) P ( A2 ) ∪ ( B∨ A 3 ) P ( A3 ) ∪ … ∪ ( B ¿ A n ) P ( A n ) ]
n
P ( B )=∑ P ( B∨ Ai ) P ( Ai ) →Theoremoftotalprobability
i=1
n
P ( B )=∑ P ( B∨ Ai ) P ( Ai )
i=1
Bayes’ theorem
3
A posterior probability is a probability value that has been revised by
using additional information that is later obtained
Let A1 , A 2 ,… , A n be a partition of the sample space S and let B be the event
associated with S. Applying the definition of conditional probability, we
have
P ( B∨ Ai ) P ( A i )
P ( A i∨B ) = n
∑ P ( B∨ A i ) P ( A i )
i =1
P ( B ∩ Ai)
Proof:- P ( A i∨B ) = but P(A∩B)= P(B∩A)=P(A)P(B|A)
P ( B)
P ( B∨ Ai ) P ( Ai )
n
=
∑ P ( B∨A i ) P ( A i )
i=1
4
D= ELT is defective
D = ELT is not defective (or it is good)
A. If an ELT is randomly selected from the general population of all ELTs, the
probability that it was made by Altigauge is 0.8 (because Altigauge
manufactures 80% of them).
B. If we now have the additional information that the ELT was tested and
was found to be defective, we want to revise the probability from part (a)
so that the new information can be used. We want to find the value of
P(A|D), which is the probability that the ELT was made by the Altigauge
company given that it is defective. Based on the given information, we
know these probabilities:
P(A) = 0.80 because Altigauge makes 80% of the ELTs
P(B) = 0.15 because Bryant makes 15% of the ELTs
P(C) = 0.05 because Chartair makes 5% of the ELTs
P(D|A) = 0.04 because 4% of the Altigauge ELTs are defective
P(D|B) = 0.06 because 6% of the Bryant ELTs are defective
P(D|C) = 0.09 because 9% of the Chartair ELTs are defective
Here is Bayes’ theorem extended to include three events corresponding to
the selection of ELTs from the three manufacturers (A, B, C)
P ( D| A ) . P( A) P ( D| A ) . P( A ) 0.032
P(A|D)= = P ( D| A ) . P ( A ) + P ( D|B ) . P ( B )+ P ( D|C ) . P(C)
= 0.0455 =0.703
P(D)
5
Let Ei be the event that the i thurn is selected, i= 1, 2, 3. Let S be the sample
space of this experiment –selecting a urn and drawing a ball. Then E1 , E2∧E3 ,
form a partition of S. Moreover, since the urn is selected at random, it must
1
be P ( E1 )=P ( E 2 )=P ( E3 ) =
3
A. Let Wbe the event that a white ball is drawn and the conditional
4 2 3
probability is defined as P ( W ∨E1 )= , P ( W ∨E 2 )= ∧P ( W ∨E3 )=
8 6 9
Then P ( W ) = P ( E1 ∩W ) + P ( E2 ∩W ) + P ( E 3 ∩W )
¿ P(E 1)P ( W ∨E1 ) + P(E 2) P ( W ∨E 2 ) + P(E3 )P ( W ∨E3 )
1 1 1
∗4 ∗2 ∗3
3 3 3 7
¿ + + =
8 6 9 18
B. Let B be the event that the ball withdrawn is red. The probability that
the chosen red ball is from urn 2 is P ( E2∨B ) ,By Bayes’ theorem
P ( E2∩ B) P ( E2 ) P ( B∨E2 )
P ( E2∨B ) = =
P (B ) P ( E 1 ) P ( B∨E 1 ) + P ( E2 ) P ( B∨E2 ) + P ( E3 ) P ( B∨E3 )
P (E2 )P ( B∨E 2)
¿
P ( Ei )P ( B∨Ei )
where P ( B )=P ( Ei ) P ( B∨Ei ) total probability
th
P ( B∨Ei ) is the probability of drawing a red ball given that the i urn is chosen .
6
marble is chosen from Box I; if it turns up tails a marble is chosen from Box
II.
A. Find the probability that a red marble is chosen
B. What is the probability that Box I was chosen given that a red marble is
known to have been chosen?
2. Of the travelers arriving at a small airport, 60 % fly on major airlines, 30
% fly on privately owned planes, and the remainder fly on commercially
owned planes not belonging to a major airline. Of those travelling on
major airlines, 50 % are travelling for business reasons, whereas 60 % of
those arriving on private planes and 90 % of those arriving on other
commercially owned planes are travelling for business reasons. Suppose
that we randomly select one person arriving at this airport. What is the
probability that the person
A. Is travelling on business?
B. Is travelling for business on a privately owned plane?
C. Arrived on privately owned plane, given that the person is travelling for
business reasons?
D. Is travelling on business, given that the person is flying on a commercially
owned plane?
7
P ( A ∩B) P ( A )P( B)
P(A | B)= = = P(A)
P( B) P (B)
Collary: If A and B are independent, then A and Bc are independent
We are given that P(A∩B) = P(A) P(B), and asked to prove that P(A∩ Bc ) =
P(A) ·P( Bc )we know that P( Bc ) = 1−P(B). The events A∩B and A∩ Bcare disjoint
(since no outcome can be both in B and Bc ), and their union is A (since every
event in A is either in B or in Bc ); we have that P(A) = P(A∩B)+P(A∩ Bc ).
P(A∩ Bc ) = P(A)− P(A∩B)
= P(A)−P(A) P(B) (since A and B are independent)
= P(A)[1−P(B)]
= P(A) P( Bc ),
Collary: If A and B are independent, so Ac and Bc are independent.
Collary Let events A, B, C are mutually independent. Then A and B ∩C are
independent, and A and B∪C are independent
Remarks: If A1, A2, A3 are to be independent then they must be pair wise
independent,
P( A j ∩A k )=P ( A j ) . P ( A k ) j ≠k
Where j, k=1, 2, 3 and we must also have
P ( A1 ∩ A2 ∩ A3 ) =P ( A 1 ) . P ( A 2 ) . P ( A3 )
Exercise:
1. A ball is drawn at random from a box containing 6 red balls, 4 white balls
and 5 blue balls. Find the probability that they are drawn in the order red,
white and blue if each ball is?
a. Replacement
b. Not replacement
2. In a factory machine A1, A2, A3 manufacturing 25%, 35% and 40% of the
found to be defective.
A. What is the probability that defective item is produce by all machine?
8
B. What is the probability that this item is produce by machine A1?
item. It is known that 30%, 30% and 40% of the total output respectively.
It is known that 2%, 3% and 3% are defective respectively. All the items
are put in to one stockpile and then one item is chosen at random. Then
find the probability that;
A. This item is defective
B. Given that the item selected in (as defective) then what is the
9
the disease, what is the probability a person has the disease given that
his test result is positive?
10
11