Contingency Tables 10-3. Definition Contingency Table (or two-way frequency table) Contingency Table (or two-way frequency table) a table in which frequencies.

Slides:



Advertisements
Similar presentations
1 2 Test for Independence 2 Test for Independence.
Advertisements

Statistics for Business and Economics
Chapter 13: Chi-Square Test
© 2011 Pearson Education, Inc
STATISTICS ELEMENTARY MARIO F. TRIOLA
Chapter 16 Goodness-of-Fit Tests and Contingency Tables
Chi-Square and Analysis of Variance (ANOVA)
Lesson 14 - R Chapter 14 Review:
© The McGraw-Hill Companies, Inc., Chapter 10 Testing the Difference between Means and Variances.
Copyright © 2014 Pearson Education, Inc. All rights reserved Chapter 10 Associations Between Categorical Variables.
© The McGraw-Hill Companies, Inc., Chapter 12 Chi-Square.
Slide Slide 1 Copyright © 2007 Pearson Education, Inc Publishing as Pearson Addison-Wesley. Lecture Slides Elementary Statistics Tenth Edition and the.
Hypothesis Testing IV Chi Square.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Homogeneity.
12.The Chi-square Test and the Analysis of the Contingency Tables 12.1Contingency Table 12.2A Words of Caution about Chi-Square Test.
11-3 Contingency Tables In this section we consider contingency tables (or two-way frequency tables), which include frequency counts for categorical data.
1 1 Slide © 2014 Cengage Learning. All Rights Reserved. May not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole.
GOODNESS OF FIT TEST & CONTINGENCY TABLE
Hypothesis Testing.
Chapter 26: Comparing Counts AP Statistics. Comparing Counts In this chapter, we will be performing hypothesis tests on categorical data In previous chapters,
Chapter 11: Applications of Chi-Square. Count or Frequency Data Many problems for which the data is categorized and the results shown by way of counts.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Hypothesis Testing for Variance and Standard Deviation
Chi-Square. All the tests we’ve learned so far assume that our data is normally distributed z-test t-test We test hypotheses about parameters of these.
Copyright © 2004 Pearson Education, Inc.
Copyright © 2010, 2007, 2004 Pearson Education, Inc Chapter 12 Analysis of Variance 12.2 One-Way ANOVA.
1 Pertemuan 11 Uji kebaikan Suai dan Uji Independen Mata kuliah : A Statistik Ekonomi Tahun: 2010.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Other Chi-Square Tests
Slide Slide 1 Section 8-6 Testing a Claim About a Standard Deviation or Variance.
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.
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
Copyright © 2010, 2007, 2004 Pearson Education, Inc. All Rights Reserved Lecture Slides Elementary Statistics Eleventh Edition and the Triola.
13.2 Chi-Square Test for Homogeneity & Independence AP Statistics.
Copyright © 2010 Pearson Education, Inc. Slide
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter Outline Goodness of Fit test Test of Independence.
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..
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.
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Chapter 14 Chi-Square Tests.  Hypothesis testing procedures for nominal variables (whose values are categories)  Focus on the number of people in different.
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.
Comparing Counts Chapter 26. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Statistics 300: Elementary Statistics Section 11-3.
Slide 1 Copyright © 2004 Pearson Education, Inc. Chapter 11 Multinomial Experiments and Contingency Tables 11-1 Overview 11-2 Multinomial Experiments:
Test of Independence Tests the claim that the two variables related. For example: each sample (incident) was classified by the type of crime and the victim.
Comparing Observed Distributions A test comparing the distribution of counts for two or more groups on the same categorical variable is called a chi-square.
Goodness-of-Fit and Contingency Tables Chapter 11.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Comparing Counts Chi Square Tests Independence.
Test of independence: Contingency Table
John Loucks St. Edward’s University . SLIDES . BY.
Chapter 11 Goodness-of-Fit and Contingency Tables
Elementary Statistics
Lecture Slides Elementary Statistics Tenth Edition
Testing for Independence
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Overview and Chi-Square
Inference on Categorical Data
Analyzing the Association Between Categorical Variables
Section 11-1 Review and Preview
Inference for Two Way Tables
Chapter 26 Comparing Counts.
Chapter Outline Goodness of Fit test Test of Independence.
Testing a Claim About a Standard Deviation or Variance
Chapter 11 Lecture 2 Section: 11.3.
Presentation transcript:

