- Wilcoxon signed-rank test
The Wilcoxon signed-rank test is a non-parametric alternative to the paired Student's t-test for the case of two related samples or repeated measurements on a single sample. The test is named for
Frank Wilcoxon (1892 –1965 ) who, in a single paper, proposed both it and the rank-sum test for two independent samples (Wilcoxon, 1945).Like the "t"-test, the Wilcoxon test involves comparisons of differences between measurements, so it requires that the data are measured at an interval
level of measurement . However it does not require assumptions about the form of the distribution of the measurements. It should therefore be used whenever the distributional assumptions that underlie the "t"-test cannot be satisfied.etup
Suppose we collect 2"n" observations, two observations of each of the "n" subjects. Let "i" denote the particular subject that is being referred to and the first observation measured on subject "i" be denoted by and second observation be .
Assumptions
# Let "Zi" = "Yi" - "Xi" for "i" = 1, ... , "n". The differences "Zi" are assumed to be independent.
# Each "Zi" comes from a continuous population (they must be identical) and is symmetric about a common median "θ".Test procedure
The
null hypothesis tested is "H"0: "θ" = 0. The Wilcoxon signed rank statistic "W"+ is computed by ordering the absolute values |"Z"1|, ..., |"Zn"|, the rank of each ordered |"Zi"| is given a rank of "R"i. Denote where "I"(.) is anindicator function . The Wilcoxon signed ranked statistic "W"+ is defined as:
It is often used to test the difference between scores of data collected before and after an experimental manipulation, in which case the central point would be expected to be zero. Scores exactly equal to the central point are excluded and the
absolute value s of the deviations from the central point of the remaining scores is ranked such that the smallest deviation has a rank of 1. Tied scores are assigned amean rank. Thesum s for the ranks of scores with positive and negative deviations from the central point are then calculated separately. A value "S" is defined as the smaller of these two rank sums. "S" is then compared to a table of all possible distributions of ranks to calculate "p", the statisticalprobability of attaining "S" from a population of scores that is symmetrically distributed around the central point.As the number of scores used, "n", increases, the distribution of all possible ranks "S" tends towards the
normal distribution . So although for "n" ≤ 20, exact probabilities would usually be calculated, for "n" > 20, the normal approximation is used. The recommended cutoff varies from textbook to textbook — here we use 20 although some put it lower (10) or higher (25).The Wilcoxon test was popularised by Siegel (1956) in his influential text book on non-parametric statistics. Siegel used the symbol "T" for the value defined here as "S". In consequence, the test is sometimes referred to as the Wilcoxon "T" test, and the test statistic is reported as a value of "T".
ee also
*
Mann-Whitney-Wilcoxon test (the variant for two independent samples)References
*Siegel, S. (1956). "Non-parametric statistics for the behavioral sciences". New York: McGraw-Hill.
*Wilcoxon, F. (1945). Individual comparisons by ranking methods. "Biometrics", "1", 80-83.External links
* [http://comp9.psych.cornell.edu/Darlington/wilcoxon/wilcox0.htm Description of how to calculate "p" for the Wilcoxon signed-ranks test]
* [http://faculty.vassar.edu/lowry/ch12a.html Example of using the Wilcoxon signed-rank test]
* [http://faculty.vassar.edu/lowry/wilcoxon.html An online version of the test]Implementations
* [http://www.alglib.net/statistics/hypothesistesting/wilcoxonsignedrank.php ALGLIB] includes implementation of the Wilcoxon signed-rank test in C++, C#, Delphi, Visual Basic, etc.
* The free statistical software R includes an implementation of the test aswilcox.test(x,y, paired=TRUE)
, where x and y are vectors of equal length.
Wikimedia Foundation. 2010.