Ali Karimnezhad: Version September 30, 2015
Ali Karimnezhad: Version September 30, 2015
Ali Karimnezhad: Version September 30, 2015
Ali Karimnezhad
Ali Karimnezhad
MAT2377 Probability and Statistics for Engineers Chapter 3
Comments
• There may be some typos. The final version of the slides will be posted
after the chapter is finished.
Ali Karimnezhad 1
MAT2377 Probability and Statistics for Engineers Chapter 3
Bernoulli Distribution
A Bernoulli trial is a random experiment with two possible outcomes, success
and failure.
One obvious application deals with the testing of items as they come off an
assembly line. Each trial may indicate a defective or a nondefective item.
= px (1 − p)1−x, x = 0, 1.
Ali Karimnezhad 2
MAT2377 Probability and Statistics for Engineers Chapter 3
Binomial Distribution
Ali Karimnezhad 3
MAT2377 Probability and Statistics for Engineers Chapter 3
Examples:
Ali Karimnezhad 4
MAT2377 Probability and Statistics for Engineers Chapter 3
• Expecation;
n
X n x
E(X) = x p (1 − p)n−x = · · · = np.
x=0
x
• Variance
n
X n x
Var(X) = E (X − np)2 = (x−np)2 p (1−p)n−x = np(1−p) .
x=0
x
Ali Karimnezhad 5
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
Suppose that each sample of water has 10% of being polluted. If 12 samples
are selected independently, then it is reasonable to model the number X
polluted sample as in the sample as B(12, 0.1). Find
(b) P (X = 3).
Ali Karimnezhad 6
MAT2377 Probability and Statistics for Engineers Chapter 3
Solution:
12
(b) P (X = 3) = 3 (0.1)3(0.9)9 ≈ 0.0852.
(c) P (X ≤ 3) = P (X = 0) + P (X = 1) + P (X = 2) + P (X = 3) = · · · .
However, P (X ≤ 3) for X ∼ B(12, 0.1) is tabulated in Appendix A.1 of
the Reference Book: ≈ 0.9744.
Ali Karimnezhad 7
MAT2377 Probability and Statistics for Engineers Chapter 3
Ali Karimnezhad 8
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
According to a chemical engineering progress study, approximately 30% of
all pipework failures in chemical plants are caused by operator error.
(a) What is the probability that out of the next 13 pipework failures at least
10 are due to operator error?
(b) What is the probability that no more than 4 out of 13 such failures are
due to operator error?
Ali Karimnezhad 9
MAT2377 Probability and Statistics for Engineers Chapter 3
Multinomial Distribution
If a given trial can result in the k outcomes E1, E2, . . . , Ek with probabilities
p1, p2, . . . pk , then the probability distribution of the random variables
X1, X2, . . . , Xk , representing the number of occurrences for E1, E2, . . . , Ek
in n independent trials, is
n x
P (X1 = x1, X2 = x2, . . . , Xk = xk ) = px1 1 px2 2 . . . pkk ,
x1, x2, . . . , xk
where x1 + x2 + . . . + xk = n and p1 + p2 + . . . + pk = 1.
Ali Karimnezhad 10
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
In a certain town, 40% of the eligible voters prefer candidate A, 10% prefer
candidate B, and the remaining 50% have no preference. You randomly
sample 10 eligible voters. What is the probability that 4 will prefer candidate
A, 1 will prefer candidate B, and the remaining 5 will have no preference?
Ali Karimnezhad 11
MAT2377 Probability and Statistics for Engineers Chapter 3
Hypergeometric Distribution
Example-Motivation:
• Suppose that an urn contains 8 red balls and 4 green balls. We draw 2
balls from the urn without replacement. If we assume that at each draw
each ball in the urn is equally likely to be chosen, what is the probability
that both balls are Red?
Define R1 = {the first ball is Red} and R2 = {the second ball is Red}:
8
2 8×7
P (R1 ∩ R2) = 12 = . . . = .
2
12 × 11
Ali Karimnezhad 12
MAT2377 Probability and Statistics for Engineers Chapter 3
Hypergeometric Distribution
A Hypergeometric experiment possesses the following two properties:
Ali Karimnezhad 13
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
Lots of 40 components each are deemed unacceptable if they contain 3 or
more defectives. The procedure for sampling a lot is to select 5 components
at random and to reject the lot if a defective is found.
What is the probability that exactly 1 defective is found in the sample if
there are 3 defectives in the entire lot?
3 40−3
1 5−1
P (X = 1) = 40
= 0.3011.
5
Ali Karimnezhad 14
MAT2377 Probability and Statistics for Engineers Chapter 3
If X ∼ HG(N, n, k),
• Expecation
n k n−k
X x n−x nk
E(X) = x N
= .
x=0 n
N
• Variance
nk 2 N − n nk k
Var(X) = E (X − ) = (1 − ).
N N −1 N N
Ali Karimnezhad 15
MAT2377 Probability and Statistics for Engineers Chapter 3
Geometric Distribution
Example-Motivation:
• Flip a coin repeatedly until you get a Head. Let the probability that the
coin lands Heads up be p and the probability that the coin lands Tails up
be q = 1 − p. Suppose at each flip a Head or a Tail is equally likely to
be observed.
What is probability of observing a Head (success) in the 4th flip?
Define X as number of required trails to observe a Head (success). Thus,
P (X = 4) = P ({T T T H}) = p q 3.
Ali Karimnezhad 16
MAT2377 Probability and Statistics for Engineers Chapter 3
Geometric Distribution
If X is the number of steps required until the 1st success occurs, then
X ∼ Ge(p) with the probability function
g(x; p) = P (X = x) = p q x−1, x = 1, 2, . . . .
Ali Karimnezhad 17
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
For a certain manufacturing process, it is known that, on the average, 1 in
every 100 items is defective.
What is the probability that the 5th item inspected is the first defective
item found?
Define X as number of required trails until the 1st defective item is found.
1
Then, using the Geometric distribution with p = 100 , X ∼ Ge(0.01). Thus,
Ali Karimnezhad 18
MAT2377 Probability and Statistics for Engineers Chapter 3
If X ∼ Ge(p),
• Expectation
∞
X
x−1 1
E(X) = x pq = .
x=1
p
• Variance
1 q
Var(X) = E (X − )2 = 2 .
p p
Ali Karimnezhad 19
MAT2377 Probability and Statistics for Engineers Chapter 3
Example-Motivation:
• In a game, we flip a coin repeatedly until we get two Heads (the game is
stopped when the second Head is observed). Let the probability that the
coin lands Heads up be p and the probability that the coin lands Tails up
be q = 1 − p. Suppose at each flip a Head or a Tail is equally likely to
be observed.
What is probability that the game is stopped in the 4th flip?
Define X as number of required trails to observe the second Head
(success). Thus,
4 − 1 2 4−2
P (X = 4) = P ({T T HH, HT T H, T HT H}) = 3p2 q 2 = p q .
2−1
Ali Karimnezhad 20
MAT2377 Probability and Statistics for Engineers Chapter 3
If X is the number of steps required until the kth success occurs, then
X ∼ N B(k, p) with the probability function
x − 1 k x−k
b∗(x; k, p) = P (X = x) = p q , x = k, k + 1, . . . .
k−1
Ali Karimnezhad 21
MAT2377 Probability and Statistics for Engineers Chapter 3
If X ∼ N B(k, p),
• Expecation
∞
X x − 1 k x−k k
E(X) = x p q = .
k−1 p
x=k
• Variance
k k
Var(X) = E (X − )2 = 2 .
p p
Ali Karimnezhad 22
MAT2377 Probability and Statistics for Engineers Chapter 3
Poisson Distribution-Concept
Experiments yielding numerical values of a random variable X, the number
of outcomes occurring during a given time interval or in a specified region,
are called Poisson experiments.
• The given time interval may be of any length, such as a minute, a day, a
week, a month, or even a year. For example, a Poisson experiment can
generate observations for the random variable X representing
– the number of telephone calls received per hour by an office,
– the number of games postponed due to rain during a baseball season.
Ali Karimnezhad 23
MAT2377 Probability and Statistics for Engineers Chapter 3
Poisson Process
A Poisson experiment is derived from the Poisson process and possesses the
following properties.
2. The probability that a single outcome will occur during a very short time
interval or in a small region is proportional to the length of the time
interval or the size of the region and does not depend on the number of
outcomes occurring outside this time interval or region.
3. The probability that more than one outcome will occur in such a short
time interval or fall in such a small region is negligible.
Ali Karimnezhad 24
MAT2377 Probability and Statistics for Engineers Chapter 3
Poisson Distribution
• The number X of outcomes occurring during a Poisson experiment is
called a Poisson random variable, and its probability distribution is called
the Poisson distribution.
e−λt(λt)x
p(x; λt) = P (X = x) = , x = 0, 1, . . .
x!
where λ is the average number of outcomes per unit time, distance, area,
or volume and e = 2.71828. We simply write X ∼ P (λt).
Ali Karimnezhad 25
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
Births in a hospital occur randomly at an average rate of 2 births per hour.
(a) What is the probability of observing 4 births in a given hour at the
hospital?
Let X be number of births in a given hour. Then, X ∼ P (λt) with
λ = 2 and t = 1:
e−2 24
p(4; 2) = P (X = 4) = .
4!
(b) What would be the probability of observing 4 births in a given day at the
hospital?
Let Y be number of births in a given day. Then, Y ∼ P (λt) with λ = 2
and t = 24:
e−2×24 (2 × 24)4
p(4; 2 × 24) = P (Y = 4) = .
4!
Ali Karimnezhad 26
MAT2377 Probability and Statistics for Engineers Chapter 3
Ali Karimnezhad 27
MAT2377 Probability and Statistics for Engineers Chapter 3
If X ∼ P (λt),
• Expecation
∞
X e−λt(λt)x
E(X) = x = λt.
x=0
x!
• Variance
2
Var(X) = E (X − λt) = λt.
Ali Karimnezhad 28
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
Suppose that a large conference room at a certain company can be reserved
for no more than 4 hours. Both long and short conferences occur quite
often. In fact, it can be assumed that the length X of a conference has a
uniform distribution on the interval [0, 4].
(a) What is the probability density function?
(b) What is the probability that any given conference lasts at least 3 hours?
Ali Karimnezhad 30
MAT2377 Probability and Statistics for Engineers Chapter 3
Normal Distribution
• The most important continuous probability distribution in the entire field
of statistics is the normal distribution.
Ali Karimnezhad 31
MAT2377 Probability and Statistics for Engineers Chapter 3
Normal Distribution
• The density of the normal random variable X, with mean µ and variance
σ 2, is
1 − 1 2 (x−µ)2
n(x; µ, σ) = f (x) = √ e 2σ , µ ∈ <, σ > 0, x ∈ <,
2πσ 2
Ali Karimnezhad 32
MAT2377 Probability and Statistics for Engineers Chapter 3
• The mode, which is the point on the horizontal axis where the curve is
a maximum, occurs at x = µ.
• The total area under the curve and above the horizontal axis is equal to
1.
Ali Karimnezhad 33
MAT2377 Probability and Statistics for Engineers Chapter 3
If X ∼ N (µ, σ 2),
• Expecation Z +∞
E(X) = xf (x)dx = µ.
−∞
• Variance
Var(X) = E (X − µ) = σ 2.
2
Ali Karimnezhad 34
MAT2377 Probability and Statistics for Engineers Chapter 3
Z x2 Z x2
1 − 1 2 (x−µ)2
P (x1 < X < x2) = f (x)dx = √ e 2σ dx
x1 x1 2πσ 2
Ali Karimnezhad 35
MAT2377 Probability and Statistics for Engineers Chapter 3
X−µ
• If X ∼ N (µ, σ 2), then Z = σ has a standard Normal distribution, or
briefly Z ∼ N (0, 1).
1 − 1 z2
n(z; 0, 1) = f (z) = φ(z) = √ e 2 , z ∈ <,
2π
Ali Karimnezhad 36
MAT2377 Probability and Statistics for Engineers Chapter 3
x1 − µ x2 − µ
P (x1 < X < x2) = P <Z<
σ σ
= P (z1 < Z < z2)
= Φ(z2) − Φ(z1)
Ali Karimnezhad 37
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
Given a standard normal distribution, find the area under the curve that lies
to the right of z = 0.84.
Ali Karimnezhad 38
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
Given a standard normal distribution, find the value of k such that
P (Z > k) = 0.3015.
Ali Karimnezhad 39
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
An electrical firm manufactures light bulbs that have a life, before burn-out,
that is normally distributed with mean equal to 300 hours and a standard
deviation of 50 hours. Find the probability that a bulb burns at least 342
hours.
Ali Karimnezhad 40
MAT2377 Probability and Statistics for Engineers Chapter 3
X − np
Z= √ ,
npq
Ali Karimnezhad 41
MAT2377 Probability and Statistics for Engineers Chapter 3
• Direct computation:
P (X = 4) = 0.1268
• Approximate computation:
Ali Karimnezhad 42
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
The probability that a patient recovers from a rare blood disease is 0.4. If
100 people are known to have contracted this disease, what is the probability
that fewer than 30 survive?
!
29.5 − 100(0.4)
P (X < 30) = P (X ≤ 29) = P Z<p
100(0.4)(0.6)
Ali Karimnezhad 43
MAT2377 Probability and Statistics for Engineers Chapter 3
Gamma Function
Ali Karimnezhad 44
MAT2377 Probability and Statistics for Engineers Chapter 3
Ali Karimnezhad 45
MAT2377 Probability and Statistics for Engineers Chapter 3
Ali Karimnezhad 46
MAT2377 Probability and Statistics for Engineers Chapter 3
2
Var(X) = E (X − αβ) = αβ 2.
• Variance
If X ∼ Exp(β),
Z +∞
• Expecation E(X) = xf (x)dx = β.
0
• Variance Var(X) = E (X − β) = β 2.
2
Ali Karimnezhad 47
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
Suppose that a system contains a certain type of component whose time,
in years, to failure is given by T . The random variable T is modeled nicely
by the exponential distribution with mean time to failure 5.
(a) What is the probability that a given components is still functioning at
the end of 8 years?
Ali Karimnezhad 48
MAT2377 Probability and Statistics for Engineers Chapter 3
Example:
Suppose that the amount of time one spends in a bank is exponentially
distributed with mean 10 minutes.
• What is the probability that a customer will spend more than 15 minutes
in the bank?
• What is the probability that a customer will spend more than 15 minutes
in the bank given that he is still in the bank after 10 minutes?
Ali Karimnezhad 49
MAT2377 Probability and Statistics for Engineers Chapter 3
Chi-Squared Distribution
Ali Karimnezhad 50