You are viewing a free preview of this lesson.
Subscribe to unlock all 10 lessons in this course and every other course on LearningBro.
Non-parametric tests do not assume a particular distribution for the data. They are used when normality assumptions are questionable, when data are ordinal, or when sample sizes are very small. This lesson covers the sign test and the Wilcoxon signed-rank test.
| Situation | Parametric test | Non-parametric alternative |
|---|---|---|
| One-sample location test (normal data) | One-sample t-test | Sign test or Wilcoxon signed-rank test |
| Paired data (normal differences) | Paired t-test | Sign test or Wilcoxon signed-rank test |
| Two independent samples (normal) | Two-sample t-test | Mann-Whitney U test |
Non-parametric tests are generally less powerful than parametric tests when the parametric assumptions hold, but they are more robust when assumptions are violated.
The sign test is the simplest non-parametric test. It tests the median of a distribution.
H0: The population median is m0. H1: The population median is not m0 (or >m0 or <m0).
Procedure:
A manufacturer claims the median weight of packets is 500 g. A sample of 12 packets gives:
498, 502, 497, 501, 503, 499, 504, 496, 505, 500, 498, 502
Differences from 500: -2, +2, -3, +1, +3, -1, +4, -4, +5, 0, -2, +2
Remove the zero: n=11. Count: S+=6, S−=5.
For a two-tailed test, the test statistic is min(S+,S−)=5.
Using B(11,0.5): P(S≤5)+P(S≥6). Since the distribution is symmetric, P(S≤5)=P(S≥6)=0.5. The two-tailed p-value = 1. We do not reject H0.
This result makes sense — the counts are nearly equal, providing no evidence against the claimed median.
For paired data (xi,yi), compute di=xi−yi and apply the sign test to the differences with m0=0.
The Wilcoxon signed-rank test is more powerful than the sign test because it uses both the signs and the magnitudes of the differences.
Subscribe to continue reading
Get full access to this lesson and all 10 lessons in this course.