Friedman Test in SPSS: The Nonparametric Repeated-Measures ANOVA

Imagine you asked the same group of students to rate three revision methods on a 10-point scale, and you want to know whether one method is rated consistently higher than the others. A one-way repeated-measures ANOVA would be the usual choice — but only if your data are roughly normal and measured on an interval scale. When your data are ordinal, skewed, or too small a sample to trust normality, the Friedman test is the right tool.

The Friedman test is the nonparametric equivalent of a one-way repeated-measures ANOVA. It works on ranks instead of raw scores, so it makes no assumption about the shape of your data’s distribution. In this tutorial you will learn when to use it, how to run it click by click in SPSS, how to read the output, and how to report it in APA style (7th ed.).

When to Use the Friedman Test

Reach for the Friedman test when all of the following are true:

  • One group, three or more related measurements. The same participants are measured under three or more conditions, or at three or more time points. The measurements are related — they come from the same people.
  • Your outcome is ordinal, or continuous but not normal. Likert-scale ratings, ranked data, or scores that fail a normality check are typical candidates. If your data are continuous and approximately normal, the one-way repeated-measures ANOVA is the more powerful option.
  • You want to compare the conditions, not just describe them. The Friedman test is a hypothesis test: its null hypothesis is that the distributions of scores are the same across all conditions.

What the Friedman Test Actually Does

The Friedman test sidesteps the normality problem by converting your data into ranks. For each participant separately, SPSS ranks their scores across the conditions: their lowest score gets rank 1, the next rank 2, and so on. Tied scores share the average of the tied ranks.

Once every participant’s scores are ranked, the test averages the ranks for each condition. If the conditions are truly equivalent, the mean ranks should be roughly equal. If one condition is systematically rated higher, its mean rank pulls clearly ahead. The test summarises this pattern in a chi-square statistic with degrees of freedom equal to the number of conditions minus one (df = k − 1), and from that statistic it computes a p-value. Because the test works on ranks, a few extreme scores cannot distort the result the way they can distort a mean — which is exactly why it is the standard choice for ordinal data and small samples.

Example Data for This Tutorial

Suppose 15 students each tried three revision methods — flashcards, written summaries, and practice tests — and rated their satisfaction with each on a scale from 1 (very dissatisfied) to 10 (very satisfied). Your SPSS data file has one row per student and three columns:

  • Flashcards — satisfaction rating after using flashcards
  • Summaries — satisfaction rating after writing summaries
  • PracticeTests — satisfaction rating after taking practice tests

Each variable is measured on the same 1–10 scale, and each student appears in all three columns, so the measurements are related. The ratings are ordinal and skewed, so the Friedman test fits.

How to Run the Friedman Test in SPSS

The quickest route is the legacy dialog:

  1. Click Analyze > Nonparametric Tests > Legacy Dialogs > K Related Samples…
  2. In the dialog, move Flashcards, Summaries and PracticeTests from the variable list on the left into the Test Variables box on the right.
  3. Under Test Type, make sure Friedman is ticked. It is selected by default. You can also tick Kendall’s W here if you want SPSS to print the effect size in the same run — recommended.
  4. Click Statistics… and tick Descriptive and Quartiles, which give you the medians and quartiles — the right descriptives for a rank-based test. Click Continue.
  5. Click OK. SPSS runs the test and opens the output viewer.

The same test is also available at Analyze > Nonparametric Tests > Related Samples…, but the legacy dialog above is simpler for a first run and gives the same result.

Paste-Ready SPSS Syntax

If you prefer syntax, paste this into a syntax window and run it, replacing the three variable names with your own:

NPAR TESTS
 /FRIEDMAN = Flashcards Summaries PracticeTests
 /STATISTICS DESCRIPTIVES QUARTILES
 /MISSING LISTWISE.

Line by line: NPAR TESTS calls the nonparametric tests command; /FRIEDMAN lists the related variables to compare; /STATISTICS DESCRIPTIVES QUARTILES asks for means, standard deviations, minima, maxima and quartiles for each condition; and /MISSING LISTWISE excludes any participant with a missing value on any of the three variables. To add Kendall’s W, append /KENDALL. Keeping your analysis in syntax is good practice: it makes the analysis reproducible and easy to re-run if your data change.

How to Interpret the Friedman Test Output

SPSS prints three tables. Here is what to look for in each.

1. Descriptive Statistics

This table shows the mean, standard deviation, minimum, maximum and quartiles for each condition. With ordinal data, the median (the 50th percentile) is the most meaningful summary, so look at the quartiles rather than the means when you describe each condition.

2. Ranks

This is the heart of the test. For each condition it shows the Mean Rank. The condition with the highest scores will have the highest mean rank. In our example, if practice tests have a mean rank clearly above flashcards and summaries, the students tended to rate practice tests highest. Use these mean ranks — not the raw means — when you describe the direction of the difference.

3. Test Statistics

