21- 1 Module 21:  2 For Contingency Tables This module presents the  2 test for contingency tables, which can be used for tests of association and for.

Slides:



Advertisements
Similar presentations
Categorical Data Analysis
Advertisements

Chapter 11 Other Chi-Squared Tests
CHI-SQUARE(X2) DISTRIBUTION
Chapter 12 Goodness-of-Fit Tests and Contingency Analysis
Basic Statistics The Chi Square Test of Independence.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Goodness-of-Fit Tests.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Tests for Homogeneity.
Hypothesis Testing IV Chi Square.
Statistical Inference for Frequency Data Chapter 16.
Analysis of frequency counts with Chi square
Applications of the Chi-Square Statistic Introduction to Business Statistics, 5e Kvanli/Guynes/Pavur (c)2000 South-Western College Publishing.
12.The Chi-square Test and the Analysis of the Contingency Tables 12.1Contingency Table 12.2A Words of Caution about Chi-Square Test.
Chapter Goals After completing this chapter, you should be able to:
Chi-square Test of Independence
Statistics 303 Chapter 9 Two-Way Tables. Relationships Between Two Categorical Variables Relationships between two categorical variables –Depending on.
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.
1 Nominal Data Greg C Elvers. 2 Parametric Statistics The inferential statistics that we have discussed, such as t and ANOVA, are parametric statistics.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1 Chapter 20 Two Categorical Variables: The Chi-Square Test.
Presentation 12 Chi-Square test.
Cross Tabulation and Chi-Square Testing. Cross-Tabulation While a frequency distribution describes one variable at a time, a cross-tabulation describes.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
1 1 Slide © 2005 Thomson/South-Western Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial Population Goodness of.
Chi-square (χ 2 ) Fenster Chi-Square Chi-Square χ 2 Chi-Square χ 2 Tests of Statistical Significance for Nominal Level Data (Note: can also be used for.
Chapter 12 The Analysis of Categorical Data and Goodness-of-Fit Tests.
1 © 2008 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 12 The Analysis of Categorical Data and Goodness-of-Fit Tests.
1 In this case, each element of a population is assigned to one and only one of several classes or categories. Chapter 11 – Test of Independence - Hypothesis.
Other Chi-Square Tests
Nonparametric Tests: Chi Square   Lesson 16. Parametric vs. Nonparametric Tests n Parametric hypothesis test about population parameter (  or  2.
Learning Objectives Copyright © 2002 South-Western/Thomson Learning Statistical Testing of Differences CHAPTER fifteen.
Module 23: Proportions: Confidence Intervals and Hypothesis Tests, Two Samples This module examines confidence intervals and hypothesis test for.
Other Chi-Square Tests
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter 13 Inference for Counts: Chi-Square Tests © 2011 Pearson Education, Inc. 1 Business Statistics: A First Course.
Chapter Outline Goodness of Fit test Test of Independence.
The table shows a random sample of 100 hikers and the area of hiking preferred. Are hiking area preference and gender independent? Hiking Preference Area.
N318b Winter 2002 Nursing Statistics Specific statistical tests Chi-square (  2 ) Lecture 7.
12/23/2015Slide 1 The chi-square test of independence is one of the most frequently used hypothesis tests in the social sciences because it can be used.
11.2 Tests Using Contingency Tables When data can be tabulated in table form in terms of frequencies, several types of hypotheses can be tested by using.
More Contingency Tables & Paired Categorical Data Lecture 8.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Chi Square Tests PhD Özgür Tosun. IMPORTANCE OF EVIDENCE BASED MEDICINE.
Bullied as a child? Are you tall or short? 6’ 4” 5’ 10” 4’ 2’ 4”
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 12 Tests of Goodness of Fit and Independence n Goodness of Fit Test: A Multinomial.
Module 25: Confidence Intervals and Hypothesis Tests for Variances for One Sample This module discusses confidence intervals and hypothesis tests.
Statistics 300: Elementary Statistics Section 11-3.
Chi-Square Chapter 14. Chi Square Introduction A population can be divided according to gender, age group, type of personality, marital status, religion,
1 © 2008 Brooks/Cole, a division of Thomson Learning, Inc Tests for Homogeneity and Independence in a Two-Way Table Data resulting from observations.
CHI-SQUARE(X2) DISTRIBUTION
Other Chi-Square Tests
Test of independence: Contingency Table
Chapter 11 – Test of Independence - Hypothesis Test for Proportions of a Multinomial Population In this case, each element of a population is assigned.
Chapter 11 Chi-Square Tests.
Lecture Slides Elementary Statistics Twelfth Edition
Confidence Intervals and Hypothesis Tests for Variances for One Sample
Association between two categorical variables
Hypothesis Testing Review
Module 22: Proportions: One Sample
Module 26: Confidence Intervals and Hypothesis Tests for Variances for Two Samples This module discusses confidence intervals and hypothesis tests for.
Is a persons’ size related to if they were bullied
Chapter 4 One-Group t-Test for the Mean
Chapter 10 Analyzing the Association Between Categorical Variables
Chi Square (2) Dr. Richard Jackson
Chapter 11 Chi-Square Tests.
Analyzing the Association Between Categorical Variables
Chapter 11 Chi-Square Tests.
Presentation transcript:

21- 1 Module 21:  2 For Contingency Tables This module presents the  2 test for contingency tables, which can be used for tests of association and for differences between proportions Reviewed 06 June 05 /MODULE 21

21- 2 Contingency tables are very common types of tables used to summarize. The cells of these tables typically include counts of something and/or percentages. For our purposes, we can use only those tables that have integers that are counts. If you are interested in analyzing data in a contingency table that includes only percentages in the cells, then you must convert these percentages into counts in order to proceed. Contingency Tables

21- 3 Source: AJPH, November 1977;67:

21- 4

21- 5

21- 6 H 0 :There is no association between the classification of the numbers of patients who kept their appointments and the classification of the sex of the patients, vs. H 1 : There is association between the classification of the numbers of patients who kept their appointments and the classification of the sex of the patients. Association Hypothesis

21- 7 The association hypothesis can also be tested using a test of proportions hypothesis: H 0 : P M = P F vs. H 1 : P M  P F where P M = Proportion of males in population who “kept their appointments,” P F = Proportion of females in population who “kept their appointments.” Proportions Hypothesis

21- 8 Contingency tables have: r = number of rows, not counting any totals c = number of columns, not counting any totals r  c = number of cells Approach is to compare observed number in each cell with the number expected under the assumption that the null hypothesis of no association is true. Contingency Tables

21- 9 Calculating the number expected in each contingency table cell under the assumption that the null hypothesis is true is, in practice, quite simple. This number is equal to the total for the row the cell is in times the total for the column the cell is in divided by the overall total for the table. You may be interested in working out why this is true; however, it really isn’t worth the effort. The algebraic expression is: Calculating Expected Numbers

The value of the test statistic χ 2 calculated by comparing the observed number (O) to the expected number (E) in each cell according to the following formula: The result of this calculation is then compared to the appropriate value in the tables for the χ 2 distribution. These are in the Table Module 3: The χ 2 Distribution. Note that you need to look up χ (df) for a test with the  -level at  = Calculating χ 2

So, for a 2  2 table, df = (2-1)(2-1) = 1  1=1 Reject H 0 : if  2   (1) = 3.84

H 0 :There is no association between the classification of the numbers of patients who kept their appointments and the classification of the sex of the patients, vs. H 1 :There is association between the classification of the numbers of patients who kept their appointments and the classification of the sex of the patients. 1.The hypothesis:H 0 : P M = P F vs. H 1 : P M  P F 2.The assumption: Contingency table 3. The  – level:  = 0.05  2 Test for Appointment Keeping Example 1

21- 13

21- 14

The test statistic: 5. The critical region: Reject H 0 : if  2   (1) = The result:  2 = The conclusion: Accept H 0 ; Since  2 = 0.86 < 3.84

The published table as shown on slide 13 indicates a result of Our result is If with df = 1; then p cannot be > 0.05

21- 17

 2 Test for Appointment Keeping Example 2 H 0 :There is no association between the classification of the numbers of patients who kept their appointments and the classification of the age of the patients, vs. H 1 :There is association between the classification of the numbers of patients who kept their appointments and the classification of the age of the patients. 1.The hypothesis:H 0 : P Y = P O vs. H 1 : P Y  P O 2.The assumption:Contingency table 3. The  – level:  = 0.05

21- 19

The test statistic: 5. The critical region: Reject H 0 : if  2   (1) = The result:  2 = The conclusion: Reject H 0 ; Since  2 = > 3.84

21- 21

 2 Test for Appointment Keeping Example 3 H 0 :There is no association between the classification of the numbers of patients who kept their appointments and the classification of the ethnicity of the patients, vs. H 1 :There is association between the classification of the numbers of patients who kept their appointments and the classification of the ethnicity of the patients. 1.The hypothesis: H 0 : P P = P B = P w vs. H 1 : P P  P B ≠ P w 2.The assumption: Contingency table 3. The  – level:  = 0.05

21- 23

The test statistic: 5. The critical region: Reject H 0 : if  2   (2) = The result:  2 = The conclusion: Reject H 0 ; Since  2 = > 5.99

Source: AJPH, July 1996; 86:

21- 26

21- 27

The Hypothesis H 0 : There is no association between the classification of the number of male patients according to their change in alcohol consumption and the treatment they received vs. H 1 : There is an association between the classification of the numbers of male patients according to their change in alcohol consumption and the treatment they received. 2. The assumption: Contingency table 3. The  – level:  = 0.05  2 Test for Heavy Drinkers Intervention Example 1

21- 29

The test statistic: 5. The critical region: for a 3 x 3 table; df = (3-1)(3-1) = 4 Reject H 0 : if  2   (4) = The result:  2 = The conclusion: Reject H 0 ; Since  2 = > 9.49

21- 31

The Hypothesis H 0 : There is no association between the classification of the number of male patients according to their posttest hazardous alcohol consumption and the treatment they received. vs. H 1 : There is an association between the classification of the numbers of male patients to according to their posttest hazardous alcohol consumption and the treatment they received. 2. The assumption: Contingency table 3. The  – level:  = 0.05  2 Test for Heavy Drinkers Intervention Example 2

21- 33

The test statistic: 5. The critical region: for a 2 x 3 table; df = (2-1)(3-1) = 2 Reject H 0 : if  2   (2) = The result:  2 = The conclusion: Reject H 0, since  2 = > 5.99

Source: AJPH, August 2001; 91:

21- 36

21- 37

21- 38

21- 39

The Hypothesis H 0 : There is no association between the classification of the number of male patients according to their heart rate category and this classification of their diabetes status. vs. H 1 : There is an association between the classification of the numbers of male patients to according to their heart rate category and this classification of their diabetes status. 2. The assumption: Contingency table 3. The  – level:  = 0.05  2 Test for the MATISS Project

21- 41

21- 42

The test statistic: 5. The critical region: Reject H 0 : if  2   (4) = The result:  2 = The conclusion: Reject H 0 ; Since  2 = > 9.49