◀ CONTENTSSTA503 · VOL.2EP.3 · Confidence intervals for the medianMISSIONS 0/3LV 10 XP
VOL.2 · EP.3 · §2.1

Confidence intervals for the median

/StatsMadeFun/sta503/vol-2/median-ci
SENSEI RANK
Walsh averages. Average every pair of observations, including each value with itself. Sort them. The median of the Walsh averages is your point estimate, and you count K = T + 1 in from each end.
Confidence intervals for the median
FARAH
FARAH
Okay, kita reject M = 30. Fine. Tapi berapa sebenarnya typical delivery time?
SENSEI RANK
SENSEI RANK
Turn the test inside out. The confidence interval is every M₀ the test would not reject.
MIKEY
MIKEY
Untuk sign test, kira masuk dari both ends of the sorted data, kan?
スッ
SU
SENSEI RANK
SENSEI RANK
Right. Find K′ from the binomial table, then the (K′ + 1)th smallest and the (K′ + 1)th largest values are your limits.
NORMY
NORMY
Hmph. Dan untuk Wilcoxon?
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Walsh averages. Average every pair of observations, including each value with itself. Sort them. The median of the Walsh averages is your point estimate, and you count K = T + 1 in from each end.
READ THE NOTES

Use it when

An interval estimate for the population median M. The sign-test interval needs only continuity; the Wilcoxon interval also needs symmetry and is usually shorter.

Sign-test interval

  1. Sort the sample.
  2. From Table A.1, find the largest K′ with P(K ≤ K′ | n, 0.5) ≤ α/2.
  3. M_L = the (K′ + 1)th observation; M_U = the (n − K′)th observation.

Actual confidence = 1 − 2·P(K ≤ K′ | n, 0.5).

Wilcoxon interval (Walsh averages)

  1. Form all averages u = (Xᵢ + Xⱼ)/2 with i ≤ j. There are n(n − 1)/2 + n = n(n + 1)/2 of them.
  2. Sort them. Their median is the point estimate of M (the Hodges–Lehmann estimator).
  3. From Table A.3 with P = α/2, take T. Set K = T + 1.
  4. The limits are the Kth smallest and Kth largest Walsh averages.

Check yourself: with n = 8 there are 36 Walsh averages; with n = 10 there are 55.

START THE MISSIONS
MISSION 1 OF 3

Count-in interval (sign test)

+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