The Wilcoxon signed-rank t-test is a non-parametric statistical hypothesis test used when comparing two related samples, matched samples, or repeated measurements on a single sample to assess whether their population mean ranks differ (i.e., it is a paired difference test). It can be used as an alternative to the paired Student's
The test is named for Frank Wilcoxon who (in a single paper) proposed both the rank
Assumptions
- Data are paired and come from the same population.
- Each pair is chosen randomly and independent.
- The data are measured at least on an ordinal scale, but need not be normal.
Test Procedure
Let
1. For
2. Exclude pairs with
3. Order the remaining pairs from smallest absolute difference to largest absolute difference,
4. Rank the pairs, starting with the smallest as 1. Ties receive a rank equal to the average of the ranks they span. Let
5. Calculate the test statistic
6. As
where
If
For
Alternatively, a