liveBook · Manning

Wilcoxon signed-rank test

As explained in Effective Data Analysis

The Wilcoxon signed-rank test is a non-parametric statistical test for comparing paired or repeated measurements using the ranks and signs of within-pair differences.

The Wilcoxon signed-rank test compares two dependent sets of continuous or ordinal measurements, such as scores from the same participants before and after a study session. It is a non-parametric alternative to a within-subjects t-test when the normality assumption cannot be met. section 5.2.1

To calculate the W-statistic:

  • Find the difference within each pair and rank the absolute differences. section 5.2.1
  • Give each rank the sign of its original difference, then add the positive and negative ranks separately. section 5.2.1
  • Use the lower rank sum as W and compare it with a critical value. section 5.2.1
Figure 5.8 Steps for calculating the W-statistic
figure

Follow the calculation on paired test scores recorded before and after a study session. section 5.2.1

Choose the test by the study design as well as the data: Wilcoxon signed-rank is for two dependent samples, while Mann–Whitney U is for two independent samples. Not requiring normally distributed data does not make the test assumption-free; two other assumptions still need checking. When reporting a rank-based comparison, show medians rather than relying on means, which may suggest a different interpretation. section 5.4 section 5.2.1

How Effective Data Analysis covers it

How deep it goes
Works through construction of W from signed ranks and comparison with a critical value; notes two further assumptions without naming them.
Examples
Uses paired test scores before and after a study session to illustrate calculation of the W-statistic.
What it assumes
Assumes a paired-measurement design and introduces how ranks and within-pair differences form the test statistic.
What you can do after
Practice/perform it by ranking paired differences, forming signed rank sums, and comparing W with a critical value.
How it connects
Contrasts dependent-sample testing with the Mann–Whitney U test for independent samples and the Friedman test for three or more dependent samples.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Effective Data Analysis. The section links point to the parts of the book it draws on.