ordinally scale variables

43
1 Ordinally Scale Variables Greg C Elvers

Upload: carys

Post on 08-Feb-2016

72 views

Category:

Documents


2 download

DESCRIPTION

Ordinally Scale Variables. Greg C Elvers. Why Special Statistics for Ordinally Scaled Variables. The parametric tests (e.g. t, ANOVA) rely on estimates of variance which cannot be meaningfully obtained from ordinally scaled data - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Ordinally Scale Variables

1

Ordinally Scale Variables

Greg C Elvers

Page 2: Ordinally Scale Variables

2

Why Special Statistics for Ordinally Scaled Variables

The parametric tests (e.g. t, ANOVA) rely on estimates of variance which cannot be meaningfully obtained from ordinally scaled dataThe non-parametric tests for nominally scaled variables (e.g. binomial, 2) do not use all the information that is present in ordinally scaled variables

Page 3: Ordinally Scale Variables

3

Types of Statistics for Ordinally Scaled Variables

There are three main statistics that are used with ordinally scaled variables:

Mann-Whitney USign testWilcoxon matched-pairs signed-rank test

Page 4: Ordinally Scale Variables

4

Mann-Whitney U Test

The Mann-Whitney U test can be used when:

the dependent variable is ordinally scaled (or above), andthe design is a two-sample design, andthe design is between subjects, andthe participants are not matched across conditions

Page 5: Ordinally Scale Variables

5

Mann-Whitney U Test

The Mann-Whitney U test is a useful alternative to the t-test if

the dv is ordinally scaled, oryou do not meet the assumption of normality, oryou do not meet the assumption of homogeneity of variance

Page 6: Ordinally Scale Variables

6

Steps in the Mann-Whitney U Test

Write the hypotheses:H0: 1 = 2 or H0: 1 2

H1: 1 2 or H1: 1 > 2

Decide if the hypothesis is one- or two-tailedSpecify the levelCalculate the Mann-Whitney U

Page 7: Ordinally Scale Variables

7

Steps in the Mann-Whitney U Test

Rank order all of the data (from both control and experimental conditions) from lowest to highest

Lowest score has a rank of 1Sum the ranks of the scores in the first condition

The sum of the ranks is called R1 Sum the ranks of the scores in the second condition

The sum of the ranks is called R2

Page 8: Ordinally Scale Variables

8

Steps in the Mann-Whitney U Test

Calculate the U (or U’) statistic:

2

2221

111

21

R2

1NNNNU

R2

1NNNNU

N1 is the number of scores in the 1st conditionN2 is the number of scores in the 2nd conditionR1 is the sum of the ranks of the scores in the 1st conditionR2 is the sum of the ranks of the scores in the 2nd condition

Page 9: Ordinally Scale Variables

9

Steps in the Mann-Whitney U Test

Consult a table to find the critical U and U’ valuesThe tails and level determine which table you will useFind N1 across the top of the table and N2 down the left side of the tableThe critical U and U’ values are given at the intersection of the N1 column and N2 row

Critical U is the smaller number in the pairCritical U’ is the larger number in the pair

Page 10: Ordinally Scale Variables

10

Steps in the Mann-Whitney U Test

Decide whether to reject H0 or not:If the observed U is less than or equal to the critical U, reject H0

If the observed U’ is greater than or equal to the critical U’, reject H0

Page 11: Ordinally Scale Variables

11

Mann-Whitney Example

An instructor taught two sections of PSY 216One section used SPSS for calculationsThe other section performed calculations by hand

At the end of the course, the students rated how much they liked statistics

The questionnaire asked 20 questions on a 5 point scale

Page 12: Ordinally Scale Variables

12

Mann-Whitney U Example

Are the mean ratings of liking different?Write the hypotheses:

H0: SPSS = Hand H1: SPSS Hand

Determine the tailsIt is a two-tailed, non-directional test

Specify the level = .05

Calculate the Mann-Whitney U

Page 13: Ordinally Scale Variables

13

Mann-Whitney Example

SPSS Hand

86 4853 2479 8291 6383 8176 7267 8094 9075 7152 5933 4987 3058 6847 5566 57

