The Wilcoxon signed-ranks test is also known as the Wilcoxon single sample test, Wilcoxon (1945, 1949)1). This test is used to verify the hypothesis, that the analysed sample comes from the population, where median () is a given value.
Basic assumptions:
Hypotheses:
where:
– median of an analysed feature of the population represented by the sample,
– a given value.
Now you should calculate the value of the test statistics ( – for the small sample size), and based on this value.
The p-value, designated on the basis of the test statistic, is compared with the significance level :
Note
Depending on the size of the sample, the test statistic takes a different form:
where:
and are adequately: a sum of positive and negative ranks.
This statistic has the Wilcoxon distribution.
where:
- the number of ranked signs (the number of ranks),
- the number of cases being included in the interlinked rank.
The test statistic formula includes the correction for ties. This correction should be used when ties occur (when there are no ties, the correction is not calculated, because .
statistic asymptotically (for a large sample size) has the normal distribution. Continuity correction of the Wilcoxon test (Marascuilo and McSweeney (1977)2))
A continuity correction is used to enable the test statistic to take in all values of real numbers, according to the assumption of the normal distribution. Test statistic with a continuity correction is defined by:
Standardized effect size
The distribution of the Wilcoxon test statistic is approximated by the normal distribution, which can be converted to an effect size 3) to then obtain the Cohen's d value according to the standard conversion used for meta-analyses:
When interpreting an effect, researchers often use general guidelines proposed by 4) defining small (0.2), medium (0.5) and large (0.8) effect sizes.
The settings window with the Wilcoxon test (signed-ranks)
can be opened in Statistics
menu NonParametric tests
→Wilcoxon (signed-ranks)
or in ''Wizard''.
EXAMPLE cont. (courier.pqs file)
Hypotheses:
Comparing the p-value = 0.1232 of Wilcoxon test based on statistic with the significance level we draw the conclusion, that there is no reason to reject the null hypothesis informing us, that usually the number of awaiting days for the delivery which is supposed to be delivered by the analysed courier company is 3. Exactly the same decision you would make basing on the p-value = 0.1112 or p-value = 0.1158 of Wilcoxon test based upon statistic or with correction for continuity.