Paired Rank Test Calculator

Compute Wilcoxon signed ranks from matched values quickly. See differences, ranks, test scores, and conclusions. Graph outcomes, export tables, and validate paired changes confidently.

This calculator implements the Wilcoxon signed-rank paired rank test for matched observations. Differences are computed as Sample A − Sample B.

Calculator Input

Enter one list using commas, spaces, or line breaks.
Each value must align with the matching pair above.
The test ignores zero differences, ranks the absolute non-zero differences, and evaluates whether positive and negative signed ranks balance under the null hypothesis.

Example Data Table

Pair Before After Difference (Before − After)
182793
275732
391883
46870-2
577743
684813
779772
888853

Use the example button above to populate the calculator instantly. This sample is useful for checking data entry, rank assignment, and output formatting.

Formula Used

This calculator applies the Wilcoxon signed-rank paired rank test.

1. Compute the paired difference for each observation:

di = Ai − Bi

2. Remove any pairs where di = 0.

3. Rank the absolute differences |di| from smallest to largest. Tied absolute differences receive average ranks.

4. Add ranks for positive and negative differences separately:

W+ = Σ positive ranks

W− = Σ absolute value of negative ranks

5. For a two-sided test, the test statistic is:

T = min(W+, W−)

6. When exact enumeration is unavailable, the normal approximation is used:

μ = (Σ ranks) / 2

σ = √[(Σ rank²) / 4]

z = (W+ − μ ± continuity correction) / σ

The p value is then compared with the selected alpha level to determine whether the paired distributions show a significant shift.

How to Use This Calculator

  1. Enter the first matched dataset in the first values box.
  2. Enter the second matched dataset in the second values box.
  3. Make sure both lists have the same number of observations.
  4. Choose the alternative hypothesis that matches your question.
  5. Select the alpha level for your significance decision.
  6. Set the decimal places you want in the output.
  7. Click the calculate button to produce the result section.
  8. Review the decision, p value, ranks table, and graph.
  9. Use the CSV or PDF buttons to export the current output.

Frequently Asked Questions

1) What does this paired rank test measure?

It checks whether paired observations tend to shift in one direction. The method ranks absolute paired differences and compares positive ranks against negative ranks.

2) When should I use this instead of a paired t test?

Use it when paired differences are not normally distributed, contain outliers, or are measured on an ordinal scale. It is a robust nonparametric alternative.

3) What happens to zero differences?

Pairs with zero difference are excluded from rank assignment. They do not support either direction, so the effective sample size becomes the number of non-zero pairs.

4) What are W+ and W−?

W+ is the sum of ranks for positive paired differences. W− is the sum of ranks for negative paired differences. Their balance drives the test result.

5) Why might the exact p value be unavailable?

Exact enumeration is simplest for smaller samples without tied absolute differences. If ties appear or the sample is larger, the calculator switches to a normal approximation.

6) What does the effect size r mean?

It summarizes the strength of the paired shift. Larger values indicate a stronger change. This page labels the result as negligible, small, moderate, or large.

7) Can I paste values with spaces or line breaks?

Yes. The calculator accepts commas, spaces, semicolons, and line breaks. It converts the pasted text into numeric paired lists automatically.

8) What does the graph show?

The Plotly chart displays signed ranks for each pair. Positive bars support higher first-sample values, while negative bars support higher second-sample values.

Related Calculators

brunner munzel testlevene test calculatorspearman rank correlation calculatorkolmogorov smirnov test calculatoriqr calculatorkernel density estimatorfisher exact test calculatorgoodman kruskal gammacramer v calculatortheil sen estimator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.