44

Page 14: Ordinally Scale Variables

14

Mann-Whitney ExampleSPSS Hand

Score Rank Score Rank86 27 48 653 9 24 179 22 82 2591 30 63 1483 26 81 2476 21 72 1967 16 80 2394 31 90 2975 20 71 1852 8 59 1333 3 49 787 28 30 258 12 68 1747 5 55 1066 15 57 11

44 4R1 = 273 R2 = 223

Page 15: Ordinally Scale Variables

15

Mann-Whitney U Example

Calculate the statistic:

87

2732

115151615

R2

1NNNNU 111

21

153

2232

116161615

R2

1NNNNU 222

21

Page 16: Ordinally Scale Variables

16

Mann-Whitney U Example

Find the critical U and U’ valuesConsult the table of critical U values with = .05, two-tailedColumn = N1 = 15

Row = N2 = 16

Critical U = 70Critical U’ = 170

Page 17: Ordinally Scale Variables

17

Mann-Whitney U Example

Decide whether to reject H0:If observed U (87) is critical U (70), reject H0

If observed U’ (153) is critical U’ (170), reject H0

Fail to reject H0

There is insufficient evidence to conclude that the mean ratings are different

Page 18: Ordinally Scale Variables

18

Special Considerations

If a score in one condition is identical to a score in the other condition (i.e. the ranks are tied) then a special form of the Mann-Whitney U test should be used

Failure to use the special form increases the probability of a Type-II error

Page 19: Ordinally Scale Variables

19

Special Considerations

When N1 and / or N2 exceed 20, then the sampling distributions are approximately normal (due to the central limit theorem) and the z test can be used:

U

E1

sUUz

WhereU1 = sum of ranks of group 1UE = sum expected under H0

su = standard error of the U statistics

Page 20: Ordinally Scale Variables

20

Special Considerations

2

1NNNU 211E

12

1NNNNs 2121u

Page 21: Ordinally Scale Variables

21

Sign Test

The sign test can be used when:the dependent variable is ordinally scaled (or above), andthe design is a two-sample design, andthe participants are matched across conditions

Page 22: Ordinally Scale Variables

22

Sign Test

The basic idea of the sign test is that we take the difference of each pair of matched scoresThen we see how many of the differences have a positive sign and how many have a negative sign

Page 23: Ordinally Scale Variables

23

Sign Test

If the groups are equivalent (i.e. no effect of the treatment), then about half of the differences should be positive and about half should be negativeBecause there are only two categories (+ and -), the sign test is no different from the binomial test

Page 24: Ordinally Scale Variables

24

Steps in the Sign Test

Write the hypotheses:H0: P = .5

H1: P .5where P = probability of a positive sign in the difference

Decide if the hypothesis is one- or two-tailedSpecify the levelCalculate the Sign Test

Page 25: Ordinally Scale Variables

25

Calculate the Sign Test

For each pair of scores, take the difference of the scoresCount the number of differences that have a positive sign

Page 26: Ordinally Scale Variables

26

Steps in the Sign Test

Determine the critical value from a table of binomial values

Find the column with the appropriate number of tails and levelFind the row with the number of pairs of scoresThe critical value is at the intersection of the row and column

Page 27: Ordinally Scale Variables

27

Steps in the Sign Test

Decide whether to reject H0 or not:If the number of differences that are positive is greater than or equal to the critical value from the binomial table, reject H0

Page 28: Ordinally Scale Variables

28

Sign Test Example

An instructor taught two sections of PSY 216One section used SPSS for calculationsThe other section performed calculations by handThe students in the sections were matched on their GPA

At the end of the course, the students rated how much they liked statistics

The questionnaire asked 20 questions on a 5 point scale

Page 29: Ordinally Scale Variables

29

Sign Test Example

Are the mean ratings of liking different?Write the hypotheses:

H0: P = .5 H1: P .5

Determine the tailsIt is a two-tailed, non-directional test

Specify the level = .05

Calculate the sign test

Page 30: Ordinally Scale Variables

30

Sign Test Example

SPSS Hand

86 4853 2479 8291 6383 8176 7267 8094 9075 7152 5933 4987 3058 6847 5566 57

