Presentation is loading. Please wait.

Presentation is loading. Please wait.

Chi-Square test. PRESENTED BY: Dr.Zhian Salah Ramzi Head of community and Family medicine/ sulaimani university.

Similar presentations


Presentation on theme: "Chi-Square test. PRESENTED BY: Dr.Zhian Salah Ramzi Head of community and Family medicine/ sulaimani university."— Presentation transcript:

1 Chi-Square test

2 PRESENTED BY: Dr.Zhian Salah Ramzi Head of community and Family medicine/ sulaimani university

3 Chi-Square Test Evaluates whether observed frequencies for a qualitative variable (or variables) are adequately described by hypothesized or expected frequencies. Qualitative (or categorical) data is a set of observations where any single observation is a word or code that represents a class or category. Qualitative (or categorical) data is a set of observations where any single observation is a word or code that represents a class or category.

4 Nonparametric Statistics u Chi-Square (  2 )Test u Used to analyze data in situations where one wishes to test whether the observed number of responses in a category differs from the expected number that fall in that category. u Dependent Variable is nominal. u H o represents the expected proportion of responses falling in a given category.

5 Where k = # of categories, Oi = observed number of cases in each category, Ei = expected number of cases in each category. When H o is true, Oi  Ei and  2 will be small. If H o is false, then Oi  Ei and  2 will be large. u Simple and complex – one variable or multiple variables

6 Recent studies have found that most teens are knowledgeable about AIDS, yet many continue to practice high-risk sexual behaviors. King and Anderson (1993) asked young people the following question: “If you could have sexual relations with any and all partners of your choosing, as often as you wished, for the next 2 (or 10) years, but at the end of that time period you would die of AIDS, would you make this choice?” A five-point Likert scale was used to assess the subjects’ responses. For the following

7 data, the responses “probably no,” “unsure,” “probably yes”, and “definitely yes” were pooled into the category “other.” Using the.05 level of significance, test for independence. Definitely No Other Definitely No Other Males 451 165 Females 509 118

8 Chi-Square Test for Independence u State the research hypothesis. u Is willingness to participate in unprotected sex independent of gender? u State the statistical hypothesis. H 0: Response to the question and gender are not related Response to the question and gender are related H A:

9 Chi-Square Test for Independence u To find expected values: u Find column, row, and overall totals. Definitely NoOtherTotal Males451165616 Females509118627 Total9602831243

10 Chi-Square Test for Independence u To find expected values: Definitely NoOtherTotal Males Males451 (475.75)165616 Females509118627 Total9602831243 Ei Ei Ei Ei

11 Chi-Square Test for Independence u To find expected values: Definitely NoOtherTotal Males451 (475.75)165616 Females509 (484.25)118627 Total9602831243 Ei Ei

12 Chi-Square Test for Independence u To find expected values: Definitely NoOtherTotal Males451 (475.75)165 (140.25)616 Females509 (484.25)118627 Total9602831243 Ei Ei

13 Chi-Square Test for Independence u To find expected values: Definitely NoOtherTotal Males451 (475.75)165 (140.25)616 Females509 (484.25)118 (142.75)627 Total9602831243 Ei Ei

14 Chi-Square Test for Independence u Set the decision rule. u Degrees of Freedom u (number of columns - 1) (number of rows -1) u (c-1)(r-1) Definitely NoOther Males451165 Females509118

15 Chi-Square u Set the decision rule.

16 Chi-Square Test for Independence u Calculate the test statistic. Definitely NoOtherTotal Males451 (475.75)165 (140.25)616 Females509 (484.25)118 (142.75)627 Total9602831243

17 The Chi-Square test

18 Chi-Square Test for Independence u Decide if your result is significant. u Reject H 0, 11.21>3.84 u Interpret your results. u Willingness to engage in unprotected sex and gender are not independent. Definitely NoOtherTotal Males451 (475.75)165 (140.25)616 Females509 (484.25)118 (142.75)627 Total9602831243

19

20

21

22

23

24

25

26

27

28


Download ppt "Chi-Square test. PRESENTED BY: Dr.Zhian Salah Ramzi Head of community and Family medicine/ sulaimani university."

Similar presentations


Ads by Google