Chapter 11 Chi-Square Tests.

Slides:



Advertisements
Similar presentations
Statistics for Business and Economics
Advertisements

Chapter 16 Goodness-of-Fit Tests and Contingency Tables
Contingency Tables For Tests of Independence. Multinomials Over Various Categories Thus far the situation where there are multiple outcomes for the qualitative.
Chapter 11 Other Chi-Squared Tests
Chapter 12 Goodness-of-Fit Tests and Contingency Analysis
Basic Statistics The Chi Square Test of Independence.
Inference about the Difference Between the
Chapter 13: The Chi-Square Test
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chapter 14 Analysis of Categorical Data
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chapter Goals After completing this chapter, you should be able to:
Crosstabs and Chi Squares Computer Applications in Psychology.
Statistics for Managers Using Microsoft® Excel 5th Edition
Previous Lecture: Analysis of Variance
Chap 12-1 Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 12-1 Chapter 12 Chi-Square Tests and Nonparametric Tests Basic Business.
Chapter 12 Chi-Square Tests and Nonparametric Tests
1 1 Slide IS 310 – Business Statistics IS 310 Business Statistics CSU Long Beach.
Presentation 12 Chi-Square test.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 12-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Analysis of Count Data Chapter 26
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics, A First Course 4 th Edition.
1 Measuring Association The contents in this chapter are from Chapter 19 of the textbook. The crimjust.sav data will be used. cjsrate: RATE JOB DONE: CJ.
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
A Course In Business Statistics 4th © 2006 Prentice-Hall, Inc. Chap 9-1 A Course In Business Statistics 4 th Edition Chapter 9 Estimation and Hypothesis.
Other Chi-Square Tests
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics: A First Course Fifth Edition.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Chap 11-1 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall Chapter 11 Chi-Square Tests Business Statistics: A First Course 6 th Edition.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 12-1 Chapter 12 Chi-Square Tests and Nonparametric Tests Statistics for Managers using.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
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.
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.
ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
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.
Chapter 12 Chi-Square Tests and Nonparametric Tests.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Class Seven Turn In: Chapter 18: 32, 34, 36 Chapter 19: 26, 34, 44 Quiz 3 For Class Eight: Chapter 20: 18, 20, 24 Chapter 22: 34, 36 Read Chapters 23 &
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Basic Statistics The Chi Square Test of Independence.
Test of independence: Contingency Table
Chapter 12 Chi-Square Tests and Nonparametric Tests
Chi-Square hypothesis testing
Warm Up Check your understanding on p You do NOT need to calculate ALL the expected values by hand but you need to do at least 2. You do NOT need.
Chapter 9: Non-parametric Tests
Presentation 12 Chi-Square test.
Chi-square test or c2 test
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter Fifteen McGraw-Hill/Irwin
Association between two categorical variables
Qualitative data – tests of association
Consider this table: The Χ2 Test of Independence
Inferential Statistics and Probability a Holistic Approach
Chapter 11: Inference for Distributions of Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
Chapter 13 Goodness-of-Fit Tests and Contingency Analysis
Chapter 11 Chi-Square Tests.
Inference on Categorical Data
Analyzing the Association Between Categorical Variables
Inference for Two Way Tables
Chapter 13 Goodness-of-Fit Tests and Contingency Analysis
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11 Chi-Square Tests.
Presentation transcript:

Chapter 11 Chi-Square Tests

Objectives In this chapter, you learn: How and when to use the chi-square test for contingency tables

Contingency Tables Contingency Tables DCOVA Contingency Tables Useful in situations comparing multiple population proportions Used to classify sample observations according to two or more characteristics Also called a cross-classification table.

Contingency Table Example DCOVA Left-Handed vs. Gender Dominant Hand: Left vs. Right Gender: Male vs. Female 2 categories for each variable, so this is called a 2 x 2 table Suppose we examine a sample of 300 children

Contingency Table Example (continued) DCOVA Sample results organized in a contingency table: Gender Hand Preference Left Right Female 12 108 120 Male 24 156 180 36 264 300 sample size = n = 300: 120 Females, 12 were left handed 180 Males, 24 were left handed

2 Test for the Difference Between Two Proportions DCOVA H0: π1 = π2 (Proportion of females who are left handed is equal to the proportion of males who are left handed) H1: π1 ≠ π2 (The two proportions are not the same) If H0 is true, then the proportion of left-handed females should be the same as the proportion of left-handed males The two proportions above should be the same as the proportion of left-handed people overall

The Chi-Square Test Statistic DCOVA The Chi-square test statistic is: where: fo = observed frequency in a particular cell fe = expected frequency in a particular cell if H0 is true (Assumed: each cell in the contingency table has expected frequency of at least 5)

Decision Rule DCOVA The test statistic approximately follows a chi-squared distribution with one degree of freedom Decision Rule: If , reject H0, otherwise, do not reject H0  2 Do not reject H0 Reject H0 2α

