Wilcoxon signed ranks test
Studying this course? Keep your progress in one place.
Revised this already? Try an exam question and get it marked free
Key facts
- The Wilcoxon signed ranks test is a test of difference for related data (repeated measures or matched pairs) at ordinal level or above.
- Leave out any difference of 0, reduce N by one for each, then rank the differences ignoring their signs.
- T is the sum of the ranks of the less frequent sign. The result is significant if T is equal to or less than the critical value.
- It is non-parametric: it does not assume a normal distribution, but ranking loses some detail from the scores.
When to use the Wilcoxon test
Use it when you are testing for a difference between two conditions, the data are related and the data are at least ordinal.
The Wilcoxon signed ranks test is a non-parametric test of difference. It compares the scores of the same people in two conditions, or of matched pairs, so the data must be related. The data must be at least ordinal, which means they can be put in order.
In the cognitive practical you use a repeated measures design, so Wilcoxon is the test you carry out. Because it works on ranks, it does not need the scores to be normally distributed.
- 1
Looking for a difference?
The hypothesis says the conditions differ, not that two variables are linked.
- 2
Related data?
Repeated measures or matched pairs, so each score has a partner.
- 3
Ordinal data or higher?
Scores can at least be put in order.
- 4
Wilcoxon signed ranks
All three are yes, so use the Wilcoxon test.
Which design gives related data?
Calculating T step by step
Find each difference, drop zeros, rank the differences without their signs, then add up the ranks of the less frequent sign to get T.
Work in this order and keep a table of your steps. Check at the end that the positive ranks plus the negative ranks equal N(N + 1) / 2. For N = 9 that total is 45, which is a quick sense check.
If two differences tie, give each the mean of the ranks they would have taken. For example, two differences that would take ranks 3 and 4 both get 3.5.
- 1
1 Differences
Subtract one condition from the other for each participant.
- 2
2 Drop zeros
Leave out differences of 0 and reduce N by one for each.
- 3
3 Rank
Rank the differences from smallest to largest, ignoring the signs.
- 4
4 Share ties
Tied differences each get the mean of their ranks.
- 5
5 Add signs
Add up the ranks that go with the plus signs and, separately, the minus signs.
- 6
6 Find T
T is the smaller of the two totals, from the less frequent sign.
Two differences would take ranks 5 and 6. What rank does each get?
A worked example
Ten participants recalled words in quiet and in noise. One difference was 0, so N = 9, and the ranks of the minus signs add up to T = 5.
These are made-up scores for practice. Differences (quiet minus noise): 3, -1, 4, 0, 5, 1, 3, -2, 5, 2.
Participant 4 has 0, so leave it out and N = 9. Absolute differences in order: 1, 1, 2, 2, 3, 3, 4, 5, 5. Ranks: 1.5, 1.5, 3.5, 3.5, 5.5, 5.5, 7, 8.5, 8.5.
The minus signs belong to participants 2 (rank 1.5) and 8 (rank 3.5), so T = 1.5 + 3.5 = 5. Check: positive ranks 40 + negative ranks 5 = 45.
- Quiet
- Noise
In the example, why is N = 9 and not 10?
Reading T and sense checking
Compare T with the critical value for your N and level of significance. Unlike most tests, the result is significant if T is equal to or less than the critical value.
Look up the critical value in the table given in your exam, using N, the level of significance and whether the test is one-tailed or two-tailed. For N = 9 at p ≤ 0.05 (two-tailed) it is 5, so in the worked example T = 5 is just significant and you reject the null hypothesis.
Sense check before you write the conclusion. T is the smaller total, so it can never be more than half of N(N + 1) / 2, which is 22.5 for N = 9. If most differences go one way, T should be small. Then write the conclusion in the context of the study, in terms of the hypothesis.
- 1
Find the critical value
Use N, the significance level and one- or two-tailed.
- 2
Compare
Is T equal to or less than the critical value?
- 3
Decide
Yes: significant, reject the null. No: not significant, retain it.
- 4
Write it up
Say what it means for recall in this study.
T = 7 and the critical value is 5. Is the result significant?
Strengths and limitations
It suits small samples of ordinal data in a repeated measures design, but ranking loses detail and zero differences are discarded.
The test is a good fit for the repeated measures practical because it works with small samples and does not assume a normal distribution. It uses the size of each difference through ranking, not just whether it went up or down.
Its limits are that ranking throws away the exact scores, so it is less powerful than a parametric test when the data allow one. Differences of 0 are left out, which lowers N. A significant result shows a difference, but not what caused it.
- 1
Is it suitable?
Repeated measures, at least ordinal data, test of difference.
- 2
Strength
No normal distribution needed; uses the size of differences.
- 3
Limitation
Ranking loses detail; zero differences reduce N.
- 4
Conclusion
Judge whether the design, not just the test, supports it.
Strengths
- Works with ordinal data
- No normal distribution assumed
- Uses the size of differences
Limitations
- Ranking loses exact scores
- Less powerful than parametric tests
- Zero differences are discarded
Why is Wilcoxon less powerful than a parametric test?
Try an exam question
Explain how a researcher would work out T for a Wilcoxon signed ranks test.
[4 marks]
- [1]Find the difference between each participant's two scores.
- [1]Leave out any differences of 0 and reduce N.
- [1]Rank the remaining differences without their signs, giving tied differences the mean rank.
- [1]Add up the ranks of the less frequent sign: this total is T.
That's the notes covered.
Carry on to the next subtopic.
Try a question
Identify the experimental design Mia used.
1 mark, marked against the mark scheme
Identify the experimental design Mia used.
1 mark, marked against the mark scheme
