◀ CONTENTSSTA503 · VOL.6EP.1 · Extension of the median testMISSIONS 0/2LV 10 XP
VOL.6 · EP.1 · §6.1

Extension of the median test

/StatsMadeFun/sta503/vol-6/median
SENSEI RANK
Same idea, wider table. Find the grand median, count how many in each sample are above it. That gives a 2 × k table.
Extension of the median test
Farah now has teh tarik prices from three areas: Shah Alam, Subang and Klang.
FARAH
FARAH
Alamak, 2×2 median test from Chapter 3 boleh handle dua kawasan je.
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Same idea, wider table. Find the grand median, count how many in each sample are above it. That gives a 2 × k table.
MIKEY
MIKEY
Lepas tu chi-square test with k − 1 degrees of freedom. Settle.
READ THE NOTES

Use it when

Testing whether k independent populations share a common median.

Assumptions

  • k independent random samples.
  • At least ordinal measurement; continuous variable.

Hypotheses

H₀: all k populations have the same median H₁: at least two population medians differ

Test statistic

Find the median of all N observations. Build the 2 × k table of counts above and not above it.

X² = Σ (O − E)² / E over all 2k cells E(above, sample j) = nⱼ × (total above) / N df = k − 1

Decision rule

Reject H₀ if X² ≥ χ²ₖ₋₁,₁₋α.

Expected counts should not be too small; the usual rule of thumb is no more than 20% of cells below 5 and none below 1.

START THE MISSIONS
MISSION 1 OF 2

Three areas

+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