Signed Rank Statistic
JavaScript
The Wilcoxon signed rank statistic, Wn, has the distribution
of X1+2X2+...+nXn, where the X's are
independent
Bernoulli random variables with probability 1/2 of success.
The statistic Wn takes values between 0 and n(n+1)/2 inclusive.
The mean of Wn is n(n+1)/4, and the variance is n(n+1)(2n+1)/24.
The distribution function of Wn is computed exactly for n<=50.
For n>50, a normal approximation with continuity correction is used.
For n>50, the maximum absolute error of the approximation is .001.