Analysis of Variance (ANOVA) is a statistical technique used to compare the means of two or more groups. It's a parametric test, meaning it assumes the data follows a specific distribution (like the normal distribution) and that group variances are equal.
When the assumptions of ANOVA are not met, a non-parametric test is used. Non-parametric tests do not rely on assumptions about the data distribution.
The Kruskal-Wallis H test is the most appropriate non-parametric test to use when you want to compare three or more independent samples, serving as the direct alternative to one-way ANOVA.