HCMUTE Prob and Stat Lecture 5 - Estimate
HCMUTE Prob and Stat Lecture 5 - Estimate
Lecture 5
Point Estimate
Confidence Intervals
Confidence Intervals for a Population Mean and Proportion
One-Sided Confidence Intervals
The One-Sample t Confidence Interval
(Xi − X )2
P
2 2
σ̂ = S =
n−1
Example 1. Let X ∼ N(µ, σ 2 ). The quantities needed for computation of the 95% CI for true
average preferred height are σ = 2, n = 31, and x = 80.
Example 1. Let X ∼ N(µ, σ 2 ). The quantities needed for computation of the 95% CI for true
average preferred height are σ = 2, n = 31, and x = 80.
With 95% CI, we have α = 0.05 and zα/2 = z0.025 = 1.96. Therefore, the resulting interval is
σ 2
x ± zα/2 · √ = 80 ± 1.96 √ = (79.2959, 80.7041)
n 31
Nguyễn Ngọc Tứ Lecture 5 2023 - 2024 4 / 18
Confidence Interval - Sample Size
Example 2. Assume that the helium porosity (in percentage) of coal samples taken from any
particular seam is normally distributed with true standard deviation 0.75.
a. Compute a 95% CI for the true average porosity of a certain seam if the average porosity for
20 specimens from the seam was 4.85.
b. Compute a 98% CI for true average porosity of another seam based on 16 specimens with a
sample average porosity of 4.56.
c. How large a sample size is necessary if the width of the 95% interval is to be 0.40?
σ σ
Solution. The sample size necessary for the CI x − zα/2 · √ , x + zα/2 · √ to have a width
n n
σ σ 2
w = 2zα/2 · √ is n = 2zα/2 · .
n w
0.75 2
Therefore, we have n = 2 · 1.96 = 54.0225. Since n must be integer, a sample size of
0.4
55 is required.
Nguyễn Ngọc Tứ Lecture 5 2023 - 2024 5 / 18
Large-Sample Confidence Intervals for a Population Mean (n > 40)
Let X1 , . . . , Xn be a random sample from a population having a mean µ and standard deviation
σ. Provided that n is large, the Central Limit Theorem (CLT) implies that X has approximately
a normal distribution whatever the nature of the population distribution. Then
X −µ
Z= √ → N(0, 1)
S/ n
X 87 89 91 93 95 97 99
The number of types of machine 37 45 69 83 71 45 32
Calculate a 96% CI for true average diameter of types of machine, knowing that X has a normal
distribution.
Solution. Sample mean: x = . . . . . ., n = . . . . . ., s = . . . . . .
Let µ be true average diameter of types of machine.
With 96% CI: γ = 96% ⇒ zα/2 = . . . . . . . . .
The interval is
s
x ± zα/2 · √ = . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
n
Example 2. The weight X (kg) of pigs selected randomly on a farm is given in the following
table
X 65-85 85-95 95-105 105-115 115-135
The number of pigs 8 48 66 42 10
Calculate a 90% CI for true average weight of the pig, knowing that X has a normal distribution.
Example 3. Expenditure X (million/month) of some people randomly selected in region A:
X 3.2-3.7 3.7-4.2 4.2-4.7 4.7-5.2 5.2-5.7 5.7-6.2 6.2-6.7
ni 23 33 55 79 45 29 18
Suppose that X has a normal distribution. Calculate a 98% CI for the population mean of the
expenditure.
When X is the mean of a random sample of size n (n ≤ 40) from a normal distribution with
mean µ, the random variable
X −µ
T = √
s/ n
has a t distribution with n − 1 degrees of freedom (df).
Let x and s be the sample mean and sample standard deviation computed from the results of
a random sample from a normal population with mean µ. Then a 100(1 − α)% confidence
interval for µ is
s s s
x − tα/2,n−1 · √ , x + tα/2,n−1 · √ = x ± tα/2,n−1 · √ .
n n n
25.2 21.3 22.8 17.0 29.8 21.0 25.5 16.0 20.9 19.5
Calulate and interpret a 95% confidence interval for population mean cadence.
Nguyễn Ngọc Tứ Lecture 5 2023 - 2024 11 / 18
Small-Sample Confidence Intervals for a Population Mean (n ≤ 40)
The confidence intervals discussed thus far give both a lower confidence bound and an upper
confidence bound for the parameter being estimated. In some circumstances, an investigator
will want only one of these two types of bounds.
γ 90% 91% 92% 93% 94% 95% 96% 97% 98% 99%
zα/2 1.645 1.695 1.751 1.812 1.881 1.96 2.054 2.170 2.326 2.576
zα 1.282 1.341 1.405 1.476 1.555 1.645 1.751 1.881 2.054 2.326
X 87 89 91 93 95 97 99
The number of types of machine 37 45 69 83 71 45 32
a. Calculate an 98% upper confidence bound and an 98% lower confidence bound for the true
average diameter of types of machine.
b. Find an upper confidence bound and an lower confidence bound for the proportion of types
of a machine which diameter exceeds 97 mm at 94% the confidence level.
Nguyễn Ngọc Tứ Lecture 5 2023 - 2024 17 / 18
One-sided confidence bound