Chapter 11 Other Chi-Squared Tests

Slides:



Advertisements
Similar presentations
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)
Advertisements

 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;
Basic Statistics The Chi Square Test of Independence.
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Chi-Square Tests and the F-Distribution
Chi-Square and Analysis of Variance (ANOVA)
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.
GOODNESS OF FIT TEST & CONTINGENCY TABLE
Copyright © 2012 Pearson Education. All rights reserved Copyright © 2012 Pearson Education. All rights reserved. Chapter 15 Inference for Counts:
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on Categorical Data 12.
 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: 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.
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
Other Chi-Square Tests
Chapter 14: Chi-Square Procedures – Test for Goodness of Fit.
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 13 CHI-SQUARE AND NONPARAMETRIC PROCEDURES.
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.
Copyright © 2010 Pearson Education, Inc. Slide
Inference for Distributions of Categorical Variables (C26 BVD)
© Copyright McGraw-Hill CHAPTER 11 Other Chi-Square Tests.
Chapter Outline Goodness of Fit test Test of Independence.
AGENDA:. AP STAT Ch. 14.: X 2 Tests Goodness of Fit Homogeniety Independence EQ: What are expected values and how are they used to calculate Chi-Square?
+ Chapter 11 Inference for Distributions of Categorical Data 11.1Chi-Square Goodness-of-Fit Tests 11.2Inference for Relationships.
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.
ContentFurther guidance  Hypothesis testing involves making a conjecture (assumption) about some facet of our world, collecting data from a sample,
Lecture PowerPoint Slides Basic Practice of Statistics 7 th Edition.
Chapter Fifteen Chi-Square and Other Nonparametric Procedures.
Comparing Counts Chapter 26. Goodness-of-Fit A test of whether the distribution of counts in one categorical variable matches the distribution predicted.
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.
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.
Chi Square Procedures Chapter 14. Chi-Square Goodness-of-Fit Tests Section 14.1.
Chapter 12 Lesson 12.2b Comparing Two Populations or Treatments 12.2: Test for Homogeneity and Independence in a Two-way Table.
Comparing Counts Chi Square Tests Independence.
Basic Statistics The Chi Square Test of Independence.
CHI-SQUARE(X2) DISTRIBUTION
The Chi-square Statistic
Other Chi-Square Tests
Chi-Square hypothesis testing
Chi-square test or c2 test
Chapter 11 Chi-Square Tests.
Chapter 12 Tests with Qualitative Data
AP Stats Check In Where we’ve been… Chapter 7…Chapter 8…
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
Chapter 13 Goodness-of-Fit Tests and Contingency Analysis
Overview and Chi-Square
15.1 Goodness-of-Fit Tests
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.
Inference for Two Way Tables
Chapter 13 Goodness-of-Fit Tests and Contingency Analysis
Chapter 26 Comparing Counts.
11.2 Inference for Relationships
Chapter 11 Chi-Square Tests.
Chi Square Test of Homogeneity
Presentation transcript:

Chapter 11 Other Chi-Squared Tests

Chi-Square Statistic Measures how far the observed values are from the expected values Take sum over all cells in table When is large, there is evidence that H0 is false.

Goodness of Fit (GOF) Tests We can use a chi-squared test to see if a frequency distribution fits a pattern. The hypotheses to these tests are written a little different than we have seen in the past because they are usually written in words.

GOF Hypothesis Test A researcher wishes to see of the number of adults who do not have health insurance is equally distributed among three categories: Category Less than 12 years 12 years More than 12 years Frequency (observed) 29 20 11

GOF Hypothesis Test Step 1 Ho: The number of people who do not have health insurance is equally distributed over the three categories. Ha: The number of people who do not have health insurance is not equally distributed over the three categories.

GOF Hypothesis Test Step 2 α = 0.05 Step 3

GOF Hypothesis Test Step 4 Test Statistic = 8.1 Put Observed in L1 and Expected in L2 L3 = (L1-L2)2 / L2 Sum L3 χ2 cdf (test stat, E99, df) = p-value = 0.017 Category Less than 12 years 12 years More than 12 years Frequency (observed) 29 20 11 Expected

