Chap09 PPT
Chap09 PPT
Economics
Vũ Võ
[email protected]
9-1
Chapter 9
One-Sample Hypothesis Testing
Chapter Contents
9.1 Logic of Hypothesis Testing
9.2 Type I and Type II Errors
9.3 Decision Rules and Critical Values
9.4 Testing a Mean: Known Population Variance
9.5 Testing a Mean: Unknown Population Variance
9.6 Testing a Proportion
9.7 Power Curves and OC Curves (Optional)
9.8 Tests for One Variance (Optional)
9-2
Chapter 9
Chapter Learning Objectives (LOs)
LO9-1: Know the steps in testing hypotheses and define H0 and H1.
LO9-2: Define Type I error, Type II error, and power.
LO9-3: Formulate a null and alternative hypothesis for μ or π.
LO9-4: Explain decision rules, critical values, and rejection regions.
LO9-5: Perform a hypothesis test for a mean with known σ using z.
LO9-6: Use tables or Excel to find the p-value in tests of μ.
9-3
Chapter 9
Chapter Learning Objectives (LOs),
continued
9-4
Chapter 9
9.1 Logic of Hypothesis Testing
LO9-1: Know the steps in testing hypotheses and define
H0 and H1.
• A business analyst asks questions, makes assumptions, and proposes
testable theories about the values of key parameters of the business
operating environment.
• Each assumption is tested against observed data.
• If an assumption has not been disproved, in spite of rigorous efforts to do
so, the business may operate under the belief that the statement is true.
• The analyst states the assumption, called a hypothesis, in a format that can
be tested using well-known statistical procedures.
• The hypothesis is compared with sample data to determine if the data are
consistent or inconsistent with the hypothesis.
• When the data are found to be inconsistent (i.e., in conflict) with the
hypothesis, the hypothesis is either discarded or reformulated.
9-5
Chapter 9
LO9-1: Know the steps in testing hypotheses and define
H0 and H1 (continued).
9-6
Chapter 9
LO9-1: Know the steps in testing hypotheses and define
H0 and H1 (continued, 2).
Copyright ©2019 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the
prior written consent of McGraw-Hill Education. 9-7
Chapter 9
LO9-1: Know the steps in testing hypotheses and define
H0 and H1 (continued, 3).
Copyright ©2019 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the
prior written consent of McGraw-Hill Education. 9-9
Chapter 9
LO9-1: Know the steps in testing hypotheses and define
H0 and H1 (continued, 5).
• Efforts will be made to reject the null hypothesis (or the status
quo).
• H0 must be stated in a precise way, so that it can be tested
against empirical evidence from a sample.
• If H0 is rejected, we tentatively conclude H1 to be the case.
• H0 is sometimes called the maintained hypothesis.
• H1 is called the action alternative because action may be required
if we reject H0 in favor of H1.
• We cannot accept a null hypothesis, we can only fail to reject it.
• The null hypothesis is assumed true and a contradiction is sought.
9-11
Chapter 9
LO9-1: Know the steps in testing hypotheses and define
H0 and H1 (continued, 7).
9-12
Chapter 9
LO9-1: Know the steps in testing hypotheses and define
H0 and H1 (continued, 8).
9-13
Chapter 9
LO9-1: Know the steps in testing hypotheses and define
H0 and H1 (continued, 9).
9-14
Chapter 9
9.2 Type I and Type II Errors
LO9-2: Define Type I error, Type II error, and power.
9-15
Chapter 9
LO9-2: Define Type I error, Type II error, and power
(continued).
Types of Error
9-16
Chapter 9
LO9-2: Define Type I error, Type II error, and power
(continued, 2).
• The consequences of these two errors are quite different, and the
costs are borne by different parties.
• Example: Type I error is convicting an innocent defendant, so the
costs are borne by the defendant. Type II error is failing to convict a
guilty defendant, so the costs are borne by society if the guilty
person returns to the streets.
• Firms are increasingly wary of Type II error (failing to recall a
product as soon as sample evidence begins to indicate potential
problems).
9-17
Chapter 9
LO9-2: Define Type I error, Type II error, and power
(continued, 3).
9-18
Chapter 9
LO9-2: Define Type I error, Type II error, and power
(continued, 4).
9-20
Chapter 9
LO9-2: Define Type I error, Type II error, and power
(continued, 6).
9-21
Chapter 9
9.3 Decision Rules and Critical Values
9-22
Chapter 9
LO9-3: Formulate a null and alternative hypothesis
for μ or π (continued).
9-23
Chapter 9
LO9-3: Formulate a null and alternative hypothesis
for μ or π (continued, 2).
9-24
Chapter 9
LO9-4: Explain decision rules, critical values, and rejection
regions.
Decision Rule
9-25
Chapter 9
LO9-4: Explain decision rules, critical values, and rejection
regions (continued).
When to Use a One- or Two-Sided Test
9-26
Chapter 9
LO9-4: Explain decision rules, critical values, and rejection
regions (continued, 2).
Decision Rule for Two-Tailed Test
9-27
Chapter 9
LO9-4: Explain decision rules, critical values, and rejection
regions (continued, 3).
Decision Rule for Left-Tailed Test
• Reject H0 if the test statistic < left-tail critical value.
Figure 9.2
9-28
Chapter 9
LO9-4: Explain decision rules, critical values, and rejection
regions (continued, 4).
Decision Rule for Right-Tailed Test
• Reject H0 if the test statistic > right-tail critical value.
9-29
Chapter 9
LO9-4: Explain decision rules, critical values, and rejection
regions (continued, 5).
Type I Error
9-30
Chapter 9
9.4 Testing a Mean: Known Population
Variance
LO9-5: Perform a hypothesis test for a mean with
known σ using z.
• A test statistic measures the difference between a given
sample mean and a benchmark µ0 in terms of the standard
error of the mean.
• The test statistic is the “standardized score” of the sample
statistic.
• When testing μ with a known σ, the test statistic is a z-score.
• Once we have collected our sample, we calculate a value of
the test statistic using the sample mean and then compare it
against the critical value of z.
• We will refer to the calculated value of the test statistic as zcalc.
9-31
Chapter 9
LO9-5: Perform a hypothesis test for a mean with
known σ using z (continued).
If the true mean of the population is μ0, then the value of a particular
sample mean ̅ calculated from our sample should be near μ0 and
therefore the test statistic should be near zero.
9-32
Chapter 9
LO9-5: Perform a hypothesis test for a mean with
known σ using z (continued, 2).
• The test statistic is compared with a critical value from a table.
• The critical value is the boundary between two regions (reject H0, do not
reject H0) in the decision rule.
• The critical value shows the range of values for the test statistic that
would be expected by chance if the null hypothesis were true.
9-33
Chapter 9
LO9-5: Perform a hypothesis test for a mean with
known σ using z (continued, 3).
9-34
Chapter 9
LO9-5: Perform a hypothesis test for a mean with
known σ using z (continued, 4).
Example: Paper Manufacturing (continued):
Testing the Hypothesis
9-36
Chapter 9
LO9-6: Use tables or Excel to find the p-value in tests of μ.
p-Value Method
• The p-value is the probability of the sample result (or one more
extreme) assuming that H0 is true.
• The p-value can be obtained using Excel’s cumulative standard
normal function.
• The p-value can also be obtained from Appendix C-2.
• Using the p-value, we reject H0 if p-value < α.
• Whether we use the critical value approach or the p-value approach,
our decision about the null hypothesis will be the same.
9-37
Chapter 9
LO9-6: Use tables or Excel to find the p-value in
tests of μ, (continued).
9-39
Chapter 9
LO9-6: Use tables or Excel to find the p-value in
tests of μ, (continued, 3).
We will use the same α = .05 as in the right-tailed test. But for a two-tailed
test, we split the risk of Type I error by putting α/2 = .05/2 =
.025 in each tail. For α = .05 in a two-tailed test, the critical value is
z.025 = ±1.96, so the decision rule is:
9-40
Chapter 9
LO9-6: Use tables or Excel to find the p-value in
tests of μ, (continued, 4).
Example: Paper Manufacturing (continued)
Two-Tail Test of Hypothesis
The decision rule is illustrated in Figure 9.6.
9-41
Chapter 9
LO9-6: Use tables or Excel to find the p-value in
tests of μ, (continued, 5).
9-42
Chapter 9
LO9-6: Use tables or Excel to find the p-value in
tests of μ, (continued, 6).
Because the test statistic falls in the right tail of the rejection region, we reject
the null hypothesis H0: μ = 216 and conclude H1: μ ≠ 216 at the 5 percent level
of significance.
Another way to say this is that the sample mean differs significantly from the
desired specification at α = .05 in a two-tailed test. Note that this decision is
rather a close one because the test statistic just barely falls into the rejection
region.
9-43
Chapter 9
LO9-6: Use tables or Excel to find the p-value in
tests of μ, (continued, 7).
9-44
Chapter 9
LO9-6: Use tables or Excel to find the p-value in
tests of μ, (continued, 8).
Testing the Hypothesis
Using the p-Value Approach
In a two-tailed test, the decision rule using the p-value is the same as in a one-tailed
test.
The difference between a one-tailed and a two-tailed test is how we obtain the p-
value. Because we allow rejection in either the left or the right tail in a two-tailed
test, the level of significance, α, is divided equally between the two tails to establish
the rejection region.
In order to fairly evaluate the p-value against α, we must now double the tail area.
The p-value in this two-tailed test is 2 × P(zcalc > 2.152) = 2 × .0157 = .0314. This says
that in a two-tailed test, a result as extreme as 2.152 would arise about 3.14 percent
of the time by chance alone if the null hypothesis were true.
9-45
Chapter 9
LO9-6: Use tables or Excel to find the p-value in
tests of μ, (continued, 9).
Testing the Hypothesis P-value = 0.0314 < α = 0.05,
Using the p-Value Approach so the null hypothesis is
rejected.
9-46
Chapter 9
LO9-6: Use tables or Excel to find the p-value in
tests of μ, (continued, 10).
9-47
Chapter 9
9.5 Testing a Mean: Unknown
Population Variance
LO9-7: Perform a hypothesis test for a mean with
unknown σ using t.
Using Student’s t
9-48
Chapter 9
LO9-7: Perform a hypothesis test for a mean with
unknown σ using t (continued).
Using Student’s t (continued)
• When the population standard deviation σ is unknown and the
population may be assumed normal, the test statistic follows the
Student’s t distribution with n – 1 degrees of freedom.
9-49
Chapter 9
LO9-7: Perform a hypothesis test for a mean with
unknown σ using t (continued, 2).
9-50
Chapter 9
LO9-7: Perform a hypothesis test for a mean with
unknown σ using t (continued, 3).
Critical
regions for
the test.
9-51
Chapter 9
LO9-7: Perform a hypothesis test for a mean with
unknown σ using t (continued, 4).
9-52
Chapter 9
LO9-7: Perform a hypothesis test for a mean with
unknown σ using t (continued, 5).
9-53
Chapter 9
LO9-7: Perform a hypothesis test for a mean with
unknown σ using t (continued, 6).
9-54
Chapter 9
LO9-7: Perform a hypothesis test for a mean with
unknown σ using t (continued, 7).
9-55
Chapter 9
LO9-7: Perform a hypothesis test for a mean with
unknown σ using t (continued, 8).
Confidence Intervals versus Hypothesis Test
• A two-tailed hypothesis test at the 10% level of significance
(α = .10) is equivalent to a two-sided 90% confidence interval for
the mean.
• If the confidence interval does not include the hypothesized
mean, then we reject the null hypothesis.
• The 90% confidence interval for the mean is given next.
9-57
Chapter 9
LO9-8: Perform a hypothesis test for a proportion and find
the p-value (continued).
9-58
Chapter 9
LO9-8: Perform a hypothesis test for a proportion and find
the p-value (continued, 2).
Critical Value
• The test statistic is compared with a critical z value from a
table.
• The critical value shows the range of values for the test
statistic that would be expected by chance if the H0 were
true.
Example: Return Policy
Using the p-value, we reject H0 at α = .05, but the decision would be very close
if we had used α = .025.
9-62
Chapter 9
LO9-8: Perform a hypothesis test for a proportion and find
the p-value (continued, 6).
The Effect of α
9-63
Chapter 9
LO9-8: Perform a hypothesis test for a proportion and find
the p-value (continued, 7).
9-64
Chapter 9
LO9-9: Check whether normality may be assumed in testing
a proportion.
9-65
Chapter 9
9.7 Power Curves and OC Curves
(Optional)
LO9-10: Interpret a power curve or OC curve (optional).
Alternative Hypothesis:
Decision Rule:
H0: σ2 = 49 H0: σ2 ≠ 49
For a two-tailed test, the decision rule based on the upper and
lower critical values of chi-square is
Because the test statistic is within the middle range, we conclude that the
population variance does not differ significantly from 49; that is, the assembly
process variance is unchanged.
Figure 9.19 9-75
Chapter 9
LO9-11: Perform a hypothesis test for a variance
(optional) (continued, 9).
When to Use Tests for One Variance
• In general, we would be interested in a test of variances when it is not the
center of the distribution, but rather the variability of the process, that
matters.
• More variation implies a more erratic data-generating process.
• For example, variance tests are important in manufacturing processes
because increased variation around the mean can be a sign of wear and
tear on equipment or other problems that would require attention.
Caution