◀ CONTENTSSTA503 · VOL.2EP.2 · Wilcoxon signed-rank testMISSIONS 0/2LV 10 XP
VOL.2 · EP.2 · §2.1

Wilcoxon signed-rank test

/StatsMadeFun/sta503/vol-2/wilcoxon
SENSEI RANK
Symmetric is much weaker than normal, Normy. A uniform or a triangle is symmetric too.
Wilcoxon signed-rank test
バン
BAN!
MIKEY
MIKEY
Sign test ni buat aku geram. A delivery 1 minute late counts the same as one 28 minutes late?!
SENSEI RANK
SENSEI RANK
Then use the magnitudes, but only through their ranks. Rank the absolute differences |Xᵢ − M₀| from smallest to largest, then give each rank the sign of its difference.
キラッ
KIRA
FARAH
FARAH
So yang lambat gila dapat big positive ranks.
スッ
SU
SENSEI RANK
SENSEI RANK
Yes. Add the positive ranks to get T⁺. If the median is M₀ and the distribution is symmetric, T⁺ should sit near the middle, n(n + 1)/4.
NORMY
NORMY
Symmetric? Eh, itu normal-distribution assumption menyamar, kan?
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Symmetric is much weaker than normal, Normy. A uniform or a triangle is symmetric too.
READ THE NOTES

Use it when

Testing a median (equivalently the mean, under symmetry) with one sample, when you can assume the population is symmetric. Uses both sign and relative size of the differences, so it is more powerful than the sign test.

Assumptions

  • A random sample from a continuous population.
  • The population is symmetric about its median M.
  • Measurement is at least interval (differences must be meaningful).

Hypotheses

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

Test statistic

  1. Compute Dᵢ = Xᵢ − M₀. Discard zeros and reduce n.
  2. Rank |Dᵢ| from 1 (smallest) to n. Tied values get the mean of the ranks they occupy.
  3. Attach the sign of Dᵢ to each rank.
T⁺ = sum of positive ranks T⁻ = sum of negative ranks T⁺ + T⁻ = n(n + 1)/2

Decision rule

Let d be the Table A.3 value with P(T ≤ d) ≈ α (one-sided) or α/2 (two-sided).

  • H₁: M ≠ M₀: reject if T⁺ ≤ d or T⁻ ≤ d.
  • H₁: M > M₀: reject if T⁻ ≤ d.
  • H₁: M < M₀: reject if T⁺ ≤ d.

Large-sample approximation

z = [T⁺ − n(n + 1)/4] / √[n(n + 1)(2n + 1)/24]

Use this when n is beyond the table (n > 30).

Check your ranking with T⁺ + T⁻ = n(n + 1)/2. If it does not add up, a rank is wrong.

START THE MISSIONS
MISSION 1 OF 2

Signed ranks from scratch

+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