Nonparametric Methods: Nominal Level Hypothesis Tests
Nonparametric Methods: Nominal Level Hypothesis Tests
Chapter 15
Copyright © 2015 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written consent of McGraw-Hill Education.
Learning Objectives
LO15-1 Test a hypothesis about a population proportion.
LO15-2 Test a hypothesis about two population
proportions.
LO15-3 Test a hypothesis comparing an observed set of
frequencies to an expected frequency distribution.
LO15-4 Explain the limitations of using the chi-square
statistic in goodness-of-fit tests.
LO15-5 Test a hypothesis that an observed frequency
distribution is normally distributed.
LO15-6 Perform a chi-square test for independence on a
contingency table.
15-2
LO15-1 Test a hypothesis about a
population proportion.
15-3
LO15-1
15-4
LO15-1
H0: ≥ .80
H1: < .80
15-6
LO15-1
p
z
(1 )
n
Sample size
15-7
LO15-1
The computed value of z (-2.80) is in the rejection region, so the null hypothesis is rejected
at the .05 level.
Step 6: Interpret the results. The difference of 2.5 percentage points between the sample
proportion (77.5%) and the hypothesized population proportion (80%) is statistically
significant. The evidence at this point does not support the claim that the incumbent
governor will return to the governor’s mansion for another four years.
15-8
LO15-2 Test a hypothesis about
two population proportions.
15-9
LO15-2
15-11
LO15-2
15-12
LO15-2
15-13
LO15-2
15-14
LO15-2
The computed value of -2.207 is in the area of rejection. Therefore, the null
hypothesis is rejected at the .05 significance level.
Step 6: Interpret the result. The proportions of young and older women who
purchase Heavenly are different. By observation, the proportions indicate that
older women are more likely to prefer the fragrance.
15-15
LO15-3 Test a hypothesis comparing an observed set
of frequencies to an expected frequency distribution.
15-16
LO15-3
15-17
LO15-3
15-18
LO15-3
Comparing observed and expected
frequency distributions:
The Goodness-of-Fit Test - Example
The Bubba’s Fish and Pasta is a chain of restaurants located along the Gulf
Coast of Florida. Bubba, the owner, is considering adding steak to his menu.
Before doing so he decides to hire Magnolia Research, LLC, to conduct a
survey of adults about their favorite entree when eating out. Magnolia selected
a sample of 120 adults and asked each to indicate their entrée when dining
out. The results are reported below.
Is it reasonable to conclude there is no preference among the four entrees?
Notice the we computed the expected frequencies so that they are equal
(120/4=30). The expected frequency distribution infers that adults have no
preference for any of the entrees; the probabilities that an adult would
choose any entrée are equal. 15-19
LO15-3
15-20
LO15-3
c 2 > 7.815
15-21
LO15-3
fo fe 2
2
f e
The computed χ2 of 2.20 is less than the critical value of 7.815. The
decision, therefore, is to fail to reject H0 at the .05 level .
Step 6: Interpret the result. The difference between the observed and the
expected frequencies is due to chance. There appears to be no difference
in the preference among the four entrees.
15-22
LO15-3
Comparing observed and expected frequency
distributions: The Goodness-of-Fit Test –
Unequal Expected Frequencies Example
The c 2goodness-of-fit test to compare an observed frequency
distribution to a frequency distribution of unequal expected
frequencies is exactly the same as the procedure for the test
with equal frequencies.
Hypotheses:
H0: There is no difference between observed and expected
frequencies. Or, the two frequency distributions are not
different.
H1: There is a difference between observed and expected
frequencies. Or, the two frequency distributions are
different.
15-23
LO15-3
15-24
LO15-3
Comparing observed and expected frequency
distributions: The Goodness-of-Fit Test –
Unequal Expected Frequencies Example
For this problem, the set of observed frequencies is based on the
survey of the 150 residents.
15-25
LO15-3
15-26
LO15-3
Comparing observed and expected frequency
distributions: The Goodness-of-Fit Test –
Unequal Expected Frequencies Example
Step 4: Formulate the decision rule.
The critical value is a chi-square value with (k-1) degrees of
freedom, where k is the number of categories. In this example there
are 4 categories, so there are (4–1) or 3 degrees of freedom.
c 2 > 7.815
15-27
LO15-3
Comparing observed and expected frequency
distributions: The Goodness-of-Fit Test –
Unequal Expected Frequencies Example
Step 5: Select a sample, do the analysis, and make a decision.
fo fe 2
2
f e
The computed χ2 of 1.3723 is less the critical value of 7.815. The decision,
therefore, is to fail to reject H0 at the .05 level .
Step 6: Interpret the result. The difference between the observed and the
expected frequencies is due to chance. There appears to be no difference
in the distribution of hospital admittance for Bartow Estates Community.
15-28
LO15-4 Explain the limitations of using the
chi-square statistic in goodness-of-fit tests.
1. If there are only two cells, the expected frequency in each cell should be at least 5.
2. For more than two cells, chi-square should not be used if more than 20% of the fe cells
have expected frequencies less than 5. According to this policy, it would not be
appropriate to use the goodness-of-fit test on the following data. Three of the seven cells,
or 43%, have expected frequencies (fe) of less than 5.
15-29
LO15-5 Test a hypothesis that an observed
frequency distribution is normally distributed.
15-30
LO15-5
15-31
LO15-5
15-32
LO15-5
c 2 >11.070
15-33
LO15-5
15-34
LO15-5
The computed χ2 of 5.220 is less the critical value of 11.070. The decision,
therefore, is to fail to reject H0 at the .05 level .
15-36
LO15-6
15-37
LO15-6
fo fe 2
2
fe
15-38
LO15-6
c 2 > 5.991
15-39
LO15-6
15-40
LO15-6
fo fe 2
2
fe
The computed χ2 of 2.506 is less the critical value of 5.991. The decision,
therefore, is to fail to reject H0 at the .05 level .