Tests in one go whether three groups differ somewhere, using ranks. Everything is ranked together and the rank sums of the groups are checked for imbalance. It is one-way analysis of variance without the assumption of normality.
This tests in one go whether three or more groups differ somewhere, using ranks. It stands in for one-way analysis of variance where normality cannot be assumed.
All the data are ranked together and the rank sum of each group is taken.
is the total count and the size of group . If the groups do not differ, the ranks should scatter evenly across them and stays small. is approximated by a chi-square distribution with one fewer degree of freedom than there are groups.
Group A at 12, 15, 18, 20, group B at 22, 25, 27, 24 and group C at 17, 19, 16, 21 give rank sums of 15, 42 and 21. These total 78, matching . Then on 2 degrees of freedom, with a p-value of 0.021, beating the 5% critical value of 5.99.
All this test establishes is that a difference exists somewhere. Finding which groups differ takes a follow-up comparing them in pairs, and without adjusting the significance level for the number of comparisons the chance of a false positive grows.
Repeated values push down. Dividing by a correction for the tied ranks puts that back.
The groups need not be the same size, but very small groups weaken the chi-square approximation.