MATLAB: Kruskalwallis test, mean or median

statistics

Hello,
Does kruskalwallis test difference of the MEAN or MEDIAN between 2 groups?
Which should I use, mean or median?
Why?
Thank you.

Best Answer

From the documentation section More About:
  • The Kruskal-Wallis test is a nonparametric version of classical one-way ANOVA, and an extension of the Wilcoxon rank sum test to more than two groups. It compares the medians of the groups of data in x to determine if the samples come from the same population (or, equivalently, from different populations with the same distribution).
(Underline added.)