Lecture Slides Elementary Statistics Tenth Edition

Slides:



Advertisements
Similar presentations
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Advertisements

Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
11-2 Goodness-of-Fit In this section, we consider sample data consisting of observed frequency counts arranged in a single row or column (called a one-way.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
11-3 Contingency Tables In this section we consider contingency tables (or two-way frequency tables), which include frequency counts for categorical data.
Chi-Square Tests and the F-Distribution
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Section 8-4 Testing a Claim About a Mean:  Known Created by.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Chapter 11 Goodness of Fit Test (section 11.2)
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. 1.. Section 11-2 Goodness of Fit.
Copyright © 2009 Cengage Learning 15.1 Chapter 16 Chi-Squared Tests.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Section 11-4 McNemar’s Test for Matched Pairs.
Copyright © 2004 Pearson Education, Inc.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
1 Pertemuan 11 Uji kebaikan Suai dan Uji Independen Mata kuliah : A Statistik Ekonomi Tahun: 2010.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc Chapter 16 Chi-Squared Tests.
Copyright © 2010 Pearson Education, Inc. Slide
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
1 Chapter 10. Section 10.1 and 10.2 Triola, Elementary Statistics, Eighth Edition. Copyright Addison Wesley Longman M ARIO F. T RIOLA E IGHTH E DITION.
Slide 1 Copyright © 2004 Pearson Education, Inc..
Copyright © Cengage Learning. All rights reserved. Chi-Square and F Distributions 10.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Lecture Slides Elementary Statistics Eleventh Edition and the Triola Statistics Series by.
Statistics 300: Elementary Statistics Section 11-3.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Slide 1 Copyright © 2004 Pearson Education, Inc. Chapter 11 Multinomial Experiments and Contingency Tables 11-1 Overview 11-2 Multinomial Experiments:
Goodness-of-Fit and Contingency Tables Chapter 11.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Comparing Counts Chi Square Tests Independence.
Other Chi-Square Tests
Keller: Stats for Mgmt & Econ, 7th Ed Chi-Squared Tests
5.1 INTRODUCTORY CHI-SQUARE TEST
Lecture Slides Elementary Statistics Twelfth Edition
Lecture Slides Essentials of Statistics 5th Edition
Lecture Slides Elementary Statistics Twelfth Edition
Lecture Slides Elementary Statistics Twelfth Edition
Chapter 12 Tests with Qualitative Data
Chapter 25 Comparing Counts.
Chapter 11 Goodness-of-Fit and Contingency Tables
Elementary Statistics: Picturing The World
Elementary Statistics
Lecture Slides Elementary Statistics Eleventh Edition
Elementary Statistics
Chapter 11: Inference for Distributions of Categorical Data
Lecture Slides Elementary Statistics Eleventh Edition
Contingency Tables: Independence and Homogeneity
Overview and Chi-Square
Inference on Categorical Data
Chapter 26 Comparing Counts.
Lecture Slides Elementary Statistics Twelfth Edition
Section 11-1 Review and Preview
Chapter 26 Comparing Counts Copyright © 2009 Pearson Education, Inc.
Inference for Two Way Tables
Lecture Slides Elementary Statistics Twelfth Edition
Chapter 26 Comparing Counts.
Testing a Claim About a Proportion
Chapter 11 Lecture 2 Section: 11.3.
Presentation transcript:

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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 = 16.919 page 595 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

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.

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.

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 = 156.500. Since the critical value is 16.919, 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.

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.

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.

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 = 0.051 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 = 20.090 page 597 of text Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

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 = 3650.251. Since the critical value is 20.090, 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.

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.

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.

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.

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.

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.

(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.

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.

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.

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.

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.

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.

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.

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.

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. = 513.714 E = (899)(704) 1232 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

Case-Control Study of Motorcycle Drivers Row Totals Black White Yellow/Orange Controls (not injured) Expected 491 513.714 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) = 513.714 E = (899)(704) 1232 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

Case-Control Study of Motorcycle Drivers 491 513.714 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 356.827 132.173 28.459 10.541 190.286 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 513.714 if crash related injuries are independent of helmet color. Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley.

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.

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

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 = 5.991. 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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

Example: Comparing Treatments Table 11-10 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.

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.

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.

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.

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.

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.