Contingency Tables 10-3

Definition Contingency Table (or two-way frequency table) Contingency Table (or two-way frequency table) a table in which frequencies correspond to two variables. 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.)

Definition Contingency Table (or two-way frequency table) Contingency Table (or two-way frequency table) a table in which frequencies correspond to two variables. 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.) Contingency tables have at least two rows and at least two columns.

Contingency Table Stranger Acquaintance or Relative Homicide Robbery Assault

Test of Independence Test of Independence tests the null hypothesis that there is no association between the row variable and the column variable. tests the null hypothesis that there is no association between the row variable and the column variable. (The null hypothesis is the statement that the row and column variables are independent.) Definition

Assumptions 1. The sample data are randomly selected. 2.The null hypothesis H 0 is the statement that the row and column variables are independent; the alternative hypothesis H 1 is the statement that the row and variables are dependent. 3. 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.)

Tests of Independence H 0 : The row variable is independent of the column variable H 1 : The row variable is dependent (related to) the column variable 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.

Test of Independence Test Statistic 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. X 2 = ( O - E ) 2 E

(row total) (column total) (grand total) E = Total number of all observed frequencies in the table

Contingency Table Stranger Acquaintance or Relative Homicide Robbery Assault

E = row total column total grand total Expected Frequency for Contingency Tables grand total

n p E = row total column total grand total Expected Frequency for Contingency Tables grand total (probability of a cell)

n p E = row total column total grand total Expected Frequency for Contingency Tables grand total (probability of a cell) E = (row total) (column total) (grand total)

Stranger Acquaintance or Relative Homicide Robbery Assault Is the type of crime independent of whether the criminal is a stranger?

Stranger Acquaintance or Relative Homicide Robbery Assault Is the type of crime independent of whether the criminal is a stranger? H 0 : Type of crime is independent of knowing the criminal H 1 : Type of crime is dependent with knowing the criminal

Row Total Column Total Stranger Acquaintance or Relative Homicide Robbery Assault Is the type of crime independent of whether the criminal is a stranger? H 0 : Type of crime is independent of knowing the criminal H 1 : Type of crime is dependent with knowing the criminal

Row Total Column Total Stranger Acquaintance or Relative Homicide Robbery Assault Is the type of crime independent of whether the criminal is a stranger? H 0 : Type of crime is independent of knowing the criminal H 1 : Type of crime is dependent with knowing the criminal

Row Total Column Total E = (row total) (column total) (grand total) Stranger Acquaintance or Relative Homicide Robbery Assault Is the type of crime independent of whether the criminal is a stranger?

Row Total (29.93) Column Total E = (row total) (column total) (grand total) E = (1118)(51) 1905 = Stranger Acquaintance or Relative Homicide Robbery Assault Is the type of crime independent of whether the criminal is a stranger?

Row Total (29.93) (21.07) (284.64) (200.36) (803.43) (565.57) Column Total E = (row total) (column total) (grand total) E = (1118)(51) 1905 = E = (1118)(485) 1905 = etc. Stranger Acquaintance or Relative Homicide Robbery Assault Is the type of crime independent of whether the criminal is a stranger?

Homicide Robbery Forgery (29.93) (21.07) (284.64) (200.36) (803.43) (565.57) [ ] Stranger Acquaintance or Relative X 2 = (O - E ) 2 E E Upper left cell: = = ( ) (E)(E) (O - E ) 2 E Is the type of crime independent of whether the criminal is a stranger?

Homicide Robbery Forgery (29.93) (21.07) [15.258] (284.64) [31.281] (200.36) [44.439] (803.43) [7.271] (565.57) [10.329] [ ] Stranger Acquaintance or Relative X 2 = (O - E ) 2 E E Upper left cell: = = ( ) (E)(E) (O - E ) 2 E Is the type of crime independent of whether the criminal is a stranger?

