CH 04
CH 04
•Examples:
–Toss a fair coin. P(Head) = 1/2
–77.1% of all Canadians are identified as
Christians (C). Select a person at random.
P(C)= .771
Copyright ©2011 Nelson Education Limited.
Example
(n − r )!
where n!= n(n − 1)( n − 2)...(2)(1) and 0! 1.
Example: How many 3-digit lock combinations
can we make from the numbers 1, 2, 3, and 4?
4!
The order of the choice is
important!
P = = 4(3)( 2) = 24
3
4
1!
Copyright ©2011 Nelson Education Limited.
Examples
Example: A lock consists of five parts and
can be assembled in any order. A quality
control engineer wants to test each order for
efficiency of assembly. How many orders are
there?
0!
Copyright ©2011 Nelson Education Limited.
Combinations
• The number of distinct combinations of n
distinct objects that can be formed, taking
them r at a time is n! P n
n
Cr = r
=
r!(n − r )! r!
A B A B
A B A B
S
AC
P( A B) = P( A) + P( B) − P( A B)
A B
P(AC) = 1 – P(A)
Copyright ©2011 Nelson Education Limited.
Example
P(A|B) = (1/4)/(1/2)= ½
HH 1/4 P(A|not B) = (1/4)/(1/2) = ½
HT 1/4
P(A) does not A and B are
TH 1/4
change, whether independent!
1/4 B happens or
TT
not…
Copyright ©2011 Nelson Education Limited.
Example 2
• A bowl contains five M&Ms®, two red and three blue.
Randomly select two candies sequentially without
replacement, and define
– A: second candy is red.
– B: first candy is blue.
m P(A|B) =P(2nd red|1st blue)= (6/20)/(12/20) = 1/2
m m P(A|not B) = P(2nd red|1st red) = (2/20)/(8/20)=1/4
m m
P(A) does change,
depending on whether
A and B are
B happens or not… dependent!
• Examples:
✓x = SAT score for a randomly selected student
✓x = number of people in a room at a randomly
selected time of day
✓x = number on the upper face of a randomly
tossed die
Copyright ©2011 Nelson Education Limited.
Probability Distributions for Discrete
Random Variables
• The probability distribution for a
discrete random variable x resembles
the relative frequency distributions we
constructed in Chapter 1. It is a graph,
table or formula that gives the possible
values of x and the probability p(x)
associated with each value.
We must have
0 p( x) 1 and p( x) = 1
Copyright ©2011 Nelson Education Limited.
Example
• Toss a fair coin three times and
define x = number of heads.
x
HHH P(x = 0) = 1/8 x p(x)
1/8 3 0 1/8
HHT P(x = 1) = 3/8
1/8 2 1 3/8
P(x = 2) = 3/8
HTH 2 3/8
1/8 2 P(x = 3) = 1/8
3 1/8
THH 1/8 2
HTT 1/8 1 Probability
Histogram for x
THT 1/8 1
TTH 1/8 1
TTT 1/8 0
Copyright ©2011 Nelson Education Limited.
Probability Distributions
• Probability distributions can be used to describe
the population, just as we described samples in
Chapter 1.
– Shape: Symmetric, skewed, mound-shaped…
– Outliers: unusual or unlikely measurements
– Center and spread: mean and standard deviation. A
population mean is called m and a population standard
deviation is called s.
Mean : m = xp ( x)
Variance : s = ( x − m ) p( x)
2 2
Standard deviation : s = s 2
s = .75 = .688
Copyright ©2011 Nelson Education Limited.
Example
• The probability distribution for x the
number of heads in tossing 3 fair
coins.
Symmetric;
• Shape? mound-shaped
• Outliers? None
• Center? m = 1.5
• Spread? s = .688
m
Copyright ©2011 Nelson Education Limited.