1 chapter 10. section 10.1 and 10.2 triola, elementary statistics, eighth edition. copyright 2001....

23
1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman MARIO F. TRIOLA EIGHTH EDITION ELEMENTARY STATISTICS Chapter 10 Multinomial Experiments and Contingency Tables

Upload: martin-white

Post on 17-Jan-2016

220 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

1Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

MARIO F. TRIOLAMARIO F. TRIOLA EIGHTHEIGHTH

EDITIONEDITION

ELEMENTARY STATISTICS Chapter 10 Multinomial Experiments and

Contingency Tables

Page 2: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

2Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Chapter 10Multinomial Experiments and

Contingency Tables

10-1 Overview

10-2 Multinomial Experiments: Goodness-of-fit

10-3 Contingency Tables: Independence and Homogeneity

Page 3: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

3Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

10-1 OverviewFocus on analysis of categorical (qualitative or

attribute) data that can be separated into different categories (often called cells)

Use the X2 (chi-square) test statistic (Table A-4)

One-way frequency table (single row or column)

Two-way frequency table or contingency table (two or more rows and columns)

Page 4: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

4Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

10-2 Multinomial Experiments: Goodness-of-Fit

Assumptionswhen testing hypothesis that the population proportion for

each of the categories is as claimed:

1. The data have been randomly selected.

2. The sample data consist of frequency counts for each of the different categories.

3. The expected frequency is at least 5. (There is no requirement that the observed frequency for each category must be at least 5.)

Page 5: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

5Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Multinomial ExperimentAn experiment that meets the following conditions:

1. The number of trials is fixed.

2. The trials are independent.

3. All outcomes of each trial must be classified   into exactly one of several different      categories.

4. The probabilities for the different categories      remain constant for each trial.

Definition

Page 6: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

6Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Definition

Goodness-of-fit test

used to test the hypothesis that an observed frequency distribution fits

(or conforms to) some claimed distribution

Page 7: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

7Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

0 represents the observed frequency of an outcome

E represents the expected frequency of an outcome

k represents the number of different categories or outcomes

n represents the total number of trials

Goodness-of-Fit TestNotation

Page 8: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

8Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Expected Frequencies

If all expected frequencies are equal:

the sum of all observed frequencies divided by the number of categories

nE =

k

Page 9: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

9Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Expected Frequencies

If all expected frequencies are not all equal:

each expected frequency is found by multiplying the sum of all observed frequencies by the

probability for the category

E = n p

Page 10: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

10Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Goodness-of-fit Test in Multinomial Experiments

Test Statistic

Critical Values

1. Found in Table A-4 using k-1 degrees of freedom

where k = number of categories

2. Goodness-of-fit hypothesis tests are always right-tailed.

X2 = (O - E)2

E

Page 11: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

11Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

A large disagreement between observed and expected values will lead to a large

value of X2 and a small P-value.

A significantly large value of 2 will cause a rejection of the null hypothesis of no difference between the observed and the expected.

A close agreement between observed and expected values will lead to a small

value of X2 and a large P-value.

Page 12: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

12Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Figure 10-3

Relationships Among Components in Goodness-of-Fit Hypothesis Test

Page 13: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

13Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Categories with Equal Frequencies

H0: p

1 = p

2 = p

3 = . . . = p

k

H1: at least one of the probabilities is

different from the others

(Probabilities)

Page 14: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

14Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

H0: p

1 , p

2, p

3, . . . , p

k are as claimed

H1: at least one of the above proportions

is different from the claimed value

Categories with Unequal Frequencies

(Probabilities)

Page 15: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

15Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Example: Mars, Inc. claims its M&M candies are distributed with the color percentages of 30% brown, 20% yellow, 20% red, 10% orange, 10% green, and 10% blue. At the 0.05 significance level, test the claim that the color distribution is as claimed by Mars, Inc.

Page 16: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

16Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Example: Mars, Inc. claims its M&M candies are distributed with the color percentages of 30% brown, 20% yellow, 20% red, 10% orange, 10% green, and 10% blue. At the 0.05 significance level, test the claim that the color distribution is as claimed by Mars, Inc.

Claim: p1 = 0.30, p2 = 0.20, p3 = 0.20, p4 = 0.10, p5 = 0.10, p6 = 0.10

H0 : p1 = 0.30, p2 = 0.20, p3 = 0.20, p4 = 0.10, p5 = 0.10, p6 = 0.10

H1: At least one of the proportions is different from the claimed value.

Page 17: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

17Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Example: Mars, Inc. claims its M&M candies are distributed with the color percentages of 30% brown, 20% yellow, 20% red, 10% orange, 10% green, and 10% blue. At the 0.05 significance level, test the claim that the color distribution is as claimed by Mars, Inc.

Brown Yellow Red Orange Green Blue

Observed frequency 33 26 21 8 7 5

Frequencies of M&Ms

n = 100

Page 18: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

18Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Example: Mars, Inc. claims its M&M candies are distributed with the color percentages of 30% brown, 20% yellow, 20% red, 10% orange, 10% green, and 10% blue. At the 0.05 significance level, test the claim that the color distribution is as claimed by Mars, Inc.

Brown Yellow Red Orange Green Blue

Observed frequency 33 26 21 8 7 5

Frequencies of M&Ms

Brown E = np = (100)(0.30) = 30

Yellow E = np = (100)(0.20) = 20

Red E = np = (100)(0.20) = 20

Orange E = np = (100)(0.10) = 10

Green E = np = (100)(0.10) = 10

Blue E = np = (100)(0.10) = 10

n = 100

Page 19: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

19Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Brown Yellow Red Orange Green Blue

Observed frequency 33 26 21 8 7 5

Frequencies of M&Ms

Expected frequency 30 20 20 10 10 10

(O -E)2/E 0.3 1.8 0.05 0.4 0.9 2.5

Page 20: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

20Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Brown Yellow Red Orange Green Blue

Observed frequency 33 26 21 8 7 5

Frequencies of M&Ms

Expected frequency 30 20 20 10 10 10

(O -E)2/E 0.3 1.8 0.05 0.4 0.9 2.5

X2 = = 5.95(O - E)2

E

Test Statistic

Page 21: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

21Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Brown Yellow Red Orange Green Blue

Observed frequency 33 26 21 8 7 5

Frequencies of M&Ms

Expected frequency 30 20 20 10 10 10

(O -E)2/E 0.3 1.8 0.05 0.4 0.9 2.5

X2 = = 5.95(O - E)2

E

Test StatisticCritical Value X2 =11.071 (with k-1 = 5 and = 0.05)

Page 22: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

22Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Test Statistic does not fall within critical region; Fail to reject H0: percentages are as claimed

There is not sufficient evidence to warrant rejection of the claim that the colors are distributed with the given percentages.

0

Sample data: X2 = 5.95

= 0.05

X2 = 11.071

Fail to Reject Reject

Page 23: 1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION

23Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright 2001. Addison Wesley Longman

Comparison of Claimed and Observed Proportions

••0.30

0.20

0.10

0

Green

Yellow

Red

Orange

Brown

Blue

••

••

••

Claimed proportions

Observed proportions

Proportions