Skip to content
OneKitly

Replace the Largest Value With a Million and the Test Does Not Move

Published 11/27/2026 · 3 min read · Developer tools

Daniel Okonkwo

Daniel Okonkwo — Front-end developer and tech writer at OneKitly

Web performance · File formats

Checked against 2 sources

View profile →
In short

Feed the calculator three groups — 12, 15, 18, 14, 16 against 13, 17, 19, 15, 20 against 10, 11, 14, 12, 13 — and it returns H = 7.0151 with two degrees of freedom, p = 0.030. Now change that 20 into 200,000. The statistic is unchanged to every decimal place, because the first step of the test replaces all fifteen observations by their positions in the sorted list, and 200,000 occupies exactly the position 20 did. Everything after that step works on ranks, so the magnitude never enters the arithmetic.

Advertisement

Kruskal-Wallis ranks the data and throws the values away. Change 20 to 200,000 and H stays at 7.0151, p at 0.030 — because the rank is still the largest.

What you give up in exchange

Robustness costs information. Because the test never sees how far apart the groups are, it cannot report an effect size in the units you measured, and when the data really are normal it needs roughly five per cent more observations than an analysis of variance to reach the same power. That is a small price for immunity to a mistyped decimal point, and a bad trade when the distances themselves are the finding — a drug that lowers a reading by forty units rather than by two is not adequately described by saying its ranks were higher.

A significant result does not say which group

H answers one question: is at least one group different from the others? At p = 0.030 the answer is yes, and the test is silent about which. Finding out requires pairwise comparisons afterwards, with an adjustment for having made several of them — otherwise three comparisons at five per cent each carry a combined false-positive rate closer to fourteen. The mean ranks the calculator prints alongside H are the right place to look first, because the largest gap between them is usually where the pairwise test will land.

The same three groups, one value changed
DataHp
As entered7.01510.030
Largest value × 10,0007.01510.030
Clearly separated groups12.61260.0018
Four similar groupsnear zeronot significant
Kruskal-Wallis Test CalculatorThe rank-based alternative to ANOVA when the data are not normal. Shows the ranks assigned, each group's rank sum, H, df and p — with the tie correction applied, which matters as soon as two values are equal.Try the tool →
Advertisement

Frequently asked questions

When should I prefer this to an ANOVA?
When the data are ordinal, when the groups are small enough that normality cannot be checked, or when a few extreme observations would otherwise dominate. Satisfaction scores from one to five are the classic case: the gap between four and five is not the same quantity as the gap between one and two, so averaging them is arguable while ranking them is not. If the sample is large and roughly symmetric, the two tests usually agree, and disagreement is itself informative.
What do tied values do to the result?
They share the average of the positions they would have occupied, and then the statistic is divided by a correction factor slightly below one, which nudges H upwards. In the first example the raw value 6.9650 becomes 7.0151 after correction — a small adjustment here, and a large one in data with many repeats, such as scores on a five-point scale where dozens of observations share each value. A calculator that does not apply the correction understates the statistic exactly where ties matter most.

Articles you may find interesting

All guides →

Related tools

Sources

Spotted a mistake in this article?