Lecture 5: Basic Probability Theory: Donglei Du (Ddu@unb - Edu)
Lecture 5: Basic Probability Theory: Donglei Du (Ddu@unb - Edu)
Donglei Du
([email protected])
1 Probability Theory
What is probability?
Random Experiment (RE)
Set/events operations
How to Interpret Probabilities?
Rules of Counting
1 Probability Theory
What is probability?
Random Experiment (RE)
Set/events operations
How to Interpret Probabilities?
Rules of Counting
1 3 5
2 4 6
H HH
H
T HT
H TH
T T TT
Donglei Du (UNB) ADM 2623: Business Statistics 10 / 55
Set operations
Union
Intersection:
Complement:
Sample Space
A B
A B
Sample Space
A A B B
Sample Space
A A
Outcome Prob.
HH 0.25
HT 0.25
TH 0.25
TT 0.25
Complement Rule
Addition Rule
Multiplication Rule
P (A ∪ B) = P (A) + P (B).
Toss two fair coins in very trial and assume that the four possible
outcomes S = {HH, HT, T H, T T } are equally likely to happen.
Let A = {HH, HT } be the event that the first coin falls head, and
B = {HH, T H} be the event that the second coin falls head.
Problem: Find the probability that either the first coin falls head or
the second coin falls head?
Solution:
1 1 1 3
P (A ∪ B) = P (A) + P (B) − P (A ∩ B) = + − = .
2 2 4 4
Joint probability
Conditional probability
Accoun. IB HR Marginal
Male 150/750 150/750 50/750 350/750
Female 175/750 160/750 65/750 400/750
Marginal 325/750 310/750 115/750 1
P (A ∩ B)
P (A|B) = .
P (B)
P (F ) = 400/750 = 50%
P (A|B) = P (A)
or equivalently
P (A ∩ B) = P (A) × P (B).
Example: the events F = {(F, A), (F, IB), (F, HR)} and
IB = {(F, IB), (M, IB)} are not independent, since
P (A ∩ B) = P (A|B)P (B).
P (A ∩ B) = P (A)P (B).
Example: Draw three cards with replacement i.e., draw one card,
look at it, put it back, and repeat twice more.
Problem: Find the probability of drawing 3 Queens in a row:
Solution: Let Qi (i = 1, 2, 3) be the event that ith draw gives you a
Queen. Then the three events are independent of each other.
4 4 4
P (Q1 ∩ Q2 ∩ Q3 ) = P (Q1 )P (Q2 )P (Q3 ) = × × ≈ 0.00046.
52 52 52
Example: Draw three cards without replacement i.e., draw one card,
look at it, keep it, and repeat twice more.
Problem: Find the probability of drawing 3 Queens in a row:
Solution: Let Qi (i = 1, 2, 3) be the event that ith draw gives you a
Queen. Then the three events are dependent of each other.
Example: Two men throw their identical hats into the center of the
room at a party. Then the hats are mixed up and each man randomly
selects a hat.
Problem: What is the probability that none of them selects his own
hat.
Solution: Let Ai (i = 1, 2) be the event that the ith man selects his
own hat. Then the desired probability can be calculated via the
complement rule. The complement event is that at least one man
selects his own hat:
Solution: Let Ai (i = 1, 2) be the event that the ith man selects his
own hat. Therefore none of them selects his own hat is
P Ā1 ∩ Ā2 = P (Ā1 )P (Ā2 |Ā1 ) = 0.5(1) = 0.5.
Sample Space
Sample Space
A1 B A2 B An B
A1 A2 …… An
P (B|A1 )P (A1 )
P (A1 |B) =
P (B|A1 )P (A1 ) + . . . + P (B|An )P (An )
B | A1
0.95 B A1
0.25 A
1
A2 0.01 B A2
0 75
0.75
B | A2
B | A2
0.99
B A2
Donglei Du (UNB) ADM 2623: Business Statistics 36 / 55
Bayes’ Theorem: Example
Therefore
P (B|A1 )P (A1 )
P (A1 |B) =
P (B|A1 )P (A1 ) + P (B|A2 )P (A2 )
0.05(0.25) 0.0125
= = = 0.625.
0.05(0.25) + 0.01(0.75) 0.02
0.01(0.75) 0.0075
P (A2 |B) = = = 0.375.
0.05(0.25) + 0.01(0.75) 0.02
B A1
0.01
B | A1
B | A1
0.99 B A1
0.3
A1
0 03
0.03 B A2
A2 B | A2
0.5
B | A2
0.97
B A2
02
0.2
A3 B A3
0.10
B | A3
B | A3
0.90
B A3
2013/9/17 Donglei Du: Lecture 1
Donglei Du (UNB) ADM 2623: Business Statistics 39 / 55
Bayes’ Theorem: Example
Therefore
P (B|A1 )P (A1 )
P (A1 |B) =
P (B|A1 )P (A1 ) + P (B|A2 )P (A2 ) + P (B|A3 )P (A3 )
0.01(0.3) 0.03
= = ≈ 0.079
0.01(0.3) + 0.03(0.5) + 01.0(0.2) 0.038
0.03(0.5) 0.015
P (A2 |B) = = ≈ 0.395
0.038 0.038
0.10(0.2) 0.02
P (A3 |B) = = ≈ 0.526
0.038 0.038
Now we know that Mr. Brophy is mostly likely a poor-risk driver.
Multiplication Rule
Permutation Rule
Combination Rule
Here are the probability of wining by the professor for different n, the
number of students.
n Prob.
10 12
20 41
30 71
40 81
50 97
60 99
K"#
K"#$"%"
#$"!
!B"
K"#$"!B"
@1A"BCD"BE!F"
P (A ∩ B) P (A) 0.086
P (A|B) = = = = 53.1%
P (B) P (B) 0.162
G*#212+)+034"#$"@1*:36"@#;34"
G*#2)354"?+67"@#/3)"J;3*I6"
The probabilities
are all roughly
53% – which is
the same as the
probability of
having a
‘normal’ up day.
Q"#
Q"#$"%"
#$"!
!B"
Q"#$"!B"
@1A"BCD"BE!F"