Friedman Test (non-parametric RM)
VerifiedRepeat / Within
Run this test straight away on a free built-in teaching dataset — no data of your own needed — or bring your own. Either opens the guided workspace: variable setup, assumption diagnostics, results with effect sizes and confidence intervals, figures, and APA-ready reporting.
Loading teaching datasets…
Or use your own dataset
Loading your datasets…
Non-parametric repeated-measures comparison of a DV across 3+ within-subjects conditions.
Ranks within each subject and compares sums of ranks across conditions via a χ²(k − 1) statistic. The within-subjects analogue of Kruskal-Wallis. Used when RM-ANOVA assumptions (normality, sphericity) are not tenable, the DV is ordinal, or per-subject n is too small to trust the parametric F. Reports χ², df = k−1, p, and per-condition median + IQR. Pair with pairwise Wilcoxon signed-rank with Bonferroni correction for post-hoc.
Worked example
Do raters score three product designs differently?
20 raters each evaluated all three designs (within-subjects, ordinal ratings); a Friedman test compares the ranked scores.
Ratings differed across designs, χ²(2) = 22.9, p < .001, Kendall's W = .57, with Design B ranked highest.
A Friedman test showed the three designs were rated significantly differently, χ²(2) = 22.9, p < .001, Kendall's W = .57.
Try it yourself: Load this ready-made sample and follow the run above.
When to use it
- Repeated measures on an ordinal or non-normal DVEach patient rates treatment satisfaction on a 5-point Likert scale at 4 visits; analysed via Friedman rather than RM-ANOVA.
- Randomised block design (subjects as blocks)12 wine tasters each rate 5 different wines; Friedman tests whether the median ratings differ across the 5 wines.
When NOT to — use instead
- Independent groups (between-subjects)Friedman requires within-subjects pairing. → Kruskal-Wallis H (non-parametric ANOVA)
- Only 2 related conditionsWilcoxon signed-rank is the natural within-subjects 2-condition test. → Wilcoxon Signed-Rank
- Ordered conditions with monotone-trend hypothesisPage's test is more powerful when the ordering is a-priori monotone. → Page's Trend Test (ordered repeated measures)
- Continuous DV with normal within-subjects residualsRM-ANOVA is more powerful when its assumptions hold. → One-Way RM-ANOVA (3+ measurements)
Hypotheses
Parameter tested: set of population distribution functions {F₁, …, Fₖ} across related conditions
Assumptions (and what to do if they fail)
Check: n_subjects ≥ 10 for k = 3; n_subjects ≥ 15 for k = 4; larger for more levels.
If violated: With small n_subjects, the χ² approximation to the Friedman statistic can be inaccurate.
Check: Inspect the per-condition boxplot; severe discretisation → many ties.
If violated: Many ties reduce the test's discriminating power.
Ready to run a Friedman Test (non-parametric RM) on your own data?
Guided setup, automatic assumption checks, effect sizes, figures and an APA write-up.
Run this test →