Chap02 Probability v1
Chap02 Probability v1
Probability
1
Chapter Goals
After completing this chapter, you should be able to:
Explain basic probability concepts and
definitions
Use contingency tables to view a sample space
Apply common rules of probability
Compute conditional probabilities
Determine whether events are statistically
independent
Use Bayes’ Theorem for conditional probabilities
2
Important Terms
4
Sample Spaces
Collection of all possible outcomes
e.g.: All six faces of a dice:
5
Events
Simple event
An outcome from a sample space with one
characteristic
e.g., A red card from a deck of cards
Joint event
Involves two or more characteristics
simultaneously
e.g., An ace that is also red from a deck of cards
6
Visualizing Events
Contingency Tables
Ace Not Ace Total
Black 2 24 26
Red 2 24 26
Total 4 48 52
Ace Sample
Tree Diagrams Red
Space
example:
10
11
Collectively Exhaustive Events
Collectively exhaustive events
One of the events must occur
The set of events covers the entire sample space
Color
Type Red Black Total
Ace 2 2 4
Non-Ace 24 24 48
Total 26 26 52
15
Marginal Probability Example
P(Ace)
2 2 4
P(Ace and Red) P(Ace and Black )
52 52 52
Color
Type Red Black Total
Ace 2 2 4
Non-Ace 24 24 48
Total 26 26 52
16
Joint Probabilities Using
Contingency Table
Event
Event B1 B2 Total
A1 P(A1 and B1) P(A1 and B2) P(A1)
A2 P(A2 and B1) P(A2 and B2) P(A2)
17
General Addition Rule
19
Computing Conditional
Probabilities
A conditional probability is the probability of one
event, given that another event has occurred:
P(A and B) The conditional
P(A | B) probability of A given
P(B) that B has occurred
21
Conditional Probability Example
(continued)
Of the cars on a used car lot, 70% have air
conditioning (AC) and 40% have a CD player (CD).
20% of the cars have both.
CD No CD Total
AC .2 .5 .7
No AC .2 .1 .3
Total .4 .6 1.0
(continued)
Given AC, we only consider the top row (70% of the cars). Of
these, 20% have a CD player. 20% of 70% is about 28.57%.
CD No CD Total
AC .2 .5 .7
No AC .2 .1 .3
Total .4 .6 1.0
(continued)
Given AC, we only consider the top row (70% of the cars). Of
these, 20% have a CD player. 20% of 70% is about 28.57%.
AC No AC Total
CD .2 .2 .4
No CD .5 .1 .6
Total .7 .3 1.0
.2 P(AC n CD) = .2
P(CD|AC)=
.7 P(AC and CD) = .2
Given AC or
no AC:
P(AC and CD’) = .5
.5
.7 40%
All
Cars
.2
.3 P(AC’ and CD) = .2
(continued)
P(AC|CD)=
.2 P(CD n AC) = .2
.4 P(CD and AC) = .2
Given CD or
no CD:
P(CD and AC’) = .2
.2
.4 70%
All
Cars
.5
.6 P(CD’ and AC) = .5
P(A | B) P(A)
28
Marginal Probability
Marginal probability for event A:
29
Bayes’ Theorem
P(A) P(A | B1 )P(B1 ) P(A | B2 )P(B2 ) P(A | Bk )P(Bk )
P(A and B)
P(A | B) P(A and B) P(A | B)P(B)
P(B)
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
A = new event that might impact P(Bi)
30
Bayes’ Theorem Example
P(A | Bi )P(Bi )
P(Bi | A)
P(A | B1 )P(B1 ) P(A | B2 )P(B2 ) P(A | Bk )P(Bk )
31