Wilcoxon Signed-Rank Test
Non-parametric paired test (before/after) with exact or normal p-value.
- Free, no sign-up
- Runs in your browser — files stay private
What is the Wilcoxon Signed-Rank Test?
The Wilcoxon signed-rank test is the non-parametric alternative to the paired t-test. It compares two related measurements — the same patients before and after treatment, or matched pairs — using the ranks of the differences, so it does not require the differences to be normally distributed and is robust to outliers.
How to use the Wilcoxon Signed-Rank Test
- Enter the first measurements and the second measurements in the same order.
- Choose a two-sided or one-sided hypothesis.
- Report W, the p-value and the effect size r.
Formula and method
W+ = sum of ranks of positive differences
z = (W+ − n(n+1)/4) ÷ √[n(n+1)(2n+1)/24 − Σ(t³−t)/48]
r = |z| ÷ √n
Frequently asked questions
Exact or approximate p?
For up to 30 pairs without ties the exact distribution is used; otherwise the normal approximation with continuity and tie correction (as in R's wilcox.test).
What about zero differences?
Pairs with no difference are dropped (Wilcoxon's method), and n is reduced accordingly.