Topic 6 - Confidence Interval Slides
Topic 6 - Confidence Interval Slides
Learning Objectives
At the completion of this topic, you should be able to:
• calculate estimates and their standard errors
• construct and interpret confidence interval estimates for the mean and
the proportion
• determine the sample size necessary to develop a confidence interval for
the mean or proportion
+Confidence Intervals 3
Samples
+Normal Curve for 95% and 99% 9
Level of Confidence
+Confidence Intervals 10
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
+Confidence Interval 11
Example:
A sample of 11 pizza shops from a large normal population has
a mean pizza cooking time of 2.2 minutes. We know from past
testing that the population standard deviation is 0.35 minutes
Determine a 95% confidence interval for the true mean pizza
cooking time of the population
+Confidence Interval (σ Known) 14
σ
X±Z
n
0.35
= 2.2 ± 1.96
11
= 2.2 ± 0.2068
= 1.9932 ≤ µ ≤ 2.4068
We are 95% confident that the true mean pizza cooking time is
somewhere between 1.9932 and 2.4068 minutes
Note: Although the true mean may or may not be in this
interval, 95% of intervals formed in this manner (in repeated
samples) will contain the true mean
+Confidence Interval Estimation for 15
(cont)
With a sample size of about 120 or more, there is little
difference between the t values and Z values.
+The Concept of Degrees of Freedom 20
Example:
A random sample of 25 people have a S
X ± t n -1
mean age of 50 and sample standard n
deviation of 8 8
50 ± 2.0639
Calculate a 95% confidence interval for μ 25
•Degrees of Freedom are 25-1 = 24 50 ± 3.30224
46.69776 ≤ µ ≤ 53.30224
•t = 2.0639 (from Table E3 - Critical values of t)
Note: Table E3 is Upper Tail only so need to use
α/2
+MS Excel® Template to Calculate 24
the Proportion
Confidence interval estimate
The Upper and lower confidence limits for the population
proportion are calculated with the formula
p(1− p)
p±Z
n
Where: Z is the standard normal value for the level of confidence desired
p is the sample proportion
n is the sample size
+Confidence Interval Estimation for 26
Mean
In order to determine the required sample size for the mean,
we need to know:
•the desired level of confidence (1 - α), which determines the critical Z value
•an acceptable sampling error, e
•the standard deviation, σ (can be estimated with past data or pilot sample)
We rework the Sampling Error (the Margin of Error) of the
Confidence Interval Estimation for the Mean to resolve n
σ σ Z 2
σ 2
X ±Z is denoted e = Z then isolate n n = 2
n n e
+Determining Sample Size for the 29
Mean (cont)
Example:
What sample size is needed to estimate the mean within ± 5 with
90% confidence? If σ = 45
Z 2 σ 2 1.6452 452
n= 2
= 2
= 219.19
e 5
Therefore, the required sample size is n = 220 (always round up)
+MS Excel® Template to Calculate 30
Proportion
In order to determine the required sample size for the
Proportion, we need to know:
•the desired level of confidence (1 - α), which determines the critical Z value
•an acceptable sampling error, e
•true proportion of ‘successes’, π (can be estimated with past data or pilot
sample, p, or conservatively use π = 0.5)
We rework the Sampling Error (the Margin of Error) of the
Confidence Interval Estimation for the Proportion to resolve n
2
π ±Z
π (1 − π ) is denoted e = Z π (1 − π ) then isolate n n = π (12 − π )
Z
n n e
+Determining Sample Size for the 32
Proportion (cont)
Example:
What sample size is needed to estimate the true proportion of
defective parts in a large population to within ±3%, with 95%
confidence? (Assume a pilot sample yielded 12% defects. i.e p =
0.12)
Z 2 π (1 − π ) 1.96 2 0.12 (1 − 0.12)
n= 2
= 2
= 450.74
e 0.03