Friedman test
The Friedman test (Friedman, 1937) extends the Wilcoxon signed-rank test to three or more related conditions, just as repeated measures ANOVA extends the paired t-test.
How it works
Within each participant, the conditions are ranked from 1 to k. If conditions don’t differ, each condition’s average rank should be about the same. The Friedman statistic measures how far the average ranks spread apart, and it follows approximately a chi-square distribution with k − 1 df. Because ranking happens within each person, differences between people are removed automatically.
Worked example: three ways of rounding first base
Twenty-two baseball players were each timed running to second base using three different paths around first base (Hollander & Wolfe’s classic dataset). The residuals aren’t normal, so Analytika chooses the Friedman test over repeated measures ANOVA.
Round Out: median=5.5000, n=22, iqr=0.2375 Narrow Angle: median=5.5250, n=22, iqr=0.1375 Wide Angle: median=5.4500, n=22, iqr=0.2000 N: 22 Conditions: 3 Friedman chi-square: 11.1429 df: 2 P-value: 0.003805 Kendall's W: 0.2532 Method used: wilcoxon_holm Round Out vs Narrow Angle: p_adj=0.3665, significant=no, r=0.2456 Round Out vs Wide Angle: p_adj=0.02926, significant=yes, r=0.5968 Narrow Angle vs Wide Angle: p_adj=0.005785, significant=yes, r=0.7549 Rows excluded for missing values: 0 of 22
The statistic, p-value, Kendall’s W and pairwise tests all match R.
Interpretation
- χ²(2) = 11.14, p = .004: running times differ across the three paths.
- Kendall’s W = .25: a moderate effect. W runs from 0 (no consistent differences) to 1 (every player ranks the paths in the same order).
- Holm-corrected Wilcoxon tests: the wide-angle path (median 5.45 s) was faster than both round-out (p = .029) and narrow-angle (p = .006). The other two didn’t differ (p = .367).
APA write-up
A Friedman test showed that running time differed by base-running path, χ²(2, N = 22) = 11.14, p = .004, Kendall’s W = .25. Holm-corrected Wilcoxon signed-rank tests indicated that the wide-angle path (Mdn = 5.45 s) was faster than the round-out (Mdn = 5.50 s, p = .029) and narrow-angle (Mdn = 5.53 s, p = .006) paths.
How to run it
- SPSS: Analyze → Nonparametric Tests → Related Samples, then choose Friedman.
- R:
friedman.test(as.matrix(df[, c("a", "b", "c")])) - Analytika: with one column per condition, ask whether the measure differs across them. It chooses repeated measures ANOVA or Friedman from the normality check, and uses Friedman directly for rating scales.
References
- 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.
- Hollander, M., & Wolfe, D. A. (1973). Nonparametric statistical methods. Wiley.
More in Comparing groups
Run this on your own data
Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.