Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chi-Square Test James A. Pershing, Ph.D. Indiana University.

Similar presentations


Presentation on theme: "Chi-Square Test James A. Pershing, Ph.D. Indiana University."— Presentation transcript:

1 Chi-Square Test James A. Pershing, Ph.D. Indiana University

2 Basic Use of Chi-Square Examine the effects of an independent variable on the dependent variable Data are nominal (labels or names) What is collected is frequency data Can have any number of independent categories Data are presented in table format

3 Chi-Square -- Two Applications  Goodness-of-fit test to assess if a distribution fits (matches) a theoretical distribution  Test statistic to assess the statistical significance of a finding

4 Chi-Square as a Goodness-of-Fit Test Does a pattern of frequencies of a single categorical variable significantly differ from an expected pattern We choose the expected pattern Example: –Car colors of red -- blue -- black -- white –100 people given four pictures of same car in four different colors –If no preference -- expect 1/4 or 25 for each color

5 Car Color Preference Assumption = No Preference – Choices Are Random RedBlueBlackWhite 25 100 Cars – Four Colors Expected Values

6 Car Color Preference Assumption = No Preference – Choices Are Random RedBlueBlackWhite 48151027 100 Cars – Four Colors Observed Values

7 Car Color Preference Assumption = No Preference – Choices Are Random RedBlueBlackWhite 25 48151027 100 Cars – Four Colors Color Expected Observed

8 Car Color Preference Assumption = No Preference – Choices Are Random RedBlueBlackWhite 25 48151027 48 – 25 = +23 15 - 25 = -10 10 - 25 = -15 27 - 25 = +2 100 Cars – Four Colors Color Expected Observed Difference O - E

9 Calculating The Chi-Square Chi-Square Formula 22 =  (O – E) 2 E = (+23) 2 (-10) 2 (-15) 2 (+2) 2 25 +++ = 529 100 225 4 25 +++ = +++ 21.16.16 9.04.0 = 34.32

10 Chi-Square Goodness-Of-Fit Example  2 = 34.32 Degrees of Freedom (DF) Number of categories minus one! DF = C - 1 4 car colors 4 - 1 = 3

11 Critical Values of the Chi-Square Distribution at 5% Level The calculated value of the  2 must be larger than or equal to the table value for significance. Car color value = 34.32, so significant. df Critical value for  2 1 2 3 4 5 6 7 8 9 10 3.84 5.99 7.81 9.49 11.07 12.59 14.07 15.51 16.92 18.31

12 Car Color Preference Assumption = No Preference – Choices Are Random RedBlueBlackWhite 25 48151027 Color Expected Observed Because our observed value (34.32) for the observed differences is greater than the critical value (7.81) we can conclude that the differences are statistically significant at the.05 level.

13 Comments & Questions


Download ppt "Chi-Square Test James A. Pershing, Ph.D. Indiana University."

Similar presentations


Ads by Google