Continuous Random Variables and Probability Distributions
Continuous Random Variables and Probability Distributions
Chapter 5
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-2
Chapter Goals
(continued)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-3
Probability Distributions
Probability
Distributions
Binomial Uniform
Hypergeometric Normal
Poisson Exponential
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-4
5.1
Continuous Random Variables
A continuous random variable is a variable that
can assume any value in an interval
thickness of an item
time required to complete a task
temperature of a solution
height, in inches
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-5
Cumulative Distribution Function
F(x) P(X x)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-6
Probability Density Function
The probability density function, f(x), of random variable X
has the following properties:
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-7
Probability Density Function
(continued)
The probability density function, f(x), of random variable X
has the following properties:
F(x 0 ) f(x)dx
xm
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-8
Probability as an Area
Shaded area under the curve is the
probability that X is between a and b
f(x)
P (a ≤ x ≤ b)
= P (a < x < b)
(Note that the probability
of any individual value is
zero)
a b x
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-9
Probability as an Area
(continued)
1. The total area under the curve f(x) is 1
2. The area under the curve f(x) to the left of x0 is
F(x0), where x0 is any value that the random variable
can take.
f(x)
F(x0 ) P(X x 0 )
0 x0 x
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-10
The Uniform Distribution
Probability
Distributions
Continuous
Probability
Distributions
Uniform
Normal
Exponential
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-11
The Uniform Distribution
f(x)
Total area under the
uniform probability
density function is 1.0
xmin xmax x
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-12
The Uniform Distribution
(continued)
The Continuous Uniform Distribution:
1
if a x b
ba
f(x) =
0 otherwise
where
f(x) = value of the density function at any x value
a = minimum value of x
b = maximum value of x
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-13
5.2
Expectations for
Continuous Random Variables
μX E[X]
σ 2X E[(X μX )2 ]
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-14
Mean and Variance of the
Uniform Distribution
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-15
Uniform Distribution Example
1
f(x) = 6 - 2 = .25 for 2 ≤ x ≤ 6
f(x)
ab 26
μ 4
.25 2 2
(b - a)2 (6 - 2)2
σ
2
1.333
2 6 x 12 12
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-16
Linear Functions of
Random Variables
(continued)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-18
5.3
The Normal Distribution
Probability
Distributions
Continuous
Probability
Distributions
Uniform
Normal
Exponential
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-19
The Normal Distribution
(continued)
‘Bell Shaped’
Symmetrical f(x)
Mean, Median and Mode
are Equal
Location is determined by the σ
mean, μ x
μ
Spread is determined by the
standard deviation, σ
Mean
= Median
The random variable has an
infinite theoretical range: = Mode
+ to
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-20
The Normal Distribution
(continued)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-21
Many Normal Distributions
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-22
The Normal Distribution Shape
f(x) Changing μ shifts the
distribution left or right.
Changing σ increases
or decreases the
σ spread.
μ x
F(x0 ) P(X x 0 )
f(x)
P(X x 0 )
µ x0 x
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-25
Finding Normal Probabilities
a μ b x
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-26
Finding Normal Probabilities
(continued)
F(b) P(X b)
a μ b x
F(a) P(X a)
a μ b x
a μ b x
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-27
The
Standard Normal Distribution
Any normal distribution (with any mean and
variance combination) can be transformed into the
standardized normal distribution (Z), with mean 0
and variance 1
f(Z)
Z ~ N(0 ,1) 1
Z
0
Need to transform X units into Z units by subtracting the
mean of X and dividing by its standard deviation
X μ
Z
σ
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-28
Example
X μ 200 100
Z 2.0
σ 50
This says that X = 200 is two standard
deviations (2 increments of 50 units) above
the mean of 100.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-29
Comparing X and Z units
0 2.0 Z ( μ = 0 , σ = 1)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-30
Finding Normal Probabilities
a μ b μ
P(a X b) P Z
σ σ
f(x) b μ a μ
F F
σ σ
a µ b x
a μ b μ
0 Z
σ σ
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-31
Probability as
Area Under the Curve
The total area under the curve is 1.0, and the curve is
symmetric, so half is above the mean, half is below
f(X) P( X μ) 0.5
P(μ X ) 0.5
0.5 0.5
μ X
P( X ) 1.0
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-32
Appendix Table 1
The Standard Normal Distribution table in the
textbook (Appendix Table 1) shows values of
the cumulative normal distribution function
F(a) P(Z a)
0 a Z
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-33
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-34
The Standard Normal Table
.9772
Example:
P(Z < 2.00) = .9772
0 2.00 Z
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-35
The Standard Normal Table
(continued)
.0228
Example:
0 2.00 Z
P(Z < -2.00) = 1 – 0.9772
= 0.0228 .9772
.0228
-2.00 0 Z
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-36
General Procedure for Finding
Probabilities
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-37
Finding Normal Probabilities
X
8.0
8.6
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-38
Finding Normal Probabilities
(continued)
Suppose X is normal with mean 8.0 and
standard deviation 5.0. Find P(X < 8.6)
X μ 8.6 8.0
Z 0.12
σ 5.0
μ=8 μ=0
σ = 10 σ=1
8 8.6 X 0 0.12 Z
.11 .5438
.12 .5478
Z
.13 .5517 0.00
0.12
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-40
Upper Tail Probabilities
X
8.0
8.6
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-41
Upper Tail Probabilities
(continued)
0.5478
1.000 1.0 - 0.5478
= 0.4522
Z Z
0 0
0.12 0.12
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-42
Finding the X value for a
Known Probability
X μ Zσ
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-43
Finding the X value for a
Known Probability
(continued)
Example:
Suppose X is normal with mean 8.0 and
.2000
? 8.0 X
? 0 Z
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-44
Find the Z value for
20% in the Lower Tail
1. Find the Z value for the known probability
Standardized Normal Probability 20% area in the lower
Table (Portion) tail is consistent with a
z F(z) Z value of -0.84
.82 .7939 .80
.20
.83 .7967
.84 .7995
? 8.0 X
.85 .8023 -0.84 0 Z
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-45
Finding the X value
X μ Zσ
8.0 ( 0.84)5.0
3.80
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-46
Let the random variable Z follow a standard normal
distribution.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-47
Let the random variable Z follow a standard normal
distribution.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-48
Assessing Normality
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-49
The Normal Probability Plot
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-50
The Normal Probability Plot
(continued)
100
Percent
0
Data
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-51
The Normal Probability Plot
(continued)
Left-Skewed Right-Skewed
100 100
Percent
Percent
0 0
Data Data
Uniform
100
Nonlinear plots
indicate a deviation
Percent
from normality
0
Data
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-52
5.4
Normal Distribution Approximation
for Binomial Distribution
Random variable X:
Xi =1 if the ith trial is “success”
Xi =0 if the ith trial is “failure”
E[X] μ nP
Var(X) σ nP(1- P) 2
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-53
Normal Distribution Approximation
for Binomial Distribution
(continued)
X E[X] X np
Z
Var(X) nP(1 P)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-54
Normal Distribution Approximation
for Binomial Distribution
(continued)
If nP(1 - P) > 5,
a nP b nP
P(a X b) P Z
nP(1 P) nP(1 P)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-55
Binomial Approximation Example
40% of all voters support ballot proposition A. What
is the probability that between 76 and 80 voters
indicate support in a sample of n = 200 ?
E[X] = µ = nP = 200(0.40) = 80
Var(X) = σ2 = nP(1 – P) = 200(0.40)(1 – 0.40) = 48
( note: nP(1 – P) = 48 > 5 )
76 80 80 80
P(76 X 80) P Z
200(0.4)(1 0.4) 200(0.4)(1 0.4)
P(0.58 Z 0)
F(0) F(0.58)
0.5000 0.2810 0.2190
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-56
5.5
The Exponential Distribution
Probability
Distributions
Continuous
Probability
Distributions
Normal
Uniform
Exponential
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-57
The Exponential Distribution
Examples:
Time between trucks arriving at an unloading dock
Time between transactions at an ATM Machine
Time between phone calls to the main operator
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-58
The Exponential Distribution
(continued)
λ t
f(t) λ e for t 0
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-59
The Exponential Distribution
(continued)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-60
The Exponential Distribution
(continued)
Memoryless property:
A random variable X is said to be memoryless if
P(X > t + s | X > s) = P(X > t) for all s, t > 0
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-61
Relationship between Poisson
and Exponential Distributions
If events (customer arrivals at a post office, phone calls to
a call center, failures of an equipment, truck arrivals to a
loading dock etc.) occur according to a Poisson
distribution with parameter then the time between
successive arrivals has an exponential distribution with
parameter .
Let X = number of arrivals in one unit time interval where
X follows a Poisson distribution with rate and E[X]= .
Now let T = interarrival times.
Then T follows an exponential probability distribution with
rate and E[T]= 1/.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-62
Exponential Distribution
Example
Example: Customers arrive at a service counter at the
rate of 15 per hour according to a Poisson distribution.
a) What is the probability that the arrival time between
consecutive customers is less than three minutes?
b) What is the mean interarrival time between
consecutive customers?
c) What is the mean number of customers arriving to the
service counter in two hours?
d) What is the mean number of customers arriving to the
service counter in 45 minutes?
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-63
Exponential Distribution
Example
a) The mean number of arrivals per hour is 15, so = 15
Three minutes is .05 hours (3/60).
P(arrival time < .05) = 1 – e- X = 1 – e-(15)(.05) = 0.5276
So there is a 52.76% probability that the arrival time
between successive customers is less than three
minutes
b) The mean interarrival time is 1/ and
1/ is 1/15 = 0.0667 hours = 4 minutes
c) The mean number of arrivals in two hours is 2(15) = 30
d) The number of arrivals in 45 minutes has a Possion
distribution with mean (3/4)(15) = 11.25.
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-64
Exponential Distribution
Example
(continued)
e) What is the probability that no customers arrive in the
next ten minutes?
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-66
Correlation
Cov(X, Y)
ρ Corr(X, Y)
σ Xσ Y
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-70
Linear Combinations of
Random Variables
(continued)
The variance of W is
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-75
Example
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-76
Example
(continued)
X = minutes to complete task 1; μx = 20, σx = 5
Y = minutes to complete task 2; μy = 30, σy = 8
What are the mean and standard deviation for the time to complete
both tasks?
W XY
μW μX μY 20 30 50
Since X and Y are independent, Cov(X,Y) = 0, so
σ W 89 9.434
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-77
Financial Investment Portfolios
Proportion of Proportion of
Return on Stock 1 Stock 2
portfolio value portfolio value
portfolio in stock1 return in stock2 return
Proportion of
Stock N
portfolio value
in stock N return
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-78
Portfolio Analysis Example
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-79
Portfolio Analysis Example
(continued)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-80
Portfolio Analysis Example
(continued)
Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall Ch. 5-81