◀ CONTENTSSTA503 · VOL.4EP.1 · Sign test for paired dataMISSIONS 0/2LV 10 XP
VOL.4 · EP.1 · §4.1

Sign test for paired data

/StatsMadeFun/sta503/vol-4/sign
SENSEI RANK
Yes. Under H₀ the median difference is zero, so + and − are equally likely.
Sign test for paired data
Ramadan bazaar season. Mikey checks 12 friends' resting heart rate before and after the iftar rush.
MIKEY
MIKEY
Orang yang sama diukur dua kali. These are not two independent samples.
スッ
SU
SENSEI RANK
SENSEI RANK
Correct. Each person is their own control. Work with the pairs: record whether X is bigger than Y for each person.
FARAH
FARAH
Plus if X > Y, minus if X < Y, buang ties. Lepas tu, macam Chapter 2 balik.
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Yes. Under H₀ the median difference is zero, so + and − are equally likely.
READ THE NOTES

Use it when

Paired observations (before/after, matched subjects) where you only trust the direction of each difference.

Assumptions

  • n pairs (Xᵢ, Yᵢ), independent between pairs.
  • Measurement at least ordinal within each pair.

Hypotheses

A. H₀: M_D = 0 [P(+) = P(−)] vs H₁: M_D ≠ 0 B. H₀: M_D ≤ 0 [P(+) ≤ P(−)] vs H₁: M_D > 0 C. H₀: M_D ≥ 0 [P(+) ≥ P(−)] vs H₁: M_D < 0

Test statistic

Record + if Xᵢ > Yᵢ, − if Xᵢ < Yᵢ, drop ties. K = number of + signs ~ Binomial(n, 0.5) under H₀

Decision rule

  • H₁: M_D > 0: p = P(K ≤ K⁻).
  • H₁: M_D < 0: p = P(K ≤ K⁺).
  • Two-sided: 2·P(K ≤ min).

This is exactly the one-sample sign test applied to the differences Dᵢ = Xᵢ − Yᵢ with M₀ = 0.

START THE MISSIONS
MISSION 1 OF 2

Heart rate before vs after

+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