Computing the Overall Proportion DCOVA The overall proportion is: Here: 120 Females, 12 were left handed 180 Males, 24 were left handed i.e., based on all 300 children the proportion of left handers is 0.12, that is, 12%

Finding Expected Frequencies DCOVA To obtain the expected frequency for left handed females, multiply the average proportion left handed (p) by the total number of females To obtain the expected frequency for left handed males, multiply the average proportion left handed (p) by the total number of males If the two proportions are equal, then P(Left Handed | Female) = P(Left Handed | Male) = .12 i.e., we would expect (.12)(120) = 14.4 females to be left handed (.12)(180) = 21.6 males to be left handed

Observed vs. Expected Frequencies DCOVA Gender Hand Preference Left Right Female Observed = 12 Expected = 14.4 Observed = 108 Expected = 105.6 120 Male Observed = 24 Expected = 21.6 Observed = 156 Expected = 158.4 180 36 264 300

The Chi-Square Test Statistic DCOVA Gender Hand Preference Left Right Female Observed = 12 Expected = 14.4 Observed = 108 Expected = 105.6 120 Male Observed = 24 Expected = 21.6 Observed = 156 Expected = 158.4 180 36 264 300 The test statistic is:

Decision Rule 2 DCOVA Decision Rule: If > 3.841, reject H0, otherwise, do not reject H0 Here, = 0.7576< = 3.841, so we do not reject H0 and conclude that there is not sufficient evidence that the two proportions are different at  = 0.05 0.05 2 Do not reject H0 Reject H0 20.05 = 3.841

2 Test for Differences Among More Than Two Proportions DCOVA Extend the 2 test to the case with more than two independent populations: H0: π1 = π2 = … = πc H1: Not all of the πj are equal (j = 1, 2, …, c)

The Chi-Square Test Statistic DCOVA The Chi-square test statistic is: Where: fo = observed frequency in a particular cell of the 2 x c table fe = expected frequency in a particular cell if H0 is true (Assumed: each cell in the contingency table has expected frequency of at least 1)

Computing the Overall Proportion DCOVA The overall proportion is: Expected cell frequencies for the c categories are calculated as in the 2 x 2 case, and the decision rule is the same: Where  is from the chi-squared distribution with c – 1 degrees of freedom 2 Decision Rule: If , reject H0, otherwise, do not reject H0

2 Test of Independence DCOVA Similar to the 2 test for equality of more than two proportions, but extends the concept to contingency tables with r rows and c columns H0: The two categorical variables are independent (i.e., there is no relationship between them) H1: The two categorical variables are dependent (i.e., there is a relationship between them)

2 Test of Independence The Chi-square test statistic is: DCOVA (continued) The Chi-square test statistic is: DCOVA where: fo = observed frequency in a particular cell of the r x c table fe = expected frequency in a particular cell if H0 is true (Assumed: each cell in the contingency table has expected frequency of at least 1)

Expected Cell Frequencies DCOVA Expected cell frequencies: Where: row total = sum of all frequencies in the row column total = sum of all frequencies in the column n = overall sample size

Decision Rule DCOVA The decision rule is If , reject H0, otherwise, do not reject H0 Where  is from the chi-square distribution with (r – 1) (c – 1) degrees of freedom 2

Number of meals per week Example DCOVA The meal plan selected by 200 students is shown below: Class Standing Number of meals per week Total 20/week 10/week none Fresh. 24 32 14 70 Soph. 22 26 12 60 Junior 10 6 30 Senior 16 40 88 42 200

Example The hypothesis to be tested is: DCOVA (continued) The hypothesis to be tested is: H0: Meal plan and class standing are independent (i.e., there is no relationship between them) H1: Meal plan and class standing are dependent (i.e., there is a relationship between them)

Example: Expected Cell Frequencies (continued) Observed: DCOVA Class Standing Number of meals per week Total 20/wk 10/wk none Fresh. 24 32 14 70 Soph. 22 26 12 60 Junior 10 6 30 Senior 16 40 88 42 200 Expected cell frequencies if H0 is true: Class Standing Number of meals per week Total 20/wk 10/wk none Fresh. 24.5 30.8 14.7 70 Soph. 21.0 26.4 12.6 60 Junior 10.5 13.2 6.3 30 Senior 14.0 17.6 8.4 40 88 42 200 Example for one cell:

Example: The Test Statistic (continued) DCOVA The test statistic value is: 2 0.05 = 12.592 from the chi-square distribution with (4 – 1)(3 – 1) = 6 degrees of freedom

Example: Decision and Interpretation DCOVA (continued) Decision Rule: If > 12.592, reject H0, otherwise, do not reject H0 Here, = 0.709 < = 12.592, so do not reject H0 Conclusion: there is not sufficient evidence that meal plan and class standing are related at  = 0.05 0.05 2 Do not reject H0 Reject H0 20.05=12.592

Chapter Summary In this chapter we discussed: How and when to use the chi-square test for contingency tables