The Wilcoxon signed-rank test is employed to see if there is a substantial difference between two related samples. Here the new cognitive therapy group and placebo group are related samples as they both belong to the same sample of cognitive therapy's study. The Wilcoxon signed-rank test is performed on the rank-based data as the data is not normally distributed. Following is the calculation for Wilcoxon’s signed rank test:The null hypothesis for the Wilcoxon signed-rank test is that there is no difference between the new cognitive therapy and placebo treatments. While the alternative hypothesis is that there is a difference between the two treatments.
The Wilcoxon signed-rank test is performed as follows:
Rank all the data, with the lowest value being ranked 1 and the highest value being ranked 12.
Calculate the difference between the new cognitive therapy and placebo group scores.
Take the absolute values of the differences.
Rank the differences in ascending order and ignore the signs.
Calculate the sum of the ranks of the new cognitive therapy group.
Calculate the test statistic T.
For this dataset, the calculations of the Wilcoxon signed-rank test are as follows:
Data Ranked (New therapy) Difference Absolute Difference Ranked Differences + Rank Therapy Differences - Rank Placebo 5 1 4 3 4 4 6 2 4 4 2 2 4 4 8 7 1 1 1 12 10 2 2 3 5 1 6 13 12 1 8 7 7 4 4 1 5 5 5 1 14 13 1 2 1 15 7 8 7 7 5 9 10 3 5 8 56 12 44 12 12 11 7 Total 49
Calculating T:

Here, n is the number of pairs, which is 12.
T = 3.52
Using the Wilcoxon signed-rank test table, the critical value at the 0.05 level for n = 12 is 18.
Since T (3.52) is less than the critical value (18), the null hypothesis cannot be rejected.
There is no evidence to suggest that there is a difference between the new cognitive therapy and placebo treatments.