Lecture 03 _ Conditional Probability and Bayes Theorem _ designed
Lecture 03 _ Conditional Probability and Bayes Theorem _ designed
PROBABILITY AND
STATISTICS
FALL 2022
Lecture 03
Conditional Probability, Bayes' Theorem
Lecture Notes 03 1
Conditional Probability, Bayes' Theorem
Lesson Overview
Conditional Probability
• Conditional Probability
• Total Probability
• Bayes’ Theorem
2
Lecture Notes 03 Conditional Probability, Bayes' Theorem
Lesson Overview
Conditional Probability
Let A, B F.
Then the
‘‘conditional probability of A given B’’
denoted is defined as
(It is undefined if )
3
Lecture Notes 03 Conditional Probability, Bayes' Theorem
has the interpretation of the likelihood of
event A occurring, given that B has
occurred. Why?
Intuitive explanation 1:
If B occurs, the sample
space is ‘‘reduced’’ to .
A
A B B Then A also occurs if and
only if AB occurs. We then
renormalize P(AB) by
1/P(B)
4
Lecture Notes 03 Conditional Probability, Bayes' Theorem
Intuitive explanation 2:
(Using relative frequency approach)
5
Lecture Notes 03 Conditional Probability, Bayes' Theorem
Intuitive explanation 3:
P( A ∩ 𝐵)=𝑃 ( 𝐵)∙ 𝑃 ( 𝐴| 𝐵 )
(3) Then
(3) If ?
YES,
because and disjoint events
(from Classical
arguments)
Define ,
Lecture Notes 03 11
Conditional Probability, Bayes' Theorem
Example 1 (cont.): Exp. Roll a fair die
Sample space: Ω = {1, 2, 3, 4, 5, 6}
Define ,
Next
Lecture Notes 03 12
Conditional Probability, Bayes' Theorem
MULTIPLICATION AND TOTAL PROBABILITY RULES
Multiplication Rule:
The definition of conditional probability
Lecture Notes 03 13
Conditional Probability, Bayes' Theorem
Total Probability Rule
Lecture Notes 03 14
Conditional Probability, Bayes' Theorem
Probability Level of Probability
Example 2: of Failure Contamination of Level
0.1 High 0.2
0.005 Not High 0.8
Lecture Notes 03 16
Conditional Probability, Bayes' Theorem
This result is shown in the Venn diagram Because A
and A’ are mutually exclusive, AB and A’B are
mutually exclusive. Therefore, from the probability of
the union of mutually exclusive events and the
Multiplication Rule, the
following total probability rule is obtained.
Lecture Notes 03 17
Conditional Probability, Bayes' Theorem
Solution of the Example 2 Probability Level of Probability
of Failure Contamination of Level
0.1 High 0.2
0.005 Not High 0.8
Then
(disjoint union)
So
‘’weighted sum of
‘’total probability’’
conditional
probabilities’’
20
Lecture Notes 03 Conditional Probability, Bayes' Theorem
Example 3:
Bin numbers
Ohms
1 2 3 Total
10 Ω 500 0 200 700
100 Ω 300 400 600 1300
1000 Ω 200 600 200 1000
Total Ω 1000 1000 1000 3000
Experiment:
A bin selected at random,
and a resistor from that bin is selected at
random.
Let A = { Resistor has resistance 10 },
Find P(A)
Lecture Notes 03 21
Conditional Probability, Bayes' Theorem
Solution of Example 3:
Let be the event ‘’ ith bin is chosen’’
Then
Next
Lecture Notes 03 22
Conditional Probability, Bayes' Theorem
Solution of the Example 3 (continued):
Thus
Next
Thus
24
Lecture Notes 03 Conditional Probability, Bayes' Theorem
Example 4:
Let us ask another
question. Suppose we are
given that the resistor
drawn has resistance 10
.
What is the Probability that it came from bin 1
(or bin 2, or bin 3).
In other word we want
P(B1|A) , P(B2|A) , P(B3|A)
(or in general ) so
or in general
Lecture Notes 03 26
Conditional Probability, Bayes' Theorem
Example 4 and its solution
(cont.):
Suppose we are given that the
resistor drawn has resistance 10 .
What is the Probability that it came
from bin 1 (or bin 2, or bin 3).
Applying Bayes’ theorem to this example,
So
Lecture Notes 03 29
Conditional Probability, Bayes' Theorem
b) Given that the device fails, find P ({supplier was
A}).
So we want
Lecture Notes 03 30
Conditional Probability, Bayes' Theorem
Example 6:
Suppose the longevity of an Integrated
Circuits (IC) is described by:
Lecture Notes 03 31
Conditional Probability, Bayes' Theorem
Example 6 (cont.):
Lecture Notes 03 33
Conditional Probability, Bayes' Theorem
Example 6 (cont.):
Lecture Notes 03 34
Conditional Probability, Bayes' Theorem
Example 7:
A producer wants to maximize its sale of special
product which influenced directly weather
conditions. In this sense, it must predict temperature
and wind. Let's denote the event "warm day" as
event A and the event "windy day" as event B.
The weather forecast indicates that the probability of
a windy day is 0.80, the probability of a warm day is
0.30, and the probability of a warm and windy day is
0.28
a) What is the probability of the event "windy day
will be warm"?
b) What is the probability of the event "warm day
will be windy"?
c) What is the probability of the event "windy and
not warm"?
Lecture Notes 03 35
Conditional Probability, Bayes' Theorem
Solution of the Example 7:
Lecture Notes 03 36
Conditional Probability, Bayes' Theorem
Example 8:
A manufacturing firm puts into service three machines (A, B, C)
to produce the Integrated Circuits (ICs).
• 40% of the firm’s daily ICs production comes from machine A,
• 35% of the firm’s daily ICs production comes from machine B
and,
• 25% of the firm’s daily ICs production comes from machine C.
• 1% of ICs produced on machine A are defective, while the
defective rates for machines B and C are 2% and 3%
respectively.
• If one IC is selected at random from a day’s production and
is found to contain a defect,
a) What is the probability that the selected IC is found to
contain a defect?
b) What is the probability that it was produced on machine B?
Lecture Notes 03 37
Conditional Probability, Bayes' Theorem
Solution of the Example 8:
Let use the symbol D for the defective IC.
a)
b)
Lecture Notes 03 38
Conditional Probability, Bayes' Theorem
Example 9:
Consider the system below, and assume that each
component functions independently of the others with
probability p = 0.8.
What is the probability that the entire system works?
2 3
1 5
4
Lecture Notes 03 39
Conditional Probability, Bayes' Theorem
Answer for the example 9:
Since each component functions independently of the
others, the probability of the system success that is the
system functions to achieve their duty is given by following
equations.
C2 C3
C1 C5
C4
D
C1 C5 =
C1 E C5
C4
Lecture Notes 03 40
Conditional Probability, Bayes' Theorem
Answer for example 9 (continued):
Lecture Notes 03 41
Conditional Probability, Bayes' Theorem
Example 9:
Two persons have a date at a given time, and each will
arrive at the meeting place with a delay between 0 and 1
hour. The first to arrive will wait for 15 minutes and will
leave if the other has not yet arrived.
What is the Probability that they will meet?
Solution:
Let the persons be Romeo & Juliet.
Assume that they will meet at 0 o’clock.
Romeo delays for x minutes
Juliet delays for y minutes
If |x-y|< 15 minutes they will meet.
Lecture Notes 03 42
Conditional Probability, Bayes' Theorem
Solution:
Romeo delays for x minutes
Juliet delays for y minutes
If |x-y|< 15 minutes they will meet.
y
15 minutes 1/4 hours
1
M event
x
1/4 1
Lecture Notes 03 43
Conditional Probability, Bayes' Theorem
Solution:
Romeo delays for x minutes, Juliet delays for y minutes
If |x-y|< 15 minutes they will meet.
y
15 minutes 1/4 hours
1
M event
x
1/4 1
Lecture Notes 03 44
Conditional Probability, Bayes' Theorem