Lec 6
Lec 6
Lec 6
Week 6
1
Part 1:
• Applying Counting Rules to Probability Problems:
• Rule for Multiple-step Experiments
• Counting Rule for Permutations
• Counting Rule for Combinations
4
Example: X X X
5
II. Counting Rule for Permutations
1. Number of permutations: take k objects out of n objects (order matters!)
Can think of
this as
forming
lines
Example: In how many ways can we arrange 3 people?
6 ways ABC, ACB, BAC, BCA, CAB, CBA
3 3! 3 ∗ 2∗ 1 6
𝑃 =
3 = = =6
(3 −3 )! 0! 1
6
Example:
In a sequence of three random digits, what is the probability
that the digits are all distinct (different)?
9
III. Counting Rule for Combinations
Number of combinations: take k objects out of n objects (order doesn’t matter!)
Can think of
this as
forming
group
Example: In how many ways can form a group of 3 people
from 3 people?
ABC=ACB=BAC=BCA=CAB=CBA 1 way (all these are
same group)
3 3! 3 ∗2 ∗1 6
𝐶 = 3 = = =1
( 3− 3 ) ! 3 ! 0!3! 6
10
Example:
Suppose, we are randomly selecting 2 out of 5 candidates, and
we know that 2 of the candidates are good, and 3 are bad.
11
Example: Suppose, we are randomly selecting 2 out of 5 candidates, and
we know that 2 of the candidates are good, and 3 are bad
(Candidates: G1, G2, B1, B2, B3)
In total, there are 2x3=6 ways of selecting 1 good and 1 bad candidate
12
Example:
Suppose, we are randomly selecting 2 out of 5 candidates, and we
know that 2 of the candidates are good, and 3 are bad.
5!
5
𝑁 =𝐶 = 2 =10
2!3!
13
Geometric way of solving
probability problems:
Romeo and Juliet problem
Romeo and Juliet want to meet up for a date tomorrow at 1pm,
but the problem is that they don’t have phones and they aren’t
necessarily punctual. The possible times they can arrive
(individually) are at: 1pm, 1:15pm, 1:30pm, 1:45pm and 2pm [So,
one can arrive at 1pm and another at 1:30pm for example. All
pairs are equally likely].
Chap 4-15
Part II: Chapter 4 continued
Some Basic Relationships of Probability
Complement of an Event
Sample
Event A Ac Space S
Venn
Diagram
In case of rolling a dice: if event A is
rolling 2 or 4, what is complement of A?
Which of the following statements is always true?
a) -1 ≤ P(Ei) ≤ 0.999
b) P(A) = 1 - P(Ac)
c) P(A) + P(B) = 1
d) ∑P ≥ 1
18
Which of the following statements is always true?
a) -1 ≤ P(Ei) ≤ 0.999
b) P(A) = 1 - P(Ac)
c) P(A) + P(B) = 1
d) ∑P ≥ 1
19
Union of Two Events
The union of events A and B is the event containing
all sample points that are in A or B or both.
Sample
Space S
AUB
Event A is getting a 1 or 3 when rolling a
die. Event B is getting 4. What is A U B?
Intersection of Two Events
EventA Sample
In case of rolling a Space S
die: event A – rolling Event B
3 or less. Event B –
rolling 5 or less. What
is A ?
Intersection of A and B
Mutually Exclusive Events
Two events are said to be mutually exclusive if the
events have no sample points in common.
Sample
Event A Event B Space S
Addition rule: 2 events
NOT mutually exclusive
S
A AUB B
Why are we
subtracting
intersection of A
and B?
When is this
equal to zero?
P(AUB)=P(A)+P(B)
For mutually
exclusive events 23
Conditional Probability
P( A B ) P(A B)
P( A|B) P(B | A)
P( B) P(A)
Understanding conditional probability formula
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.
We are also given all these probabilities in the table.
Q1: what do
circled numbers CD No CD Total
represent? AC 0.2 0.5 0.7
Interpret these
numbers. No AC 0.2 0.1 0.3
Total 0.4 0.6 1.0
Q2: Given that a
car has a CD,
what is the
probability that
is has AC? 8
Understanding conditional probability formula
P( A B ) P(A B)
P( A|B) P(B | A)
P( B) P(A)
𝑃 ¿
Independent Events
P( A B ) P(A B)
P( A|B) P(B | A)
P( B) P(A)
P( A B) P(A B)
P( A|B) P(B | A) Conditional probability
P( B ) P(A)
a) 0.00
b) 0.10
c) 0.90
d) 0.20
31
If A and B are mutually exclusive events with
P(A) = 0.4 and P(B) = 0.5, then P(A ∩ B) =
a) 0.00
b) 0.10
c) 0.90
d) 0.20
32
Problem 2: if P(A) = 0.4, P(B | A) = 0.35,
P(A ∪ B) = 0.69, then P(B) =
a) 0.14
P( A B) P(AUB
b) 0.43 P( A|B) ) =P(A)+
P( B )
P( B)
c) 0.75
d) 0.59 ( A) P(A B)
e be |B) = P P(B | A)
o f t h
ld l? P(A P(A)
ich as co sefuu
h
W ul ly u
o r m al
f e n ti
p o t
33
Problem: if P(A) = 0.4, P(B | A) = 0.35, P(A ∪ B) =
0.69, find P(B)