Kruskal Wallis Test Calculator

Followed by post-hoc Dunn's test
Kruskal Wallis calculator with multiple comparisons, effect size, test power, outliers, and R syntax.
Enter raw data directly
Enter raw data from excel
Header: you may rename 'Group1', 'Group2', etc.
Data: use Enter or , (comma) or space as delimiters.

The tool ignores empty cells, non-numeric cells, or empty columns.

Kruskal Wallis Test

The Kruskal-Wallis test also called one-way ANOVA on ranks is a non-parametric test.
Use the Kruskal-Wallis test calculator when your data doesn't meet the assumptions of the one-way ANOVA test calculator.
The kruskal wallis test online checks the null assumption that when selecting a value from each of 'n' groups, each of these groups will have an equal probability of containing the highest value.

Target: To check if the difference between the ranks of two or more groups is significant, using a sample data
When the groups have a similar distribution shape, the null assumption is stronger and states that the medians of the groups are equal. When performing the Kruskal Wallis test, we try to determine, if the difference between the ranks reflects a significant difference between the groups, or is due to the random noise inside each group. The Chi-square statistic is an approximation for the exact calculation.

Right-tailed the Kruskal Wallis test can use only the right tail. Why?

Hypotheses
H0: MR1 = .. = MRk
H1: not(MR1 = .. = MRk)
MR - Mean rank.
Test statistic
H'=12Σ(Rj2) - 3(n+1)
n(n+1)nj
H=H'
1 - correction
Rj - the rank sum of group j.
nj - the sample size of group j.
n - the total sample size across all groups, n = n1 +...+ nj.
χ2 distribution
Chi-squared distribution right tailed

Assumptions

  • Independent samples from independent groups. One subject can't be in more than one group.
  • The dependent variable is ordinal variable or continuous variable
  • Two or more groups (the independent variable is categorical variable with two or more values)

Required Sample Data

  • Sample data from all compared groups.

Multiple comparisons

Even if we know that not all the ranks are equal, we don't know which groups are not equal, hence we run a Multiple comparisons test to compare all the pairs.
We support two methods for the Multiple comparisons:

  • Dunn's test calculator - takes into consideration the total number of groups (k) even when comparing only two groups
  • Mann Whitney U test - the calculator uses the normal approximation of the Mann Whitney U test and supports the same results as the Kruskal Wallis test with two groups.