Wilcoxon signed-rank test calculator (matched pairs)
The Wilcoxon matched-pairs signed-rank test compares two related measurements, such as before and after a treatment, without assuming the differences are normally distributed. It ranks the absolute differences and checks whether positive and negative changes balance out.
No sign-up, nothing to install. Calculations run in your browser; the worksheets, results and charts you create are stored by AI Walay to improve DATAJIN.
When to use it
- Before/after measurements on the same subjects with skewed or ordinal data.
- Matched pairs (twins, left vs right eye) where the paired t test assumptions fail.
- Small paired samples with outliers.
Assumptions
- Each row is one subject or matched pair, with the two measurements in two columns.
- Pairs are independent of each other.
- Differences can be ranked and are roughly symmetric around the median difference.
How to run it in DATAJIN
- Enter the first measurement in one column and the second in the next column, one subject per row.
- Open Analyze and choose Wilcoxon matched-pairs test.
- Select the two columns and click Run.
Example: open the Anagrams experiment dataset (the same subjects scored under two conditions (num1 vs num2)) and follow the steps above.
What you get
- W statistic
- Median of the differences
- z approximation
- Number of pairs and two-tailed p-value
How to interpret the result
A p-value below 0.05 indicates a systematic shift between the two measurements. Report W, the number of pairs, the median difference and the p-value, for example: W = 4, n = 12, p = 0.009.
Frequently asked questions
When should I use Wilcoxon instead of a paired t test?
When the differences between pairs are clearly not normal (check with a normality test or histogram), when the data are ordinal, or when a few extreme differences would dominate the mean.
What happens to pairs with zero difference?
Pairs with no change carry no information about direction and are dropped before ranking, as in the standard Wilcoxon procedure.