Tutorial 2
Tutorial 2
Counting Method
Conditional Probability
Total Probability Theorem
Bayes’ Rule
Sequential Experiment
Computing Probability using Counting Methods
2
Put it back
identity
1 2 ≠1 2
n objects
e.g. a child has 3 coins and 4 labeled pockets, more than 1 coins
can be put in the same pockets. In how many ways can he put the
coins in his pockets?
1 2 3 4
Choose k objects from a set A that has n members with
replacement with ordering number of outcomes = nk
Computing Probability using Counting Methods
4
Without replacement with ordering
Without replacement With ordering
Select an object Note its ≠
identity
1 2 ≠1 2
n objects
e.g. a child has 3 coins and 4 labeled pockets, only1 coins can be
put in one pocket. In how many ways can he put the coins in his
pockets?
1 2 3 4
Choose k objects from a set A that has n members without
replacement with ordering number of outcomes= n ( n − 1)( n − 2 )( n − k + 1)
k terms
Computing Probability using Counting Methods
5
Without replacement without ordering
Without replacement Without ordering
Select an object Note its =
identity
1 2 =1 2
n objects
e.g. a child has 3 coins and 4 pockets, only1 coins can be put in
one pocket and the order of the pockets are not considered. In
how many ways can he put the coins in his pockets?
1 2 3 4
Computing Probability using Counting Methods
6
What is the
probability of
being dealt each
type of poker
hand?
9
Conditional Probability
10
P[ A B ]
P[ A | B ] =
P[B ]
where we assume that P[B] >0
B1 B3 B5 B9 S
B7
A
B2 B6 B8 B10
B4
Total Probability Theorem Example
16
P[ A B] P[ A]P[ B] P[ A B] P[ A]P[ B]
=
P[ A | B] = = P[ A] =
P[ B | A] = = P[ B]
P[ B] P[ B] P[ A] P[ A]
P[A1A2] = P[A1]×P[A2]
P[A2A3] = P[A2]×P[A3] Events A1, A2 and
P[A1A3] = P[A1]×P[A3] A3 are independent
P[A1A2A3] = P[A1]×P[A2] ×P[A3]
Sequential Experiment
19
Bernoulli Trials
1 experiment 2 outcomes
P[{outcome 1}] = p, P[{outcome 2}] = 1 – p
Binomial Probability Law
n independent Bernoulli trials n k
pn (k ) = p (1 − p )
n−k
k successes in n trials k
A B C D E F G H
Example 2
21
A type of missile has failure probability 0.02. Let N denote the number
of launches before the first failure. Find the probability of the first
failure occurred in the 21st launch.