◀ CONTENTSSTA503 · VOL.3EP.2 · Mann–Whitney testMISSIONS 0/3LV 10 XP
VOL.3 · EP.2 · §3.1

Mann–Whitney test

/StatsMadeFun/sta503/vol-3/mann-whitney
SENSEI RANK
Exactly. And Table A.7 tells you when T is too small or too large.
Mann–Whitney test
STA503 quiz marks: Group X had the new tutorial videos, Group Y did not.
ドン
DON!
NORMY
NORMY
Two-sample t-test. Obviously lah.
SENSEI RANK
SENSEI RANK
Sabar. With 7 students each and a skewed mark distribution? Rank them instead. Pool both groups and rank every mark from smallest to largest.
MIKEY
MIKEY
Kalau video group lagi power, ranks dia mesti tinggi.
SENSEI RANK
SENSEI RANK
So add up the ranks of the X sample to get S, and subtract the smallest S could ever be, n(n + 1)/2. That is T.
FARAH
FARAH
T ni basically berapa kali X menang lawan Y.
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Exactly. And Table A.7 tells you when T is too small or too large.
READ THE NOTES

Use it when

The standard nonparametric alternative to the two-sample t-test: are two independent populations shifted relative to each other?

Assumptions

  • Two independent random samples: X of size n, Y of size m.
  • Measurement at least ordinal; variables continuous.
  • If the populations differ, they differ only in location.

Hypotheses

A. H₀: M_X = M_Y vs H₁: M_X ≠ M_Y B. H₀: M_X ≤ M_Y vs H₁: M_X > M_Y C. H₀: M_X ≥ M_Y vs H₁: M_X < M_Y

Test statistic

Rank all n + m observations together (mean ranks for ties). Let S = sum of the ranks of the X sample.

T = S − n(n + 1)/2 (Equation 3.4)

Decision rule

Table A.7 gives w_p. The upper quantile is w₁₋p = nm − w_p.

  • Two-sided: reject if T < w_α/2 or T > w₁₋α/2.
  • H₁: M_X > M_Y: reject if T > w₁₋α.
  • H₁: M_X < M_Y: reject if T < w_α.

Large-sample approximation

z = (T − nm/2) / √[nm(n + m + 1)/12]

T ranges from 0 to nm and is symmetric about nm/2 under H₀. Checking T against nm/2 tells you which tail you are in.

START THE MISSIONS
MISSION 1 OF 3

Video group vs control

+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