Wilcoxon Signed-Rank Test — Paired & One-Sample
Non-parametric test for paired data or one-sample median. Uses ranks of differences. T = min(W+, W-).
Why This Statistical Analysis Matters
Why: When data are not normal or ordinal, Wilcoxon provides a robust alternative to the paired t-test.
How: Enter before/after pairs or data + hypothesized median. Get T, p-value, effect size.
- ●T = min(W+, W-)
- ●Normal approx for n≥20
- ●Exact for small n
Wilcoxon Signed-Rank Test — Paired & One-Sample
Non-parametric test for paired data or one-sample median. Enter before/after or data + hypothesized median.
Real-World Scenarios — Click to Load
Data Input
Signed-Rank Distribution (W⁺ vs W⁻)
Difference Histogram (green = positive, red = negative)
Calculation Breakdown
Quick Interpretation
The median difference differs significantly from zero (p < α). Negative differences dominate (values decreased). Effect size r = 0.707.
Step-by-Step Rank Table
| Pair | Before | After | Diff | |Diff| | Rank | Signed Rank |
|---|---|---|---|---|---|---|
| 1 | 7 | 4 | -3 | 3 | 5.5 | -5.5 |
| 2 | 8 | 5 | -3 | 3 | 5.5 | -5.5 |
| 3 | 6 | 3 | -3 | 3 | 5.5 | -5.5 |
| 4 | 9 | 6 | -3 | 3 | 5.5 | -5.5 |
| 5 | 8 | 5 | -3 | 3 | 5.5 | -5.5 |
| 6 | 7 | 4 | -3 | 3 | 5.5 | -5.5 |
| 7 | 6 | 3 | -3 | 3 | 5.5 | -5.5 |
| 8 | 8 | 5 | -3 | 3 | 5.5 | -5.5 |
| 9 | 7 | 4 | -3 | 3 | 5.5 | -5.5 |
| 10 | 6 | 3 | -3 | 3 | 5.5 | -5.5 |
For educational and informational purposes only. Verify with a qualified professional.
📈 Statistical Insights
T = min(W+, W-)
— Test stat
Sum of + ranks
— Ranks
Min for approx
— Sample
Key Takeaways
- Wilcoxon Signed-Rank test: Non-parametric alternative to paired t-test. Tests whether the median difference is zero.
- Paired data: Compute dᵢ = xᵢ − yᵢ. Remove zeros. Rank |dᵢ|. W⁺ = sum of ranks where dᵢ > 0, W⁻ = sum where dᵢ < 0.
- One-sample: dᵢ = xᵢ − m₀ (hypothesized median). Same ranking procedure.
- Test statistic: T = min(W⁺, W⁻). Check: W⁺ + W⁻ = n'(n'+1)/2 where n' = non-zero pairs.
- Large sample (n' ≥ 20): μ_T = n'(n'+1)/4, σ_T = √(n'(n'+1)(2n'+1)/24) with tie correction. z = (T − μ_T)/σ_T.
- Effect size: r = z/√(2n) or matched-pairs rank-biserial correlation.
- Interpretation: Significant T means the median difference differs from zero.
Did You Know?
Formulas
dᵢ = xᵢ − yᵢ (paired) or xᵢ − m₀ (one-sample)
Differences
W⁺ + W⁻ = n'(n'+1)/2
Rank sum check
μ_T = n'(n'+1)/4, σ_T = √(n'(n'+1)(2n'+1)/24)
Tie correction: subtract Σ(tᵢ³−tᵢ)/48
r = z/√(2n)
Effect size
Paired vs One-Sample Mode
Paired: Two columns (before, after). Each row is a matched pair. Tests whether the median difference is zero. One-sample: Single column of data. Tests whether the median equals a hypothesized value m₀. Use when you have one sample and want to compare its median to a known or theoretical value.
Frequently Asked Questions
When should I use Wilcoxon Signed-Rank instead of paired t-test?
When differences are non-normal, ordinal, or from small samples. The paired t-test assumes normality of the differences.
What happens to zero differences?
They are excluded from the ranking. Only non-zero pairs contribute to W⁺ and W⁻. n' is the number of non-zero pairs.
What does T = min(W⁺, W⁻) mean?
T is the test statistic. Small T suggests one direction dominates. Compare T to the critical value or use the normal approximation for p-value.
Can I use this for independent samples?
No. For two independent groups, use the Mann-Whitney U test (Wilcoxon Rank-Sum for independent samples).
What sample size for normal approximation?
n' ≥ 20 is typically safe. For smaller n', exact tables or permutation tests are more accurate.
Official Data Sources
Disclaimer: This calculator provides statistical guidance. For medical or clinical decisions, consult a qualified professional.
Related Calculators
Mann-Whitney U Test Calculator
Non-parametric test for comparing two independent groups. Alternative to the independent samples t-test when normality assumption is violated.
StatisticsMcNemar's Test Calculator
Performs McNemar's test for paired nominal data (before/after, matched pairs). Tests whether row and column marginal frequencies are equal in a 2×2 table.
StatisticsAbsolute Uncertainty Calculator
Computes absolute uncertainty, relative (percentage) uncertainty, and propagates uncertainties through arithmetic operations. Essential for physics...
StatisticsAB Test Calculator
Full A/B test statistical significance calculator. Two-proportion z-test, sample size estimation, power analysis, confidence intervals, and Bayesian approach.
StatisticsANOVA Calculator
One-way analysis of variance (ANOVA) calculator. Compare means of multiple groups, compute F-statistic, p-value, eta squared, and ANOVA table with...
StatisticsBonferroni Correction Calculator
Adjusts significance level for multiple comparisons to control family-wise error rate. Compares Bonferroni, Šidák, Holm, and Benjamini-Hochberg corrections.
Statistics