Sign, Wilcoxon Signed-Rank and Friedman Tests
The sign, Wilcoxon signed-rank and Friedman tests are non-parametric hypothesis tests for one sample or for related measurements. The one-sample sign test compares a median with a target by counting values above and below it, the Wilcoxon signed-rank test also uses the size of the differences, and the Friedman test compares several treatments within blocks.
Quick facts
- Type
- Non-parametric tests for one sample, paired data or blocked designs
- Origin
- Sign test usually traced to Arbuthnot (1710); Wilcoxon (1945); Friedman (1937)
- Parametric counterparts
- Sign and Wilcoxon ↔ one-sample or paired t-test; Friedman ↔ two-way ANOVA without replication
- Used when
- Analyze phase, with skewed or ordinal data, small samples or the same units under every condition
- Key formula
- Sign test: count above the target ~ Binomial(n, 0.5) under H₀
- Reference
- IASSC™ Green Belt Body of Knowledge §3.5.4–3.5.6
- Exam relevance
- Green Belt (Analyze phase); test selection and sign-test p-values
When do you use the sign, Wilcoxon and Friedman tests?
These three tests cover situations where the data are not independent groups of normal values:
| Question | Parametric test | Non-parametric alternative |
|---|---|---|
| Does the median meet a target? | One-sample t-test | One-sample sign test or one-sample Wilcoxon test |
| Did the same units change between two conditions? | Paired t-test | Sign or Wilcoxon test on the differences |
| Do several treatments differ when every block sees every treatment? | Two-way ANOVA without replication | Friedman test |
A block is any unit that receives every treatment: the same caseworker using three form versions, the same store manager rating several layouts, the same week measured under each staffing rule. Blocking removes the variation between units, which would otherwise hide the treatment effect.
The sign and Wilcoxon tests apply to paired data because a paired comparison is a one-sample test on the differences, with a target of zero.
Choose among these tests by structure first (one sample, pairs or blocks), then by the shape of the data.
How does the one-sample sign test work?
The sign test uses only the direction of each value relative to the target median M₀. Values equal to M₀ are dropped. Under H₀, each remaining value is equally likely to fall above or below, so the count above follows a binomial distribution:
X = number of values above M₀, X ~ Binomial(n, 0.5) under H₀one-sided p = P(X ≥ x) = Σ C(n, i) × 0.5ⁿ, for i = x to n- two-sided p = twice the smaller tail
Worked example. Brightwater Health's pharmacy targets a median dispensing time of 20 minutes. Ten prescriptions take 23, 25, 19, 27, 31, 24, 28, 26, 18 and 29 minutes. The team asks whether the median exceeds 20 (Hₐ: M > 20).
| Step | Calculation | Result |
|---|---|---|
| Values above 20 | 8 of 10 (two below, none equal) | x = 8 |
| One-sided p-value | [C(10,8) + C(10,9) + C(10,10)] / 2¹⁰ = (45 + 10 + 1) / 1,024 | 0.055 |
| Decision at α = 0.05 | 0.055 > 0.05 | Do not reject H₀ |
The p-value is rounded to three decimals. Note that P(X = 8) alone, 45 / 1,024 = 0.044, is not the p-value: the tail includes every result at least as extreme.
The sign test needs almost no assumptions, which makes it robust but not very powerful.
How does the one-sample Wilcoxon signed-rank test work?
The Wilcoxon signed-rank test also uses how far each value lies from the target. It ranks the absolute differences |x − M₀|, then adds the ranks of the positive and of the negative differences:
W+ = sum of ranks of positive differences, W− = sum of ranks of negative differencesW+ + W− = n(n + 1) / 2- for larger samples:
z = (W+ − n(n + 1)/4) / √[n(n + 1)(2n + 1) / 24]
The Brightwater data again. The differences from 20 are +3, +5, −1, +7, +11, +4, +8, +6, −2 and +9. The two negative differences are the two smallest in size, so they take ranks 1 and 2: W− = 3 and W+ = 55 − 3 = 52. The exact one-sided p-value is 5 / 1,024 = 0.005 (rounded to three decimals), and H₀ is rejected.
The same ten values give p = 0.055 with the sign test and p = 0.005 with the Wilcoxon test. The Wilcoxon test noticed that the values below target were barely below, while the values above were well above. That extra power comes from an extra assumption: the distribution of the differences is symmetric about its median. Strongly skewed data break that assumption; the sign test then remains valid.
The one-sample Wilcoxon test is the more powerful choice whenever the data are roughly symmetric.
How does the Friedman test work?
The Friedman test ranks the treatments within each block, then checks whether some treatments collect systematically low or high ranks. With b blocks, k treatments and Rⱼ the rank sum of treatment j:
χ²r = [12 / (b × k × (k + 1))] × ΣRⱼ² − 3b(k + 1), df = k − 1
Worked example. Harbourside Council asks six caseworkers to process one application with each of three form versions (A, B, C) and records the minutes. Within each caseworker, the fastest version gets rank 1:
| Caseworker | A | B | C | Ranks (A, B, C) |
|---|---|---|---|---|
| 1 | 12 | 15 | 19 | 1, 2, 3 |
| 2 | 10 | 13 | 14 | 1, 2, 3 |
| 3 | 14 | 16 | 21 | 1, 2, 3 |
| 4 | 9 | 11 | 13 | 1, 2, 3 |
| 5 | 11 | 17 | 16 | 1, 3, 2 |
| 6 | 13 | 12 | 18 | 2, 1, 3 |
The rank sums are 7, 12 and 17. χ²r = 12 / (6 × 3 × 4) × (49 + 144 + 289) − 3 × 6 × 4 = 80.33 − 72 = 8.33 (rounded to two decimals). The critical value of χ² for 2 df at α = 0.05 is 5.991, so the versions differ (p ≈ 0.016).
Because each caseworker is compared only with themselves, the fact that caseworker 3 is slow overall does not blur the comparison. The Friedman test is the non-parametric tool for blocked designs.
What are the common mistakes with these tests?
These tests are valuable because they work with small samples, skewed data and ordinal ratings, where a t-test would be fragile. The usual errors are about structure and arithmetic:
- Using Kruskal-Wallis for blocked data. When the same units see every treatment, the groups are not independent; use Friedman.
- Using the Wilcoxon test on strongly skewed data. Its symmetry assumption fails; the sign test stays valid.
- Taking a single binomial probability as the p-value. The p-value is the whole tail, P(X ≥ x), not P(X = x).
- Forgetting to double the tail for a two-sided sign test.
- Keeping values equal to the target in the sign test. They carry no direction and are dropped, which reduces n.
- Ignoring ties in the Wilcoxon and Friedman tests. Tied values share the average of their ranks.
Name the structure, check symmetry and compute the full tail: those three habits prevent most mistakes with the sign, Wilcoxon and Friedman tests.
One-sample sign test vs. one-sample Wilcoxon test: what is the difference?
| One-sample sign test | One-sample Wilcoxon signed-rank test | |
|---|---|---|
| Information used | Only whether each value is above or below the target | The direction and the rank of the size of each difference |
| Distribution assumption | None beyond independence | Differences symmetric about the median |
| Power | Lower | Higher; for normal data, about 95% as efficient as the t-test |
| Statistic | Count above the target, binomial (n, 0.5) | W+ or W−, sums of signed ranks |
| Best for | Skewed data, or when only above/below is known | Roughly symmetric data that are not normal |
Both tests compare a median with a target. The Wilcoxon test is more powerful when its symmetry assumption holds; the sign test is the robust fallback when it does not.
Exam focus
These tests are IASSC™ sections 3.5.4 to 3.5.6, in Green Belt scope only. Expect test-selection items (blocks point to Friedman, one sample against a target to sign or Wilcoxon), a sign-test p-value from the binomial distribution, and the assumption that separates Wilcoxon from the sign test. The common traps are taking P(X = x) instead of the tail and confusing Friedman with Kruskal-Wallis. Practise in the Analyze phase drill.
Practise this DMAIC phase →FAQ
What is the difference between the Friedman and Kruskal-Wallis tests?
Both compare three or more treatments with ranks. Kruskal-Wallis assumes independent groups and ranks all the values together. Friedman is for blocked designs, where every block, such as a person or a week, sees every treatment; it ranks the treatments within each block, which removes the variation between blocks.
How do I calculate a sign test p-value?
Drop the values equal to the target, count the values above it (x) out of n, and add the binomial probabilities with p = 0.5 for x and every more extreme count. With 9 of 10 values above target, the one-sided p-value is (10 + 1) / 1,024 = 0.011. Double the smaller tail for a two-sided test.
What does the Wilcoxon signed-rank test assume?
It assumes independent observations and a distribution of differences that is symmetric about its median. It does not assume normality. Symmetry lets the test use the ranks of the differences' sizes, which gives it more power than the sign test; with strongly skewed data, use the sign test instead.
Can I use the sign test for before-and-after data?
Yes. Compute the difference for each unit, such as after minus before, drop the zero differences, and count how many are positive. Under H₀ of no change, the count follows a binomial distribution with p = 0.5. The Wilcoxon signed-rank test on the same differences is more powerful if they are roughly symmetric.
Sources
- Wilcoxon, F. (1945). Individual Comparisons by Ranking Methods. Biometrics Bulletin, 1(6), 80–83.
- Friedman, M. (1937). The Use of Ranks to Avoid the Assumption of Normality Implicit in the Analysis of Variance. Journal of the American Statistical Association, 32(200), 675–701.
- Conover, W. J. (1999). Practical Nonparametric Statistics (3rd ed.). Wiley.
- IASSC™ (n.d.). Lean Six Sigma Green Belt Body of Knowledge, §3.5.4–3.5.6.
- Last reviewed