Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.

Slides:



Advertisements
Similar presentations
Chapter 11 Other Chi-Squared Tests
Advertisements

Chi-square test Chi-square test or  2 test. Chi-square test countsUsed to test the counts of categorical data ThreeThree types –Goodness of fit (univariate)
 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)
Chi-Squared Hypothesis Testing Using One-Way and Two-Way Frequency Tables of Categorical Variables.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Tests for Homogeneity.
CHAPTER 23: Two Categorical Variables The Chi-Square Test ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
Chapter 13: The Chi-Square Test
Chapter 13: Inference for Distributions of Categorical Data
Copyright ©2011 Brooks/Cole, Cengage Learning More about Inference for Categorical Variables Chapter 15 1.
Copyright ©2006 Brooks/Cole, a division of Thomson Learning, Inc. More About Categorical Variables Chapter 15.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 14 Goodness-of-Fit Tests and Categorical Data Analysis.
Chi-Square Tests and the F-Distribution
1 Chapter 20 Two Categorical Variables: The Chi-Square Test.
Presentation 12 Chi-Square test.
Chapter 13 Chi-Square Tests. The chi-square test for Goodness of Fit allows us to determine whether a specified population distribution seems valid. The.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
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.
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 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
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.
Other Chi-Square Tests
Chapter 12: The Analysis of Categorical Data and Goodness- of-Fit Test.
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
FPP 28 Chi-square test. More types of inference for nominal variables Nominal data is categorical with more than two categories Compare observed frequencies.
13.2 Chi-Square Test for Homogeneity & Independence AP Statistics.
+ Chi Square Test Homogeneity or Independence( Association)
Data Analysis for Two-Way Tables. The Basics Two-way table of counts Organizes data about 2 categorical variables Row variables run across the table Column.
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.
Copyright © 2010 Pearson Education, Inc. Slide
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
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.
Chapter 11: Chi-Square  Chi-Square as a Statistical Test  Statistical Independence  Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
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.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 11 Analyzing the Association Between Categorical Variables Section 11.2 Testing Categorical.
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Chapter 12 The Analysis of Categorical Data and Goodness of Fit Tests.
Learning from Categorical Data
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Chapter 14 – 1 Chi-Square Chi-Square as a Statistical Test Statistical Independence Hypothesis Testing with Chi-Square The Assumptions Stating the Research.
Comparing Counts Chapter 26. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
Chi-Squared Test of Homogeneity Are different populations the same across some characteristic?
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.
Section 10.2 Objectives Use a contingency table to find expected frequencies Use a chi-square distribution to test whether two variables are independent.
Copyright © Cengage Learning. All rights reserved. 14 Goodness-of-Fit Tests and Categorical Data Analysis.
12.2 Tests for Homogeneity and Independence in a two-way table Wednesday, June 22, 2016.
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.
1 © 2008 Brooks/Cole, a division of Thomson Learning, Inc Tests for Homogeneity and Independence in a Two-Way Table Data resulting from observations.
Textbook Section * We already know how to compare two proportions for two populations/groups. * What if we want to compare the distributions of.
Test of independence: Contingency Table
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 11 Chi-Square Tests.
Qualitative data – tests of association
Data Analysis for Two-Way Tables
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chapter 11: Inference for Distributions of Categorical Data
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Chi-square test or c2 test
Chapter 11 Chi-Square Tests.
Inference on Categorical Data
Analyzing the Association Between Categorical Variables
Chapter 26 Comparing Counts.
Chapter Outline Goodness of Fit test Test of Independence.
Chapter 11 Chi-Square Tests.
Hypothesis Testing - Chi Square
Presentation transcript:

Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table

Two-way frequency table – bivariate categorical data can most easily be summarized by the two- way frequency table. Marginal Totals – obtained by adding the observed cell counts in each row and also in each column of the table. Grand Total – The number of observations in the bivariate data set (most cases it is the sample size)

An example of a two-way frequency table with the marginal and grand totals.

To compare two or more groups on the basis of a categorical variable, calculate an expected cell count for each cell by selecting the corresponding row and column marginal totals and then computing

Null Hypothesis: H 0 : The true category proportions are the same for all the populations (homogeneity of populations) Alternative Hypothesis: H a : The true category proportions are not all the same for all the populations. Test Statistic: X 2 P-Values: When H 0 is true, X 2 has approximately a chi- square distribution with df = (number of rows – 1)(number of columns – 1). Assumptions: 1.The data consist of independently chosen random samples. 2.The sample size is large. All expected counts are at least 5.

Example The data on drinking behavior for independently chosen random samples of male and female students are similar to data that appeared an article. Does there appear to be a gender difference with respect to drinking behavior? (Note: Low = 1-7 drinks/week, moderate = 8-24 drinks/week, high = 25 or more drinks/week.)

Drinking Level MaleFemaleRow Marginal Total None140 (158.6) 186 (167.4) 326 Low478 (554.0) 661 (585.0) 1139 Moderate300 (230.1) 173 (242.9) 473 High63 (38.4) 16 (40.6) 79 Column Marginal Total

The relevant hypotheses are –H0: True proportions for the four drinking levels are the same for males and females –Ha: H0 is not true Significance Level: α =.01

Assumptions: Table 12.5 contains the computed expected counts, all of which are greater than 5. The data consist of independently chosen random samples.

P-value: The table has 4 rows and 2 columns, so df = (4 – 1)(2 – 1) = 3. The computed value of X 2 is greater than the largest entry in the 3 – df column of Appendix Table 9, so P-value <.001 Conclusion: Because P-value ≤ α, H 0 is rejected. The data indicate that males and females differ with respect to drinking level.

Independence P(A and B) = P(A)P(B) (proportion of individuals in a particular category combination) = (proportion in specified category of first variable) (proportion in specified category of second variable)

X 2 Test for Independence Null Hypothesis: H 0 : The two variables are independent Alternative Hypothesis: H a : The two variables are not independent.

Example An article examined the relationship between gender and contraceptive use by sexually active teens. Each person in a random sample of sexually active teens was classified according to gender and contraceptive use (with three categories: rarely or never use, use sometimes or most of the time, and always use).

Observed Counts Contraceptive Use FemaleMaleRow Marginal Total Rarely/Never Sometimes Always Column Marginal Total

The authors were interested in determining whether there is an association between gender and contraceptive use. Using a.05 significance level, we will test –H 0 : Gender and contraceptive use are independent –H a : Gender and contraceptive use are not independent

Significance Level: α =.05

All expected cell counts are greater than 5, so we can continue the test.

P-value: The table has 3 rows and 2 columns, so df = (3- 1)(2-1) = 2. The entry closest to is 6.70, so the approximate P-value for this test is P-value ≈.035 Conclusion: Because P-value ≤ α, we reject H 0 and conclude that there is an association between gender and contraceptive use.