1. Applications

Wilcoxon Signed Rank Test does not assume the distribution of the data.

Applications:

  • Single population quantile or median test.
  • Paired population median test.

2. Test Procedure

Given data points , a null hypothesis , and an alternative hypothesis , Wilcoxon Signed Rank Test is used to test the null hypothesis under a given significance level .

  1. Go through the data points and remove ties, i.e. data points equal to . Redefine the sample size as .

  2. Compute the difference between the data points and the hypothesized median . Rank the absolute values of : . If ranks are tied, average the ranks.

  3. Compute as the sum of ranks of positive differences, and as the sum of ranks of negative differences:

    Then

  4. Define the test statistic:

  5. Compute the rejection region. Since always has a left-tail rejection region, we always use :

    where should be determined from the Wilcoxon Signed Rank Table.

    • For a two-tailed test, choose .
    • For a one-tailed test, choose .
  6. If , reject the null hypothesis. Otherwise, fail to reject the null hypothesis.

3. Normal Approximation

Theorem (Normal approximation of Wilcoxon Signed Rank Test). For large sample sizes (), the Wilcoxon Signed Rank Test can be approximated by a normal distribution:

Thus, we can compute the z-score and p-value for the test statistic :

  • For a two-tailed test, the rejection region is .
  • For a one-tailed test, the rejection region is .

4. Example

Example (Paired product quality comparison). A survey was conducted to compare the quality of two products A and B, with samples: . The null hypothesis is that the quality of two products are the same: . The alternative hypothesis is that the quality of product A is not the same as B: .

Solution

Given the data, compute the differences and the ranks of the absolute differences:

Then compute the sum of ranks of positive differences , and the sum of ranks of negative differences . The test statistic is .

From the Wilcoxon Signed Rank Table, the rejection region for and is

Since , we reject the null hypothesis.