This table gives you the result that decides the test:

  • N — the number of participants included (after listwise deletion of missing cases).
  • Chi-Square — the Friedman test statistic. Larger values mean the mean ranks differ more across conditions.
  • df — degrees of freedom, equal to the number of conditions minus one. With three conditions, df = 2.
  • Asymp. Sig. — the p-value. If it is below your alpha level (usually .05), reject the null hypothesis: the conditions differ. If it is above .05, you do not have enough evidence to say they differ.

If you ticked Kendall’s W, SPSS prints a second test-statistics table for it. W ranges from 0 (no agreement among participants about which condition is best) to 1 (complete agreement). As a rough guide, values around .1 are small, around .3 are moderate, and around .5 or above are large. You can also compute W by hand: W = χ² / (N × (k − 1)), where N is the number of participants and k is the number of conditions.

What to Do After a Significant Result: Post-Hoc Tests

A significant Friedman test tells you that at least one condition differs from the others — it does not tell you which ones. To find out, run pairwise follow-up tests between each pair of conditions using the Wilcoxon signed-rank test, which is the two-condition equivalent of the Friedman test.

With three conditions there are three pairs to test: flashcards vs summaries, flashcards vs practice tests, and summaries vs practice tests. Because you are running several tests, protect yourself against false positives with a Bonferroni correction: divide your alpha level by the number of comparisons. For three comparisons, the adjusted alpha is .05 / 3 = .017, so a pairwise difference counts as significant only if its p-value is below .017.

Common Mistakes to Avoid

  • Using the Friedman test on independent groups. If different people are in each condition, the measurements are not related and the Friedman test is invalid. Use the Kruskal–Wallis test instead.
  • Running post-hoc tests without a correction. Three or more uncorrected Wilcoxon tests inflate the chance of a false positive. Always apply a Bonferroni correction and report it.
  • Reporting means instead of medians and mean ranks. The Friedman test compares ranks, so your descriptives should be medians (and mean ranks), not means and standard deviations.
  • Skipping the effect size. A p-value alone says nothing about how large the difference is. Always report Kendall’s W alongside the test statistic.

Reporting in APA Style (7th ed.)

Report the test statistic with its degrees of freedom, the p-value, and Kendall’s W, and describe the direction of the difference using medians and mean ranks:

A Friedman test showed a statistically significant difference in satisfaction ratings across the three revision methods, χ²(2) = [chi-square value], p = [.xxx], Kendall’s W = [.xx]. Practice tests received the highest ratings (Mdn = [median], mean rank = [value]), followed by summaries (Mdn = [median], mean rank = [value]) and flashcards (Mdn = [median], mean rank = [value]). Post-hoc Wilcoxon signed-rank tests with a Bonferroni-adjusted alpha of .017 showed that [describe which pairs differed and which did not].

Replace every bracketed value with the figure from your own output. Report exact p-values (for example, p = .004) rather than p < .05, unless SPSS prints p = .000, in which case write p < .001. If the test is not significant, say so plainly — “A Friedman test showed no statistically significant difference in satisfaction ratings across the three revision methods, χ²(2) = [value], p = [.xxx]” — and report Kendall’s W anyway, since a small effect size helps the reader judge whether the study was simply underpowered.

One wording point: APA style calls the statistic a chi-square value with the degrees of freedom in parentheses, as in χ²(2). The “Asymp. Sig.” column in SPSS is the p-value you report.

Key Takeaways

  • The Friedman test is the nonparametric equivalent of a one-way repeated-measures ANOVA: use it when the same participants are measured under three or more conditions and the data are ordinal or not normal.
  • It ranks each participant’s scores across conditions and compares the mean ranks, producing a chi-square statistic with df = k − 1.
  • In SPSS: Analyze > Nonparametric Tests > Legacy Dialogs > K Related Samples…, with Friedman ticked and Kendall’s W selected for the effect size.
  • A significant result only tells you that at least one condition differs — follow up with pairwise Wilcoxon signed-rank tests and a Bonferroni correction.
  • Report χ² with degrees of freedom, the exact p-value, Kendall’s W, and the medians and mean ranks.

Frequently Asked Questions

When should I choose the Friedman test over a repeated-measures ANOVA?

Choose the Friedman test when your outcome is ordinal (such as Likert ratings) or when a continuous outcome clearly violates normality and cannot be fixed with a transformation. If your data are continuous and approximately normal, the repeated-measures ANOVA is more powerful and should be your first choice.

Can I use the Friedman test with only two conditions?

No — it requires at least three related samples. With two related conditions, use the Wilcoxon signed-rank test, the same test used for post-hoc follow-ups after a Friedman test.

What should I do if my Friedman test is not significant?

Report it honestly: a non-significant result means you do not have enough evidence that the conditions differ. Do not run post-hoc tests after a non-significant omnibus test, and do report Kendall’s W — a small effect size with a small sample may simply mean the study lacked power.

What effect size do I report for the Friedman test?

Report Kendall’s W, which ranges from 0 to 1 — tick it in the dialog or compute it as W = χ² / (N × (k − 1)). Roughly, .1 is small, .3 moderate, and .5 or above large.

Related Guides

Need professional guidance with your SPSS analysis? Contact us → /services/