Kruskal Wallis Tests

Kruskal Wallis Tests

Description

Kruskal-Wallis test is a non-parametric version of one way ANOVA. It determines whether the medians of two or more groups are different.

Why to use

To identify whether there is a significant difference between the medians in the groups.

When to use

  • When all the independent variables are numerical.
  • When there are more than two variables in single or multiple datasets.
  • When there is no relationship between the members of all groups.

When not to use

  • In the case of non-continuous, categorical, or textual variables.
  • If a group contains any dependent variable and is not on the Ordinal, Ratio, or Interval scale.
  • If a group contains constants, discrete, and empty/missing values.

Prerequisites

  • The independent variable should be a numerical value. It should not possess any infinite or missing value.
  • All the groups should have the same size of distributions.

Input

Numeric dataset

Output

  • H-statistic
  • p Value

Statistical Methods Used

  • H-statistic
  • p Value
  • Alpha (α)

Limitations

this method cannot identify which dataset/column has a different median.


The test calculates the p value. Compare this p value with the alpha value to conclude hypothesis testing. Reject the hypothesis if the p value is less than alpha.
The test also calculates and displays the H-statistics. H-statistics calculates the interaction strength between the two features.