Chapter 7. Statistical Intervals For A Single Sample
Chapter 7. Statistical Intervals For A Single Sample
Chapter 7. Statistical Intervals For A Single Sample
Sample
Hanoi, 2022
Suppose that X1, X2, ..., Xn is a random sample from a normal distribution
with unknown mean µ and known variance σ2 . Then, the sample mean X̄
is normally distributed with mean µ and variance σ2/n. Therefore,
X̄ − µ
Z= √
σ/ n
X̄ − µ
P (−zα/2 ≤ √ ≤ zα/2 ) = 1 − α
σ/ n
This results in
σ σ
P (X̄ − zα/2 √ ≤ µ ≤ X̄ + zα/2 √ ) = 1 − α
n n
Known
Known
Example 1
Known
Example 1
Known
Example 2
Known
Example 2
Known
Note
Variance Known
Example 3
Variance Known
Example 3
Example 4
The diameter of holes for a cable harness is known to have a normal distri-
bution with σ = 0.01 inch. A random sample of size 15 yields an average
diameter of 1.5 inch. Find a 98% upper-confidence bound for the popula-
tion mean. Let z0.02 = 2.05.
Example 4
The diameter of holes for a cable harness is known to have a normal distri-
bution with σ = 0.01 inch. A random sample of size 15 yields an average
diameter of 1.5 inch. Find a 98% upper-confidence bound for the popula-
tion mean. Let z0.02 = 2.05.
Answer: We known σ = 0.01, x̄ = 1.5, α = 0.02, n = 15. Then a√98% upper-
confidence bound for µ is: µ ≤ x̄+zα σ/√n = 1.5+(2.05×0.01)/ 15 = 1.495
14 / 91 Chapter 7: Statistical Intervals for a Single Sample
1.4 Large-Sample Confidence Interval for µ
Example 5
Example 5
where, Γ(s) = R e−t ts−1 dt, s > 0, k is the number of degrees of freedom.
∞
The mean and variance of the t distribution are zero and k/(k − 2) (for
0
t Distribution
Let tα,k be the value of the random variable T with k degrees of freedom
above which we find an area (or probability) α. Then, t1−α,k = −tα,k .
Appendix Table V provides percentage points of the t distribution.
To illustrate the use of the table, note that the t-value with 10 degrees of
freedom having an area of 0.05 to the right is t0.05,10 = 1.812. That is,
P (T > t0.05,10 ) = P (T > 1.812) = 0.05
X̄−µ
We know that the distribution of T = S/ √ is t with n − 1 degrees
n
of freedom. Letting tα/2,n−1 be the upper 100α/2 percentage point
of the t distribution with n − 1 degrees of freedom, we may write
Hence,
S S
P (X̄ − tα/2,n−1 √ ≤ µ ≤ X̄ − tα/2,n−1 √ ) = 1 − α
n n
If x̄ and s are the mean and standard deviation of a random sample from a
normal distribution with unknown variance σ2, a 100(1 − α)% confidence
interval on µ is given by
s s
x̄ − tα/2,n−1 √ ≤ µ ≤ x̄ + tα/2,n−1 √
n n
Example 6
Example 6
Population Proportion
A random sample of size n has been taken from a large (possibly infinite)
population and that X(≤ n) observations in this sample belong to a class
of interest. Then P̂ = Xn is a point estimator of the proportion of the
population p that belongs to this class. Note that n and p are the parameters
of a binomial distribution. When n large, we known that
X − np P̂ − p
Z=p =p
np(1 − p) p(1 − p)/n
Population Proportion
so
p(1 − p)/n) ∼
p p
P (P̂ − zα/2 p(1 − p)/n ≤ p ≤ P̂ + zα/2 =1−α
where zα/2 is the upper α/2 percentage point of the standard normal dis-
tribution.
64 / 91 Chapter 7: Statistical Intervals for a Single Sample
3. Large-Sample Confidence Interval for a
Population Proportion
Population Proportion
Example 7
Population Proportion
Example 7
Population Proportion
Example 7
Population Proportion
Example 8
A local men's clothing store is being sold. The buyers are trying to estimate
the percentage of items that are outdated. They will randomly sample
among its 9800 items in order to determine the proportion of merchandise
that is outdated. The current owners have never determined their outdated
percentage and can not help the buyers. Approximately how large a sample
do the buyers need in order to insure that they are 96% confident that the
error is within 2%? Let z0.02 = 2.05.
Population Proportion
Example 8
A local men's clothing store is being sold. The buyers are trying to estimate
the percentage of items that are outdated. They will randomly sample
among its 9800 items in order to determine the proportion of merchandise
that is outdated. The current owners have never determined their outdated
percentage and can not help the buyers. Approximately how large a sample
do the buyers need in order to insure that they are 96% confident that the
error is within 2%? Let z0.02 = 2.05.
Answer: E = 0.02, α = 0.04. The required sample size is
2.05 2
n=( ) × 0.25 ≈ [2626.56] = 2627
0.02
Population Proportion
Proportion
The approximate 100(1 − α)% lower and upper confidence bounds are
p̂ − zα p̂(1 − p̂)/n ≤ p and p ≤ p̂ + zα p̂(1 − p̂)/n
p p