Page 31: Ordinally Scale Variables

31

Sign Test Example

SPSS Hand Sign of Difference

86 48 +53 24 +79 82 -91 63 +83 81 +76 72 +67 80 -94 90 +75 71 +52 59 -33 49 -87 30 +58 68 -47 55 -66 57 +

# + Signs = 9

Page 32: Ordinally Scale Variables

32

Sign Test Example

Determine the critical value=.05, two-tailed, N = 15Critical value = 12

Decide whether to reject H0:If observed value (9) is greater than or equal to critical (12), then reject H0

Fail to reject H0 - there is insufficient evidence to conclude that the groups are different

Page 33: Ordinally Scale Variables

33

Wilcoxon Matched-Pairs Signed-Rank Test

The sign test considers only the direction of the difference, and not the magnitude of the differenceIf the magnitude of the difference is also meaningful, then the Wilcoxon matched-pairs signed-rank test may be a more powerful alternative

Page 34: Ordinally Scale Variables

34

Wilcoxon Matched-Pairs Signed-Rank Test

The Wilcoxon matched-pairs signed-rank test can be used when:

the dependent variable is ordinally scaled (or above), andthe design is a two-sample design, andthe participants are matched across conditions, andthe magnitude of the difference is meaningful

Page 35: Ordinally Scale Variables

35

Steps in the Wilcoxon Matched-Pairs Signed-Rank Test

Write the hypotheses:H0: 1 = 2

H1: 1 2

Decide if the hypothesis is one- or two-tailedSpecify the levelCalculate the Wilcoxon matched-pairs signed-rank test

Page 36: Ordinally Scale Variables

36

Steps in the Wilcoxon Matched-Pairs Signed-Rank Test

For each pair of scores, take the difference of the scoresRank order the differences from lowest to highest, ignoring the sign of the differenceSum the ranks that have a negative sign

Page 37: Ordinally Scale Variables

37

Steps in the Wilcoxon Matched-Pairs Signed-Rank Test

Determine the critical value from a table of critical Wilcoxon values

Find the column with the appropriate number of tails and levelFind the row with the number of pairs of scoresThe critical value is at the intersection of the row and column

Page 38: Ordinally Scale Variables

38

Steps in the Wilcoxon Matched-Pairs Signed-Rank Test

Decide whether to reject H0 or not:If the absolute value of the sum of the negative ranks is less than the critical value from the table, reject H0

Page 39: Ordinally Scale Variables

39

Wilcoxon Matched-Pairs Signed-Rank Test Example

We will use the same example as the sign-test

Page 40: Ordinally Scale Variables

40

Wilcoxon Matched-Pairs Signed-Rank Test Example

Are the mean ratings of liking different?Write the hypotheses:

H0: SPSS = Hand

H1: SPSS Hand

Determine the tailsIt is a two-tailed, non-directional test

Specify the level = .05

Calculate the Wilcoxon test

Page 41: Ordinally Scale Variables

41

Wilcoxon Matched-Pairs Signed-Rank Test Example

SPSS Hand Difference Rank of Difference Ranks With - Value

86 48 38 1453 24 29 1379 82 -3 (-)2 (-)291 63 28 1283 81 2 176 72 4 467 80 -13 (-)10 (-)1094 90 4 475 71 4 452 59 -7 (-)6 (-)633 49 -16 (-)11 (-)1187 30 57 1558 68 -10 (-)9 (-)947 55 -8 (-)7 (-)766 57 9 8

T = -45

Page 42: Ordinally Scale Variables

42

Wilcoxon Matched-Pairs Signed-Rank Test Example

Determine the critical value=.05, two-tailed, N = 15Critical value = 25

Decide whether to reject H0:If the absolute value of the observed value (-45) is less than the critical (25), then reject H0

Fail to reject H0 - there is insufficient evidence to conclude that the groups are different

Page 43: Ordinally Scale Variables

43

Special Considerations

The Wilcoxon test assumes that the differences are ordinally scaledThis assumption is often incorrect, and is hard to verifyIf we cannot verify it, we should not use the Wilcoxon test