Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lecture Slides Elementary Statistics Tenth Edition

Similar presentations


Presentation on theme: "Lecture Slides Elementary Statistics Tenth Edition"— Presentation transcript:

1 Lecture Slides Elementary Statistics Tenth Edition
and the Triola Statistics Series by Mario F. Triola Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

2 Chapter 11 Multinomial Experiments and Contingency Tables
11-1 Overview 11-2 Multinomial Experiments: Goodness-of-fit 11-3 Contingency Tables: Independence and Homogeneity 11-4 McNemar’s Test for Matched Pairs Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

3 Overview and Multinomial Experiments:
Section 11-1 & 11-2 Overview and Multinomial Experiments: Goodness of Fit Created by Erin Hodgess, Houston, Texas Revised to accompany 10th Edition, Jim Zimmer, Chattanooga State, Chattanooga, TN Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

4 Overview We focus on analysis of categorical (qualitative or attribute) data that can be separated into different categories (often called cells). Use the 2 (chi-square) test statistic (Table A- 4). The goodness-of-fit test uses a one-way frequency table (single row or column). The contingency table uses a two-way frequency table (two or more rows and columns). page 590 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

5 Key Concept Given data separated into different categories, we will test the hypothesis that the distribution of the data agrees with or “fits” some claimed distribution. The hypothesis test will use the chi-square distribution with the observed frequency counts and the frequency counts that we would expect with the claimed distribution. page 591 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

6 Multinomial Experiment
Definition Multinomial Experiment This is an 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. Note that these conditions are similar to those of a binomial experiment. A binomial experiment has only two categories, whereas a multinomial experiment has more than two categories. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

7 Example: Last Digits of Weights
When asked, people often provide weights that are somewhat lower than their actual weights. So how can researchers verify that weights were obtained through actual measurements instead of asking subjects? page 591 of text The analysis of the last digits of data is often used to detect data that have been reported instead of measured. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

8 Example: Last Digits of Weights
Test the claim that the digits in Table 11-2 do not occur with the same frequency. Table 11-2 summarizes the last digit of weights of 80 randomly selected students. page 592 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

9 Example: Last Digits of Weights
Verify that the four conditions of a multinomial experiment are satisfied. 1. The number of trials (last digits) is the fixed number 80. 2. The trials are independent, because the last digit of any individual’s weight does not affect the last digit of any other weight. 3. Each outcome (last digit) is classified into exactly 1 of 10 different categories. The categories are 0, 1, … , 9. 4. Finally, in testing the claim that the 10 digits are equally likely, each possible digit has a probability of 1/10, and by assumption, that probability remains constant for each subject. page 591 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

10 Definition Goodness-of-fit Test
A goodness-of-fit test is used to test the hypothesis that an observed frequency distribution fits (or conforms to) some claimed distribution. page 592 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

11 Goodness-of-Fit Test Notation
O 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. page 592 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

12 If all expected frequencies are equal:
the sum of all observed frequencies divided by the number of categories n E = k page 593 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

13 If 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 593 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

14 Goodness-of-Fit Test in Multinomial Experiments
Requirements The data have been randomly selected. The sample data consist of frequency counts for each of the different categories. For each category, the expected frequency is at least 5. (The expected frequency for a category is the frequency that would occur if the data actually have the distribution that is being claimed. There is no requirement that the observed frequency for each category must be at least 5.) page 593 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

15 Goodness-of-Fit Test in Multinomial Experiments
Test Statistics 2 =  (O – E)2 E 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. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

16 Goodness-of-Fit Test in Multinomial Experiments
A close agreement between observed and expected values will lead to a small value of 2 and a large P-value. A large disagreement between observed and expected values will lead to a large value of 2 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. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

17 Relationships Among the 2 Test Statistic, P-Value, and Goodness-of-Fit
Figure 11-3 page 594 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

18 Example: Last Digit Analysis
Test the claim that the digits in Table 11-2 do not occur with the same frequency. H0: p0 = p1 =  = p9 H1: At least one of the probabilities is different from the others.  = 0.05 k – 1 = 9 2.05, 9 = page 595 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

