Chapter Four: Conditional Probability and Independence
Chapter Four: Conditional Probability and Independence
Chapter Four: Conditional Probability and Independence
CHAPTER FOUR
It is to be recalled that up to this moment we were talking about events that are independent. In
the real world variables are known to be interrelated or dependent to one another, and so do
events. Accordingly, in most cases it seems rare to find probabilities of events that do not involve
conditional probabilities.
The conditional probability will helps us to calculate the probability of events when it known
that another event has occurred. In particular, it is known that some event has already occurred,
you will find the probability of another event. Conditional probability refers to those
probabilities that arise in the case of dependent events. To introduce this important concept let us
consider the following example.
If we are choosing with replacement, P(A) =P(B)= 30/80 =3/8 because each time the selected
candle will be replaced back and hence the composition remains the same.
However, if we are choosing without replacement, the results are not quite immediate.
P(A)=3/8 but what about P(B)=? It is clear that P(B) depends on whether A did occur or didn’t
occur. If A did not occur then P(B)=30/79. On the other hand, if A did occur then on the second
draw there are only 79 candles left of which 29 are defective. In this case P(B)= P(B/A)=29/79.
Such types of probability are called conditional probabilities.
Page 1 of 8
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Definition: Conditional Probability: Let A and B be two events in the sample space S with
P(B) > 0. Then the probability that event A will given that event B had already occurred is
called the conditional probability of A given that B which we denote it by P(B/A) is defined as
( ∩ )
( / )= ; ℎ ( ) >0
( )
435 87
P(A B) = P(Both are defectives) = = =
3160 632
( ∩ ) 87/632 29
⟹ ( / )= = =
( ) 3/ 8 79
Remark:
( / )= ( / )
2. If the possible outcomes are finitely many and equally likely, we have
∩ n( ∩ )
(A/B) = =
Number of elements of B ( )
(I.e. Conditional probability can also be viewed as a probability law on a new universe B,
because all of the conditional probability is concentrated on B)
Page 2 of 8
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
={ ℎ ℎ }
={ ℎ }
Then compute ( / ).
Example 2: For a student enrolling at freshman at certain university the probability that he/she
will get scholarship is 0.25 and the probability that he/she that he/she will graduate is 0.75. If the
probability that he/she will get scholarship and will also graduate is 0.2. What is the probability
that a student who get a scholarship will graduate?
Example 3: Let probability that a policy will be correctly formulated is 0.60 and the probability
that a policy will be correctly formulated and correctly executed is 0.54. Then fined the
probability that:
Example 4: 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}
Definition: If A and B are two events in S and ( ) is not zero, then the probability that A and
B will both occur is the product of the probability of A and the conditional probability of B given
A. i.e. ( ∩ ) = ( ) ( / ). Similarly, ( ∩ ) = ( ) ( / ).
The above mult iplicat ion rule can be generalized to more than two events in the following way.
n
Let A1, A2, …, An be a sequence o f events and assume A
i 1
i . Then
n
P( A i ) P(A1 ) P(A 2 /A1 ) P(A 3 /A1 , A 2 ) .. P(A n /A1 , A 2 , ., A n -1 )
i 1
Page 3 of 8
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Example 1: suppose there is a box containing 20 fuses of which 5 are defective. If 3 fuses are
selected at random and removed successively, what is the probability that all are defective?
Example 2: Three balls are drawn at random one after the other without replacement from a box
containing 3 white and 4 red balls. Find the probability that the balls alternate in color.
Solution
B= (W R W) (R W R)
= (3/7)(4/6)(1/5) + (4/7)(3/6)(3/5)
= 2/7
Example 3: Suppose that our sample space is the population of adults in a small town who have
completed the requirements for a college degree. They are categorized according to sex and
employment status as follows.
Male(M) 30 40 70
Female 20 70 90
A person is selected at random. What is the probability that the selected person is
Solution: Let E: The person is emplo yed E/: The person is unemplo yed
Page 4 of 8
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
30
P( M E ) 30 3
a) P ( M / E ) 160
P( E ) 50 50 5
160
70
P ( M E ) 70 7
b) P ( E / M ) 160
P ( M ) 90 90 9
160
c) P ( M M ) P ( S ) 1
n( E M ) 40 1
d) P ( E M )
n( S ) 160 4
n( E ) 50 5
e) P( E )
n( S ) 160 16
Definition (Partition of Sample Space): We say that the events B1, B2, ….Bk represents partit ion
of the sample space S if
c) P(Bi) > 0 i
Thus the events B1, B2, ….Bk are mutually exclusive and exhaust ive. Graphically:
Let A be so me event associated with S and let B1, B2, … Bk be partit ions of S. Hence we can
write
Page 5 of 8
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
Of course some of A Bi may be empty. Note that since Bis are partitions and have no
intersection (mutually exclusive events) all sets (A B1), (A B2), …,(A Bk) are pair wise
mutually exclusive.
But P(A Bi), each for each and every i, may be expressed as P(A/Bi) P(Bi) and we obtain what
is called the theorem of total probability.
Graphically:
Example: A coin, is weighted so that P(H) = and P(T) = , is tossed. If heads appears, then a
number is selected at random from the numbers 1 through 9; if tails appears, then a number is
selected at random from the numbers 1 through 5. Find the probability that an even number is
selected.
Example: Three machines A, B and C produce 50%, 30% and 20% of the total output
respectively. The percentages of defective output of these machines are 3%, 4% and 5%
respectively. If an item is selected at random, what is the probability that the item is defective?
Solution:
Page 6 of 8
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
= (0.5)(0.03)+(0.3)(0.04)+(0.2)(0.05)
= 0.037
The above example may motivate us to ask one question. Suppose one item is chosen and is
found to be defective. What is the probability that it is from machine A? The fo llowing well-
known theorem, called Bayes’ Theorem, provides the answer!
Bayes’ Theorem: Let B1, B2, …., Bk be a partit ion o f the sample space S and let A be an event
associated with S. Then
P ( A / Bi ) P ( Bi )
P ( Bi / A) k
P( A / B ) P( B )
i 1
i i
Proof
P( Bi A) P( A / Bi ) P( Bi )
P( Bi / A)
P( A) P( A)
k
But then from total probabilit y theorem we have P(A) P( A / Bi ) P( Bi ), thus
i 1
P( A / Bi ) P( Bi )
P( Bi / A) k
P( A / B ) P( B )
i 1
i i
Example: Consider the previous example. An item was selected and is found to be defect ive.
What is the probabilit y that it is fro m B1?
Solution:
P ( A / B1 ) P ( B1 ) P ( A / B1 ) P ( B1 )
P ( B1 / A) 3
P ( A / B1 ) P ( B1 ) P ( A / B2 ) P ( B2 ) P ( A / B3 ) P ( B3 )
P( A / B ) P( B )
i 1
i i
(0.03)(0.5) 15
0.037 37
Page 7 of 8
Introduction to probability and Statistics (Stat 276) Department of Statistics (AAU)
In other words, we divide the probabilit y o f the required path, those paths which lead to a
defect ive item, by the probabilit y o f the reduced sample space.
2.3. Independent events: Two events A and B are said to be independent iff
( ) = ( ) ( )
B=S
Page 8 of 8