Chapter 6 Data Analysis 2018
Chapter 6 Data Analysis 2018
Chapter 6 Data Analysis 2018
Faculty of Engineering-Semester5
Teacher: Elsy Wehbe
2017-2018
1
Chapter 6 : Confidence Interval
Estimation
Learning Objectives
In this chapter, you learn:
Chap 8-2
Chapter Outline
Chap 8-3
Point and Interval Estimates
DCOVA
Lower Upper
Confidence Confidence
Point Estimate
Limit Limit
Width of
confidence interval
Chap 8-4
Point Estimates
DCOVA
Mean μ X
Proportion π p
Chap 8-5
Confidence Intervals
DCOVA
Chap 8-6
Confidence Interval Estimate
DCOVA
Chap 8-7
Confidence Interval Example
DCOVA
Cereal fill example
• Population has µ = 368 and σ = 15.
• If you take a sample of size n = 25 you know
– 368 ± 1.96 * 15 / 25= (362.12, 373.88) contains 95% of the sample
means
– When you don’t know µ, you use X to estimate µ
• If X = 362.3 the interval is 362.3 ± 1.96 * 15 / 25 =
(356.42, 368.18)
• Since 356.42 ≤ µ ≤ 368.18 the interval based on this sample
makes a correct statement about µ.
But what about the intervals from other possible samples of size 25?
Chap 8-8
Confidence Interval Example
DCOVA
(continued)
(continued)
I am 95% confident
Random Sample that μ is between 40
& 60.
Population Mean
(mean, μ, is X = 50
unknown)
Sample
Chap 8-11
General Formula
DCOVA
Chap 8-12
Confidence Level
DCOVA
• Confidence Level
– Confidence the interval will contain
the unknown population parameter
– A percentage (less than 100%)
Chap 8-13
Confidence Level, (1-)
DCOVA
(continued)
Chap 8-14
Confidence Intervals
DCOVA
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
Chap 8-15
Confidence Interval for μ
(σ Known) DCOVA
• Assumptions
– Population standard deviation σ is known
– Population is normally distributed
– If population is not normal, use large sample
σ
X Z /2
n
where is the point estimate
X
Zα/2 is the normal distribution critical value for a probability of /2 in each tail
is the standard error
σ/ n
Chap 8-16
Finding the Critical Value, Zα/2
DCOVA
Z /2 1.96
• Consider a 95% confidence interval:
1 α 0.95so α 0.05
α α
0.025 0.025
2 2
/2 1 /2
x
Intervals μx μ
extend from x1
σ x2 (1-)x100%
X Z /2 of intervals
n constructed contain
to μ;
σ ()x100% do not.
X Z /2
n
Confidence Intervals
Chap 8-19
Example
DCOVA
Chap 8-20
Example DCOVA
(continued)
Chap 8-22
Confidence Intervals
DCOVA
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
Chap 8-23
Do You Ever Truly Know σ?
• Probably not!
Chap 8-24
Confidence Interval for μ
(σ Unknown) DCOVA
Chap 8-25
Confidence Interval for μ
(σ Unknown)
(continued)
• Assumptions DCOVA
d.f. = n - 1
Chap 8-27
Degrees of Freedom (df)
DCOVA
Let X1 = 7
If the mean of these three values is 8.0,
Let X2 = 8 then X3 must be 9
(i.e., X3 is not free to vary)
What is X3?
Standard
Normal
(t with df = ∞)
t (df = 13)
t-distributions are bell-
shaped and symmetric, but
have ‘fatter’ tails than the t (df = 5)
normal
0 t
Chap 8-29
Student’s t Table
DCOVA
Confidence t t t Z
Level (10 d.f.) (20 d.f.) (30 d.f.) (∞ d.f.)
Note: t Z as n increases
Chap 8-31
Example of t distribution confidence interval
DCOVA
Chap 8-32
Example of t distribution confidence interval
(continued)
Chap 8-33
Confidence Intervals
DCOVA
Confidence
Intervals
Population Population
Mean Proportion
σ Known σ Unknown
Chap 8-34
Confidence Intervals for the
Population Proportion, π
DCOVA
Chap 8-35
Confidence Intervals for the
Population Proportion, π
(continued)
(1 )
σp
n
• We will estimate this with sample data
p (1 p )
n
Chap 8-36
Confidence Interval Endpoints
DCOVA
p (1 p )
p Z /2
n
• where
– Zα/2 is the standard normal value for the level of confidence desired
– p is the sample proportion
– n is the sample size
• Note: must have X > 5 and n – X > 5
Chap 8-37
Example
DCOVA
Chap 8-38
Example DCOVA
(continued)
• A random sample of 100 people shows
that 25 are left-handed. Form a 95%
confidence interval for the true proportion
of left-handers.
np = 100 * 0.25 = 25 > 5 & n(1-p) = 100 * 0.75 = 75 > 5
Chap 8-40
Determining Sample Size
DCOVA
Determining
Sample Size
Chap 8-41
Sampling Error
DCOVA
Chap 8-42
Determining Sample Size
DCOVA
Determining
Sample Size
For the
Mean Sampling error (margin
of error)
σ σ
X Z /2 e Z /2
n n
Chap 8-43
Determining Sample Size
DCOVA
(continued)
Determining
Sample Size
For the
Mean
σ 2
Z / 2 σ2
e Z /2 Now solve for n
to get n
n e2
Chap 8-44
Determining Sample Size
DCOVA
(continued)
Chap 8-45
Required Sample Size Example
DCOVA
Z 2 σ 2 (1.645) 2 (45) 2
n 2
2
219.19
e 5
Chap 8-46
If σ is unknown
DCOVA
Chap 8-47
Determining Sample Size
(continued)
Determining DCOVA
Sample Size
For the
Proportion
Chap 8-48
Determining Sample Size
DCOVA
(continued)
Chap 8-49
Required Sample Size Example
DCOVA
Chap 8-50
Required Sample Size Example
(continued)
Solution: DCOVA
2
Z /2 π (1 π ) (1.96) 2 (0.12)(1 0.12)
n 2
2
450.74
e (0.03)
So use n = 451
Chap 8-51
Ethical Issues
• A confidence interval estimate (reflecting
sampling error) should always be included
when reporting a point estimate
• The level of confidence should always be
reported
• The sample size should be reported
• An interpretation of the confidence interval
estimate should also be provided
Chap 8-52
Chapter Summary
Chap 8-53