Professional Documents
Culture Documents
Chen Xu
Department of Mathematics and Statistics
University of Ottawa
Chen
c Xu (uOttawa) Prob rules II All rights reserved 1 / 21
Outline
3 Summary
Chen
c Xu (uOttawa) Prob rules II All rights reserved 2 / 21
Review conditional probability
3 Summary
Chen
c Xu (uOttawa) Prob rules II All rights reserved 3 / 21
Review conditional probability
P(A ∩ B)
P(A|B) = .
P(B)
Chen
c Xu (uOttawa) Prob rules II All rights reserved 4 / 21
Review conditional probability
n(A) n(B)
P(A) = , P(B) =
n(S) n(S)
n(A∩B)
P(A ∩ B) n(S) n(A ∩ B)
P(A|B) = = n(B)
=
P(B) n(B)
n(S)
n(A∩B)
P(A ∩ B) n(S) n(A ∩ B)
P(B|A) = = n(A)
=
P(A) n(A)
n(S)
Chen
c Xu (uOttawa) Prob rules II All rights reserved 5 / 21
Review conditional probability
n(A) n(B)
P(A) = , P(B) =
n(S) n(S)
n(A∩B)
P(A ∩ B) n(S) n(A ∩ B)
P(A|B) = = n(B)
=
P(B) n(B)
n(S)
n(A∩B)
P(A ∩ B) n(S) n(A ∩ B)
P(B|A) = = n(A)
=
P(A) n(A)
n(S)
Chen
c Xu (uOttawa) Prob rules II All rights reserved 5 / 21
Review conditional probability
Chen
c Xu (uOttawa) Prob rules II All rights reserved 6 / 21
Review conditional probability
P(A) + P(Ac ) = 1
Chen
c Xu (uOttawa) Prob rules II All rights reserved 7 / 21
Multiplication, Total, and Bayes’ Rules
3 Summary
Chen
c Xu (uOttawa) Prob rules II All rights reserved 8 / 21
Multiplication, Total, and Bayes’ Rules
Multiplication rule
By definition,
P(A ∩ B)
P(A|B) =
P(B)
Chen
c Xu (uOttawa) Prob rules II All rights reserved 9 / 21
Multiplication, Total, and Bayes’ Rules
Multiplication rule
By definition,
P(A ∩ B)
P(A|B) =
P(B)
Multiplication rule
P(A ∩ B) = P(A|B)P(B)
Chen
c Xu (uOttawa) Prob rules II All rights reserved 9 / 21
Multiplication, Total, and Bayes’ Rules
Multiplication rule
By definition,
P(A ∩ B)
P(A|B) =
P(B)
Multiplication rule
P(A ∩ B) = P(A|B)P(B)
P(A ∩ B) = P(B|A)P(A)
Chen
c Xu (uOttawa) Prob rules II All rights reserved 9 / 21
Multiplication, Total, and Bayes’ Rules
Chen
c Xu (uOttawa) Prob rules II All rights reserved 10 / 21
Multiplication, Total, and Bayes’ Rules
Chen
c Xu (uOttawa) Prob rules II All rights reserved 10 / 21
Multiplication, Total, and Bayes’ Rules
• By multiplication rule,
18 17
P(A ∩ B) = P(A)P(B|A) = × = 0.805
20 19
Chen
c Xu (uOttawa) Prob rules II All rights reserved 10 / 21
Multiplication, Total, and Bayes’ Rules
The multiplication rule can be extended to the case with more than two
events.
Chen
c Xu (uOttawa) Prob rules II All rights reserved 11 / 21
Multiplication, Total, and Bayes’ Rules
Chen
c Xu (uOttawa) Prob rules II All rights reserved 12 / 21
Multiplication, Total, and Bayes’ Rules
Chen
c Xu (uOttawa) Prob rules II All rights reserved 12 / 21
Multiplication, Total, and Bayes’ Rules
• By multiplication rule,
P(A ∩ B ∩ C ) = P(A)P(B|A)P(C |A ∩ B)
7 3 2
= × ×
10 9 8
≈ 5.8%
Chen
c Xu (uOttawa) Prob rules II All rights reserved 12 / 21
Multiplication, Total, and Bayes’ Rules
• By multiplication rule,
P(A ∩ B ∩ C ) = P(A)P(B|A)P(C |A ∩ B)
7 3 2
= × ×
10 9 8
≈ 5.8%
• By classical method,
n(A ∩ B ∩ C ) 7P1 × 3P2
P(A ∩ B ∩ C ) = = ≈ 5.8%
n(S) 10P3
Chen
c Xu (uOttawa) Prob rules II All rights reserved 12 / 21
Multiplication, Total, and Bayes’ Rules
Chen
c Xu (uOttawa) Prob rules II All rights reserved 14 / 21
Multiplication, Total, and Bayes’ Rules
Chen
c Xu (uOttawa) Prob rules II All rights reserved 14 / 21
Multiplication, Total, and Bayes’ Rules
Bayes’ rule
P(A ∩ B)
P(B|A) = (by definition)
P(A)
P(B)P(A|B)
= (by multiplication rule)
P(A)
Chen
c Xu (uOttawa) Prob rules II All rights reserved 15 / 21
Multiplication, Total, and Bayes’ Rules
Bayes’ rule
P(A ∩ Ej )
P(Ej |A) =
P(A)
P(Ej )P(A|Ej )
=
P(A)
P(Ej )P(A|Ej )
= (by what rule?)
P(A|E1 )P(E1 ) + . . . + P(A|Ek )P(Ek )
Bayes’ rule
P(Ej )P(A|Ej )
P(Ej |A) =
P(A|E1 )P(E1 ) + . . . + P(A|Ek )P(Ek )
Chen
c Xu (uOttawa) Prob rules II All rights reserved 16 / 21
Multiplication, Total, and Bayes’ Rules
Nissan sold 3 models of cars in 1999: Sentra, Maxima, and Pathfinder. Of the
vehicles sold, 50% were Sentras, 30% were Maximas, and 20% were Pathfinders.
In the same year, 12% of Sentras, 15% of Maximas, and 25% of Pathfinders had
a problem in ignition system. (a) What is the probability that a 1999 Nissan car
had a problem with ignition? (b) Suppose a 1999 Nissan car has a problem with
ignition. What is the probability that it is a Pathfinder?
Chen
c Xu (uOttawa) Prob rules II All rights reserved 17 / 21
Multiplication, Total, and Bayes’ Rules
Nissan sold 3 models of cars in 1999: Sentra, Maxima, and Pathfinder. Of the
vehicles sold, 50% were Sentras, 30% were Maximas, and 20% were Pathfinders.
In the same year, 12% of Sentras, 15% of Maximas, and 25% of Pathfinders had
a problem in ignition system. (a) What is the probability that a 1999 Nissan car
had a problem with ignition? (b) Suppose a 1999 Nissan car has a problem with
ignition. What is the probability that it is a Pathfinder?
Chen
c Xu (uOttawa) Prob rules II All rights reserved 17 / 21
Multiplication, Total, and Bayes’ Rules
Chen
c Xu (uOttawa) Prob rules II All rights reserved 18 / 21
Multiplication, Total, and Bayes’ Rules
• Note that P(E3 ) = 20%. Given the defective ignition, the chance for
getting a Pathfinder is increased by 12%.
Chen
c Xu (uOttawa) Prob rules II All rights reserved 18 / 21
Summary
3 Summary
Chen
c Xu (uOttawa) Prob rules II All rights reserved 19 / 21
Summary
Summary
• Multiplication rule:
P(A ∩ B) = P(B)P(A|B)
• Bayes’ rule:
P(Ej )P(A|Ej )
P(Ej |A) =
P(A|E1 )P(E1 ) + . . . + P(A|Ek )P(Ek )
Chen
c Xu (uOttawa) Prob rules II All rights reserved 20 / 21
Summary
• Email: cx3@uottawa.ca
Chen
c Xu (uOttawa) Prob rules II All rights reserved 21 / 21