Chapter Two: 2. Conditional Probability and Independence
Chapter Two: 2. Conditional Probability and Independence
Chapter Two: 2. Conditional Probability and Independence
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 help us calculate the probability of events when it is known
that another event has occurred. In particular, if it is known that some event has already occurred,
then we will find the probability of another event. Conditional probability refers to those
probabilities that arise due to dependence among 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.
P(B|A) is the conditional probability of B given that A has already occurred.
Page 1 of 6
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 occur given that event B has already occurred is
called the conditional probability of A given B. It is denoted by P(A|B).
( ∩ )
( |/ ) = ; ℎ ( ) >0
( )
Example: Consider the above example when selection is made without replacement
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)
={ ℎ ℎ }
={ ℎ }
Then compute ( | ).
Example 2: For a student enrolling in a freshman at a university, the probability that he/she
will get a scholarship is 0.25 and the probability that he/she will graduate is 0.75. If the
Page 2 of 6
probability that he/she will get scholarship and will also graduate is 0.2. What is the probability
that a student who secured a scholarhip will graduate?
Example 3: Let the 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 find 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 |A 1 ) P(A 3 |A 1 , A 2 ) .. P(A n |A 1 , A 2 , ., A n -1 )
i 1
Example 1: Suppose that 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.
Page 3 of 6
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 30 40 70
Female 20 70 90
A person is selected at random. What is the probability that the selected person is
Definition (Partition of Sample Space): We say that the events B1, B2, ….Bk represent s partit ion
of the sample space S if
Let A be so me event associated with S and let B1, B2, … Bk be partit ions of S. Hence we can
write
Page 4 of 6
Of course, some of A Bi may be empty. Note that since B's 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), for each and every i, may be expressed as P(A|Bi) xP(Bi) and we obtain the theorem
of total probability.
If we have B1, B2, ….Bk to be partitions of S then for any event A associated with S
Graphically:
Example: A coin, is weighted so that P(H) = and P(T) = , is tossed. If head appears, then a
number is selected at random from the numbers 1 through 9; if tail 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?
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
Page 5 of 6
P ( A | Bi ) P ( Bi )
P ( Bi | A) k
P( A | B ) P( B )
j 1
j j
Example: Consider the pr evious exa mple. An item wa s selected and is found to be defective. What is the
probability that it is from B1?
In other words, we divide the pr obability of the required path, those paths which lea d to a defective item,
by the probability of the reduced sa mple space.
2.3. Independent events: Two events A and B are said to be independent iff
( )= ( ) ( )
Verbally speaking, A and B are independent provided knowledge of the occurrence of A by no mea ns
influences the probability of occurrence of B.
Remarks
1) If A and B are mutually exclusive when do they become independent?
P(A B) = P() P(A) P(B) = 0
A and B are independent and mutually exclusive iff A B = and either P(A) =0 or P(B)=0
2) If A B then A B = A
P(A B) = P(A)
B=S
Proof: Exercise
Page 6 of 6