19 Example: Last Digit Analysis
Test the claim that the digits in Table 11-2 do not occur with the same frequency. Because the 80 digits would be uniformly distributed through the 10 categories, each expected frequency should be 8. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

20 Example: Last Digit Analysis
Test the claim that the digits in Table 11-2 do not occur with the same frequency. page 596 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

21 Example: Last Digit Analysis
Test the claim that the digits in Table 11-2 do not occur with the same frequency. From Table 11-3, the test statistic is 2 = Since the critical value is , we reject the null hypothesis of equal probabilities. There is sufficient evidence to support the claim that the last digits do not occur with the same relative frequency. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

22 Example: Detecting Fraud
Unequal Expected Frequencies In the Chapter Problem, it was noted that statistics can be used to detect fraud. Table 11-1 lists the percentages for leading digits from Benford’s Law. page 597 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

23 Example: Detecting Fraud
Test the claim that there is a significant discrepancy between the leading digits expected from Benford’s Law and the leading digits from the 784 checks. Observed Frequencies and Frequencies Expected with Benford’s Law Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

24 Example: Detecting Fraud
Test the claim that there is a significant discrepancy between the leading digits expected from Benford’s Law and the leading digits from the 784 checks. H0: p1 = 0.301, p2 = 0.176, p3 = 0.125, p4 = 0.097, p5 = 0.079, p6 = 0.067, p7 = 0.058, p8 = and p9 = 0.046 H1: At least one of the proportions is different from the claimed values.  = 0.01 k – 1 = 8 2.01,8 = page 597 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

25 Example: Detecting Fraud
Test the claim that there is a significant discrepancy between the leading digits expected from Benford’s Law and the leading digits from the 784 checks. The test statistic is 2 = Since the critical value is , we reject the null hypothesis. There is sufficient evidence to reject the null hypothesis. At least one of the proportions is different than expected. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

26 Example: Detecting Fraud
Test the claim that there is a significant discrepancy between the leading digits expected from Benford’s Law and the leading digits from the 784 checks. Figure 11-5 page 596 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

27 Example: Detecting Fraud
page 599 of text Figure 11-6 Comparison of Observed Frequencies and Frequencies Expected with Benford’s Law Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

28 Recap In this section we have discussed:
Multinomial Experiments: Goodness-of-Fit - Equal Expected Frequencies - Unequal Expected Frequencies Test the hypothesis that an observed frequency distribution fits (or conforms to) some claimed distribution. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

29 Contingency Tables: Independence and Homogeneity
Section 11-3 Contingency Tables: Independence and Homogeneity page 606 of text Created by Erin Hodgess, Houston, Texas Revised to accompany 10th Edition, Jim Zimmer, Chattanooga State, Chattanooga, TN Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

30 Key Concept In this section we consider contingency tables (or two-way frequency tables), which include frequency counts for categorical data arranged in a table with a least two rows and at least two columns. We present a method for testing the claim that the row and column variables are independent of each other. We will use the same method for a test of homogeneity, whereby we test the claim that different populations have the same proportion of some characteristics. page 606 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

31 (or two-way frequency table)
Definition Contingency Table (or two-way frequency table) A contingency table is a table in which frequencies correspond to two variables. (One variable is used to categorize rows, and a second variable is used to categorize columns.) page 606 of text Contingency tables have at least two rows and at least two columns. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

32 Case-Control Study of Motorcycle Drivers
Is the color of the motorcycle helmet somehow related to the risk of crash related injuries? 491 213 704 377 112 489 31 8 39 899 333 1232 Black White Yellow/Orange Row Totals Controls (not injured) Cases (injured or killed) Column Totals page 606 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

33 Definition Test of Independence
A test of independence tests the null hypothesis that there is no association between the row variable and the column variable in a contingency table. (For the null hypothesis, we will use the statement that “the row and column variables are independent.”) page 606 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

34 Requirements The sample data are randomly selected and are represented as frequency counts in a two-way table. The null hypothesis H0 is the statement that the row and column variables are independent; the alternative hypothesis H1 is the statement that the row and column variables are dependent. For every cell in the contingency table, the expected frequency E is at least 5. (There is no requirement that every observed frequency must be at least 5. Also there is no requirement that the population must have a normal distribution or any other specific distribution.) page 607 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

