1 / 24

Chapter 19

Chapter 19. Chi-Square ( χ 2 ) Test for Qualitative (Nominal) Data. Chi-Square ( χ 2 ). Uses categorical data Example: blood type; A, B, O, AB Designed to compare observed frequencies with hypothesized or expected frequencies. Observed frequency – the actual sampling frequency

Download Presentation

Chapter 19

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 19 Chi-Square (χ2) Test for Qualitative (Nominal) Data

  2. Chi-Square (χ2) • Uses categorical data • Example: blood type; A, B, O, AB • Designed to compare observed frequencies with hypothesized or expected frequencies. • Observed frequency – the actual sampling frequency • Expected frequency – the predicted frequency given the null hypothesis is true.

  3. Hypotheses • H0: Probability of categories = expected or predicted proportion • H1: H0 is false

  4. χ2 Ratio (fo – fe)2 • χ2 = Σ fe

  5. χ2 Calculation Expected numbers based on known proportion of blood types times the sample size (100).

  6. χ2 Calculation Expected numbers based on known proportion of blood types times the sample size (100).

  7. χ2 Calculation Expected numbers based on known proportion of blood types times the sample size (100).

  8. χ2 Calculation Expected numbers based on known proportion of blood types times the sample size (100).

  9. χ2 Calculation Expected numbers based on known proportion of blood types times the sample size (100).

  10. χ2 Calculation Expected numbers based on known proportion of blood types times the sample size (100).

  11. χ2 Calculation • The sum of each observed minus expected cell squared divided by expected. (38-44)2(38-41)2(20-10)2(4-5) 2 = 44 + 41 + 10 + 5 (-6)2(-3)2(10)2(-1) 2 = 44 + 41 + 10 + 5 3691001 = 44 + 41 + 10 + 5

  12. χ2 Calculation = .82 + .22 + 10.00 + .20 = 11.24 Degrees of freedom for χ2 test df = c – 1, where c is the number of categories

  13. χ2 Interpretation • Look up in Table D (Appendix C) page 537 • If the calculated value is greater than or equal to the table value, then reject the null hypothesis.

  14. χ2 With two variables • This is a test of independence. • That is, the two qualitative variables are tested to be independent of each other. • If they are not independent, then the null hypothesis is false, and we accept the alternate hypothesis.

  15. χ2 With two variables • Expected frequencies are calculated from the marginal totals. • We use the data to estimate the expected frequencies.

  16. Lost Letter study of“Social Responsibility” (p 433)

  17. Expected frequencies • Must calculate expected from the proportions in the observed data. • Fe = (column total)(row total) grand total

  18. Lost Letter study of“Social Responsibility” (p 433)

  19. Lost Letter study of“Social Responsibility” (p 433)

  20. χ2 Calculation • The sum of each observed minus expected cell squared divided by expected. (41-36)2(19-24)2(32-42)2(38-28) 2(47-42)2(23-28)2 = 41 + 24 + 42 + 28 + 42 + 28 (5)2(-5)2(-10)2(10) 2(5)2(-5) 2 = 41 + 24 + 42 + 28 + 42 + 28 25251001002525 = 41 + 24 + 42 + 28 + 42 + 28

  21. χ2 Calculation = .61 + 1.04 + 2.38 + 3.57 + .60 + .89 = 9.09 Degrees of freedom for χ2 test with two variables df = (c – 1)(r – 1), where c is the number of categories, and r is the number of rows df = (3 – 1)(2 – 1) = (2)(1) = 2 The table value at the .05 level of significance = 5.99

  22. χ2 Calculation Since the calculated value of 9.09 exceeds the table value of 5.99 We reject the H0 and accept the H1 that there is a significant difference between the observed and expected values. Interpretation: The location does make a difference is social responsibility when returning self-addressed stamped letters in this community.

  23. Estimating Effect Size • If the χ2 is significant then you must calculate the effect size. • Squared Cramer’s phi coefficient • Φ2c roughly estimates the proportion of explained variance (or predictability) between two qualitative variables. χ2 • Φ2c = n(k – 1) • Where n=sample size, k = the smaller of either rows or columns.

  24. Guidelines for Φ2c (p 438)

More Related