Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

20
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi- Square

Transcript of Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

Page 1: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

Copyright © Cengage Learning. All rights reserved.

11 Applications of Chi-Square

Page 2: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

Copyright © Cengage Learning. All rights reserved.

11.2Inferences Concerning

Multinomial Experiments

Page 3: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

3

Inferences Concerning Multinomial Experiments

The preceding die problem is a good illustration of a multinomial experiment. Let’s consider this problem again.

Suppose that we want to test this die (at = 0.05) and decide whether to fail to reject or reject the claim “This die is fair.” (The probability of each number is .) The die is rolled from a cup onto a smooth, flat surface 60 times, with the following observed frequencies:

Page 4: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

4

Inferences Concerning Multinomial Experiments

The null hypothesis that the die is fair is assumed to be true. This allows us to calculate the expected frequencies. If the die is fair, we certainly expect 10 occurrences of each number.

Now let’s calculate an observed value of χ2. These calculations are shown in Table 11.2.The calculated value is χ2 = 2.2

Table 11.2Computations for Calculating χ2

Page 5: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

5

Inferences Concerning Multinomial Experiments

Now let’s use our familiar hypothesis-testing format.

Step 1 a. Parameter of interest: The probability with which each side faces up: P (1), P (2), P (3), P

(4), P (5), P (6)

b. Statement of hypotheses:

Ho: The die is fair (each p = ).

Ha: The die is not fair (at least one p is different from the others).

Page 6: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

6

Inferences Concerning Multinomial Experiments

Step 2 a. Assumptions: The data were collected in a random manner, and each outcome is one of the six numbers.

b. Test statistic: The chi-square distribution and

formula , with df = k – 1 = 6 – 1 = 5

In a multinomial experiment, df = k – 1, where k is the number of cells.

c. Level of significance: = 0.05

Page 7: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

7

Inferences Concerning Multinomial Experiments

Step 3 a. Sample information: See Table 11.2.

b. Calculated test statistic: Using formula

we have

χ2 = 2.2 (calculations are shown in Table 11.2)

Table 11.2

Computations for Calculating χ2

Page 8: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

8

Inferences Concerning Multinomial Experiments

Step 4 Probability Distribution:

p-Value:

a. Use the right-hand tail because “larger” values of chi- square disagree with the null hypothesis:

P = P(χ2 2.2 | df = 5), as shown in the figure.

Page 9: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

9

Inferences Concerning Multinomial Experiments

To find the p-value, you have two options:

1. Use Table 8 (Appendix B) to place bounds on the p-value: 0.75 P 0.90.

2. Use a computer or calculator to find the p-value: P = 0.821.

b. The p-value is not smaller than the level of significance,

.

Page 10: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

10

Inferences Concerning Multinomial Experiments

Classical:

a. The critical region is the right-hand tail because “larger” values of chi-square disagree with the null hypothesis.

The critical value is obtained from Table 8, at the intersection of row df = 5 and column = 0.05:

Page 11: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

11

Inferences Concerning Multinomial Experiments

b. χ2 is not in the critical region, as shown in red in the figure.

Step 5 a. Decision: Fail to reject Ho.

b. Conclusion: At the 0.05 level of significance, the observed frequencies are not significantly different from those expected of a fair die.

Before we look at other examples, we must define the term multinomial experiment and state the guidelines for completing the chi-square test for it.

Page 12: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

12

Inferences Concerning Multinomial Experiments

Multinomial experiment A multinomial experiment has the following characteristics:

1. It consists of n identical independent trials.

2. The outcome of each trial fits into exactly one of k possible cells.

3. There is a probability associated with each particular cell, and these individual probabilities remain constant during the experiment. (It must be the case that p1 + p2 + … + pk = 1.)

Page 13: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

13

Inferences Concerning Multinomial Experiments

4. The experiment will result in a set of k observed frequencies, O1, O2,…, Ok where each Oi is the number of times a trial outcome falls into that particular cell. (It must be the case that O1 + O2 +…+ Ok = n.)

Page 14: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

14

Example 2 – A Multinomial Hypothesis Test with Unequal Expected Frequencies

The Mendelian theory of inheritance claims that the frequencies of round and yellow, wrinkled and yellow, round and green, and wrinkled and green peas will occur in the ratio 9:3:3:1 when two specific varieties of peas are crossed. In testing this theory, Mendel obtained frequencies of 315, 101, 108, and 32, respectively.

Do these sample data provide sufficient evidence to reject the theory at the 0.05 level of significance?

Page 15: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

15

Example 2 – Solution

Step 1 a. Parameter of interest: The proportions: P (round and yellow), P (wrinkled and yellow), P (round and green), P (wrinkled and green)

b. Statement of hypotheses:

Ho: 9:3:3:1 is the ratio of inheritance.

Ha: 9:3:3:1 is not the ratio of inheritance.

Step 2 a. Assumptions: We will assume that Mendel’s results form a random sample.

Page 16: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

16

Example 2 – Solution

b. Test statistic: The chi-square distribution and

formula , with df = 3

c. Level of significance: = 0.05

Step 3 a. Sample information: The observed frequencies were: 315, 101, 108, and 32.

b. Calculated test statistic: The ratio 9331

indicates probabilities of

Therefore, the expected frequencies are

cont’d

Page 17: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

17

Example 2 – Solution

We have

n = Oi = 315 + 101 + 108 + 32 = 556

The computations for calculating χ2 are shown in Table 11.4.

Table 11.4

cont’d

Computations Needed to Calculate χ2

Page 18: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

18

Example 2 – Solution

Step 4 Probability Distribution:

p-Value:

a. Use the right-hand tail because “larger” values of chi- square disagree with the null hypothesis:

P = P (χ2 0.47 | df = 3), as shown in the figure.

To find the p-value, you have two options:

1. Use Table 8 (Appendix B) to place bounds on the p-value: 0.90 P 0.95.

cont’d

Page 19: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

19

Example 2 – Solution

2. Use a computer or calculator to find the p-value:

P = 0.925.

b. The p-value is not smaller than the level of significance, .

Classical:

a. The critical region is the right-hand tail because “larger”

values of chi-square disagree with the null hypothesis. The critical value is obtained from Table 8, at the intersection of row df = 3 and column = 0.05:

cont’d

Page 20: Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.

20

Example 2 – Solution

b. χ2 is not in the critical region, as shown in red

in the figure.

Step 5 a. Decision: Fail to reject Ho.

b. Conclusion: At the 0.05 level of significance, there is not sufficient evidence to reject Mendel’s theory.

cont’d