35 Test of Independence Test Statistic
2 =  (O – E)2 E Critical Values 1. Found in Table A-4 using degrees of freedom = (r – 1)(c – 1) r is the number of rows and c is the number of columns 2. Tests of Independence are always right-tailed. page 607 of text Same chi-square formula as for multinomial tables. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

36 Total number of all observed frequencies in the table
Expected Frequency (row total) (column total) (grand total) E = Total number of all observed frequencies in the table page 607 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

37 Test of Independence This procedure cannot be used to establish a direct cause-and-effect link between variables in question. Dependence means only there is a relationship between the two variables. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

38 Expected Frequency for Contingency Tables
grand total row total column total (probability of a cell) n • p page 609 of text E = (row total) (column total) (grand total) Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

39 Case-Control Study of Motorcycle Drivers
491 213 704 377 112 489 31 8 39 899 333 1232 Black White Yellow/Orange Row Totals Controls (not injured) Cases (injured or killed) Column Totals 899 1232 704 For the upper left hand cell: (row total) (column total) E = (grand total) Exercise #11 on page 601. = E = (899)(704) 1232 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

40 Case-Control Study of Motorcycle Drivers
Row Totals Black White Yellow/Orange Controls (not injured) Expected 491 213 704 377 112 489 31 8 39 899 333 1232 Cases (injured or killed) Expected Column Totals (row total) (column total) E = (grand total) = E = (899)(704) 1232 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

41 Case-Control Study of Motorcycle Drivers
491 213 704 377 112 489 31 8 39 899 333 1232 Black White Yellow/Orange Row Totals Controls (not injured) Expected Cases (injured or killed) Column Totals 28.459 10.541 Expected Calculate expected for all cells. To interpret this result for the upper left hand cell, we can say that although 491 riders with black helmets were not injured, we would have expected the number to be if crash related injuries are independent of helmet color. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

42 Case-Control Study of Motorcycle Drivers
Using a 0.05 significance level, test the claim that group (control or case) is independent of the helmet color. H0: Whether a subject is in the control group or case group is independent of the helmet color. (Injuries are independent of helmet color.) H1: The group and helmet color are dependent. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

43 Case-Control Study of Motorcycle Drivers
Row Totals Black White Yellow/Orange Controls (not injured) Expected 491 213 704 377 112 489 28.459 10.541 31 8 39 899 333 1232 Cases (injured or killed) Expected Column Totals Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

44 Case-Control Study of Motorcycle Drivers
H0: Row and column variables are independent. H1: Row and column variables are dependent. The test statistic is 2 = 8.775  = 0.05 The number of degrees of freedom are (r–1)(c–1) = (2–1)(3–1) = 2. The critical value (from Table A-4) is 2.05,2 = The test statistic chi-square values need to be compared with the chi-square critical value found in Table A-4. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

45 Case-Control Study of Motorcycle Drivers
Figure 11-4 page 610 of text We reject the null hypothesis. It appears there is an association between helmet color and motorcycle safety. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

46 Relationships Among Key Components in Test of Independence
Figure 11-8 page 611 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

47 Definition Test of Homogeneity
In a test of homogeneity, we test the claim that different populations have the same proportions of some characteristics. page 611 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

48 How to Distinguish Between a Test of Homogeneity and a Test for Independence:
Were predetermined sample sizes used for different populations (test of homogeneity), or was one big sample drawn so both row and column totals were determined randomly (test of independence)? The key to identifying it is a test of homogeneity is the predetermined sample sizes. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

49 Example: Influence of Gender
Using Table 11-6 with a 0.05 significance level, test the effect of pollster gender on survey responses by men. page 612 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

50 Example: Influence of Gender
Using Table 11-6 with a 0.05 significance level, test the effect of pollster gender on survey responses by men. H0: The proportions of agree/disagree responses are the same for the subjects interviewed by men and the subjects interviewed by women. H1: The proportions are different. page 612 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

