Presentation is loading. Please wait.

Presentation is loading. Please wait.

N318b Winter 2002 Nursing Statistics Specific statistical tests Chi-square (  2 ) Lecture 7.

Similar presentations


Presentation on theme: "N318b Winter 2002 Nursing Statistics Specific statistical tests Chi-square (  2 ) Lecture 7."— Presentation transcript:

1 N318b Winter 2002 Nursing Statistics Specific statistical tests Chi-square (  2 ) Lecture 7

2 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 2 Today’s Class  5 basic statistical tests covered in course  Parametric and non-parametric tests  Degrees of freedom  >  Example of chi-square test  Applying knowledge to assigned readings Turk et al. (1995) Followed by small groups 12-2 PM Focus on interpreting chi-square results

3 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 3 “In Group” Session Focuses on an assigned reading. Q1 example of the chi square test Q2 example of the chi square test Q3 criteria for non-parametric test Key points from the Turk et al paper will be covered in the 2 nd part of the lecture Missing Table 1

4 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 4 New Lecture Material Specific statistical tests: Parametric and non- parametric tests

5 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 5 Specific Statistical Tests Course will cover five major “tests”: 1. Chi-square (  2 ) 2. T-tests 3. Analysis of variance (ANOVA) 4. Correlation 5. Regression

6 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 6 Statistical Tests – cont’d All these tests do basically the same 3 things: 3. “test statistic” follows known distributions such that the probability of its value occurring can be determined (i.e. its “p-value”) 2. Generate a “test statistic” whose value increases as difference between groups increases (i.e. larger values more significant) 1. Compare 2 or more study groups to each other (or one group to a reference group) Example: Z-scores

7 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 7 Statistical Tests – cont’d How do you known when to use which test? Helps to ask some basic questions: 1. What kind of data are used? 2. What kind of relationship is of interest? 3. How many groups (samples) involved? - one, two, or more than two - prediction, association or difference? - ratio/interval or categorical (ordinal/nominal) - dependent (e.g. follow-up) or independent

8 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 8 Key point is determining type of data For categorical (i.e. either nominal or ordinal data) the normal distribution is generally not applicable and population descriptors (parameters) cannot be estimated so non-parametric tests used Main non-parametric test is the chi-square test that compares expected (E) numbers with actual or observed (O) numbers Non-Parametric Tests

9 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 9 For continuous (i.e. either interval or ratio data) the normal distribution applies and population descriptors (parameters, like means) can be estimated thus parametric tests are used instead Main tests for this course include the t-test, paired t-test and analysis of variance (ANOVA), all of which test means Parametric Tests

10 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 10 Parametric vs. non- parametric tests Data usedExamplesComments Non- parametric (numbers, %’s) Nominal, ordinal (categorical) Chi- square Easy to use but limited to simple situations Parametric (means, variances) Interval, ratio (continuous) T-tests, ANOVA, regression More flexible and powerful (also more convincing)

11 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 11 Degrees of Freedom SD =  (x-  ) 2 n -1 Recall the formula for SD was “adjusted” for imprecision of small samples The (n-1) term is referred to as “degrees of freedom” since it indicates how many ways that the data can vary in a sample

12 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 12 Degrees of Freedom – cont’d Value of “test statistic” derived from many statistical tests is dependent on this idea of “degrees of freedom” thus some sense of what it means is useful (e.g. see textbook page 84-85) df = number of ways that data can vary (or be categorized) Example – for chi square test: df = (number of categories –1)

13 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 13 Example – for chi square test: df = (number of categories –1) Degrees of Freedom – cont’d Why? If total number of subjects is known, and they are categorized into 4 groups, then if three tallies are known the fourth is “fixed” – i.e. it can be derived so it is not “free” to vary df =(4 –1) = 3

14 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 14 Chi square (  2 ) test How do you known when to use  2 test? 1. What kind of data are used? 2. What kind of relationship is of interest? 3. How many groups (samples) involved? - categorical ( typically nominal) - frequencies (i.e. counts or percentages) - data can be put in a “contingency table” - association or difference - usually two or more (“smallish” number) Referring back to the 3 “basic questions”:

