kruskalwallis test, mean or median?

4 views (last 30 days)
Hello,
Does kruskalwallis test difference of the MEAN or MEDIAN between 2 groups?
Which should I use, mean or median?
Why?
Thank you.

Accepted Answer

Star Strider
Star Strider on 29 Dec 2019
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.)

More Answers (0)

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!