Title: GoodnessofFit Tests and Contingency Analysis
1Goodness-of-Fit Testsand Contingency Analysis
?2
2Hypothesis (Goodness of Fit) Testfor Proportions
of a Multinomial Population
Multinomial Population a single population
consisting of more than one category.
3Example Finger Lakes Homes (A)
- Multinomial Distribution Goodness of Fit Test
- Finger Lakes Homes manufactures
- four models of prefabricated homes,
- a two-story colonial, a log cabin, a
- split-level, and an A-frame. To help
- in production planning, management
- would like to determine if previous
- customer purchases indicate that there is
- a preference in the style selected.
4Hypothesis (Goodness of Fit) Testfor Proportions
of a Multinomial Population
Multinomial Population a single population
consisting of more than one category.
1. Set up the null and alternative hypotheses.
2. Select a random sample and record the
observed frequency, oi , for each of the k
categories.
3. Assuming H0 is true, compute the expected
frequency, ei , in each category by
multiplying the category probability by the
sample size.
5Hypothesis (Goodness of Fit) Testfor Proportions
of a Multinomial Population
4. Compute the value of the test statistic.
6Example Finger Lakes Homes (A)
- Multinomial Distribution Goodness of Fit Test
- Finger Lakes Homes manufactures
- four models of prefabricated homes,
- a two-story colonial, a log cabin, a
- split-level, and an A-frame. To help
- in production planning, management
- would like to determine if previous
- customer purchases indicate that there is
- a preference in the style selected.
7Multinomial Distribution Goodness of Fit Test
H0 ?C ?L ?S ?A .25 HA The population
proportions are not as stated above
where ?C population proportion that purchase
a colonial ?L population proportion that
purchase a log cabin ?S population proportion
that purchase a split-level ?A population
proportion that purchase an A-frame
8Example Finger Lakes Homes (A)
- Multinomial Distribution Goodness of Fit Test
- The number of homes sold of each
- model for 100 sales over the past two
- years is shown below.
Split-
A- Model Colonial Log Level Frame
Sold 30 20 35 15
9Multinomial Distribution Goodness of Fit Test
10Multinomial Distribution Goodness of Fit Test
Reject H0 if c2 7.815.
With ? .05 and k - 1 4 - 1 3
degrees of freedom
Do Not Reject H0
Reject H0
?2
7.815
11Multinomial Distribution Goodness of Fit Test
c2 10 7.815
We reject, at the .05 level of
significance, the assumption that there is no
home style preference.
12Now You Try
- In the brochure Colors made available by
MM/MARS, maker of MM chocolate candies, the
traditional distribution of colors for the plain
candies is said to be as follows - In a follow-up study, 1-lb. bags were used to
determine whether the represented percentages
were valid. The following results were obtained
for a sample of 506 candies.
13Now You Try
- Use ? .05 to determine whether the observed
data support the percentages reported by the
company.
H0 ?Br .30, ?Y .20, ?R .20, ?O .10, ?G
.10, ?Bl .10 HA The population proportions
are not as stated above
14Now You Try
15Now You Try
- ?2.05 11.070 (5 degrees of freedom)
- 29.51 11.070 ? Reject H0
- The percentages reported by the company have
changed.
16Test of Independence
- Uses the chi-square distribution to test for the
independence of two variables
17Example Albers Brewery
- Contingency Table (Independence) Test
- Albers produces 3 types of beer light,
regular, and dark. To help in the development of
a new advertising campaign, the firm would like
to know whether preferences for the 3 beers
differ among male and female beer drinkers. - A test of independence addresses the question
of whether the beer preference (light, regular,
or dark) is independent of the gender of the
drinker (male, female). -
18Test of Independence Contingency Tables
1. Set up the null and alternative hypotheses.
2. Select a random sample and record the
observed frequency, oij , for each cell of
the contingency table.
3. Compute the expected frequency, eij , for
each cell.
19Test of Independence Contingency Tables
4. Compute the test statistic.
20Example Albers Brewery
- Contingency Table (Independence) Test
- Albers produces 3 types of beer light,
regular, and dark. To help in the development of
a new advertising campaign, the firm would like
to know whether preferences for the 3 beers
differ among male and female beer drinkers. - A test of independence addresses the question
of whether the beer preference (light, regular,
or dark) is independent of the gender of the
drinker (male, female). -
21Test of Independence Contingency Tables
Using sample data to test for the independence of
two variables
1. Set up the null and alternative hypotheses.
2. Select a random sample and record the
observed frequency, oij , for each cell of
the contingency table.
22Contingency Table (Independence) Test
H0 Beer preference is independent of gender HA
Beer preference is not independent of gender
Beer Preference
23Contingency Table (Independence) Test
A simple random sample of 150 is selected. After
tasting each beer, the individuals state their
preference. The sample results (observed
frequencies) are described below
24Test of Independence Contingency Tables
Using sample data to test for the independence of
two variables
1. Set up the null and alternative hypotheses.
2. Select a random sample and record the
observed frequency, oij , for each cell of
the contingency table.
3. Compute the expected frequency, eij , for
each cell.
25Expected Frequencies
26Expected Frequencies
27Expected Frequencies
28Expected Frequencies
Expected Frequencies
29Test of Independence Contingency Tables
Using sample data to test for the independence of
two variables
1. Set up the null and alternative hypotheses.
2. Select a random sample and record the
observed frequency, oij , for each cell of
the contingency table.
3. Compute the expected frequency, eij , for
each cell.
4. Compute the test statistic.
30Computation of the ?2 Test Statistic
?2
31Test of Independence Contingency Tables
Using sample data to test for the independence of
two variables
1. Set up the null and alternative hypotheses.
2. Select a random sample and record the
observed frequency, oij , for each cell of
the contingency table.
3. Compute the expected frequency, eij , for
each cell.
4. Compute the test statistic.
32Contingency Table (Independence) Test
- Rejection Rule
-
- Conclusion
Reject H0 if ?2 5.99
Beer preference is NOT independent of the gender
of the drinker
33(No Transcript)
34(No Transcript)
35(No Transcript)
36(No Transcript)
37(No Transcript)
38Now You Try
- In a study of brand loyalty in the automotive
industry, new-car customers were asked whether
the make of their new car was the same as the
make of their previous car. The breakdown of 600
responses shows the brand loyalty for domestic,
European, and Asian cars.
39Now You Try
- Conduct a hypothesis test to determine whether
brand loyalty is independent of the make of the
car. Use ? .05. What is your conclusion? - Observed Frequency (oij)
40Now You Try
41Computation of the ?2 Test Statistic
42Now You Try
43End of Chapter 13