When to use it
You have paired/repeated measurements (e.g. before vs after) and the differences are not normal or are ordinal.
When not to: The paired differences are roughly normal (the paired t-test is more powerful), the two groups being compared are independent rather than paired (use Mann-Whitney U), or every single paired difference is exactly zero (there is nothing to test, and the card refuses rather than fabricating a result).
Step by step
Open it from the menu
Click Analyze in the menu bar; under Nonparametric choose Wilcoxon Signed-Rank Test.
Fill in the form
Choose the columns: First measurement, Second measurement (optional). The form lists only columns whose type fits each field.
Check the options
The options start at their defaults: How strict to be, What you expect, Value to compare with. Change one only when your question needs it.
Run the analysis
Press Run analysis. The Result Card opens on its Results tab.
What to choose in the form
| First measurement Var1 required | One numeric or ordered categorical column. A number for each person or item, such as a score before training. Alone, it is compared with the value typed below. |
|---|---|
| Second measurement (optional) Var2 | One numeric or ordered categorical column. The paired number for the same person, such as the score after training, in the same row. Leave empty to test one column. |
| How strict to be Alpha | The cut-off for the p-value. Below it, the card reports evidence of a difference; a smaller cut-off is stricter. Not sure? Keep 0.05. It is the usual convention in most fields. |
| What you expect Alternative | two-sided: a change in either direction. less: first measurement lower. greater: first higher. Choose a direction only if decided beforehand. Not sure? Keep two-sided. It is the usual choice because it does not assume a direction. |
| Value to compare with Hypothesized median (μ₀) | Used only without a second measurement: the typical value your question is about, such as a target of 4000 grams. Keep 0 when you chose two measurements. For one column, type the value your question is about. |
How to read the card
The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.
What it assumes
- Normality (of residuals, not of the raw data)
If it does not hold: If the paired differences are actually close to normal, a paired t-test would be more powerful than the rank-based Wilcoxon test for the same data; conversely, strongly non-normal differences (often exactly why Wilcoxon was chosen) are precisely what the rank-based approach protects against.
How to check: Shapiro-Wilk on the paired differences, reported directly on the card using the same severity thresholds as the parametric tests (ok >= .05, warn >= .01, fail below), so a significant normality rejection is reported honestly as such rather than marked 'passed' just because a nonparametric test was chosen.
A worked example
Pain scores measured before and after treatment on 18 patients, with 2 zero differences and several tied difference magnitudes among the remaining 16.
Result: 16 nonzero differences with ties present; since ties are present and n exceeds 13, the normal-approximation route is used (no continuity correction); W = min(W+, W-) = 24, so W+ = 136 - 24 = 112 and p = .018; rank-biserial r = (112 - 24)/136 = 0.65 (large).
Pain scores decreased significantly between the two measurements, with a large and consistent effect across most patients (attributing the drop to the treatment needs a control group); the card's explicit statement of which p-value route it used (the normal approximation, since the tied sample exceeds the n<=13 threshold for the exact permutation route) means the result can be reproduced exactly by the accompanying code export.
From the Statistics Library.
The code tabs
Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.
Understand the statistics
Ask Oobi
Type one of these into Ask Oobi beside your data:
- Did patients' pain scores change from before to after treatment?
- Explain the Wilcoxon signed-rank test in plain words.
- What does misconception: the Mann-Whitney/Wilcoxon test always compares medians mean?
Last reviewed November 16, 2026.
