Wilcoxon Signed Rank Test
Let Y1, Y2, ...., Yn be a set of independent and identically distributed random variables having a probability distribution that is continuous and symmetric, with density function fY(y). Formulate the null and alternative hypotheses
Define the sign indecator Zi, i = 1, 2, . . ., n, as
The Wilcoxon test statistic is calculated as:
If the null hypothesis is true, the mean and variance of the Wilcoxon test statistic are given by :
For n > 12, the z score of W has an approximately standard normal distribution, i.e.,
Therefore, if n is large, Ho will be rejected in favor of H1 if
ZW < za/2 or ZW > z1-a/2