Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Chapter Outline
7.1 Introduction to Hypothesis Testing 7.2 Hypothesis Testing for the Mean (Large Samples) 7.3 Hypothesis Testing for the Mean (Small Samples) 7.4 Hypothesis Testing for Proportions 7.5 Hypothesis Testing for Variance and Standard Deviation
Section 7.1
Introduction to Hypothesis Testing
Hypothesis Tests
Hypothesis test A process that uses sample statistics to test a claim about the value of a population parameter. For example: An automobile manufacturer advertises that its new hybrid car has a mean mileage of 50 miles per gallon. To test this claim, a sample would be taken. If the sample mean differs enough from the advertised mean, you can decide the advertisement is wrong.
5
Hypothesis Tests
Statistical hypothesis A statement, or claim, about a population parameter. Need a pair of hypotheses one that represents the claim the other, its complement When one of these hypotheses is false, the other must be true.
Stating a Hypothesis
Null hypothesis A statistical hypothesis that contains a statement of equality such as e, =, or u. Denoted H0 read H subzero or H naught. Alternative hypothesis A statement of inequality such as >, {, or <. Must be true if H0 is false. Denoted Ha read H sub-a.
complementary statements
Larson/Farber 4th ed.
Stating a Hypothesis
To write the null and alternative hypotheses, translate the claim made about the population parameter from a verbal statement to a mathematical statement. Then write its complement. H0: k Ha: > k H 0: k Ha: < k H0: = k Ha: k
Regardless of which pair of hypotheses you use, you always assume = k and examine the sampling distribution on the basis of this assumption.
Larson/Farber 4th ed.
> 20 ounces
Types of Errors
No matter which hypothesis represents the claim, always begin the hypothesis test assuming that the equality condition in the null hypothesis is true. At the end of the test, one of two decisions will be made: reject the null hypothesis fail to reject the null hypothesis Because your decision is based on a sample, there is the possibility of making the wrong decision.
Larson/Farber 4th ed.
12
Types of Errors
Actual Truth of H0 H0 is true H0 is false Correct Decision Type I Error Type II Error Correct Decision
A type I error occurs if the null hypothesis is rejected when it is true. A type II error occurs if the null hypothesis is not rejected when it is false.
Larson/Farber 4th ed.
13
14
p
0.18 0.20 0.22 0.24
15
16
17
Level of Significance
Level of significance Your maximum allowable probability of making a type I error. Denoted by E, the lowercase Greek letter alpha. By setting the level of significance at a small value, you are saying that you want the probability of rejecting a true null hypothesis to be small. Commonly used levels of significance: E = 0.10 E = 0.05 E = 0.01 P(type II error) = (beta)
Larson/Farber 4th ed.
18
Statistical Tests
After stating the null and alternative hypotheses and specifying the level of significance, a random sample is taken from the population and sample statistics are calculated. The statistic that is compared with the parameter in the null hypothesis is called the test statistic.
Population parameter Test statistic Standardized test statistic z (Section 7.2 n u 30) t (Section 7.3 n < 30) z (Section 7.4) 2 (Section 7.5)
19
x
p
2
Larson/Farber 4th ed.
p
s2
P-values
P-value (or probability value) The probability, if the null hypothesis is true, of obtaining a sample statistic with a value as extreme or more extreme than the one determined from the sample data. Depends on the nature of the test.
20
21
Left-tailed Test
The alternative hypothesis Ha contains the less-than inequality symbol (<). H 0: u k Ha: < k
P is the area to the left of the test statistic.
z
-3
-2
-1
Test statistic
Larson/Farber 4th ed.
22
Right-tailed Test
The alternative hypothesis Ha contains the greaterthan inequality symbol (>). H 0: k P is the area Ha: > k
to the right of the test statistic.
-3
-2
-1
Test statistic
Larson/Farber 4th ed.
23
Two-tailed Test
The alternative hypothesis Ha contains the not equal inequality symbol (). Each tail has an area of P. H0: = k Ha: { k
P is twice the area to the left of the negative test statistic. P is twice the area to the right of the positive test statistic.
-3
-2
-1
Test statistic
Test statistic
24
-z
25
-z
26
27
Making a Decision
Decision Rule Based on P-value Compare the P-value with E. If P e E, then reject H0. If P > E, then fail to reject H0.
Claim Decision Reject H0 Fail to reject H0 Claim is H0
There is enough evidence to reject the claim There is not enough evidence to reject the claim
Claim is Ha
There is enough evidence to support the claim There is not enough evidence to support the claim
28
29
30
31
33
Reject H0.
7. Write a statement to interpret the decision in the context of the original claim.
Larson/Farber 4th ed.
34
35
Section 7.2
Hypothesis Testing for the Mean (Large Samples)
36
37
38
39
40
41
0.9838 0
P = 2(0.0162) = 0.0324
42
43
In Symbols
State H0 and Ha.
Identify E.
x Q z! W n
Use Table 4 in Appendix B.
44
45
46
z!
!
xQ n 28.5 30
3.5 36 ! 2.57
Larson/Farber 4th ed.
Decision: 0.0051 < 0.01 Reject H0 At the 1% level of significance, you have sufficient evidence to conclude the mean delivery time is less than 30 minutes.
47
48
P = 2(0.0655) = 0.1310
z!
!
Decision: 0.1310 > 0.05 Fail to reject H0 At the 5% level of significance, there is not sufficient evidence to conclude the mean franchise investment is different from $143,260.
49
50
51
= 0.95 = 0.025
0 z0 =z0 1.96
The rejection regions are to the left of -z0 = -1.96 and to the right of z0 = 1.96.
Larson/Farber 4th ed.
52
z0
z > z0
Left-Tailed Test
Reject H0
Right-Tailed Test
Reject H0 z z > z0 z0 53
Two-Tailed Test
In Symbols
State H0 and Ha.
54
In Symbols
z! x Q or if n u 30 W n
use W } s.
55
56
0.05 -1.645 0
z
-1.58
Larson/Farber 4th ed.
! 1.58 Decision: Fail to reject H0 At the 5% level of significance, there is not sufficient evidence to support the employees claim that the mean salary is less than $45,000.
57
58
0.025 -1.96 0
0.025 1.96
z
-2.24
Larson/Farber 4th ed.
! 2 24 Decision: Reject H0 At the 5% level of significance, you have enough evidence to conclude the mean cost of raising a child from birth to age 2 in a rural area is significantly different from $10,460.
59
60
Section 7.3
Hypothesis Testing for the Mean (Small Samples)
61
62
63
0.05 -1.725 0
t
64
0.025 -2.060 0
0.025 2.060
t
65
t-Test for a Mean A statistical test for a population mean. The t-test can be used when the population is normal or nearly normal, W is unknown, and n < 30. The test statistic is the sample mean x The standardized test statistic is t.
x Q t! s n
The degrees of freedom are d.f. = n 1.
Larson/Farber 4th ed.
66
In Symbols
State H0 and Ha.
Identify E. d.f. = n 1.
In Symbols
x Q t! s n
If t is in the rejection region, reject H0. Otherwise, fail to reject H0.
68
Example: Testing
A used car dealer says that the mean price of a 2005 Honda Pilot LX is at least $23,900. You suspect this claim is incorrect and find that a random sample of 14 similar vehicles has a mean price of $23,000 and a standard deviation of $1113. Is there enough evidence to reject the dealers claim at = 0.05? Assume the population is normally distributed. (Adapted from Kelley
Blue Book)
69
Solution: Testing
H0: $23,900 Ha: < $23,900 = 0.05 df = 14 1 = 13 Rejection Region:
Decision: Reject H0
0.05 -1.771 0
t
-3.026
Larson/Farber 4th ed.
At the 0.05 level of significance, there is enough evidence to reject the claim that the mean price of a 2005 Honda Pilot LX is at least $23,900
70
Example: Testing
An industrial company claims that the mean pH level of the water in a nearby river is 6.8. You randomly select 19 water samples and measure the pH of each. The sample mean and standard deviation are 6.7 and 0.24, respectively. Is there enough evidence to reject the companys claim at = 0.05? Assume the population is normally distributed.
71
Solution: Testing
H0: = 6.8 Ha: 6.8 = 0.05 df = 19 1 = 18 Rejection Region:
0.025 2.101
t
0.025 -2.101 0
At the 0.05 level of significance, there is not enough evidence to reject the claim that the mean pH is 6.8.
72
-1.816
Larson/Farber 4th ed.
73
= $118 $118
Calculate: Draw:
TI-83/84set up:
Decision: 0.1664 > 0.10 Fail to reject H0. At the 0.10 level of significance, there
is not enough evidence to reject the claim that the mean daily meal cost for a family of four traveling on vacation in Florida is $118.
Larson/Farber 4th ed.
74
75
Section 7.4
Hypothesis Testing for Proportions
76
77
pQp p p z! ! Wp pq n
78
In Symbols
State H0 and Ha.
Identify E.
In Symbols
p p z! pq n
80
81
0.025 -1.96 0
0.025 1.96
z
1.14
Larson/Farber 4th ed.
} 1.14 Decision: Fail to reject H0 At the 5% level of significance, there is not enough evidence to reject the claim that 45% of people in the U.S. support making cigarettes illegal within the next 5 to 10 years.
82
83
0.05 0 1.645
z
2.07
! 2.07 Decision: Reject H0 At the 5% level of significance, there is enough evidence to support the claim that more than 55% of U.S. adults regularly watch their local television news.
84
85
Section 7.5
Hypothesis Testing for Variance and Standard Deviation
86
87
2-Test
1. Specify the level of significance E. 2. Determine the degrees of freedom d.f. = n 1. 3. The critical values for the 2-distribution are found in Table 6 of Appendix B. To find the critical value(s) for a a. right-tailed test, use the value that corresponds to d.f. and E. b. left-tailed test, use the value that corresponds to d.f. and 1 E. c. two-tailed test, use the values that corresponds to d.f. and E and d.f. and 1 E.
88
2-Test
Left-tailed
E
1
2
G 02
G02
Two-tailed
1 E 2
1
2 GR
1 E 2
2
2 GL
89
2 2 G0 G02.558 !
90
1 E ! 0.005 2
2 L
1 E ! 0.005 2
2
91
for a Variance or Standard Deviation A statistical test for a population variance or standard deviation. Can be used when the population is normal. The test statistic is s2. The standardized test statistic 2 follows a chi-square distribution with degrees of freedom d.f. = n 1.
(n 1)s G ! W2
2
92
In Symbols
State H0 and Ha.
Identify E. d.f. = n 1
In Symbols
(n 1)s 2 G ! W2
2
95
55.758
43.2
Larson/Farber 4th ed.
97
Test Statistic:
14.042
11.536
Larson/Farber 4th ed.
99
Test Statistic:
5.629
Larson/Farber 4th ed.
26.119
19.194
101