Hypothesis
The Kruskal-Wallis Test has the null and alternative hypotheses as discussed below:
- The null hypothesis (H0): The median is the same for all the data groups.
- The alternative hypothesis: (Ha): The median is not equal for all the data groups.
How to Perform a Kruskal-Wallis Test in Python
Kruskal-Wallis test is a non-parametric test and an alternative to One-Way Anova. By non-parametric we mean, the data is not assumed to become from a particular distribution. The main objective of this test is used to determine whether there is a statistical difference between the medians of at least three independent groups.