Exercise Probability
Exercise Probability
Exercise Probability
Continuous Random
Variables and
Probability
Distributions
CHAPTER OUTLINE
4-1 Continuous Random Variables 4-7 Normal Approximation to the
4-2 Probability Distributions and Binomial and Poisson Distributions
Probability Density Functions 4-8 Exponential Distribution
4-3 Cumulative Distribution Functions 4-9 Erlang and Gamma Distributions
4-4 Mean and Variance of a 4-10 Weibull Distribution
Continuous Random Variable 4-11 Lognormal Distribution
4-5 Continuous Uniform Distribution 4-12 Beta Distribution
4-6 Normal Distribution
Figure 4-2 Probability is determined from the area under f(x) from a to b.
b
(3) P a X b f x dx area under f x dx from a to b
a
Another example,
20
P 5 X 20 0.5dx 0.75 Figure 4-4 P(X < 10) illustrated.
5
Figure 4-5 P X 12.60 20e 20 x 12.5 dx 0.135
12.6
Sec 4-2 Probability Distributions & Probability Density Functions 10
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.
Cumulative Distribution Functions
0 x <0
F (x ) = 0.05x 0 ≤ x ≤ 20
1 20 < x
F x 0 for x 12.5
x
F x 20e 20u 12.5 du
12.5
dF x
Given F x , f x as long as the derivative exists.
dx
F x
0
1 e 0.01x
for x 0
for 0 x
• What is the PDF?
f x
dF x
dx
d 0
0 for x 0
1 e0.01x 0.01e0.01x for 0 x
dx
• What proportion of reactions is complete within 200
ms?
P X 200 F 200 1 e2 0.8647
Sec 4-3 Cumulative Distribution Functions 15
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.
Mean & Variance
Suppose X is a continuous random variable with
probability density function f x . The mean or
expected value of X , denoted as or E X , is
EX xf x dx (4-4)
20 2 20
0.05 x
E X x f x dx 10
0
2 0
3 20
20
0.05 x 10
V X x 10 f x dx 33.33
2
0
3
0
20 3 20
0.05 x
0.05 x dx 2
133.33 mA 2
0
3 0
Sec 4-4 Mean & Variance of a Continuous Random Variable 18
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.
Example 4-8: Hole Diameter
For the drilling operation in Example 4-2, find the
mean and variance of X using integration by
parts. Recall that f(x) = 20e-20(x-12.5)dx for x ≥ 12.5.
EX xf x dx x 20e 20 x 12.5 dx
12.5 12.5
20 x 12.5
20 x 12.5 e
xe 12.5 0.05 12.55 mm
20 12.5
V X x 12.55 f x dx 0.0025 mm 2 and 0.05 mm
2
12.5
a b b a
2
EX and V X
2
(4-7)
2 12
Figure 4-9
Sec 4-5 Continuous Uniform Distribution 22
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.
Continuous Uniform CDF
xa
x
1
F x du
a
b a ba
The CDF is completely described as
0 xa
F x x a b a a x b
1 bx
1
f x e 2 2
- x (4-8)
2
is a normal random variable with parameters ,
where - , and 0. Also,
x
z is the z-value obtainedby standardizing X.
The probability is obtained by using Appendix Table III
x
with z .
Using Excel
0.91924 = NORMDIST(0.2515, 0.2508, 0.0005, TRUE) - NORMDIST(0.2485, 0.2508, 0.0005, TRUE)
x 0
Using Excel
0.2280 = BINOMDIST(150,16000000,0.00001,TRUE)
P X 150 P X 150.5
P
X 160 150.5 160
160 1 105
160 1 10
5
9.5
PZ P 0.75104 0.2263
12.6491
Using Excel
0.2263 = NORMDIST(150.5, 160, SQRT(160*(1-0.00001)), TRUE)
-0.7% = (0.2263-0.228)/0.228 = percent error in the approximation
Using Excel
0.1117 = BINOMDIST(2,50,0.1,TRUE)
0.1193 = NORMDIST(2.5, 5, SQRT(5*0.9), TRUE)
6.8% = (0.1193 - 0.1117) / 0.1117 = percent error
Sec 4-7 Normal Approximation to the Binomial & Poisson Distributions 44
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.
Example 4-19: Normal Approximation-2
P X 8 P X 9 P X 8.5
8.5 5
PZ P Z 1.65 0.05
2.12
P X 5 P 4.5 X 5.5
4.5 5 5.5 5
P Z
2.12 2.12
P 0.24 Z 0.24
P Z 0.24 P Z 0.24 0.19
Using Excel
0.1849 = BINOMDIST(5,50,0.1,FALSE)
0.1863 = NORMDIST(5.5, 5, SQRT(5*0.9), TRUE) - NORMDIST(4.5, 5, SQRT(5*0.9), TRUE)
0.8% = (0.1863 - 0.1849) / 0.1849 = percent error
e10001000 x
950
P X 950 ... too hard manually!
x 0 x!
950.5 1000
P X 950.5 P Z
1000
P Z 1.57 0.058
Using Excel
0.0578 = POISSON(950,1000,TRUE)
0.0588 = NORMDIST(950.5, 1000, SQRT(1000), TRUE)
1.6% = (0.0588 - 0.0578) / 0.0578 = percent error
Sec 4-7 Normal Approximation to the Binomial & Poisson Distributions 49
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.
Exponential Distribution
• The Poisson distribution defined a random variable as the
number of flaws along a length of wire (flaws per mm).
• The exponential distribution defines a random variable as the
interval between flaws (mm’s between flaws – the inverse).
Let X denote the number of flaws in x mm of wire.
If the mean number of flaws is per mm,
N has a Poisson distribution with mean x.
x
x
0
e
P X x =P N 0 e x
0!
F x P X x 1 e x , x 0, the CDF.
Now differentiating:
f x e x , x 0, the PDF.
Sec 4-8 Exponential Distribution 50
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.
Exponential Distribution Definition
The random variable X that equals the distance
between successive events of a Poisson
process with mean number of events λ > 0 per
unit interval is an exponential random variable
with parameter λ. The probability density
function of X is:
P X 0.1 25e 25 x
dx e 25 0.1
0.1
1 F 0.1 0.082
Using Excel
0.0821 = 1 - EXPONDIST(0.1,25,TRUE)
Figure 4-23 Desired probability.
Sec 4-8 Exponential Distribution 54
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.
Example 4-21: Computer Usage-2
Continuing, what is the probability that the time until
the next log-on is between 2 and 3 minutes (0.033 &
0.05 hours)?
0.05
P 0.033 X 0.05 25e25 x
0.033
25 x 0.05
e 0.152
0.033
Using Excel
0.148 = EXPONDIST(3/60, 25, TRUE) - EXPONDIST(2/60, 25, TRUE)
(difference due to round-off error)
P X 25 P N 9
E N 25 1 2 12.5 slides in 25 hours Using Excel
0.2014 = POISSON(9, 12.5, TRUE)
e12.5 12.5
k
9
P N 9 0.2014
k 0 k !
10 r
EX 20 hours
0.5
10 r
V X 2 40 hours 2
0.25
10
SD X 40 6.32 hours
0.06
0.05
0.04
Density
0.03
0.02
0.01
0.00
0 31.4
X
Added slide
F x P X x P exp W x P W ln x
ln x -θ ln x -θ
=P Z =Φ for x 0
ω ω
0 for x 0
ln x
2
1
f x e 2
for 0 x
x 2
EX e 2 2
and V X e 2 2
e 2
1 (4-22)
Sec 4-11 Lognormal Distribution 76
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.
Lognormal Graphs
V X e 2 e 1 e 2101.5 e1.5 1
2 2 2
2
exp 22.25 exp 2.25 1 39, 070, 059,886.6
SD X 197, 661.5
3.5 1
2.5 1
0.7
x1.5 dx
1.5 0.5 1 2.5 0.7
Using Excel
1 0.7 0.59
2.5
0.590 = 1 - BETADIST(0.7,2.5,1,0,1)
Example 4-28
Beta: alpha=2.5, beta=1
2.5
2.0 0.590
1.5
Density
1.0
0.5
0.0
0 0.7 1
X
1 2.0
Mode
2 1.5
Density
for 0 and 0. 1.0
0.5
0.0
0.0 0.2 0.4 0.6 0.8 1.0
X
Chapter 4 Summary 87
© John Wiley & Sons, Inc. Applied Statistics and Probability for Engineers, by Montgomery and Runger.