Ch.3 - Ch.4 - Ch.5 Part II
Ch.3 - Ch.4 - Ch.5 Part II
Textbook:
Applied Statistics and Probability for Engineers, by
D. Montgomery and G. Runger, 6th edition, Wiley.
Email: m.jreissat@ju.edu.jo
Office: IE
CHAPTER THREE & FOUR
3 1 3 9
P ( NDN ) = P ( N ) P ( D ) P ( N ) = =
4 4 4 64
Bernoulli Process
The probabilities for the other possible outcomes can also be
calculated to result in the probability distribution of X.
9
P( X = 2) = f (2) = b(2 : 3, ) =
1
4
64
Binomial Distribution
◼ Binomial Distribution| A Bernoulli trial can result in a success with probability p
and a failure with probability q = 1 – p. Then the probability distribution of the
binomial random variable X, the number of successes in n independent trials, is
b( x : n, p) = n C x p x q n − x , x = 0,1, 2,..., n
◼ The mean and variance of the binomial distribution b (x; n, p) are
= np 2 = npq
3 2 2
p= 3 3 1 = 54
4 b 2 : 4, = 4 C2
4 4 4 256
Binomial and Multinomial Distributions
The probability that a patient recovers from a rare blood disease is
0.4. If 15 people are known to have contracted this disease, what is
the probability that (a) at least 10 survive, (b) from 3 to 8 survive,
and (c) exactly 5 survive?
Let X be the number of people that survive. Table A.1 gives help.
9
(a) P ( X 10) = 1 − P( X 10) = 1 − b( x;15, 0.4) = 1 − 0.9662 = 0.0338
x =0
15
Can you calculate
manually? ? b( x;15, 0.4) =
x =10
8 8 2
(b) P(3 X 8) = b( x;15, 0.4) = b( x;15, 0.4) − b( x;15, 0.4)
x =3 x =0 x =0
(b) P( X 3) = 1 − P( X 3)
Try also to use Table A.1
3
= 1 − b( x;10, 0.3) to find this value ?
x =0
n!
f ( x1 , x2 ,..., xk ; p1 , p2 ,..., pk , n) = p1x1 p2x2 ... pkxk
x1 ! x2 !...xk !
with
k k
x i = n and p
i =1
i =1
i =1
Binomial and Multinomial Distributions
The complexity of arrivals and departures into an airport are such that
computer simulation is often used to model the “ideal” conditions.
For a certain airport containing three runways it is known that in the
ideal setting the probabilities that the individual runways are accessed
by a randomly arriving commercial jet are 2/9, 1/6, and 11/18 for
runway1, runway2, and runway3, respectively.
If there are 6 randomly arriving airplanes, what is the probability that
2 airplanes will do the landing in runway1, 1 in runway2, and 3 in
runway3?
2 1 3
2 1 11 6! 2 1 11
f 2,1,3; , , , 6 = = 0.1127
9 6 18 2!1!3! 9 6 18
Cx N −k Cn − x
h( x; N , n, k ) =k
, x = 0,1, 2,..., n
N Cn
C3 4000 C7
h(3;5000,10,1000) = 1000
= 0.2015 Exact
hypergeometric
5000 C10 probability
1
p ,
5
3 10 −3
1 1 4 Approximation using
b 3;10, = 10 C3 = 0.2013 binomial distribution
5 5 5
Negative Binomial Distribution
◼ Consider an experiment where the properties are the same as those listed for
a binomial experiment, with the exception that the trials will be repeated
until a fixed number of successes occur.
◼ We are interested in the probability that the kth success occurs on the xth trial.
◼ This kind of experiment is called negative binomial experiment.
k x −k
b* ( x; k , p) = C
x −1 k −1 p q , x = k , k + 1, k + 2,...
Negative Binomial Distribution
In an NBA (National Basketball Association) championship series, the
team which wins four games out of seven will be the winner. Suppose
that team A has probability 0.55 of winning over the team B and both
teams A and B face each other in the championship games.
(a) What is the probability that team A will win the series in six games?
(b) What is the probability that team A will win the series?
6−4
(a) b* (6; 4, 0.55) = C
6 −1 4 −1 (0.55) 4
(0.45) = 0.1853
◼ The mean and variance of the Poisson distribution p(x;λt) both have
the value λt.
Poisson Distribution and Poisson Process
During a laboratory experiment the average number of radioactive
particles passing through a counter in 1 millisecond is 4. What is the
probability that 6 particles enter the counter in a given millisecond?
x = 6, t = 4
e−4 (4)6
p(6; 4) = = 0.1042
6!
Ten is the average number of oil tankers arriving each day at a certain
port city. The facilities at the port can handle at most 15 tankers per day.
What is the probability that on a given day tankers have to be turned
away?
15 Table A.2 gives help
P( X 15) = 1 − P( X 15) = 1 − p( x;10)
x =0
x = 1, t = (0.005)(400) = 2
e−2 (2)1 Considered as
(a) p(1; 2) = = 0.2707
1! Poisson process
3 3
e−2 (2) x
(b) P( X 3) = p( x; 2) = = 0.8571
x =0 x =0 x!
3
P( X 3) = b( x; 400, 0.005) = 0.8571
x =0
Poisson Distribution and Poisson Process
In a manufacturing process where glass products are produced, defects
or bubbles occur, occasionally rendering the piece undesirable for
marketing. It is known that, on average, 1 in every 1000 of these items
produced has one or more bubbles. What is the probability that a random
sample of 8000 will yield fewer than 7 items possessing bubbles?
= (8000)(0.001) = 8
6 6
P( X 7) = b( x;8000, 0.001) p( x;8) = 0.3134
x =0 x =0
Actually a Solved by
problem for approximation
Binomial using Poisson
Distribution Distribution
Recap…
(With a constant probability of success)
Some Continuous Probability Distributions
Continuous Uniform Distribution
◼ |Uniform Distribution| The density function of the continuous uniform
random variable X on the interval [A, B] is
1
B − A , A x B
f ( x; A, B ) =
0, elsewhere
◼ The mean and variance of the uniform distribution are
A+ B ( B − A)2
= and =
2
2 12
1
4 , 0 x 4
(a) f ( x) =
0, elsewhere
1
4
1
(b) P X 3 = dx =
3
4 4
Normal Distribution
◼ Normal distribution is the most important continuous probability
distribution in the entire field of statistics.
◼ Its graph, called the normal curve, is the bell-shaped curve which
describes approximately many phenomena that occur in nature,
industry, and research.
◼ The normal distribution is often referred to as the Gaussian
distribution, in honor of Karl Friedrich Gauss, who also derived its
equation from a study of errors in repeated measurements of the same
quantity.
◼ The density function of the normal random variable X, with mean μ and
variance σ 2, is
1 x−
2
1 −
n( x; , ) = e 2
, − x
2
❖Concave downward
❖Point of inflection
σ σ
❖Concave upward
❖Approaches zero
asymptotically
x
μ
❖Total area under the curve and ❖Symmetry about a vertical
above the horizontal axis is axis through the mean μ
equal to 1
Area Under the Normal Curve
◼ The area under the curve bounded by two ordinates x = x1 and
x = x2 equals the probability that the random variable X assumes
a value between x = x1 and x = x2.
1 x−
2
x2 x2
1 −
P ( x1 X x2 ) = n( x; , )dx = e
2
dx
x1 2 x1
Area Under the Normal Curve
◼ As seen previously, the normal curve is dependent on the mean μ and
the standard deviation σ of the distribution under investigation.
◼ The same interval of a random variable can deliver different probability
if μ or σ are different.
X −
Z=
1 x−
2
x2
1 −
e
2
P ( x1 X x2 ) = dx
2 x1
z2 z2
1 −
=
2
e
z1
2
dz
z2
= n( z;0,1)dz = P( z1 Z z2 )
z1
Area Under the Normal Curve
◼ The distribution of a normal random variable with mean 0 and variance
1 is called a standard normal distribution.
Table A.3 Normal Probability Table
Interpolation
◼ Interpolation is a method of constructing new data points within the
range of a discrete set of known data points.
◼ Examine the following graph. Two data points are known, which are
(a,f (a)) and (b,f (b)).
◼ If a value of c is given, with a < c < b, then the value of f (c) can be
estimated.
◼ If a value of f (c) is given, with f (a) < f (c) < f (b), then the value of c can
be estimated.
c−a
f (c ) = f ( a ) + ( f (b) − f (a) )
f (b)
b−a
f (c ) ?
f (a) f (c ) − f ( a )
c =a+ (b − a )
f (b) − f (a)
a c? b
Interpolation
(a) P( Z k ) = 1 − P( Z k )
P( Z k ) = 1 − P( Z k )
= 1 − 0.3015 = 0.6985
k = 0.52
x1 − 45 − 50
z1 = = = −0.5
10
x2 − 62 − 50
z2 = = = 1.2
10
P ( X 362) = P ( Z 1.24)
= 1 − P( Z 1.24)
= 1 − 0.8925
= 0.1075
Area Under the Normal Curve
Given a normal distribution with μ = 40 and σ = 6, find the value of x that
has (a) 45% of the area to the left, and (b) 14% of the area to the right.
0.45 − 0.4483
(a) P( Z z ) = 0.45 z = −0.13 + ( −0.12 − (−0.13) ) = −0.1256
0.4522 − 0.4483
x = + z = 40 + (−0.1256)(6) = 39.2464
2 2 5 4. 0
5 4. 0
3 8 4 4. 0
3 1. 0 − ? 2 1. 0 −
Area Under the Normal Curve
Given a normal distribution with μ = 40 and σ = 6, find the value of x that
has (a) 45% of the area to the left, and (b) 14% of the area to the right.
(b) P( z Z ) = 0.14 = 1 − P( Z z )
P( Z z ) = 1 − 0.14 = 0.86
z = 1.08
x = + z = 40 + (1.08)(6) = 46.48
Applications of the Normal Distribution
A certain type of storage battery lasts, on average, 3.0 years, with a
standard deviation of 0.5 year. Assuming that the battery lives are
normally distributed, find the probability that a given battery will last less
than 2.3 years.
= 8.08%
Applications of the Normal Distribution
In an industrial process the diameter of a ball bearing is an important
component part. The buyer sets specifications on the diameter to be 3.0 ±
0.01 cm. All parts falling outside these specifications will be rejected.
It is known that in the process the diameter of a ball bearing has a normal
distribution with mean 3.0 and standard deviation 0.005.
On the average, how many manufactured ball bearings will be scrapped?
P (2.99 X 3.01) = P( −2 Z 2)
= P( Z 2) − P( Z −2)
= 0.9772 − 0.0228
= 0.9544
x1 −
2.99 − 3.0 95.44% accepted
z1 = = = −2
0.005
4.56% rejected
x − 3.01 − 3.0
z2 = 2 = = +2
0.005
Applications of the Normal Distribution
A certain machine makes electrical resistors having a mean resistance of
40 Ω and a standard deviation of 2 Ω. It is assumed that the resistance
follows a normal distribution.
What percentage of resistors will have a resistance exceeding 43 Ω if:
(a) the resistance can be measured to any degree of accuracy.
(b) the resistance can be measured to the nearest ohm only.
43 − 40
(a) z= = 1.5
2
P( X 43) = P( Z 1.5) = 1 − P ( Z 1.5) = 1 − 0.9332 = 0.0668 = 6.68%
43.5 − 40
(b) z= = 1.75
2
P( X 43.5) = P( Z 1.75) = 1 − P( Z 1.75) = 1 − 0.9599 = 0.0401 = 4.01%
P( Z z ) = 0.12
P( Z z ) = 1 − P( Z z ) = 1 − 0.12 = 0.88
z = 1.175
x = + z = 74 + (1.175)(7) = 82.225 Lowest possible A is 83
Highest possible B is 82
Normal Approximation to the Binomial
◼ The probabilities associated with binomial experiments are readily
obtainable from the formula b(x;n, p) of the binomial distribution or
from the table when n is small.
◼ For large n, making the distribution table is not practical anymore.
◼ Nevertheless, the binomial distribution can be nicely approximated by
the normal distribution under certain circumstances.
Normal Approximation to the Binomial
◼ If X is a binomial random variable with mean μ = np and variance σ2 =
npq, then the limiting form of the distribution of
X − np
Z=
npq
as n → ∞, is the standard normal distribution n(z;0, 1).
P( X = 4) P(3.5 X 4.5)
P(−1.32 Z −0.79)
0.1214
Normal approximation of
9
b(4;15, 0.4) and b( x;15, 0.4)
x =7
9
P(7 X 9) = b( x;15, 0.4)
x =7
= 0.3564
= np = (15)(0.4) = 6
P(7 X 9) = P(6.5 X 9.5)
= npq = (15)(0.4)(0.6) = 1.897
P (0.26 Z 1.85)
0.3652
Normal Approximation to the Binomial
◼ The degree of accuracy, that is how well the normal curve fits the
binomial histogram, will increase as n increases.
◼ If the value of n is small and p is not very close to 1/2, normal curve will
not fit the histogram well, as shown below.
29.5 − 40
P( X 30) P ( X 29.5) z= = −2.143
4.899
P( Z −2.143)
0.01608
After interpolation
1.608%
Can you calculate the
exact solution?
Normal Approximation to the Binomial
A multiple-choice quiz has 200 questions each with 4 possible answers of
which only 1 is the correct answer. What is the probability that sheer
guess-work yields from 25 to 30 correct answers for 80 of the 200
problems about which the student has no knowledge?
1
n = 80, p = = np = (80)( 14 ) = 20
4
= npq = (80)( 14 )( 34 ) = 3.873
24.5 − 20 30.5 − 20
z1 = = 1.162, z2 = = 2.711
30 3.873 3.873
P(25 X 30) = b( x;80,
x = 25
1
4 )
P (24.5 X 30.5)
P(1.162 Z 2.711)
P( Z 2.711) − P( Z 1.162)
0.9966 − 0.8774
0.1192
Normal Approximation to the Binomial
PU Physics entrance exam consists of 30 multiple-choice questions each
with 4 possible answers of which only 1 is the correct answer. What is
the probability that a prospective students will obtain scholarship by
correctly answering at least 80% of the questions just by guessing?
1
n = 30, p = = np = (30)( 14 ) = 7.5
4
= npq = (30)( 14 )( 43 ) = 2.372
30
P( X 24) = b( x;30,
x = 24
1
4 ) z=
23.5 − 7.5
= 6.745
2.372
1 − P( X 23.5)
1 − P( Z 6.745)
0
It is practically impossible to get
scholarship just by pure luck in the
entrance exam
Gamma and Exponential Distributions
◼ There are still numerous situations that the normal distribution cannot
cover. For such situations, different types of density functions are
required.
◼ Two such density functions are the gamma and exponential
distributions.
◼ Both distributions find applications in queuing theory and reliability
problems.
1 −1 − x
( ) x e , x0
f ( x) =
0, elsewhere
where α > 0 and β > 0.
5
1
P(T 8) = e−t 5 dt P( X 2) = b( x;5, 0.2)
58 x=2
1
1
P( X 1) = 25 xe−5 x dx = 1 − e−5(1) (1 + 5) = 0.96
0
Applications of Gamma and Exponential Distributions
Based on extensive testing, it is determined that the average of time Y
before a washing machine requires a major repair is 4 years. This time is
known to be able to be modeled nicely using exponential function. The
machine is considered a bargain if it is unlikely to require a major repair
before the sixth year.
(a) Determine the probability that it can survive without major repair until
more than 6 years.
(b) What is the probability that a major repair occurs in the first year?
1
(a) P(Y 6) = e−t 4 dt = e −6 4 0.223 Only 22.3% survives until more
46 than 6 years without major
reparation
1
(b) P(Y 1) = 1 − e−t 4 dt = 1 − e −1 4 0.221 22.1% will need major reparation
41 after used for 1 year
1
1
= e−t 4 dt
40
Chi-Squared Distribution
◼ Another very important special case of the gamma distribution is
obtained by letting α = v/2 and β = 2, where v is a positive integer.
◼ The result is called the chi-squared distribution, with a single
parameter v called the degrees of freedom.
P( X 8) = 1 − P( X 8)
ln(8) − 3.2
P( X 8) = F = F (−1.12) = 0.1314
1
F denotes the cumulative distribution function of the
standard normal distribution
a. k. a. the area under the normal curve