51 Example: Influence of Gender
Using Table 11-6 with a 0.05 significance level, test the effect of pollster gender on survey responses by men. Minitab page 613 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

52 Recap In this section we have discussed:
Contingency tables where categorical data is arranged in a table with a least two rows and at least two columns. * Test of Independence tests the claim that the row and column variables are independent of each other. * Test of Homogeneity tests the claim that different populations have the same proportion of some characteristics. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

53 McNemar’s Test for Matched Pairs
Section 11-4 McNemar’s Test for Matched Pairs page 621 of text This section is optional; it can easily be omitted. Created by Erin Hodgess, Houston, Texas Revised to accompany 10th Edition, Jim Zimmer, Chattanooga State, Chattanooga, TN Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

54 Key Concept The Contingency table procedures in Section 11-3 are based on independent data. For 2 x 2 tables consisting of frequency counts that result from matched pairs, we do not have independence, and for such cases, we can use McNemar’s test for matched pairs. page 621 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

55 Table 11-9 is a general table summarizing the frequency counts that result from matched pairs.
The test statistic chi-square values need to be compared with the chi-square critical value found in Table A-4. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

56 Definition McNemar’s Test uses frequency counts from matched pairs of nominal data from two categories to test the null hypothesis that for a table such as Table 11-9, the frequencies b and c occur in the same proportion. Note that these conditions are similar to those of a binomial experiment. A binomial experiment has only two categories, whereas a multinomial experiment has more than two categories. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

57 Requirements The sample data have been randomly selected.
The sample data consist of matched pairs of frequency counts. The data are at the nominal level of measurement, and each observation can be classified two ways: (1) According to the category distinguishing values with each matched pair, and (2) according to another category with two possible values. For tables such as Table 11-9, the frequencies are such that b + c ≥ 10. The test statistic chi-square values need to be compared with the chi-square critical value found in Table A-4. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

58 Requirements Test Statistic (for testing the null hypothesis that
for tables such as Table 11-9, the frequencies b and c occur in the same proportion): Where the frequencies of b and c are obtained from the 2 x 2 table with a format similar to Table 11-9. Critical values 1. The critical region is located in the right tail only. 2. The critical values are found in Table A- 4 by using degrees of freedom = 1. The test statistic chi-square values need to be compared with the chi-square critical value found in Table A-4. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

59 Example: Comparing Treatments
Table summarizes the frequency counts that resulted from the matched pairs using Pedacream on one foot and Fungacream on the other foot. The test statistic chi-square values need to be compared with the chi-square critical value found in Table A-4. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

60 Example: Comparing Treatments
H0: The following two proportions are the same: The proportion of subjects with no cure on the Pedacream-treated foot and a cure on the Fungacream-treated foot. The proportion of subjects with a cure on the Pedacream-treated and no cure on the Based on the results, does there appear to be a difference? The test statistic chi-square values need to be compared with the chi-square critical value found in Table A-4. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

61 Example: Comparing Treatments
Note that the requirements have been met: The data consist of matched pairs of frequency counts from randomly selected subjects. Each observation can be categorized according to two variables. (One variable has values of “Pedacream” and “Fungacream,” and the other variable has values of “cured” and “not cured.”) b = 8 and c = 40, so b + c ≥ 10. The test statistic chi-square values need to be compared with the chi-square critical value found in Table A-4. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

62 Example: Comparing Treatments
Test statistic Critical value from Table A-4 The test statistic chi-square values need to be compared with the chi-square critical value found in Table A-4. Reject the null hypothesis. It appears the creams produce different results. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

63 Example: Comparing Treatments
Note that the test did not use the categories where both feet were cured or where neither foot was cured. Only results from categories that are different were used. Definition . Discordant pairs of results come from pairs of categories in which the two categories are different (as in cure/no cure or no cure/cure). The test statistic chi-square values need to be compared with the chi-square critical value found in Table A-4. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

64 Recap In this section we have discussed:
McNemar’s test for matched pairs. Data are place in a 2 x 2 table where each observation is classified in two ways. The test only compares categories that are different (discordant pairs). Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.


Download ppt "Lecture Slides Elementary Statistics Tenth Edition"

Similar presentations


Ads by Google