Академический Документы
Профессиональный Документы
Культура Документы
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 whether to
reject the claim or fail to reject the claim.
Statistical hypothesis
• A statement, or claim, about a population parameter.
• Need a pair of hypotheses
• the null hypothesis that represents the claim
• the other, its alternative hypothesis
complementary
statements
Actual Truth of H0
Decision H0 is true H0 is false
Do not reject H0 Correct Decision Type II Error
Reject H0 Type I Error Correct Decision
Level of significance
• Your maximum allowable probability of making a
type I error. Known as the alpha level.
Denoted by , 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:
= 0.10 = 0.05 = 0.01
Use = 0.05 when the level of significance is not
given.
Larson/Farber 4th ed. 18
Statistical Tests
• After stating the null and alternative hypotheses and
specifying the level of significance (alpha level), 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 Test statistic Standardized test
parameter statistic
μ x z (Section 7.2 n 30)
t (Section 7.3 n < 30)
p p̂ z (Section 7.4)
σ2 s2 χ2 (Section 7.5)
Larson/Farber 4th ed. 19
P-values
z
-3 -2 -1 0 1 2 3
Test
statistic
Larson/Farber 4th ed. 22
Right-tailed Test
• The alternative hypothesis Ha contains the greater-
than inequality symbol (>).
H0: μ = k
Ha: μ > k P is the area
to the right
of the test
statistic.
z
-3 -2 -1 0 1 2 3
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
P is twice the
area to the right
area to the left of
of the positive
the negative test
test statistic.
statistic.
z
-3 -2 -1 0 1 2 3
Test Test
Larson/Farber 4th ed. statistic statistic 24
Example: Identifying The Nature of a Test
For each claim, state H0 and Ha. Then determine
whether the hypothesis test is a left-tailed, right-tailed,
or two-tailed test. Sketch a normal sampling distribution
and shade the area for the P-value.
A university publicizes that the proportion of its
students who graduate in 4 years is 82%.
Solution:
H0: p = 0.82 ½ P-value ½ P-value
Ha: p ≠ 0.82 area area
z
Two-tailed test -z 0 z
Hypotheses
Decision Rule Rule
There is enough evidence to There is enough evidence to
Reject H0 reject the claim support the claim
There is not enough evidence There is not enough evidence
Fail to reject H0 to reject the claim to support the claim
Reject H0.
7. Write a statement to interpret the decision in the
context of the original claim.
2. 0.01?
Solution:
Because 0.0237 > 0.01, you should fail to reject the
null hypothesis.
Larson/Farber 4th ed. 40
Finding the P-value
P = 0.0129
z
-2.23 0
Because 0.0129 > 0.01, you should fail to reject H0
Larson/Farber 4th ed. 42
Example: Finding the P-value
Find the P-value for a two-tailed hypothesis test with a
test statistic of z = 2.14. Decide whether to reject H0 if
the level of significance is α = 0.05.
Solution:
For a two-tailed test, P = 2(Area in tail of test statistic)
1 – 0.9838
P = 2(0.0162)
= 0.0162
0.9838 = 0.0324
z
0 2.14
Because 0.0324 < 0.05, you should reject H0
Larson/Farber 4th ed. 43
Z-Test for a Mean μ
• H0: • P-value
• Ha: μ < 30 min
• = 0.01 0.0051
• Test Statistic: -2.57 0
z
½α = 0.025 ½α = 0.025
z
z0
-z = -1.96 0 z = z1.96
0
Solution:
• The degrees of freedom are
d.f. = n – 1 = 21 – 1 = 20.
• Look at α = 0.05 in the
“One Tail, ” column. 0.05
• Because the test is left- -1.725 0
t
tailed, the critical value is
negative.
Larson/Farber 4th ed. 65
Example: Finding Critical Values for t
• H0:
• Ha: μ < $23,900
• α = 0.05
• df = 14 – 1 = 13 Reject H0
• Rejection Region: At the 0.05 level of
significance, there is enough
evidence to reject the claim
0.05
that the mean price of a 2005
t
-1.771 0 Honda Pilot LX is $23,900
-3.026
Larson/Farber 4th ed. 71
Example: Testing μ with a Small Sample
-1.816
Larson/Farber 4th ed. 73
Section 7.3 Summary