Blog
Analysis made easy

Which nonparametric test to use

Which of Mann-Whitney U, Wilcoxon, Kruskal-Wallis and Friedman to pick, and how to report medians and effect sizes.

Skari team7 min

With only 20–30 people in your sample, or when you compare scores that only have an order, like 1–5 star ratings, this question comes up.

"My data isn't normal — can I still use a t-test or ANOVA?"

This is when you reach for a nonparametric test. Here is when to use one, which test to choose, and how to read and write up the result.

What a nonparametric test is

t-tests and ANOVA assume the data follow a normal distribution and compare means.

Nonparametric tests drop that assumption: they line the values up from smallest to largest, turn them into ranks, and compare groups on those ranks. That makes them less sensitive to extreme values and usable on data where only the order means anything.

When to use one

  • The sample is small and normality is hard to trust
  • The data are ordinal (ranked), such as star ratings or grades
  • The distribution is heavily skewed or has extreme values

On the other hand, with a decent sample and acceptable normality, a parametric test catches differences better. "Nonparametric is always safer" is not true.

Which test to choose

SituationParametricNonparametric
Two independent groupsIndependent t-testMann-Whitney U test
Same people, twicePaired t-testWilcoxon signed-rank test
Three or more independent groupsOne-way ANOVAKruskal-Wallis test
Same people, three or more timesRepeated-measures ANOVAFriedman test

Just ask whether the groups are different people or the same people, then how many groups there are.

Reading the results

Nonparametric tests talk in medians and mean ranks, not means. A group with a higher mean rank leans toward larger values overall.

If the groups' distributions have a similar shape (spread), you can read the result as a difference in medians; if the shapes differ a lot, "one group leans higher" is the accurate reading.

Report the effect size too

  • Mann-Whitney, Wilcoxon — r = |Z| / √N (.1 small · .3 medium · .5 large)
  • Kruskal-Wallis — η²[H] (.01 small · .06 medium · .14 large)
  • Friedman — Kendall's W

The p-value says whether there is a difference; the effect size says how big it is.

Three or more groups need post-hoc tests

A significant Kruskal-Wallis test only tells you "at least one pair differs". To find which pairs, compare each pair with Dunn's test and adjust the p-values for the number of comparisons, for example with Holm's correction.

Example 1: three new dishes in the student cafeteria

  • Participants — 93 students at a tasting (each tried one dish only)
  • Groups — mala rice bowl 32 · spicy cold noodles 31 · chicken-mayo bowl 30
  • Value — taste rating, 1–5 stars

Star ratings only have an order, and a one-way ANOVA showed non-normal residuals. So we used the Kruskal-Wallis test.

Mala bowlChicken-mayoCold noodles
Median443
Mean rank56.351.133.4
  • Test — H(2) = 13.11, p = .001, η²[H] = .12 (medium)
  • Dunn (Holm) — mala bowl > cold noodles (p = .002), chicken-mayo > cold noodles (p = .017), mala bowl vs chicken-mayo no difference (p = .437)

If the same students had tasted all three dishes, the groups would not be independent and the Friedman test would be the right one.

Example 2: waiting-time ratings at two cafés

  • Groups — Park branch 24 · Station branch 26
  • Value — satisfaction with waiting time, 1–5 stars
  • Median — Park 4 · Station 3
  • Test — U = 190.5, Z = −2.37, p = .015, r = .33 (medium)

Two independent groups, so we used the Mann-Whitney U test. Park branch ratings leaned higher, with a medium effect size.

How to write it up

Taste ratings of three new cafeteria dishes were compared with a Kruskal-Wallis test; the distribution of ratings differed significantly by dish, H(2) = 13.11, p = .001, η²[H] = .12. Dunn's post-hoc tests (Holm correction) showed that the mala rice bowl (Mdn = 4) and the chicken-mayo bowl (Mdn = 4) were rated higher than the spicy cold noodles (Mdn = 3; p = .002 and p = .017, respectively), with no difference between the mala rice bowl and the chicken-mayo bowl (p = .437).

Waiting-time satisfaction ratings were significantly higher at the Park branch (Mdn = 4) than at the Station branch (Mdn = 3), U = 190.5, Z = −2.37, p = .015, r = .33.

Example sentence · the numbers are made up

In Skari

Skari Statistics has the Mann-Whitney U test, Wilcoxon signed-rank test, Kruskal-Wallis test and Friedman test all under Comparison → Non-Parametric.

The four tests under Comparison → Non-Parametric, with Kruskal-Wallis open
The four tests under Comparison → Non-Parametric, with Kruskal-Wallis open

If you ran a one-way ANOVA and normality or equal variances failed, the suggested next analyses at the end of the report put Kruskal-Wallis forward as the alternative.

For Kruskal-Wallis you only choose the group variable and the value variable, and one report gives you the H test with its effect size η²[H], each group's median and mean rank, and Dunn's post-hoc test (Holm correction). The result paragraph spells out which pairs differ and in which direction.

Top of the Kruskal-Wallis report — example result (30 plants, weight under a control and two treatments)
Top of the Kruskal-Wallis report — example result (30 plants, weight under a control and two treatments)

Run a nonparametric test on your data

Opens Statistics at Comparison → Non-Parametric

Open Kruskal-Wallis
Descriptives, the H test and Dunn's post-hoc test — same example
Descriptives, the H test and Dunn's post-hoc test — same example

The Mann-Whitney U test shows U, Z and p with the effect size r, Cliff's δ, and the Hodges-Lehmann shift — the difference in the original units — with its confidence interval.

Mann-Whitney U test statistics and effect sizes — example result (32 cars, fuel economy by transmission)
Mann-Whitney U test statistics and effect sizes — example result (32 cars, fuel economy by transmission)

The Friedman test reports Kendall's W as its effect size and, when significant, the Nemenyi post-hoc test.

Wrapping up

All you need to remember about nonparametric tests is "they compare ranks". Pick the test by whether the groups are independent and how many there are, and report medians, mean ranks and effect sizes together — that is a convincing result.

Want the theory behind it?The Academy's nonparametric course explains how rank tests work and how to choose one →

Keep reading

Every feature free through Dec 31, 2026

Run the analyses from these posts on your own data