15 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 15 Chi square test - example One of the most common statistical tests ! Example: We suspect that students at UWO love statistics a lot so we ask 100 nursing students if they really like Nur 318b? 63 say YES, 37 say NO Is this more than we might have expected – i.e. are UWO nurses crazy about statistics?

16 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 16 If we did not think students would be more or less likely to enjoy the course, we would EXPECT 50 to say no and 50 to say YES Chi square test - example  2 compares observed vs expected numbers H 0 : no difference in OBS versus EXP counts H a : OBS count is NOT equal to EXP Study hypotheses

17 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 17 Chi square test - example YESNO at UWO (observed) 6733 In general (expected) 50 22 =  (O-E) 2 E (67-50) 2 + (33-50) 2 50 == 11.56

18 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 18 Chi square test - example As with Z-scores, we now look this number (11.56) up in a table of critical values, in this case for the chi square distribution (table value is the probability that observed and expected numbers are the same) 22 (1 df) = 11.56, p < 0.001 Thus we can conclude that UWO nursing students must love stats !!!

19 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 19 10 minute break !

20 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 20 Chi square test - assumptions 1. Data are counts, frequencies, percentages 2. Smallest table cell counts ideally >5 3. Data in rows and columns are independent (i.e. subjects can be in one table cell only) 4. Categories or levels set BEFORE testing

21 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 21 Why is the chi square a nonparametric statistical test? Chi square test - assumptions 1) it does not assume data are normally distributed (in fact NO assumptions are needed about underlying distribution) 2) categorical/nominal data are used 3) not estimating a population characteristic (i.e. a parameter, like the mean)

22 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 22 Part 2: Application to the Assigned Readings

23 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 23 Turk et al. (1995) Quick summary of the paper: – a cross-sectional study examining the cognitive-behavioral mediation model of depression in chronic pain patients – 100 chronic pain subjects divided into two groups: 73 randomly chosen younger (<70); and 27 older (  70 yrs) patients – found a strong link between pain and depression for older subjects but not for younger ones (i.e. an age effect)

24 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 24 Some design issues? Do you have any concerns with design of the study – e.g. using a cross-sectional design to examine chronic pain and depression? Can pain be more of “social” problem with older people thus “confounding” assessment of depression? Which came first (“chicken-and-egg”)? Was assessment of depression “blinded”?

25 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 25 Chi square test – example 2: the contingency table GenderyoungoldTotal Male45.21 (33) 37.04 (10)43 Female54.79 (40) 62.96 (17)57 Total100% (73) 100% (27)100 Observed counts from Table 1

26 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 26 Chi square test – example 2: the contingency table How did we get counts from %’s? Just multiply % by total number in group e.g. 45.21% male in younger group is equal to 0.4521 x 73 = 33 males How do we get expected counts? Expected counts assume no association between groups thus they are calculated according to size of cells in groups

27 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 27  2 Contingency Table Expected counts R i x C j N E ij = = For cell 1,1: R 1 x C 1 100 E 11 = 43 x 73 100 =31.4 For cell 1,2 = 11.6 For cell 2,1 = 41.6 For cell 2,2 = 15.4

28 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 28 GenderyoungoldTotal Male33 (31.4) 10 (11.6)43 Female40 (41.6) 17 (15.4)57 Total7327100  2 Contingency Table Expected counts C1C1 C2C2 R1R1 R2R2

29 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 29  2 Contingency Table Test statistic 22 =  (O-E) 2 E (33-31.4) 2 + (10-11.6) 2 31.411.6 = (40-41.6) 2 + (17-15.4) 2 41.615.4 + 22 (1 df) = 0.54, p > 0.20 Can’t reject null hypothesis, thus no association !

30 School of Nursing Institute for Work & Health Nur 318b 2002 Lecture 6: page 30 Next Week - Lecture 8: T-test For next week’s class please review: 1.Page 16 in syllabus 2.Textbook Chapter 4, pages 97-107 3.Syllabus paper: Turk et al. (1995)


Download ppt "N318b Winter 2002 Nursing Statistics Specific statistical tests Chi-square (  2 ) Lecture 7."

Similar presentations


Ads by Google