Professional Documents
Culture Documents
Slide FU - W7-Confidence Interval
Slide FU - W7-Confidence Interval
Introduction
CI on µ of
1. Introduction
arbitrary
distribution
2. CI on µ of a N(µ, σ2): σ2 known
3. CI on µ of a N(µ, σ2): σ2 unknown
CI on σ2 of a
Normal 4. CI on µ of any distribution: large-sample
CI for p 5. CI on σ2 a normal distribution
Summary 6. CI for the proportion p: large-sample
19/05/2021 Department of Mathematics 1/28
INTRODUCTION
Introduction
Introduction
• A confidence interval estimate for µ is an interval of the form
CI on µ of a N(µ, l ≤ µ ≤ u, where the endpoints l and u are computed from the
σ2): σ2 Known sample data.
CI on µ of a N(µ, • Because different samples will produce different values of l
σ2): σ2 Unknown and u, these end-points are values of random variables L and U,
respectively.
CI on µ of
arbitrary • Suppose that we can determine values of L and U such that the
distribution following probability statement is true:
CI on σ2 of a
Normal
P(L ≤ µ ≤ U) = 1 - α
CI for p
CI on µ of a N(µ,
• After we have selected the sample: X1 = x1, X2 = x2 , … , Xn =
σ2): σ2 Known xn, and computed l and u, the resulting confidence interval for
µ is
CI on µ of a N(µ,
σ2): σ2 Unknown
l ≤µ≤ u
CI on µ of
arbitrary
distribution
Lower-confidence limit Upper-confidence limit
CI on σ2 of a
Normal
or
CI on σ2 of a σ σ
Normal P ( X − zα / 2 ≤ µ ≤ X + zα / 2 )
n n
CI for p
Summary L U
19/05/2021 Department of Mathematics 4/28
CI ON µ OF A N(µ, σ2): σ2 KNOWN
Introduction
CI on
CI on µµ of
of aa N(µ,
N(µ,
σσ2):
2): σ2 Known
σ2 Known Theorem
CI on µ of a N(µ, If x is the sample mean of a random sample of size n from a
σ2): σ2 Unknown normal population with known variance, (1 – α)-CI on µ is
given by
CI on µ of
arbitrary
σ σ
distribution x − zα / 2 ≤ µ ≤ x + zα / 2
n n
σ2
CI on of a
Normal
CI for p
Summary
Example
CI on
on µµ of
of aa N(µ,
N(µ,
CI A college admissions director wishes to estimate the mean
σσ2):
2): σ2 Known
σ2 Known
age of all students currently enrolled. In a random sample of
CI on µ of a N(µ, 20 students, the mean age is found to be 22.9 years. From past
σ2): σ2 Unknown studies, the standard deviation is known to be 1.5 years, and
the population is normally distributed. Construct a 90%
CI on µ of
confidence interval of the population mean age.
arbitrary
distribution
CI on σ2 of a
Normal Solution: We have x = 22.9; σ = 1.5; 1 – α =0.9;
CI for p α = 0.1 ⇒ zα/2 = NORMSINV(1- 0.1/2) = 1.645
Summary
CI on
CI on µµ of
of aa N(µ,
N(µ, Confidence interval:
σσ2):
2): σ2 Known
σ2 Known
1 .5 1 .5
CI on µ of a N(µ, 22 .9 − 1.645 ≤ µ ≤ 22 .9 − 1.645
σ2): σ2 Unknown 20 20
CI on µ of or
arbitrary
distribution 22.3 ≤ μ ≤ 23.5
CI on σ2 of a Point estimate
Normal 22.3 22.9 23.5
( • )
CI for p
x
Summary
CI on
CI on µµ of
of aa N(µ,
N(µ,
σσ2):
2): σ2 Known
σ2 Known
CI on µ of a N(µ,
σ2): σ2 Unknown
CI on µ of
arbitrary
distribution
CI on σ2 of a
Normal
CI for p
Figure 8-1 Repeated construction of a confidence interval
Summary for µ.
19/05/2021 Department of Mathematics 8/28
CI ON µ OF A N(µ, σ2): σ2 KNOWN
Introduction
Confidence Level and Precision of Estimation
CI on
CI on µµ of
of aa N(µ,
N(µ,
σσ2):
2): σ2 Known
σ2 Known The length of a confidence interval is a measure of the
CI on µ of a N(µ, precision of estimation.
σ2): σ2 Unknown
CI on µ of
arbitrary
distribution
CI on σ2 of a
Normal
CI for p
Summary
Figure 8-2 Error in estimating µ with x.
19/05/2021 Department of Mathematics 9/28
CI ON µ OF A N(µ, σ2): σ2 KNOWN
Introduction
z α / 2σ
2
CI on µ of n=
arbitrary E
distribution
CI on σ2 of a
Normal
CI for p
Summary
CI on
CI on µµ of
of aa N(µ,
N(µ,
σσ2):
2): σ2 Known
σ2 Known Theorem One-Sided Confidence Bounds
CI on µ of a N(µ, A (1 – α) upper-confidence bound for µ is
σ2): σ2 Unknown
σ
CI on µ of µ ≤ x + zα
arbitrary n
distribution
A (1 – α) lower-confidence bound for µ is
CI on σ2 of a σ
Normal x − zα ≤µ
n
CI for p
Summary
CI for p
Summary
CI on µ of a N(µ,
σ2): σ2 Known
CI on µ µ of a N(µ,
σσ2):
2): σ22 Unknown
σ Unknown
CI on µ of
arbitrary
distribution
CI on σ2 of a
Normal
CI for p
Summary
Example
CI on µ of a N(µ,
σ2): σ2 Known
An article in the journal Materials Engineering describes the
results of tensile adhesion tests on 22 U-700 alloy specimens.
CI on µ µ of a N(µ, The population is normally distributed. The load at specimen
σσ2):
2): σ22 Unknown
σ Unknown failure is as follows:
CI on µ of 19.8 10.1 14.9 7.5 15.4 15.4 15.4 18.5 7.9 12.7 11.9 11.4 11.4
arbitrary 14.1 17.6 16.7 15.8 19.5 8.8 13.6 11.9 11.4
distribution
Find a 95% CI on µ.
CI on σ2 of a Solution: We have x = 13.71 and s = 3.55
Normal
α = 1- 0.95 = 0.05; n = 22 ⇒ tα/2,n-1= TINV(0.05,21) = 2.08
CI for p
A 95% CI on µ is
Summary
CI on
on µµ of
of has an approximate N (0, 1). Consequently,
CI
arbitrary
arbitrary s s
distribution x − zα / 2 ≤ µ ≤ x + zα / 2
n n
CI on σ2 of a
Normal is a large sample confidence interval for µ, with confidence
level of approximately (1 – α).
CI for p
Summary
CI on
CI on µµ of
of
arbitrary
arbitrary
distribution
CI on σ2 of a
Normal Find an approximate 95% CI on µ.
CI for p Solution: We have x = 0.5250 and s = 0.3486
Summary
α = 1- 0.95 = 0.05; zα/2= 1.96
19/05/2021 Department of Mathematics 18/28
ARBITRARY DISTRIBUTION: A LARGE-SAMPLE
Introduction
Distribution of mercury concentration is not normal
CI on µ of a N(µ,
σ2): σ2 Known
CI on µ of a N(µ,
σ2): σ2 Unknown
CI on
CI on µµ of
of
arbitrary
arbitrary
distribution
CI for p
Summary
CI on µ of a N(µ, k −x
1 −1
σ2): σ2 Unknown f ( x) = k / 2 x2 e 2 , x>0
2 Γ(k / 2)
CI on µ of
arbitrary is called a χ2 variable random with k degrees of freedom
distribution
CI on
CI σ22 of
on σ of aa
Normal
CI for p
Summary
CI on µ of a N(µ, k −x
1 −1
σ2): σ2 Unknown f ( x) = k / 2 x2 e 2 , x>0
2 Γ(k / 2)
CI on µ of
arbitrary
distribution
CI on
CI σ22 of
on σ of aa
Normal
CI for p
Summary
CI on µ of a N(µ,
σ2): σ2 Unknown
CI on µ of
arbitrary
distribution
CI on
CI σ22 of
on σ of aa
Normal
CI for p
Summary
CI for p
Summary
Summary
0.265≤ p ≤ 0.315
19/05/2021 Department of Mathematics 26/28
CI FOR p: A LARGE-SAMPLE
Introduction
CI on µ of a N(µ,
Theorem Choice of Sample Size
σ2): σ2 Known If p̂ is used as an estimate of p , we can be (1 – α)-
CI on µ of a N(µ,
confident that the error | p̂ - p | will not exceed a specified
σ2): σ2 Unknown amount E when the sample size is
CI on µ of zα / 2 2
arbitrary n=( ) p (1 − p )
E
≤1/4
distribution
CI on µ of a N(µ,
Theorem One-Sided Confidence Bounds
σ2): σ2 Known A (1 – α) upper-confidence bound for p is
CI on µ of a N(µ, pˆ (1 − pˆ )
σ2): σ2 Unknown p ≤ pˆ + zα
n
CI on µ of
arbitrary A (1 – α) lower-confidence bound for p is
distribution
pˆ (1 − pˆ )
CI on σ2 of a pˆ − zα ≤p
Normal
n
CI for p
Summary
CI on µ of
3. CI on µ of any distribution: large-sample
arbitrary
4. CI on σ2 a normal distribution
distribution
5. CI for the proportion p: large-sample
σ2
CI on of a
Normal
Summary