◀ CONTENTSSTA503 · VOL.6EP.2 · Kruskal–Wallis testMISSIONS 0/3LV 10 XP
VOL.6 · EP.2 · §6.2

Kruskal–Wallis test

/StatsMadeFun/sta503/vol-6/kruskal-wallis
SENSEI RANK
Then H compares those rank sums with what they should be if the groups were identical. It is ANOVA on ranks, basically.
Kruskal–Wallis test
Cortisol levels in three groups of patients. Small samples, clearly skewed.
ドン
DON!
NORMY
NORMY
One-way ANOVA! Habis cerita!
SENSEI RANK
SENSEI RANK
Tenang. ANOVA wants normal populations with equal variances. Kruskal–Wallis only wants you to rank.
MIKEY
MIKEY
Rank semua N values sekali, then tambah ranks dalam setiap group.
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Then H compares those rank sums with what they should be if the groups were identical. It is ANOVA on ranks, basically.
FARAH
FARAH
Dan H besar maksudnya groups tu berbeza.
READ THE NOTES

Use it when

The nonparametric alternative to one-way ANOVA: do k independent samples come from identical populations?

Assumptions

  • k independent random samples of sizes n₁ … n_k, N = Σnⱼ.
  • Continuous variable, at least ordinal measurement.
  • Populations identical except possibly in location.

Hypotheses

H₀: the k population distributions are identical H₁: at least one population tends to give larger values than another

Test statistic

Rank all N observations together (mean ranks for ties). Let Rⱼ be the sum of ranks in sample j.

H = [12 / (N(N + 1))] · Σ (Rⱼ² / nⱼ) − 3(N + 1) (Equation 6.2)

Decision rule

Small samples (k = 3, nⱼ ≤ 5): Table A.8. Otherwise compare H with χ²ₖ₋₁. Reject H₀ if H is too large.

Ties

With many ties, divide H by 1 − ΣT / (N³ − N), where T = t³ − t for each group of t tied values.

Check: ΣRⱼ must equal N(N + 1)/2.

START THE MISSIONS
MISSION 1 OF 3

Cortisol ranks

+30 XP
HOW TO PLAY

Work the procedure by hand on the data shown. Fill every box, then press CHECK. NEW DATA deals a fresh problem; SHOW SOLUTION gives the full working.

CLEARS WHENEvery box correct on one set of data.
Loading mission engine...

ALL MISSIONS IN THIS EPISODE