Hypothesis Testing: 8-1 Review and Preview
Hypothesis Testing: 8-1 Review and Preview
Hypothesis Testing: 8-1 Review and Preview
Hypothesis Testing
8-1 Review and Preview
8-2 Basics of Hypothesis Testing
8-3 Testing a Claim about a Proportion
8-4 Testing a Claim About a Mean: σ Known
8-5 Testing a Claim About a Mean: σ Not Known
8-6 Testing a Claim About a Standard Deviation or
Variance
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 1
Section 8-1
Review and Preview
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 2
Review
In Chapters 2 and 3 we used “descriptive
statistics” when we summarized data using tools
such as graphs, and statistics such as the mean
and standard deviation. Methods of inferential
statistics use sample data to make an inference or
conclusion about a population. The two main
activities of inferential statistics are using sample
data to (1) estimate a population parameter (such
as estimating a population parameter with a
confidence interval), and (2) test a hypothesis or
claim about a population parameter. In Chapter 7
we presented methods for estimating a population
parameter with a confidence interval, and in this
chapter we present the method of hypothesis
testing.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 3
Definitions
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 4
Main Objective
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 5
Examples of Hypotheses that can be Tested
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 6
Examples of Hypotheses that can be Tested
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 7
Section 8-2
Basics of Hypothesis
Testing
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 8
Key Concept
This section presents individual components
of a hypothesis test. We should know and
understand the following:
• How to identify the null hypothesis and alternative
hypothesis from a given claim, and how to express
both in symbolic form
• How to calculate the value of the test statistic, given a
claim and sample data
• How to identify the critical value(s), given a
significance level
• How to identify the P-value, given a value of the test
statistic
• How to state the conclusion about a claim in simple
and nontechnical terms
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 9
Part 1:
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 10
Rare Event Rule for
Inferential Statistics
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 11
Components of a
Formal Hypothesis
Test
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 12
Null Hypothesis:
H0
• The null hypothesis (denoted by H0) is
a statement that the value of a
population parameter (such as
proportion, mean, or standard
deviation) is equal to some claimed
value.
• We test the null hypothesis directly.
• Either reject H0 or fail to reject H0.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 13
Alternative Hypothesis:
H1
• The alternative hypothesis (denoted
by H1 or Ha or HA) is the statement that
the parameter has a value that
somehow differs from the null
hypothesis.
• The symbolic form of the alternative
hypothesis must use one of these
symbols: , <, >.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 14
Note about Forming Your
Own Claims (Hypotheses)
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 15
Note about Identifying
H0 and H1
Figure 8-2
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 16
Example:
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 17
Example:
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 18
Example:
Step 3: Of the two symbolic expressions
≤ 195 lb and > 195 lb, we see that
> 195 lb does not contain equality,
so we let the alternative hypothesis
H1 be > 195 lb. Also, the null
hypothesis must be a statement that
the mean equals 195 lb, so we let H0
be = 195 lb.
Note that the original claim that the mean is at
most 195 lb is neither the alternative hypothesis
nor the null hypothesis. (However, we would be
able to address the original claim upon
completion of a hypothesis test.)
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 19
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 20
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 21
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 22
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 23
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 24
Hypothesis Testing
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 25
Wording of Final Conclusion
Figure 8-7
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 26
Caution
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 27
Accept Versus Fail to Reject
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 28
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 29
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 30
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 31
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 32
Reject or Fail To Reject?
P-value method
Confidence intervals
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 33
Test Statistic
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 34
Test Statistic - Formulas
p̂ p
Test statistic for z
proportion pq
n
x x
Test statistic z or t
for mean s
n n
standard deviation 2
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 35
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 36
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 37
P-Value
The P-value (or p-value or probability value)
is the probability of getting a value of the test
statistic that is at least as extreme as the one
representing the sample data, assuming that
the null hypothesis is true.
Critical region P-value = area to the left of
in the left tail: the test statistic
Critical region P-value = area to the right of
in the right tail: the test statistic
Critical region P-value = twice the area in the
in two tails: tail beyond the test statistic
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 38
Procedure for Finding P-Values
Figure 8-5
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 39
Type of Test and P-Value
(Two-tailed) H1:
test statistic negative test statistic positive
P-value = 2 P( z test statistic) P-value = 2 P( z test statistic)
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 40
Type of Test and P-Value
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 41
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 42
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 43
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 44
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 45
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 46
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 47
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 48
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 49
Critical Region
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 50
Significance Level
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 51
Decision Criterion Comparing P-
Value and Significance Level
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 52
Decision Criterion Comparing P-
Value and Significance Level
If P-value , reject H0
IN WORDS:
If we assume the null hypothesis is true and if the
probability of getting a value of the test statistic that
is at least as extreme as the one representing the
sample data is less than or equal to the probability
that the test statistic will fall in the critical region
when the null hypothesis is actually true, then we
reject the null hypothesis.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 53
P-Value
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 54
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 55
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 56
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 57
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 58
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 59
Recap
In this section we have discussed:
Null and alternative hypotheses.
Test statistics.
Significance levels.
P-values.
Decision criteria.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 60
Section 8-3
Testing a Claim About a
Proportion
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 61
Basic Methods of Testing Claims
about a Population Proportion p
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 62
Notation
n = number of trials
x
p = n (sample proportion)
p = population proportion (used in the
null hypothesis)
q=1–p
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 63
Requirements for Testing Claims
About a Population Proportion p
1) The sample observations are a simple
random sample.
2) The conditions for a binomial distribution
are satisfied.
3) The conditions np 5 and nq 5 are both
satisfied, so the binomial distribution of
sample proportions can be approximated
by a normal distribution with µ = np and
= npq . Note: p is the assumed
proportion not the sample proportion.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 64
Test Statistic for Testing
a Claim About a Proportion
p–p
z= pq
n
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 65
Caution
p = population proportion
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 66
Obtaining P
p sometimes is given directly
“10% of the observed sports cars are red”
is expressed as
p = 0.10
p sometimes must be calculated
“96 surveyed households have cable TV
and 54 do not” is calculated using
x 96
p =n =
(96+54)
= 0.64
(determining the sample proportion of households with cable TV)
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 67
P-Value Method
1. Formulate the null and alternative hypotheses
(remember: the null gets the equal)
2. Find the sample proportion p
3. Calculate the test statistic z
4. Calculate the P-value using a left-tailed, right-tailed,
or two-tailed test (depends on the alternative
hypothesis H1 ) and the standard normal
distribution (Table) using the test statistic z
5. Compare the P-value with the given significance
level and choose to reject H0 or fail to reject H0
(remember: if the P is low, the null must go)
6. Write a properly worded conclusion based on your
result from step 5.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 68
Example:
The text refers to a study in which 57 out of
104 pregnant women correctly guessed the
sex of their babies. Use these sample data to
test the claim that the success rate of such
guesses is no different from the 50% success
rate expected with random chance guesses.
Use a 0.05 significance level.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 69
Example:
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 70
Example:
pˆ p 0.55 0.50
z 0.98
pq / n (0.5)(0.5) / 104
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 71
Example:
Step 4: two-tailed test and z is positive, so P-
value is twice the area to the right of test
statistic
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 72
Example:
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 73
Example:
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 74
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 75
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 76
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 77
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 78
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 79
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 80
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 81
Rare Event Rule for
Inferential Statistics
Previous example can be understood in terms
of the rare event rule for inferential statistics:
If, under a given assumption, the probability of a
particular observed event is exceptionally small, we
conclude that the assumption is probably not correct.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 82
Example:
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 83
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 84
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 85
Example
pˆ 18.3% 0.183
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 86
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 87
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 88
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 89
Example
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved. 8.1 - 90