Wilcoxon Signed-Rank Test
Wilcoxon Signed-Rank Test
When to use it
Use the Wilcoxon signed-rank test when there are two nominal variables and one measurement variable. One of the
nominal variables has only two values, such as "before" and "after," and the other nominal variable often represents
individuals. This is the non-parametric analogue to the paired t–test, and you should use it if the distribution of differences
between pairs is severely non-normally distributed.
For example, Laureysens et al. (2004) measured metal content in the wood of 13 popular clones growing in a polluted
area, once in August and once in November. Concentrations of aluminum (in micrograms of Al per gram of wood) are
shown below.
Clone August November August−November
There are two nominal variables: time of year (August or November) and poplar clone (Columbia River, Fritzi Pauley,
etc.), and one measurement variable (micrograms of aluminum per gram of wood). The differences are somewhat skewed;
the Wolterson clone, in particular, has a much larger difference than any other clone. To be safe, the authors analyzed the
data using a Wilcoxon signed-rank test, and I'll use it as the example.
Null hypothesis
The null hypothesis is that the median difference between pairs of observations is zero. Note that this is different from the
null hypothesis of the paired t –test, which is that the mean difference between pairs is zero, or the null hypothesis of the
sign test, which is that the numbers of differences in each direction are equal.
null hypothesis. For the aluminum in wood example, the median change from August to November (3.1 micrograms Al/g
wood) is significantly different from zero (W = 16, P = 0.040).
Ho et al. (2004) inserted a plastic implant into the soft palate of 12 chronic snorers to see if it would reduce the volume
of snoring. Snoring loudness was judged by the sleeping partner of the snorer on a subjective 10-point scale. There are
two nominal variables, time (before the operations or after the operation) and individual snorer, and one measurement
variable (loudness of snoring). One person left the study, and the implant fell out of the palate in two people; in the
remaining nine people, the median change in snoring volume was significantly different from zero (
W = 0, P = 0.008).
Similar tests
You can analyze paired observations of a measurement variable using a paired t–test, if the null hypothesis is that the mean
difference between pairs of observations is zero and the differences are normally distributed. If you have a large number of
paired observations, you can plot a histogram of the differences to see if they look normally distributed. The paired t –test
isn't very sensitive to non-normal data, so the deviation from normality has to be pretty dramatic to make the paired t –test
inappropriate.
Use the sign test when the null hypothesis is that there are equal number of differences in each direction, and you don't
care about the size of the differences.
Web pages
There is a web page that will perform the Wilcoxon signed-rank test. You may enter your paired numbers directly onto the
web page; it will be easier if you enter them into a spreadsheet first, then copy them and paste them into the web page.
R
Salvatore Mangiafico's R Companion has a sample R program for the Wilcoxon signed rank test.
DATA POPLARS;
INPUT clone $ augal noval;
diff=augal - noval;
DATALINES;
Balsam_Spire 8.1 11.2
Beaupre 10.0 16.3
Hazendans 16.5 15.3
Hoogvorst 13.6 15.6
Raspalje 9.5 10.5
Unal 8.3 15.5
Columbia_River 18.3 12.7
Fritzi_Pauley 13.3 11.1
Trichobel 7.9 19.9
Gaver 8.1 20.4
Gibecq 8.9 14.2
Primo 12.6 12.7
Wolterson 13.4 36.8
;
References
1. Picture of a turkey's head from Ohio State University 4-H Poultry.
2. Buchwalder, T., and B. Huber-Eicher. 2004. Effect of increased floor space on aggressive behaviour in male turkeys
(Melagris gallopavo). Applied Animal Behavior Science 89: 207-214.
3. Ho, W.K., W.I. Wei, and K.F. Chung. 2004. Managing disturbing snoring with palatal implants: a pilot study. Archives
of Otolaryngology Head and Neck Surgery 130: 753-758.
4. Laureysens, I., R. Blust, L. De Temmerman, C. Lemmens and R. Ceulemans. 2004. Clonal variation in heavy metal
accumulation and biomass production in a poplar coppice culture. I. Seasonal variation in leaf, wood and bark
concentrations. Environmental Pollution 131: 485-494.
Contributor
John H. McDonald (University of Delaware)