The Friedman test compares three or more related measurements, such as the same people tested under three conditions or at four time points, without assuming the data are normally distributed. It is the nonparametric alternative to repeated measures ANOVA, and it is the natural choice for ordinal outcomes such as Likert ratings or pain scores.
- Use it for one group measured three or more times (or matched sets of subjects).
- It ranks the scores within each person, then checks whether the average ranks differ.
- Report χ²F(df) = value, p, and Kendall’s W as the effect size.
- If significant, follow up with pairwise Wilcoxon signed-rank tests and a Bonferroni or Holm correction.
In this guide
When to use the Friedman test
Choose the Friedman test when:
- The same participants (or matched blocks) give a score under every condition.
- You have three or more conditions or time points. With only two, use the Wilcoxon signed-rank test.
- The outcome is ordinal (ratings, ranks) or continuous but clearly non-normal, or there are outliers that would distort a repeated measures ANOVA.
If your groups are independent (different people in each group), use the Kruskal-Wallis test instead. Not sure which test you need? See which statistical test to use.
Hypotheses
- H₀: the distributions of scores are the same under every condition (the mean ranks are equal).
- H₁: at least one condition tends to give higher or lower scores than the others.
How the Friedman test works
- For each participant, rank their scores across the conditions from 1 (lowest) to k (highest). Ties get the average rank.
- Add up the ranks for each condition (R₁, R₂, … Rk).
- Calculate the test statistic:
χ²F = [12 / (n k (k + 1))] × ΣRj² − 3 n (k + 1)
where n is the number of participants and k the number of conditions. It follows a chi-square distribution with k − 1 degrees of freedom (software applies a small correction for ties).
Because ranking happens within each person, stable differences between people (some always rate everything high) are removed automatically, just as in repeated measures ANOVA.
Assumptions
- One group measured on three or more occasions, or matched blocks.
- The participants are a random sample and independent of each other.
- The outcome is at least ordinal.
- No assumption of normality or sphericity.
Worked example
A clinic tests two pain-relief treatments against a placebo. Ten patients each try all three, in random order, and rate their pain from 0 to 10.
| Patient | Placebo | Treatment A | Treatment B |
|---|---|---|---|
| 1 | 6 | 4 | 3 |
| 2 | 7 | 5 | 5 |
| 3 | 5 | 5 | 3 |
| 4 | 8 | 6 | 4 |
| 5 | 6 | 3 | 4 |
| 6 | 7 | 6 | 5 |
| 7 | 5 | 4 | 2 |
| 8 | 6 | 5 | 3 |
| 9 | 8 | 5 | 6 |
| 10 | 7 | 4 | 4 |
| Median | 6.5 | 5.0 | 4.0 |
| Mean rank | 2.95 | 1.75 | 1.30 |
The test gives χ²F(2) = 15.73, p < .001. Pain ratings differ across the three conditions; placebo has the highest mean rank (most pain).
Effect size: Kendall’s W
Kendall’s coefficient of concordance is the usual effect size for the Friedman test:
W = χ²F / (n (k − 1)) = 15.73 / (10 × 2) = 0.79
W runs from 0 (no consistent pattern across people) to 1 (everyone ranks the conditions in the same order). Common guidelines are .10 small, .30 moderate and .50 large, so W = .79 is a large effect: most patients ranked the conditions in the same way.
Post hoc tests
A significant Friedman test tells you that the conditions are not all the same, not which ones differ. Run pairwise Wilcoxon signed-rank tests and correct for multiple comparisons. With three conditions there are three comparisons, so the Bonferroni correction multiplies each p by 3.
| Comparison | p | p (Bonferroni) |
|---|---|---|
| Placebo vs Treatment A | .004 | .012 |
| Placebo vs Treatment B | .002 | .006 |
| Treatment A vs Treatment B | .086 | .258 |
Both treatments reduced pain compared with placebo, but they did not differ significantly from each other. The Holm correction is a slightly more powerful alternative that leads to the same conclusion here. The Friedman calculator runs these comparisons for you with a Bonferroni correction.
Like other rank tests, the Friedman test compares the overall distribution of ranks. Report medians and IQRs to describe the data, but phrase the conclusion in terms of “higher” or “lower” scores rather than claiming the medians differ.
Friedman test vs repeated measures ANOVA
| Repeated measures ANOVA | Friedman test | |
|---|---|---|
| Outcome | Continuous, approx. normal | Ordinal or non-normal |
| Compares | Means | Mean ranks |
| Extra assumption | Sphericity | None |
| Effect size | Partial η² | Kendall’s W |
| Post hoc | Paired t-tests (corrected) | Wilcoxon tests (corrected) |
If your data meet the ANOVA assumptions, repeated measures ANOVA has more power. If they clearly do not, or your outcome is a single Likert item, the Friedman test is the safer choice. Check normality with the Shapiro-Wilk test on the differences.
How to report it in APA 7
What is the Friedman test used for?
It compares three or more related measurements, such as the same people measured at several time points or under several conditions, when the data are ordinal or not normally distributed.
What is the difference between the Friedman test and Kruskal-Wallis?
Friedman is for related (repeated or matched) measurements; Kruskal-Wallis is for independent groups with different people in each group.
What post hoc test should I use after a Friedman test?
Pairwise Wilcoxon signed-rank tests with a Bonferroni or Holm correction are the most common choice. The Nemenyi and Conover tests are alternatives available in some software.
How many participants do I need?
There is no strict minimum, but with fewer than about 10 participants the test has little power. A power analysis for repeated measures ANOVA, with a 10 to 15% increase, gives a rough sample size.
Can I use the Friedman test for Likert scale data?
Yes. It is a good choice for a single Likert item measured several times. For multi-item scale scores that are roughly normal, repeated measures ANOVA is also acceptable. See our guide to analysing Likert scale data.
[/fst_faq]


