Chapter 12 Lesson 12.2b Comparing Two Populations or Treatments 12.2: Test 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)
AP Statistics Tuesday, 15 April 2014 OBJECTIVE TSW (1) identify the conditions to use a chi-square test; (2) examine the chi-square test for independence;
Chi-Squared Hypothesis Testing Using One-Way and Two-Way Frequency Tables of Categorical Variables.
The Analysis of Categorical Data and Goodness of Fit Tests
CHAPTER 23: Two Categorical Variables: The Chi-Square Test
Statistical Inference for Frequency Data Chapter 16.
Chapter 13: Inference for Distributions of Categorical Data
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Homogeneity.
Chapter 26: Comparing Counts
CHAPTER 11 Inference for Distributions of Categorical Data
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
11-3 Contingency Tables In this section we consider contingency tables (or two-way frequency tables), which include frequency counts for categorical data.
1 Chapter 20 Two Categorical Variables: The 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.
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.
 2 test for independence Used with categorical, bivariate data from ONE sample Used to see if the two categorical variables are associated (dependent)
Chapter 11 Chi-Square Procedures 11.3 Chi-Square Test for Independence; Homogeneity of Proportions.
Chi-square test or c2 test
Chi-square test Chi-square test or  2 test Notes: Page Goodness of Fit 2.Independence 3.Homogeneity.
Chapter 26 Chi-Square Testing
Chapter 11 Inference for Tables: Chi-Square Procedures 11.1 Target Goal:I can compute expected counts, conditional distributions, and contributions to.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
Other Chi-Square Tests
Slide 26-1 Copyright © 2004 Pearson Education, Inc.
Chapter 11 The Chi-Square Test of Association/Independence Target Goal: I can perform a chi-square test for association/independence to determine whether.
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.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
+ Chi Square Test Homogeneity or Independence( Association)
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
Chapter 11 Chi- Square Test for Homogeneity Target Goal: I can use a chi-square test to compare 3 or more proportions. I can use a chi-square test for.
CHAPTER 23: Two Categorical Variables The Chi-Square Test ESSENTIAL STATISTICS Second Edition David S. Moore, William I. Notz, and Michael A. Fligner Lecture.
© 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.
AP STATISTICS LESSON (DAY 1) INFERENCE FOR TWO – WAY TABLES.
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.
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.
Chapter 13- Inference For Tables: Chi-square Procedures Section Test for goodness of fit Section Inference for Two-Way tables Presented By:
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
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.
BPS - 5th Ed. Chapter 221 Two Categorical Variables: The Chi-Square Test.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
The Practice of Statistics, 5th Edition Starnes, Tabor, Yates, Moore Bedford Freeman Worth Publishers CHAPTER 11 Inference for Distributions of Categorical.
Chi-Squared Test of Homogeneity Are different populations the same across some characteristic?
Chapter 13 Section 2. Chi-Square Test 1.Null hypothesis – written in words 2.Alternative hypothesis – written in words – always “different” 3.Alpha level.
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.
12.2 Tests for Homogeneity and Independence in a two-way table Wednesday, June 22, 2016.
Chi Square Test of Homogeneity. Are the different types of M&M’s distributed the same across the different colors? PlainPeanutPeanut Butter Crispy Brown7447.
Test of independence: Contingency Table
CHAPTER 11 Inference for Distributions of Categorical Data
Chi-square test or c2 test
The Analysis of Categorical Data and Goodness of Fit Tests
The Analysis of Categorical Data and Chi-Square Procedures
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
Chapter 10 Analyzing the Association Between Categorical Variables
Contingency Tables: Independence and Homogeneity
Chi-square test or c2 test
The Analysis of Categorical Data and Goodness of Fit Tests
Analyzing the Association Between Categorical Variables
The Analysis of Categorical Data and Goodness of Fit Tests
The Analysis of Categorical Data and Goodness of Fit Tests
Inference for Two Way Tables
The Analysis of Categorical Data and Goodness of Fit Tests
Presentation transcript:

Chapter 12 Lesson 12.2b Comparing Two Populations or Treatments 12.2: Test for Homogeneity and Independence in a Two-way Table

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

X 2 Test for Independence Continued... Assumptions: 1)The data are in counts. 2)Data are from random samples or from subjects who were assigned at random to treatment groups. 3)All expected cell counts are at least 5. (Columns can be combined it this is not true)

X 2 Test for Independence Continued... Expected Counts: (assuming H 0 is true) P-value: df = (number of rows – 1)(number of columns – 1). The P-value associated with the computed test statistic value is the area to the right of  X  under the appropriate chi-square curve.

The paper “Contemporary College Students and Body Piercing” (Journal of Adolescent Health, 2004) described a survey of 450 undergraduate students at a state university in the southwestern region of the United States. Each student in the sample was classified according to class standing (freshman, sophomore, junior, senior) and body art category (body piercing only, tattoos only, both tattoos and body piercing, no body art). Is there evidence that there is an association between class standing and response to the body art question? Use  =.01. Body Piercing Only Tattoos Only Both Body Piercing and Tattoos No Body Art Freshman Sophomore Junior Senior State the hypotheses.

Body Art Continued... Body Piercing Only Tattoos Only Both Body Piercing and Tattoos No Body Art Freshman Sophomore Junior Senior H 0 : class standing and body art category are independent H a : class standing and body art category are not independent df = 9 Assuming H 0 is true, what are the expected counts? Body Piercing Only Tattoos Only Both Body Piercing and Tattoos No Body Art Freshman61 (49.7)7 (15.1)14 (18.5)86 (84.7) Sophomore43 (37.9)11 (11.5)10 (14.1)64 (64.5) Junior20 (23.4)9 (7.1)7 (8.7)43 (39.8) Senior21 (34.0)17 (10.3)23 (12.7)54 (58.0) How many degrees of freedom does this two-way table have?

Body Art Continued... Test Statistic: P-value <.001  =.01 Body Piercing Only Tattoos Only Both Body Piercing and Tattoos No Body Art Freshman61 (49.7)7 (15.1)14 (18.5)86 (84.7) Sophomore43 (37.9)11 (11.5)10 (14.1)64 (64.5) Junior20 (23.4)9 (7.1)7 (8.7)43 (39.8) Senior21 (34.0)17 (10.3)23 (12.7)54 (58.0)

Body Art Continued... Since the P-value < , we reject H 0. There is sufficient evidence to suggest that class standing and the body art category are not independent. Body Piercing Only Tattoos Only Both Body Piercing and Tattoos No Body Art Freshman61 (49.7)7 (15.1)14 (18.5)86 (84.7) Sophomore43 (37.9)11 (11.5)10 (14.1)64 (64.5) Junior20 (23.4)9 (7.1)7 (8.7)43 (39.8) Senior21 (34.0)17 (10.3)23 (12.7)54 (58.0) Which cell contributes the most to the X 2 test statistic? Seniors having both body piercing and tattoos contribute the most to the X 2 statistic.

Practice Handout A class collected data about eye color…

Homework Pg.722: #12.15, 19, 25