The Kruskal Wallis H test is used when the following conditions are met:
1. The dependent variable is ordinal or continuous but not normally distributed. 2. The independent variable consists of two or more categorical, independent groups. 3. The samples are independent, meaning that the observations in one group are not related to those in another group.
For example, in an epidemiological study, you might want to compare the median recovery times of patients from different hospitals that used different treatment protocols.