The Chi-Square Test Used when both outcome and exposure variables are binary (dichotomous) or even multichotomous Allows the researcher to calculate a.

Slides:



Advertisements
Similar presentations
CHI-SQUARE(X2) DISTRIBUTION
Advertisements

Hypothesis Testing IV Chi Square.
Analysis of frequency counts with Chi square
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.
PSY 340 Statistics for the Social Sciences Chi-Squared Test of Independence Statistics for the Social Sciences Psychology 340 Spring 2010.
Business Statistics - QBM117
Ch. 28 Chi-square test Used when the data are frequencies (counts) or proportions for 2 or more groups. Example 1.
1. 2 BIOSTATISTICS 5.6 TEST OF HYPOTHESIS 3 BIOSTATISTICS TERMINAL OBJECTIVE: 5.6 Perform a test of significance on a hypothesis using Chi-square test.
Chi-square Test of Independence
Statistics 303 Chapter 9 Two-Way Tables. Relationships Between Two Categorical Variables Relationships between two categorical variables –Depending on.
Crosstabs and Chi Squares Computer Applications in Psychology.
Aaker, Kumar, Day Seventh Edition Instructor’s Presentation Slides
Chapter 26: Comparing Counts. To analyze categorical data, we construct two-way tables and examine the counts of percents of the explanatory and response.
PSY 307 – Statistics for the Behavioral Sciences Chapter 19 – Chi-Square Test for Qualitative Data Chapter 21 – Deciding Which Test to Use.
Comparing Population Parameters (Z-test, t-tests and Chi-Square test) Dr. M. H. Rahbar Professor of Biostatistics Department of Epidemiology Director,
Chi-square Goodness of Fit Test
Presentation 12 Chi-Square test.
Copyright © Cengage Learning. All rights reserved. 11 Applications of Chi-Square.
Aaker, Kumar, Day Ninth Edition Instructor’s Presentation Slides
Analysis of Categorical Data
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
CHP400: Community Health Program - lI Research Methodology. Data analysis Hypothesis testing Statistical Inference test t-test and 22 Test of Significance.
Goodness-of-Fit Tests and Categorical Data Analysis
1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
For testing significance of patterns in qualitative data Test statistic is based on counts that represent the number of items that fall in each category.
Chi-Square Test of Independence Practice Problem – 1
Dr.Shaikh Shaffi Ahamed Ph.D., Dept. of Family & Community Medicine
Two Variable Statistics
Contingency tables Brian Healy, PhD. Types of analysis-independent samples OutcomeExplanatoryAnalysis ContinuousDichotomous t-test, Wilcoxon test ContinuousCategorical.
Chi-Square Procedures Chi-Square Test for Goodness of Fit, Independence of Variables, and Homogeneity of Proportions.
The binomial applied: absolute and relative risks, chi-square.
Analysis of Qualitative Data Dr Azmi Mohd Tamil Dept of Community Health Universiti Kebangsaan Malaysia FK6163.
+ 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.
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.
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.
Reasoning in Psychology Using Statistics Psychology
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.
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,
Chapter 11: Additional Topics Using Inferences 11.1 – Chi-Square: Tests of Independence 11.2 – Chi-Square: Goodness of Fit 11.3 – Testing a Single Variance.
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.
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.
Dr.Shaikh Shaffi Ahamed Ph.D., Dept. of Family & Community Medicine
Statistics 300: Elementary Statistics Section 11-3.
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.
11/12 9. Inference for Two-Way Tables. Cocaine addiction Cocaine produces short-term feelings of physical and mental well being. To maintain the effect,
CHI SQUARE DISTRIBUTION. The Chi-Square (  2 ) Distribution The chi-square distribution is the probability distribution of the sum of several independent,
Political Science 30: Political Inquiry. How Sure is Sure? Quantifying Uncertainty in Tables Using Two-Way Tables SAT scores and UC admissions What’s.
Chi Square Test Dr. Asif Rehman.
Presentation 12 Chi-Square test.
10 Chapter Chi-Square Tests and the F-Distribution Chapter 10
Chapter 12 Tests with Qualitative Data
Qualitative data – tests of association
Is a persons’ size related to if they were bullied
Chi Square Two-way Tables
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
Analyzing the Association Between Categorical Variables
Chapter Outline Goodness of Fit test Test of Independence.
Quadrat sampling & the Chi-squared test
Quadrat sampling & the Chi-squared test
Presentation transcript:

