◀ CONTENTSSTA503 · VOL.2EP.6 · Cox–Stuart test for trendMISSIONS 0/3LV 10 XP
VOL.2 · EP.6 · §2.4

Cox–Stuart test for trend

/StatsMadeFun/sta503/vol-2/cox-stuart
SENSEI RANK
Drop the middle observation so the halves are equal.
Cox–Stuart test for trend
Petrol station on the Federal Highway. Mikey has the RON95 queue length for 16 evenings.
MIKEY
MIKEY
Queue ni makin panjang over time, or aku je yang perasan?
SENSEI RANK
SENSEI RANK
Split the series in half. Pair the first value with the first value of the second half, the second with the second, and so on.
キラッ
KIRA
FARAH
FARAH
Then each pair is "later minus earlier". Plus maksudnya naik.
SENSEI RANK
SENSEI RANK
And if there is no trend, + and − are equally likely. You already know this test: it is the sign test on the pairs.
NORMY
NORMY
Kalau n ganjil?
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Drop the middle observation so the halves are equal.
READ THE NOTES

Use it when

Testing for an upward or downward trend in a sequence of observations recorded in time order.

Assumptions

  • Observations X₁, …, Xₙ in the order they were taken.
  • Measurement at least ordinal.

Hypotheses

A. H₀: no trend vs H₁: upward or downward trend B. H₀: no upward trend vs H₁: upward trend C. H₀: no downward trend vs H₁: downward trend

Test statistic

  1. If n is odd, delete the middle value. Let c = n′/2.
  2. Form pairs (X₁, X₁₊c), (X₂, X₂₊c), …, (X_c, X_n′).
  3. Record + if the later value is larger, − if smaller; drop ties.
Apply the sign test to the + and − signs (Binomial(n, 0.5)).

Decision rule

  • Upward trend: reject if the number of − signs is too small: p = P(K ≤ K⁻).
  • Downward trend: p = P(K ≤ K⁺).
  • Either trend: p = 2·P(K ≤ min(K⁺, K⁻)).
START THE MISSIONS
MISSION 1 OF 3

Trend in the queue

+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