Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 9-1
Chapter Goals
After completing this chapter, you should be able to:
a single population mean from a normal distribution a single population proportion (large samples) the variance of a normal distribution
Formulate a decision rule for testing a hypothesis Know how to use the critical value and p-value approaches to test the null hypothesis (for both mean and proportion problems) Know what Type I and Type II errors are Assess the power of a test
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 9-2
9.1
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
Ch. 9-3
Begin with the assumption that the null hypothesis is true Similar to the notion of innocent until proven guilty Refers to the status quo Always contains = , or u sign May or may not be rejected
Ch. 9-5
e.g., The average number of TV sets in U.S. homes is not equal to 3 ( H1: 3 )
Challenges the status quo Never contains the = , or u sign May or may not be supported Is generally the hypothesis that the researcher is trying to support
Ch. 9-6
Population
Now select a random sample
Is X! 20 likely if
If not likely, REJECT Null Hypothesis
= 50?
Suppose the sample mean age is 20: X = 20 Sample
Ch. 9-7
20
= 50
IfH0 is true
Level of Significance, E
Defines the unlikely values of the sample statistic if the null hypothesis is true
Defines rejection region of the sampling distribution Typical values are .01, .05, or .10
Is selected by the researcher at the beginning Provides the critical value(s) of the test
Ch. 9-9
H0 : = 3 H1 : 3
E/2
Two-tail test
E/2
0 Rejection region is shaded
H0 : 3 H1 : >3
Upper-tail test
E
0
H0 : 3 H1 : < 3
E
Lower-tail test
0
Ch. 9-10
Type I Error Reject a true null hypothesis Considered a serious type of error The probability of Type I Error is E
Ch. 9-11
Type II Error Fail to reject a false null hypothesis The probability of Type II Error is
Ch. 9-12
Ch. 9-13
Type I error can only occur if H0 is true Type II error can only occur if H0 is false , then )
Ch. 9-14
when the difference between hypothesized parameter and its true value
n
Ch. 9-15
The power of a test is the probability of rejecting a null hypothesis that is false i.e.,
Ch. 9-16
Ch. 9-17
9.2
"
(Assume the population is normal)
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall
e ect H0 if z
"z
n
Ch. 9- 8
Decision Rule
e ect i
! "
H 0: = H 1: >
0 0
Alternate rule:
Reject H0 if x "
0 Z
/ n
Do not reject H0
0
0
0
z
z
Reject H0
x
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall
Critical value x c
Ch. 9-19
p-value: Probability of obtaining a test statistic more extreme ( or u ) than the observed sample value given H0 is true
Also called observed level of significance Smallest value of E for which H0 can be rejected
Ch. 9-20
Convert sample result (e.g., x ) to test statistic (e.g., z statistic ) Obtain the p-value For an upper p - value ! P(z tail test:
! P(z x- 0 , given that H0 is true) / n x- 0 | ! 0) / n
Ch. 9-22
E = .10
Do not reject H0
1.28
Reject H0
Reject H0 if z !
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall
0 " 1.28 / n
Ch. 9-23
Obtain sample and compute the test statistic Suppose a sample is taken with the following results: n = 64, x = 53.1 (W = 10 was assumed known)
n
.1 2 ! 0. 10
Ch. 9-24
Example: Decision
(continued)
E= .10
Do not reject H0
1.28 z = 0.88
Reject H0
Do not reject H0 since z = 0.88 < 1.28 i.e.: there is not sufficient evidence that the mean bill is over $52
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 9-25
P(x u 3. | !
Reject H0 E= .10
. ) .
0
Do not reject H0
3. ! z u /
1.28 Z = .88
Reject H0
! (z u . !.
) ! .
One-Tail Tests
Ch. 9-27
Upper-Tail Tests
There is only one critical value, since the rejection area is in only one tail
H 0: 3 H 1: > 3
Do not reject H0
Reject H0
x
Critical value x c
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 9-28
Lower-Tail Tests
H 0: 3
There is only one critical value, since the rejection area is in only one tail
H 1: < 3
E
Reject H0 Do not reject H0
-zE
x
Critical value x c
Ch. 9-29
Two-Tail Tests
In some settings, the alternative hypothesis does not specify a unique direction
H 0: = 3 H 1: { 3
E/2
E/2
3
There are two critical values, defining the two regions of rejection
x
Reject H0
Reject H0
Do not reject H0
-zE/2
+zE/2
State the appropriate null and alternative hypotheses H 0: = 3 , H1: 3 (This is a two tailed test) Specify the desired level of significance Suppose that E = .05 is chosen for this test Choose a sample size Suppose a sample of size n = 100 is selected
Ch. 9-31
Determine the appropriate technique is known so this is a z test Set up the critical values For E = .05 the critical z values are 1.96 Collect the data and compute the test statistic Suppose the sample results are n = 100, x = 2.84 ( = 0.8 is assumed known) So the test statistic is:
!
X n
0
2.
0. 100
.1 .0
! 2 .0
Ch. 9-32
Reject H0
Do not reject H0
Reject H0
-z = -1.96
+z = +1.96
Here, z = -2.0 < -1.96, so the test statistic is in the rejection region
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 9-33
Reject H0
Do not reject H0
Reject H0
-z = -1.96 -2.0
+z = +1.96
Since z = -2.0 < -1.96, we reject the null hypothesis and conclude that there is sufficient evidence that the mean number of TVs in US homes is not equal to 3
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall Ch. 9-34
Example: p-Value
.0228
.0228
-1.96 -2.0
1.96 2.0
Z
Ch. 9-35
Example: p-Value
(continued)
Here: p-value = .0456 E = .05 Since .0456 < .05, we reject the null hypothesis
.0228
.0228
-1.96 -2.0
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall
1.96 2.0
Z
Ch. 9-36
9.3
Consider he es
: ! : "
(Assume he popula ion is normal)
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall
e ec
x ! s n
"
Ch. 9 37
e ect H0 if t !
0 s n
t n-1,
or if t !
0 " t n-1, s n
Ch. 9-38
Ch. 9-39
E/2=.025
E/2=.025
E= 0.05
n= 25 W is unknown, so use a t statistic Critical Value: t24 , .025 = 2.0639
Reject H0
-t n-1, /2 -2.0639
!
Do not reject H0
1.46
t n-1, /2 2.0639
Reject H0
t n 1 !
x s n
Do not reject H0: not sufficient evidence that true mean cost is different than $168
Ch. 9-40
9.5
denotes the probability of Type II Error 1 is defined as the power of the test Power = 1 = the probability that a false null hypothesis is rejected
Ch. 9-43
Type II Error
Assume the population is normal and the population variance is known. Consider the test
H0 : !
H1 : "
0
0
e ect H0 i
"
or
e ect H0 i
"
I the null hypothesis is alse and the true mean is *, then the probability o type II error is !P
c
! * ! P
* n
Ch. 9-44
E 50
Reject H0: u 52
52
xc
Do not reject H0 : u 52
Ch. 9-45
= 50
50
Reject H0: u 52
52
xc
Do not reject H0 : u 52
Ch. 9-46
50
Reject H0: u 52
52
xc
Do not reject H0 : u 52
Ch. 9-47
Calculating
Suppose n = 64 ,
= 6 , and E = .05
xc !
(for H0 :
z
6 ! 52 1.6 5 ! 50.766 n 6
So = P( x u 50.766 ) if * = 50
u 52)
50
50.766
52
Do not reject H0 : u 52
Ch. 9-48
Reject H0: u 52
xc
Calculating
(continued)
Suppose n = 64 ,
= 6 , and E = .05
= .1539
50 52
Reject H0: u 52
xc
Do not reject H0 : u 52
Ch. 9-49
=1
Actual Situation Key: Outcome (Probability) H0 True No error 1 - E = 0.95 Type I Error E = 0.05 Do Not Reject H0 Reject H0 (The value of
Copyright 2010 Pearson Education, Inc. Publishing as Prentice Hall
9.6
2 n 1
(n 1)s
2
1) degrees
Chap 11-51
The test statistic for hypothesis tests about one population variance is
2 n 1
(n 1)s
2 0
Chap 11-52
Upper-tail test: H 0: H 1:
2 2> 0 2 2 0
Two-tail test: H 0: 2= H 1: 2
0 2 0 2
E
2 n 1,1E
E
2 n 1,E
E/2
2 n 1,1E / 2
E/2
2 n 1,E / 2
Reject H0 if
2 n 1 2 n 1,1E
Reject H0 if
2 n 1
"
Reject H0 if or
2 n 1 2 n 1
2 ,E
"
2 n 1,E / 2 2 n 1,1E / 2
Chap 11-53
A quality control manager has asked you to determine if the variance of impurities in its shipment of fertilizer is within the established standard. This standard states that for 100-pound bags of fertilizer, the variance in the pounds of impurities cannot exceed 4. For this purpose a random sample of 20 bags is obtained, and the pounds of impurities are measured for each bag. The sample variance is computed to be 6.62. Which test statistic can be employed? State null-hypothesis and alternative hypothesis? Calculate test statistic and state your conclusion? Calculate the p-value, and verify part c ?
Ch. 9-54
a) b) c) d)
Chapter Summary
Addressed hypothesis testing methodology Performed Z Test for the mean ( known) Discussed critical value and p-value approaches to hypothesis testing Performed one-tail and two-tail tests Performed t test for the mean ( unknown) Discussed type II error and power of the test Performed a hypothesis test for the variance ( 2)
Ch. 9-55