Chap3 Stat 2
Chap3 Stat 2
e−λ λx
p(x) = , x = 0, 1, 2, . . .
x!
1
Example 3.14 Let X be a Poisson random variable with λ = . Find P (X = 0) and
2
P (X ≥ 3).
Solution.
....................................................................................
....................................................................................
....................................................................................
Example 3.15 Customers of an internet service provider initiate new accounts at the av-
erage rate of 10 accounts per day.
a. What is the probability that more than 8 new accounts will be initiated today?
b. What is the probability that more than 16 accounts will be initiated within 2 days?
Solution. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
Definition 3.16 Assume that a set consists of N elements. Each element can be character-
ized as a success or a failure, and there are M successes in the set. A subset of k elements
is selected without replacement. The random variable X is the number of successes in the
subset. Then the probability distribution of X is called the hypergeometric distribution.
• X ∼ H(k; M ; N )
• Probability mass distribution:
x k−x
CM CN −M
p(x) = k
, max{0, k − N + M } ≤ x ≤ min{k, M }.
CN
M N −k M M
• E(X) = k and var(X) = k 1−
N N −1 N N
Using Excel to Compute Hypergeometric Probabilities
• P (X = x) : = HYPGEOM.DIST(x,k,M,N,FALSE)
• P (X ≤ x) : = HYPGEOM.DIST(x,k,M,N,TRUE)
Example 3.17 An IT company has 10 network routers in storage. Three of the routers are
faulty. Suppose the company randomly selects 4 routers for a new setup.
a. What is the probability that exactly two routers will be functional?
b. What is the probability that at least three routers will be functional?
....................................................................................
....................................................................................
....................................................................................
....................................................................................
3.2 Some important continuous distributions
Definition 3.18 A random variable X is said to have a normal probability distribution
with parameters µ and σ 2 , if it has a probability density function given by
1 (x−µ)2
− 2σ
f (x) = √ e
σ 2π
• Denote X ∼ N (µ, σ 2 )
• E(X) = µ and var(X) = σ 2
f (x)
• Johann Carl Friedrich Gauss (1777 - 1840)
• Source: https://en.wikipedia.org
µ x
• If µ = 0 and σ = 1, we call it a standard normal random variable.
X −µ
• If X ∼ N (µ, σ 2 ), then Z = ∼ N (0, 1)
σ
• Let X ∼ N (0, 1), then Φ(z) = P (X ≤ z) is given in Table A4 (Φ(z) is the
probability distribution function of Z)
Using Excel to standard normal probabilities: X ∼ N (µ, σ 2 )
1. Find P (X ≤ a) : =NORM.DIST(a,µ, σ,TRUE)
2. Find a such that P (X ≤ a) = t : =NORM.INV(t, µ, σ)
Example 3.19
a. Let X ∼ N (0, 1). Find P (X ≥ 1.13)
b. Let X ∼ N (0, 1). Find a such that P (X ≤ a) = 0.004
Solution. a. Using the normal table A4,
P (X ≥ 1.13) = 1 − P (X < 1.13) = 1 − 0.8708 = 0.1292
b. Using the normal table A4, a = −2.65
X −µ
Assume that X ∼ N (µ; σ 2 ) and let Z = . Then Z ∼ N (0; 1)
σ
Example 3.20 Assume that X is a random variable and X ∼ N (3, 16).
a. Find P (X ≥ 5).
b. Find P (2 ≤ X ≤ 5).
c. Find a such that P (X ≤ a) = 0.8944.
d. Find a such that P (X ≥ a) = 0.1.
e. Find a such that P (|X − 3| ≤ a) = 0.9544.
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
Example 3.21 The scores of an examination are assumed to be normally distributed with
µ = 75 and σ 2 = 64.
a. What is the probability that a student score chosen at random will be greater than
85?
b. A professor has decided that any student who scores below the 10th percentile must
retake the exam. What is the score that would require a student to retake the exam?
Solution. Let X be a score of the exam. Then, X ∼ N (75, 64).
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
Definition 3.22 A random variable X is said to have an exponential distribution with
parameter λ > 0 if the probability density function of X is given by
(
λe−λx , x ≥ 0
f (x) = .
0, x<0
• Denote X ∼ Exp(λ)
1 1
• E(X) = and var(X) = 2 .
λ λ
Using Excel
• Find P (X ≤ x) : = EXPON.DIST(x;λ,TRUE)
Example 3.23 Let X be the time (years) of use of a type of laptop. Suppose that X has
an exponential distribution and E(X) = 15. Choose a laptop at random.
a. Calculate the probability that the laptop will be used for less than 6 years.
b. Calculate the probability that the laptop will be used for more than 18 years.
c. Calculate the variance and standard deviation of X.
Solution. We have X ∼ Exp(1/15). Then the density function of X is given by
( 1 x
1 − 15
15
e , x≥0
f (x) = .
0, x<0
Z 6 Z 6
1 − 151 x
a. P (X < 6) = f (x)dx = e dx = 0, 3297.
−∞ 0 15
Z +∞ Z +∞
1 − 15
1 x
b. P (X > 18) = f (x)dx = e dx = 0, 3012.
18 18 15
1
c. σ 2 = 2 = 225 và σ = 15.
λ
Example 3.24 On the average, a certain computer part lasts ten years. The length of time
the computer part lasts is exponentially distributed.
a. What is the probability that a computer part lasts more than 7 years? (0.4966)
b. What is the probability that a computer part lasts between 9 and 11 years? (0.0737)
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
....................................................................................
Definition 3.25 Let n be a positive integer. A random variable X is said to have a chi-
square (χ2 ) distribution with n degrees of freedom if it has pdf
1
(n/2)−1 −x/2
n/2 Γ(n/2)
x e , x≥0
f (x) = 2
0, x < 0.
• Denote X ∼ χ2 (n)
• E(X) = n and var(X) = 2n.
2
X −µ
Theorem 3.26 If X ∼ N (µ, σ 2 ), then ∼ χ2 (1).
σ
Example 3.27 Let X ∼ N (7, 4). Find P (15, 364 ≤ (X − 7)2 ≤ 20, 095).
Solution. Since X ∼ N (7, 4) we have µ = 7 and σ = 2. Then
2 !
15, 364 X −7 20, 095
P (15, 364 ≤ (X − 7)2 ≤ 20, 095) = P ≤ ≤
4 2 4
2
= P 3, 841 ≤ Z ≤ 5, 024
2 2
= P Z ≤ 5, 024 − P Z ≤ 3, 841
= 0, 975 − 0, 95 = 0, 025
Definition 3.28 If Y and Z are independent random variables, Y has a chi-square distri-
bution with n degrees of freedom, and Z ∼ N (0, 1), then
Z
T = p
Y /n
is said to have a (Student) t-distribution with n degrees of freedom. We denote this by
T ∼ T (n). The probability density function of the random variable T with n degrees of
freedom is given by:
n+1 n+1
2 − 2
Γ( 2 ) t
f (t) = √ 1 + .
nπΓ( n2 ) n
The graphs of some t-distributions. The t-distribution tends to a standard normal distri-
bution as the degrees of freedom (equivalently, the sample size n) tend to infinity.
0.4
0.4
d.f.=10 Stu(10)
d.f.=5 Stu(30)
d.f.=2 N(0,1)
0.3
0.3
d.f.=1
dt(x, 10)
dt(x, 10)
0.2
0.2
0.1
0.1
0.0
0.0
−6 −4 −2 0 2 4 6 −6 −4 −2 0 2 4 6
the standard normal distribution provides a good approximation to the t-distribution for
sample sizes of 30 or more.
In t-table, we can find tα , n such that
P (T > tα,n ) = α.
Example 3.29 Let T be a random variable. Assume that T has t-distribution with 9 degree
of freedom and α = 0, 01.