Basic Probability: Chap 4-1
Basic Probability: Chap 4-1
Chap 4-1
Learning Objectives
Chap 4-2
Basic Probability Concepts
Chap 4-3
Assessing Probability
Chap 4-4
Example of a priori probability
X 31 days in January 31
= =
T 365 days in 2013 365
Chap 4-5
Example of empirical probability
Chap 4-6
Subjective probability
Chap 4-7
Events
Simple event
An event described by a single characteristic
e.g., A day in January from all days in 2013
Joint event
An event described by two or more characteristics
e.g. A day in January that is also a Wednesday from all days in 2013
Complement of an event A (denoted A’)
All events that are not part of event A
e.g., All days from 2013 that are not in January
Chap 4-8
Sample Space
The Sample Space is the collection of all
possible events
e.g. All 6 faces of a die:
Chap 4-9
Organizing & Visualizing Events
Wed. 5 47 52
Not Wed. 27 286 313
286
Chap 4-10
Definition: Simple Probability
P(Jan.) = 32 / 365
Chap 4-11
Definition: Joint Probability
Chap 4-13
Collectively Exhaustive Events
A = Weekday; B = Weekend;
C = January; D = Spring;
Chap 4-15
Joint Probability Example
Wed. 5 47 52
Not Wed. 27 286 313
Chap 4-16
Marginal Probability Example
P(Wed.)
4 48 52
= P(Jan. and Wed.) + P(Not Jan. and Wed.) = + =
365 365 365
Wed. 4 48 52
Not Wed. 27 286 313
Chap 4-17
Marginal & Joint Probabilities In A
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)
Chap 4-18
Probability Summary So Far
Chap 4-20
General Addition Rule Example
Chap 4-21
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
Chap 4-23
Conditional Probability Example
(continued)
Of the cars on a used car lot, 70% have air conditioning
(AC) and 40% have a GPS and
20% of the cars have both.
GPS No GPS Total
AC 0.2 0.5 0.7
No AC 0.2 0.1 0.3
Total 0.4 0.6 1.0
Chap 4-25
Using Decision Trees
.2
Given AC or .7 P(AC and GPS) = 0.2
no AC:
P(AC and GPS’) = 0.5
.5
.7
All Conditional
Probabilities
Cars
.2
.3 P(AC’ and GPS) = 0.2
P(A | B) = P(A)
Events A and B are independent when the probability
of one event is not affected by the fact that the other
event has occurred
Chap 4-28
Multiplication Rules
Chap 4-29
Marginal Probability
Chap 4-30
Bayes’ Theorem
Chap 4-31
Bayes’ Theorem
P(A | B i )P(B i )
P(B i | A) =
P(A | B 1 )P(B 1 ) + P(A | B 2 )P(B 2 ) + ⋅ ⋅ ⋅ + P(A | B k )P(B k )
where:
Bi = ith event of k mutually exclusive and collectively
exhaustive events
A = new event that might impact P(Bi)
Chap 4-32
Bayes’ Theorem Example
Chap 4-33
Bayes’ Theorem Example
(continued)
Chap 4-34
Bayes’ Theorem Example
(continued)
Sum = 0.36
Chap 4-36
Counting Rules Are Often Useful In
Computing Probabilities
Chap 4-37
Chapter Summary
Online Topic
Counting Rules
Counting Rules - 1
Learning Objective
Counting Rules -2
Counting Rules
kn
Example
If you roll a fair die 3 times then there are 63 = 216 possible
outcomes
Counting Rules -3
Counting Rules
(continued)
Counting Rule 2:
If there are k1 events on the first trial, k2 events on
the second trial, … and kn events on the nth trial, the
number of possible outcomes is
(k1)(k2)…(kn)
Example:
You want to go to a park, eat at a restaurant, and see a
movie. There are 3 parks, 4 restaurants, and 6 movie
choices. How many different possible combinations are
there?
Answer: (3)(4)(6) = 72 different possibilities
Counting Rules - 4
Counting Rules
(continued)
Counting Rule 3:
The number of ways that n items can be arranged in
order is
n! = (n)(n – 1)…(1)
Example:
You have five books to put on a bookshelf. How many
different ways can these books be placed on the shelf?
Counting Rules - 5
Counting Rules
(continued)
Counting Rule 4:
Permutations: The number of ways of arranging X
objects selected from n objects in order is
n!
n Px =
(n − X)!
Example:
You have five books and are going to put three on a
bookshelf. How many different ways can the books be
ordered on the bookshelf?
Counting Rule 5:
Combinations: The number of ways of selecting X
objects from n objects, irrespective of order, is
n!
n Cx =
X!(n − X)!
Example:
You have five books and are going to select three are to
read. How many different combinations are there, ignoring
the order in which they are selected?
n! 5! 120
Answer: Cx = = = = 10 different possibilities
X!(n − X)! 3! (5 − 3)! (6)(2)
n
Counting Rules - 7