Lecture 7
Lecture 7
Inference About
a Population:
Estimation
Introduction
Statistical inference is the process by which we
acquire information and draw conclusions about
populations from samples.
Estimation
Hypotheses testing
Concepts of Estimation
The objective of estimation is to determine the
unknown value of a population parameter
( and p) on the basis of a sample statistic.
• Point estimator
• Interval estimator
Point estimator draws inference by estimating the value
of an unknown parameter using a single value.
Mean ,
Variance , 2
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
(i) Confidence Interval for μ
(σ Known)
Assumptions
Population standard deviation σ is known
Population is normally distributed
If population is not normal, use large sample
σ
X Z α/2
n
where X is the point estimate
Zα/2 is the normal distribution critical value for a probability of /2 in each tail
is the standard error
σ/ n
Finding the Critical Value, Zα/2
Z α/2 1.96
Consider a 95% confidence interval:
1 α 0.95so α 0.05
Must write ±
because there are
two tail (positive
and negative)
α α
0.025 0.025
2 2
Z0.025 = 1.96
Interpretation:
We are 95% confident that the true mean resistance is between
1.9932 and 2.4068 ohms
(ii) Confidence Interval for μ
(σ Unknown)
If the population standard deviation σ is
unknown, we can substitute the sample standard
deviation, S
This introduces extra uncertainty, since S is
variable from sample to sample
So we use the t distribution instead of the normal
distribution
Confidence Interval for μ
(σ Unknown)
Assumptions
Population standard deviation is unknown
Population is normally distributed
d.f. = n - 1
Degree of
Freedom
Student’s t Table
Upper Tail Area
α Let: n = 3
df .10 .05 .025 df = n - 1 = 2
= 0.10
1 3.078 6.314 12.706 /2 = 0.05
point estimate of
Þ point
estimate of
41.8 ≤ µ ≤ 48.2
The 90% confidence interval estimate of the population mean
car rental rate is from $41.8 to $48.2
𝐭 𝟎 .𝟎𝟓 ,𝟏𝟏 =𝟏. 𝟕𝟗𝟔
Confidence Intervals for the
Population Proportion, p
An interval estimate for the population proportion ( p )
can be calculated by adding an allowance for
uncertainty to the sample proportion ( )
(iii) Confidence Intervals for the
Population Proportion, p
Recall that the distribution of the sample proportion is
approximately normal if the sample size is large, with
standard deviation
p (1 p )
σp
n
We will estimate this with sample data (if there is no data
for population proportion)
p̂(1 p̂)
n
Confidence Interval Endpoints
Upper and lower confidence limits for the population
proportion are calculated with this formula:
p̂(1 p̂)
p̂ Z/2
n
where
Zα/2 is the standard normal value for the level of confidence desired
is the sample proportion
n is the sample size
Example
Interpretation:
We are 95% confident that the true percentage of left-handers
in the population is between 16.51% and 33.49%.
Example …..continued
A random sample of 100 people shows that 25
are left-handed. Form a 95% confidence interval
for the true proportion of right-handers.
=
p̂ Z/2 p̂(1 p̂)/n
0.75 1.96 0.25(0.75)/100
0.75 1.96 (0.0433)
0.6651 p 0.8349
Interpretation:
We are 95% confident that the true percentage of left-handers
in the population is between 66.51% and 83.49%.
Determining Sample Size
Determining
Sample Size
For the
Mean Sampling error
σ σ
X Zα / 2 B Z / 2
n n
Determining Sample Size
Determining
Sample Size
For the
Mean
σ 2
Z / 2 σ 2
B Z / 2 Now solve
for n to get
n
n B 2
Example: Required Sample Size
If = 45, what sample size is needed to
estimate the mean if the sampling error is
within ± 5 with 90% confidence?
2 2 2 2
Z σ (1.645) (45)
n 2
2
219.19
B 5
For the
Proportion
√
2
𝑝 (1 − 𝑝) Now solve Z 𝑝 (1− 𝑝)
B=Z for n to get n= 2
n B
Required Sample Size Example
2
Z/2 pˆ (1 pˆ ) (1.96) (0.12)(1 0.12)
2
n 2
2
450.74
B (0.03)
So use n = 451
Exercise 1
From past experience, the population standard deviation of
rod diameters produced by a machine has been found to be
0.053 inches. For a simple random sample of 30 rods, the
average diameter is found to be 1.4 inches.
( ) [ ]
2 2
𝑍 𝛼/ 2 𝜎 1.96 (0.053)
𝑛= = =107.9 ≈108
𝐵 0.01
Exercise 2
In an April 2007 NBC News / Wall Street Journal poll, 1008 adults were
randomly sampled from across the United States.
In response to the question, “All in all, do you think that things in the
nation are generally headed in the right direction, or do you feel that
things are off on the wrong track?” 22% responded “headed in the right
direction”.
(i) What is the 90% confidence interval for the population proportion
who would have answered “headed in the right direction” to
the question posed?
(ii) Determine the sample size necessary to estimate the population
proportion to within 0.015 with 90% confidence if we believe that
the estimated value of the population proportion is approximately
0.30.
ANSWER EXERCISE 2
0.199 ≤ p ≤ 0.241
[ ]
2
1.6449 √ 0.3( 0.7)
𝑛= = 2525.3 ≈ 2526
0.015