Homicide Robbery Forgery (29.93) (21.07) [15.258] (284.64) [31.281] (200.36) [44.439] (803.43) [7.271] (565.57) [10.329] [ ] Stranger Acquaintance or Relative X 2 = (O - E ) 2 E (E)(E) E Is the type of crime independent of whether the criminal is a stranger? Test Statistic X 2 = = X 2 = =

Test Statistic: X 2 = X 2 = with = 0.05 and ( r -1) ( c -1) = (2 -1) (3 -1) = 2 degrees of freedom Critical Value: X 2 = (from Table A-4)

0 = 0.05 X 2 = Reject Independence Reject independence Sample data: X 2 = Fail to Reject Independence Test Statistic: X 2 = X 2 = with = 0.05 and ( r -1) ( c -1) = (2 -1) (3 -1) = 2 degrees of freedom Critical Value: X 2 = (from Table A-4)

0 = 0.05 X 2 = Reject Independence Reject independence Sample data: X 2 = Fail to Reject Independence H o : The type of crime and knowing the criminal are independent H 1 : The type of crime and knowing the criminal are dependent Test Statistic: X 2 = X 2 = with = 0.05 and ( r -1) ( c -1) = (2 -1) (3 -1) = 2 degrees of freedom Critical Value: X 2 = (from Table A-4)

It appears that the type of crime and knowing the criminal are related. 0 = 0.05 X 2 = Reject Independence Test Statistic: X 2 = X 2 = with = 0.05 and ( r -1) ( c -1) = (2 -1) (3 -1) = 2 degrees of freedom Critical Value: X 2 = (from Table A-4) Reject independence Sample data: X 2 = Fail to Reject Independence

Figure 10-8 Relationships Among Components in X 2 Test of Independence

Definition Test of Homogeneity Test of Homogeneity tests the claim that different populations have the same proportions of some characteristics tests the claim that different populations have the same proportions of some characteristics

Example - Test of Homogeneity 3 74 Taxi has usable seat belt? New York Chicago Pittsburgh Yes No Seat Belt Use in Taxi Cabs Claim: The 3 cities have the same proportion of taxis with usable seat belts H 0 : The 3 cities have the same proportion of taxis with usable seat belts H 0 : The 3 cities have the same proportion of taxis with usable seat belts H 1 : The proportion of taxis with usable seat belts is not the same in all 3 cities H 1 : The proportion of taxis with usable seat belts is not the same in all 3 cities

Example - Test of Homogeneity 3 74 Taxi has usable seat belt? New York Chicago Pittsburgh Yes No Seat Belt Use in Taxi Cabs Claim: The 3 cities have the same proportion of taxis with usable seat belts H 0 : The 3 cities have the same proportion of taxis with usable seat belts H 0 : The 3 cities have the same proportion of taxis with usable seat belts H 1 : The proportion of taxis with usable seat belts is not the same in all 3 cities H 1 : The proportion of taxis with usable seat belts is not the same in all 3 cities 0 Sample data: X 2 = = 0.05 X 2 = Fail to Reject homogeneity Reject homogeneity

Example - Test of Homogeneity 3 74 Taxi has usable seat belt? New York Chicago Pittsburgh Yes No Seat Belt Use in Taxi Cabs Claim: The 3 cities have the same proportion of taxis with usable seat belts H 0 : The 3 cities have the same proportion of taxis with usable seat belts H 0 : The 3 cities have the same proportion of taxis with usable seat belts H 1 : The proportion of taxis with usable seat belts is not the same in all 3 cities H 1 : The proportion of taxis with usable seat belts is not the same in all 3 cities 0 Sample data: X 2 = = 0.05 X 2 = Fail to Reject homogeneity Reject homogeneity There is sufficient evidence to warrant rejection of the claim that the 3 cities have the same proportion of usable seat belts in taxis; appears from Table Chicago has a much higher proportion.