GOF Hypothesis Test Step 5 Step 6 Reject Ho There is enough evidence to suggest that the number of people who do not have health insurance is not equally distributed over the three categories.

Two-Way Tables Summarizes the relationship between two categorical variables Row = values for one categorical variable Column = values for other categorical variable Table entries = number in row by column class

Example of Two-Way Table Age Group Educ 25 to 34 35 to 54 55+ Total No HS 5,325 9,152 16,035 30,512 HS 14,061 24,070 18,320 56,451 C. 1-3 11,659 19,926 9,662 41,247 C. 4+ 10,342 19,878 8,005 38,225 41,388 73,028 52,022 166,438

Independence of Categorical Variables. Is there a relationship between two categorical variables. Are two variables related to each other? Unrelated = independent Related = dependent

Example A 1992 poll conducted by the University of Montana classified respondents by sex and political party. Sex: Male and Female Party: Democrat, Republican, Independent Is there evidence of an association between gender and party affiliation?

Hypothesis Test for Independence HO: Sex and political party affiliation are independent (have no relationship). HA: Sex and political party affiliation are dependent (are related to each other.)

Two-Way Tables Describe table with # of rows (r) and # of columns (c) r x c table Each number in table is called a cell r times c cells in table We will use the two-way table to test our hypotheses.

Data Democrat Republican Independent Total Male 36 45 24 105 Female 48 33 16 97 84 78 40 202

Expected Counts If HO is true, we would expect to get a certain number of counts in each cell. Expected cell count = row total * column total table total

Example of Expected Counts Cell – Male and Democrat Expected Count = Cell – Male and Republican Cell – Male and Independent

Two-Way Table of Expected Counts Democrat Republican Independent Total obs exp 1 36 43.66 45 40.54 24 20.79 105 2 48 40.34 33 37.46 16 19.21 97 84 78 40 202

Expected Counts Expected cell count is close to observed cell count Evidence Ho is true Expected cell count is far from observed cell count Evidence Ho is false

Chi-Squared Test for Independence To test these hypotheses, we will use a Chi-Squared Test for Independence if the assumptions hold. Assumptions: Expected Cell Counts are all > 5

Chi-Square Statistic Measures how far the observed values are from the expected values Take sum over all cells in table When is large, there is evidence that H0 is false. Your calculator will do this for you.

Chi-Square Statistic Cell – Male and Democrat Observed Count = 36 Expected Count = 43.66 Cell – Male and Republican Observed Count = 45 Expected Count = 40.54

Chi-Square Statistic Repeat this process for all 6 cells χ2 = 4.85 As long as the assumptions are met χ2 will have a χ2 distribution with d.f. (r-1)(c-1) Sex has 2 categories (so r = 2); party has 3 categories (so c = 3) We have (2-1)(3-1) = 2 degrees of freedom

Hypothesis Test P-value = P(χ2 > 4.85)= 0.09 Decision: Since p-value > α = 0.05, we will Do Not Reject HO. Conclusion: There is no evidence of a relationship between sex and political party affiliation.

Homogeneity of Proportions Samples are selected from different populations and a researcher wants to determine whether the proportion of elements are common for each population. The hypotheses are: Ho: p1 = p2 = p3 = p4 Ha: At least one is different

Homogeneity of Proportions An advertising firm has decided to ask 92 customers at each of three local shopping malls if they are willing to take part in a market research survey. According to previous studies, 38% of Americans refuse to take part in such surveys. At α = 0.01, test the claim that the proportions are equal.

Homogeneity of Proportions Step 1 Ho: p1 = p2 = p3 Ha: At least one is different Step 2 α = 0.01 Step 3 Mall A B Mall C Total Will Participate 52 45 36 133 Will not participate 40 47 56 143 92 276

Homogeneity of Proportions Step 4 Put into your calculator Observed in matrix A Expected in matrix B Test statistic = 5.602 P-value = 0.06

Homogeneity of Proportions Step 5 Do Not Reject Ho Step 6 There is not sufficient evidence to suggest that at least one is different.