The Wilcoxon Signed-Rank Test: Single Samples and Paired Data | OCR A Level Further Maths notes

Free preview: The Wilcoxon Signed-Rank Test: Single Samples and Paired Data

Using the Sizes as Well as the Signs

Year 2 (A level) for OCR B (MEI), where it is not part of the Statistics Minor (the AS content). For the other boards, check your own specification for whether it is taught in Year 1 or Year 2.

Let's start with the sign test's weakness. Suppose a claimed median is 50 and two values are 51 and 90. The sign test scores both as one + sign. But 90 is far stronger evidence that the median is above 50! The Wilcoxon signed-rank test also uses how far each value is from the median, through ranks.

  • It is a non-parametric test for the population median.
  • Assumption: the population is symmetric about its median (no Normality needed). Symmetric means mean = median, so it can also be read as a test of the mean.
  • Use it for a single sample, or for paired data (on the differences).

The method

  1. Differences: work out d=x−m0 for each value. Discard any zeros and reduce n.
  2. Rank the sizes: rank the absolute values |d| from 1 (smallest) to n. Tied values share the average of the ranks they cover. Why absolute values? We want to know which differences are big, whichever side they're on.
  3. Put the signs back: add up the ranks of the positive d's: T+. Add up the ranks of the negative d's: T−.
  4. Check: T++T−=n(n+1)2 (the sum of 1 to n).
  5. Choose T: the rank sum that H1 predicts should be small (for a two-tailed test, the smaller of the two).
  6. Decide: reject H0 if T is less than or equal to the critical value from the tables.

๐Ÿ’ก In plain words

  • If H0 is true, positive and negative differences are mixed evenly among the ranks, so T+ and T− are about equal.
  • A very small T means nearly all the large differences are on one side: evidence against H0.

Critical values (reject if T โ‰ค value)

none-tail 5%one-tail 2.5%one-tail 1%one-tail 0.5%
620โ€“โ€“
85310
98531
1010853
12171397
1530251915
2060524337
  • A two-tailed test at 5% uses the one-tail 2.5% column. These come from the exact distribution of T under H0.

๐Ÿ‘€ Watch me do it: where a table value comes from, for n = 5

What I writeWhy I do it
Under H0, each rank 1 to 5 is equally likely to be + or โˆ’If the median really is m0 and the population is symmetric, each difference is like a coin toss.
25=32 equally likely sign patternsTwo choices for each of 5 ranks.
T−=0: 1 way (no negatives). T−=1: 1 way (only rank 1 negative). T−=2: 1 way (only rank 2)Count the patterns that give each total.
P(T⩽0)=132=0.031, but P(T⩽1)=232=0.0625The critical value is the biggest T whose tail is at most 5%.
So for n = 5, one-tail 5%, the critical value is 0You reject only if every difference is on the side H1 predicts. Tiny samples rarely give significant results.

โœ๏ธ YOUR TURN 1

Try this first:

Rank these differences for a signed-rank test and find T+ and T−: 3, โˆ’1, 4, 0, 2, โˆ’2, 5, 3, 6, 1.

Answer:

  • Discard the 0: n = 9. Sizes in order: 1, 1, 2, 2, 3, 3, 4, 5, 6.
  • Ties: the two 1s share ranks 1 and 2, so 1.5 each; the 2s get 3.5 each; the 3s get 5.5 each; then 4 โ†’ 7, 5 โ†’ 8, 6 โ†’ 9.
  • Negatives: โˆ’1 (1.5) and โˆ’2 (3.5), so T−=5.
  • T+=45−5=40. Check: 9×102=45.

Unlock the full note: start 7 days free.

Log in or subscribe to read the rest of this note. Members also get the AI tutor, practice quizzes, mock exams and flashcards for this topic.

Log in ยท Subscribe ยท Start free trial

All notes in Non-Parametric Tests

  1. Non-Parametric Tests and the Sign Test for a Median
  2. The Wilcoxon Signed-Rank Test: Single Samples and Paired Data
  3. The Wilcoxon Rank-Sum Test for Two Independent Samples

What's inside for this topic

3 teacher notes, 68 practice questions, 45 flashcards, 2 quizzes.

Get the full notes, every practice question, flashcards, quizzes and mock papers.

Start your free 7-day trial

Questions? Chat with us on WhatsApp ยท Try one live lesson

Previous note: Non-Parametric Tests and the Sign Test for a Median Next note: The Wilcoxon Rank-Sum Test for Two Independent Samples

All OCR A Level Further Maths topics ยท A Level Further Maths