chapter 5
chapter 5
Chapter 5
Probability
2-2
2 Probability
Using Statistics
Basic Definitions: Events, Sample Space, and
Probabilities
Basic Rules for Probability
Conditional Probability
Independence of Events
Combinatorial Concepts
The Law of Total Probability and Bayes’ Theorem
Joint Probability Table
2-3
2
LEARNING OBJECTIVES
A quantitative measure of uncertainty
A measure of the strength of belief in the
occurrence of an uncertain event
A measure of the degree of chance or
likelihood of occurrence of an uncertain
event
Measured by a number between 0 and 1 (or
between 0% and 100%)
2-5
Types of Probability
Objective or Classical Probability
based on equally-likely events
based on long-run relative frequency of events
Subjective Probability
based on personal beliefs, experiences, prejudices,
intuition - personal judgment
different for all observers (subjective)
introduction, snowfall
2-7
Set - a collection of elements or objects of
interest
Empty set (denoted by )
a set containing no elements
Universal set (denoted by S)
a set containing all possible elements
Complement (Not). The complement of A is A
a set containing all elements of S not in A
2-8
Complement of a Set
Venn
VennDiagram
Diagramillustrating
illustratingthe
theComplement
Complementofofan
anevent
event
2-9
Intersection (And) A B
–
a set containing all elements in both A and B
Union (Or) A B
–
a set containing all elements in A or B or both
2-10
A
B
A B
2-11
Sets: A Union B
A
B
A B
2-12
B
A
2-14
Sets: Partition
S
A3
A1
A4
A2
A5
2-15
Experiment
• Process that leads to one of several possible
outcomes *, e.g.:
Coin toss
• Heads, Tails
Throw die
• 1, 2, 3, 4, 5, 6
Pick a card
AH, KH, QH, ...
Introduce a new product
• Each trial of an experiment has a single observed
outcome.
• The precise outcome of a random experiment is
unknown before a trial.
* Also called a basic outcome, elementary event, or simple event
* Also called a basic outcome, elementary event, or simple event
2-16
Events : Definition
Sample Space or Event Set
Set of all possible outcomes (universal set) for a given
experiment
E.g.: Roll a regular six-sided die
S = {1,2,3,4,5,6}
Event
Collection of outcomes having a common characteristic
E.g.: Even number
A = {2,4,6}
Event A occurs if an outcome in the set A occurs
Probability of an event
Sum of the probabilities of the outcomes of which it consists
P(A) = P(2) + P(4) + P(6)
2-17
Equally-likely Probabilities
(Hypothetical or Ideal Experiments)
• For example:
Throw a die
• Six possible outcomes {1,2,3,4,5,6}
• If each is equally-likely, the probability of each is 1/6 = 0.1667 =
16.67%
1
P ( e)
n( S )
• Probability of each equally-likely outcome is 1 divided by the number
of possible outcomes
Event A (even number)
• P(A) = P(2) + P(4) + P(6) = 1/6 + 1/6 + 1/6 = 1/2
• P( A) P( e) for e in A
n( A ) 3 1
n( S ) 6 2
2-18
A A A A
Union of Event ‘Ace’
K K K K
Events ‘Heart’ Q Q Q Q
n ( Ace ) 4 1
J J J J
P ( Ace )
and ‘Ace’ 10 10 10 10
P ( Heart Ace ) n(S ) 52 13
9 9 9 9
8 8 8 8
n ( Heart Ace )
7 7 7 7
6 6 6 6
n(S )
5 5 5 5
4 4 4 4
16 4
3 3 3 3
2 2 2 2
52 13
Range of
Range ofValues
Values for
forP(A):
P(A): 0 P( A) 1
Complements -- Probability
Complements Probability of
of not
not A
A
P( A ) 1 P( A)
Intersection -- Probability
Intersection Probability of
of both
bothAA and
and BB
P( A B) n( A B)
n( S )
Mutuallyexclusive
Mutually exclusiveevents
events(A
(Aand
andC)
C)::
P( A C) 0
2-20
P( A B) n( A B) P( A) P( B) P( A B)
n( S )
Mutually
Mutuallyexclusive
exclusiveevents:
events:IfIfAAand
andBBare
aremutually
mutuallyexclusive,
exclusive,then
then
P( A B) 0 so P( A B) P( A) P( B)
2-21
A
B
P( A B)
2-22
•• Conditional
ConditionalProbability
Probability--Probability
Probabilityof
ofAAgiven
givenBB
P( A B)
P( A B) , where P( B) 0
P( B)
Independent
Independentevents:
events:
P( A B) P( A)
P( B A) P( B)
2-23
Rulesofofconditional
Rules conditionalprobability:
probability:
P( A B) P( A B) so P ( A B ) P ( A B ) P ( B )
P( B)
P( B A) P( A)
P ( A D ) P ( A)
so
P( A D) P( A) P( D)
P ( D A) P ( D )
2-24
Counts
Total 60 40 100
Probabilities
P ( IBM T )
AT& T IBM Total P ( IBM T )
P (T )
Telecommunication .40 .10 .50
0.10
0.2
Computers .20 .30 .50
0.50
P ( A B ) P ( A)
P ( B A) P ( B )
and
P ( A B ) P ( A) P ( B )
P ( Ace Heart ) P ( Heart Ace )
P ( Ace Heart ) P ( Heart Ace )
P ( Heart ) P ( Ace )
1 1
1 1
52 P ( Ace ) 52 P ( Heart )
13 13 4 4
52 52
4 13 1
P ( Ace Heart) * P ( Ace) P ( Heart)
52 52 52
2-26
Independence of Events –
Example 2-2
assumed to be independent.
a )P (T B ) P (T ) P( B)
0.04 * 0.06 0.0024
b)P (T B ) P (T ) P ( B ) P (T B )
0.04 0.06 0.0024 0.0976
2-27
P( A A A An ) P( A ) P( A ) P( A ) P( An )
1 2 3 1 2 3
Example 2-7:
(Q Q Q Q ) 1 P(Q )P(Q )P(Q )P(Q )
1 2 3 10 1 2 3 10
1 0.9010 1 0.3487 0.6513
2-28
from throwing the first die {1,2,3,4,5,6} and six possible outcomes
. .
C
ABC
B
. . .
C B
ACB
A
.
B
.
A
. C
. BAC
. .
C A
C BCA
. . .
A B
CAB
B
. .
A
CBA
2-30
Factorial
There are 3 choices for the first letter, 2 for the second, and 1 for
the last, so there are 3*2*1 = 6 possible ways to order the three
letters A, B, and C.
There are 6 ways to choose the first letter, 5 ways to choose the
permutations.
P n!
taken r at a time is denoted by nPr, where
n r (n r )!
Forexample:
6! 6! 6 * 5 * 4 * 3 * 2 *1
6 P3 6 * 5 * 4 120
(6 3)! 3! 3 * 2 *1
2-32
we chose BCD, or BDC, or CBD, or CDB, or DBC, or DCB. (These are the
6 (3!) permutations or orderings of the 3 letters B, C, and D.) But these are
P( A) P( A B) P( A B )
P( A) P( A B) P( A B )
P ( A B ) P ( B ) P ( A B ) P ( B )
Bayes’ Theorem
• Bayes’ theorem enables you, knowing just a little
more than the probability of A given B, to find the
probability of B given A.
• Based on the definition of conditional probability
and the law of total probability.
P ( A B)
P ( B A)
P ( A)
P ( A B) Applying the law of total
P ( A B) P ( A B ) probability to the denominator
P ( A B) P ( B)
Applying the definition of
P ( A B) P ( B) P ( A B ) P ( B ) conditional probability throughout
2-36
P ( I ) 0.001 P ( I Z )
P( I Z )
P( Z )
P ( I Z )
P ( I Z ) P ( I Z )
P ( I ) 0.999
P( Z I ) P( I )
P( Z I ) P( I ) P( Z I ) P( I )
P ( Z I ) 0.92
(.92)( 0.001)
(.92)( 0.001) ( 0.04)(.999)
0.00092 0.00092
0.00092 0.03996 .04088
P ( Z I ) 0.04 .0225
2-38
P ( Z I ) 0.96
P ( Z I ) (0.999)(0.96) .95904
2-39
P( A B )
P ( B A) 1
P ( A)
1
P( A B ) i
Applying the definition of
P( A B ) P( B )
1 1 conditional probability throughout
P( A B ) P( B )
i i
2-40
moderate economic growth, the dollar appreciates with probability 0.40; and during periods of low economic growth, the dollar
economic growth?
Partition:
Event A Appreciation
P ( A H ) 0.70
H - High growth P(H) = 0.30
P ( A M ) 0.40
M - Moderate growth P(M) = 0.50 P ( A L) 0.20
L - Low growth P(L) = 0.20
2-41
P( H A)
P( H A)
P( A)
P( H A)
P( H A) P( M A) P( L A)
P( A H ) P( H )
P ( A H ) P ( H ) P ( A M ) P ( M ) P ( A L) P ( L)
( 0.70)( 0.30)
( 0.70)( 0.30) ( 0.40)( 0.50) ( 0.20)( 0.20)
0.21 0.21
0.21 0.20 0.04 0.45
0.467
2-42
P ( A H ) 0.30
P ( H ) 0.30 P ( A H ) ( 0.30)( 0.30) 0.09
P ( M ) 0.50
A joint probability table is similar to a contingency
table , except that it has probabilities in place of
frequencies.
The joint probability for Example 2-11 is shown
below.
The row totals and column totals are called
marginal probabilities.
2-44
AAjoint
joint probability
probability table
table isis similar
similar toto aa contingency
contingency
table ,, except
table except that
that itit has
has probabilities
probabilities in in place
place of
of
frequencies.
frequencies.
The joint
The joint probability
probability for for Example
Example 2-11 2-11 isis shown
shown on
on
the next
the next slide.
slide.
The row
The row totals
totals and
and column
column totals
totals are
are called
called
marginal probabilities.
marginal probabilities.
2-45
Marginal
Marginal probabilities
probabilities are
are the
the row
row totals
totals and
and the
the column
column totals.
totals.