Académique Documents
Professionnel Documents
Culture Documents
Basic Probability
David Chow
Sep 2014
Learning Objectives
In this chapter, you will learn:
Basic probability concepts,
Definitions
occur, and 0 P 1
Event: Each possible type of outcome
Simple Event: an event that can be described
by a single characteristic
Sample Space: the collection of all possible
events
Classical Probability
Calculating classical probability
1. a priori classical probability
Probabilit y of Occurrence
X
number of ways the event can occur
T
total number of possible outcomes
Classical Probability
Two assumptions on classical probability
1.
2.
X
number of face cards
T
total number of cards
X
12 face cards
3
T
52 total cards 13
Male
84
145
229
Female
76
134
210
160
279
439
Total
0.191
total number of people
439
Simple event
Joint event
Visualizing Events in
Sample Space
Contingency Tables:
Ace
Black
24
26
Red
24
26
Total
48
52
Tree Diagrams:
2
Sample
Space
Full Deck
of 52 Cards
24
2
24
11
12
together (simultaneously).
Eg1: Drawing a card
A = queen of diamonds; B = queen of clubs
Events A and B are mutually exclusive if one card is selected
13
mutually exclusive
14
Eg: B = Colleges
15
Event
B2
Total
A1
P(A1)
A2
P(A2)
Total
P(B1)
P(B2)
Joint Probabilities
16
Not
Ace
Total
Black
24
26
Red
24
26
Total
48
52
17
Ace
Not Ace
2
2
4
52 52 52
Total
Black
24
26
Red
24
26
Total
48
52
18
Certain
0.5
Impossible
Total
Male
84
145
229
Female
76
134
210
160
279
439
Total
Men
Women
Boys
Girls
Total
Survived
332
318
29
27
706
Died
1360
104
35
18
1517
Total
1692
422
64
45
2223
1. P (a man or a boy) =
2. P (a man or a survivor) =
22
Conditional Probability
23
24
Conditional Probability
A conditional probability is the probability of one event,
The conditional
probability of A given
that B has occurred
P(A and B)
P(B | A)
P(A)
The conditional
probability of B given
that A has occurred
26
No CD
Total
AC
0.2
0.5
0.7
No
AC
0.2
0.1
0.3
Total
0.4
0.6
1.0
All
Cars
.2
.4
.2
.4
.5
.6
.1
.6
Given AC or
no AC:
All
Cars
.5
.7
.2
.3
.1
.3
David Ho ()
Movie: 21
1.
favorable
30
Statistical Independence
Two events are independent if and only if:
P(A | B) P(A)
Events A and B are independent when the
31
Women
Boys
Girls
Total
Survived
332
318
29
27
706
Died
1360
104
35
18
1517
Total
1692
422
64
45
2223
is randomly selected
P(man | died) =
Are the events man and died statistically
independent?
32
10
30
25
35
(a) A|B ?
(b) A|B?
(c) A|B ?
Multiplication Rule
Multiplication rule for two events A and B:
34
Multiplication Rule
P (A and B) is the product of the probability
35
Multiplication Rule
Eg: Find P (2 and 2) if a die is rolled twice
Eg: Find P (2 Aces) if two cards are drawn
from a deck
with replacement or
without replacement
36
Multiplication Rule
Statistical independence simplifies the multiplication
of 1,000.
Given a 5% defect rate, find P (all 12 cameras are good).
37
38
39
Bayes Theorem
Bayes Theorem was developed by Thomas
40
Bayes Theorem
P(A | Bi )P(Bi )
P(Bi | A)
P(A | B1 )P(B1 ) P(A | B2 )P(B2 ) P(A | Bk )P(Bk )
where:
Bi = ith event of k mutually exclusive
and collectively exhaustive events
41
oil for their new well. A detailed test has been scheduled for
more information.
Historically,
60% of successful wells have had detailed tests, and
20% of unsuccessful wells have had detailed tests.
Given that this well has been scheduled for a detailed test,
42
(prior probabilities)
P(D|S) = .6
P(D|U) = .2
Find P(S|D)
43
(.6)(.4) (.2)(.6)
.24
.667
.24 .12
P(S | D)
Revised
Prob.
Conditional
Prob.
Prob.
Prob.
S (successful)
.4
.6
.4*.6 = .24
.24/.36 = .667
U (unsuccessful)
.6
.2
.6*.2 = .12
.12/.36 = .333
Event
Prior
45
Review
46
Yes
No
Total
Yes
200
50
250
No
100
650
750
Total
300
700
1000
P (planned to purchase) =
P (planned or actually purchased) =
Use the contingency table in this example to
Gender
Male
Female
Total
Yes
163
269
432
No
125
43
168
Total
288
312
600
48
Eg3: Continued
(a) Suppose the respondent chosen is a female.
50
Video
51
1969
LUM
o
LEAM
HAM BAN LAN
MOU
http://hk.youtube.com/watch?v=eN68W2fWwR0&feature=related
52
2011-05-08
http://www.youtube.com/watch?v=Np4adVu-om0
53