The Chi-Square Test Used when both outcome and exposure variables are binary (dichotomous) or even multichotomous Allows the researcher to calculate a p-value associated with relative risks (RR) and odds ratio (OR) Simplest for is a 2 x 2 contingency table Obtain a set of expected values and compare observed to expected

How does chi-square work? Compares the observed 2 x 2 table to a theoretical table (“expected”) that would occur if the null hypothesis (H 0 ) were true DiseasedNot diseased ExposedO 11 O 12 Not exposedO 21 O 22 DiseasedNot diseased ExposedE 11 E 12 Not exposedE 21 E 22 ? ObservedExpected under H 0

Calculating the “expected” table DiseasedNot diseased ExposedO 11 O 12 Not exposedO 21 O 22 O 11 + O 12 = R 1 O 21 + O 22 = R 2 O 12 + O 22 = C 2 O 11 + O 21 = C 1 Σ O i = N Start with observed table DiseasedNot diseased ExposedE 11 = R 1 C 1 /NE 12 = R 1 C 2 /N Not exposedE 21 = R 2 C 1 /NE 22 = R 2 C 2 /N Calculate the expected table

Chi-square test from breast cancer study Set alpha value: let’s use 0.05 State H 0 and H A. H 0 : There is no association between race and breast cancer status. (The proportion of Whites is the same in cases and controls) p cases = p controls where p = proportion white

Null and alternate hypotheses Null hypothesis (H 0 ): There is no association between race and breast cancer status. (The proportion of Whites is the same in cases and controls.) p cases = p controls Alternate hypothesis (H A ): There is an association between race and breast cancer status. (The proportion of Whites is the different in cases and controls.) p cases ≠ p controls

Calculating expected table CasesControls White Black Start with observed table Calculate the expected table 1582 CasesControls White1582*949/2473 = *1524/2473 = Black891*949/2473 = *1524/2473 =

Calculate chi-square statistic CasesControls White Black CasesControls White Black χ 2 = ( ) 2 / ( ) 2 / ( ) 2 / ( ) 2 /549.1 χ 2 = 36.2 ( O 11 – E 11 ) 2 / E 11

Chi-square distributions Test statistic = 36.2 Compare to a known χ 2 distribution to get p- value Need to know degrees of freedom = (rows – 1)*(columns – 1) In this case, d.f. = (2 – 1)(2 – 1) = 1*1 = 1 Chi-square value Probability 2 4 Critical value for 1 d.f. = 3.84 (where alpha = 0.05) Rejection region for H 0 Our chi square statistic = 36.2

Chi-square table and interpretation Examine the list of values and associated p-values from column with 1 degree of freedom For an observed χ 2 of 36.2, the associated p-value is < Since p < α, we reject H 0 and conclude that there is an association between race and outcome (case/control) status.

Chi-square caveat #1 What about tables that are larger than 2x2? If there is a statistically significant association (i.e. p < α), we don’t know among which group(s) the association(s) occur(s). Need to conduct individual 2 x 2 χ 2 analyses to determine if/where the association(s) exist. (…which is < α)

What about very small sample sizes? Answer: Chi-square is not an appropriate test if 20% or more of the cells (i.e. 1 or more cells in a 2x2 table) have expected counts of less than 5. Solution: Use Fisher’s exact test Based on permutations, not on a theorized distribution Chi-square caveat #2