Professional Documents
Culture Documents
Lower Upper
Confidence Confidence
Point Estimate
Limit Limit
Width of
confidence interval
Point Estimates
Mean μ x
Proportion p p
Confidence Intervals
How much uncertainty is associated with a point
estimate of a population parameter?
Sample
Confidence Level
Confidence Level
Confidence in which the interval
will contain the unknown
population parameter
A percentage (less than 100%)
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
Finding the Critical Value
Consider a 95% confidence interval: z α/2 1.96
1 .95
α α
.025 .025
2 2
σ σ
x z /2 e z /2
n n
Factors Affecting Margin of
Error
σ
e z /2
n
Data variation, σ : e as σ
Sample size, n : e as n
Level of confidence, 1 - : e if 1 -
Chap 7-15
Example
A sample of 11 circuits from a large normal
population has a mean resistance of 2.20 ohms.
We know from past testing that the population
standard deviation is .35 ohms.
Chap 7-16
Example
(continued)
A sample of 11 circuits from a large normal
population has a mean resistance of 2.20 ohms.
We know from past testing that the population
standard deviation is .35 ohms.
σ
Solution: x z /2
n
2.20 .2068
1.9932 .......... ..... 2.4068
Chap 7-17
Interpretation
We are 95% confident that the true mean resistance is
between 1.9932 and 2.4068 ohms
Although the true mean may or may not be in this
interval, 95% of intervals formed in this manner will
contain the true mean
Chap 7-18
Student’s t Distribution
Note: t z as n increases
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 7-19
Approximation for Large Samples
Since t approaches z as the sample size increases,
an approximation is sometimes used when n 30:
Technically Approximation
correct for large n
s s
x t /2 x z /2
n n
Chap 7-20
Now we talk about
HYPOTHESIS
What is a Hypothesis?
A hypothesis is a claim
(assumption) about a
population parameter:
population mean
Example: The mean monthly cell phone bill
of this city is = $42
population proportion
Example: The proportion of adults in this
city with cell phones is p = .68
The Null Hypothesis, H0
States the assumption (numerical) to be
tested
Example: The average number of TV sets in U.S.
Homes is at least three (
H0 : μ 3 )
Is always about a population parameter,
not about a sample statistic
H0 : μ 3 H0 : x 3
The Null Hypothesis, H0
(continued)
Claim: the
population
mean age is 50.
(Null Hypothesis:
Population
H0: = 50 )
Now select a
random sample
Is x 20 likely if = 50?
If not likely, Suppose
the sample
REJECT mean age Sample
Null Hypothesis is 20: x = 20
Reason for Rejecting H0
Sampling Distribution of x
x
20 = 50
If H0 is true
If it is unlikely that ... then we
we would get a reject the null
sample mean of ... if in fact this were hypothesis that
this value ... the population mean… = 50.
Level of Significance,
Defines unlikely values of sample statistic if null
hypothesis is true
Defines rejection region of the sampling
distribution
Is designated by , (level of significance)
Typical values are .01, .05, or .10
Is selected by the researcher at the beginning
Provides the critical value(s) of the test
Level of Significance
and the Rejection Region
Level of significance = Represents
critical value
H0: μ ≥ 3 1-α
Rejection
HA: μ < 3 Lower tail test 0 region is
shaded
H0: μ ≤ 3
1-α
HA: μ > 3
Upper tail test 0
State of Nature
Decision H0 True H0 False
Do Not
No error Type II Error
Key: Reject
(1 - ) (β)
Outcome H0
(Probability) Reject Type I Error No Error
H0 () (1-β)
Type I & II Error Relationship
Type I and Type II errors can not happen at
the same time
Type I error can only occur if H0 is true
Type II error can only occur if H0 is false
β when
β when σ
β when n
Critical Value
Approach to Testing
Convert sample statistic (e.g.: x ) to test statistic ( Z
or t statistic )
Determine the critical value(s) for a specified
level of significance from a table or computer
σ
x μ z
n
Two Tailed Tests
There are two cutoff values H0: μ = 3
(critical values):
HA: μ
3
or ± zα/2
/2 /2
xα/2
Lower
Reject H0 Do not reject H0 Reject H0
xα/2 -zα/2 0 zα/2
Upper μ0
xα/2 xα/2
Lower Upper
σ
x /2 μ z /2
n
Critical Value
Approach to Testing
Convert sample statistic ( x ) to a test statistic
( Z or t statistic )
Hypothesis
Tests for
Known Unknown
Large Small
Samples Samples
Calculating the Test Statistic
Hypothesis
Tests for μ
Known Unknown
Hypothesis
Tests for
Known Unknown
Hypothesis
Tests for
Known Unknown
= .05
-zα= -1.645 0
= .05
z
Reject H0 Do not reject H0
-1.645 0
-2.0
Since z = -2.0 < -1.645, we reject the null
hypothesis that the mean number of TVs in US
homes is less than 3
Hypothesis Testing Example
(continued)
An alternate way of constructing rejection region:
Now
expressed
= .05 in x, not z
units
x
Reject H0 Do not reject H0
2.8684 3
2.84 σ 0.8
x α μ zα 3 1.645 2.8684
Since x = 2.84 < 2.8684, n 100
we reject the null
hypothesis
p-Value Approach to Testing
Convert Sample Statistic (e.g. x ) to Test Statistic
( Z or t statistic )
Obtain the p-value from a table or computer
= .05
P( x 2.84 | μ 3.0)
p-value =.0228
2.84 3.0
P z
0.8 x
100
2.8684 3
P(z 2.0) .0228
2.84
p-value example (continued)
= .10
x μ 53.1 52
z 0.88
σ 10
n 64
Example: Decision (continued)
Reach a decision and interpret the result:
Reject H0
= .10
The sampling
distribution of p is Hypothesis
normal, so the test Tests for p
statistic is a z value:
np 5 np < 5
and or
pp
z n(1-p) 5 n(1-p) < 5
p(1 p)
Not discussed
n in this chapter
Example: z Test for Proportion
A marketing company
claims that it receives 8%
responses from its
mailing. To test this
claim, a random sample of
500 were surveyed with
Check:
25 responses. Test at the
= .05 significance level. n p = (500)(.08) = 40
n(1-p) = (500)(.92) = 460
Z Test for Proportion: Solution
Test Statistic:
H0: p = .08
pp .05 .08
HA: p . z 2.47
p(1 p) .08(1 .08)
08= .05
n = 500, p = .05
n 500
Critical Values: ± 1.96 Decision:
Reject Reject Reject H0 at = .05
Conclusion:
.025 .025
There is sufficient
-1.96 0 1.96 z evidence to reject the
-2.47 company’s claim of 8%
response rate.
p -Value Solution (continued)
Calculate the p-value and compare to
(For a two sided test the p-value is always two sided)
Do not reject H0
Reject H0 Reject H0 p-value = .0136:
/2 = .025 /2 = .025
P(z 2.47) P(x 2.47)
.0068 .0068 2(.5 .4932)
2(.0068) 0.0136
-1.96 0 1.96
z = -2.47 z = 2.47
50 52
Reject Do not reject
H0: μ 52 H0 : μ 52
Type II Error (continued)
Suppose we do not reject H0: 52 when in fact the
true mean is = 50
50 52
Reject Do not reject
H0: 52 H0 : 52
Type II Error (continued)
Suppose we do not reject H0: μ 52 when in
fact the true mean is μ = 50
Here, β = P( x cutoff ) if μ = 50
β
50 52
Reject Do not reject
H0: μ 52 H0 : μ 52
Calculating β
Suppose n = 64 , σ = 6 , and = .05
σ 6
cutoff x μ z 52 1.645 50.766
(for H0 : μ 52) n 64
So β = P( x 50.766 ) if μ =
50
50 50.766 52
Reject Do not reject
H0: μ 52 H0 : μ 52
Calculating β (continued)
Suppose n = 64 , σ = 6 , and = .05
50.766 50
P( x 50.766 | μ 50) P z P(z 1.02) .5 .3461 .1539
6
64
Probability of
type II error:
β = .1539
50 52
Reject Do not reject
H0: μ 52 H0 : μ 52
Chapter Summary
Addressed hypothesis testing methodology
Performed z Test for the mean (σ known)
Discussed p–value approach to hypothesis
testing
Performed one-tail and two-tail tests . . .
Chapter Summary (continued)