Cox-Stuart Trend Test
The Cox-Stuart trend test is a sign test that pairs each observation in the first half of a series with its counterpart in the second half to detect a monotone trend.
콕스-스튜어트 추세 검정은 시계열 앞쪽 절반의 각 관측을 뒤쪽 절반의 대응 관측과 짝지어 부호를 세는 방식으로 단조 추세를 검정합니다.
Is there an upward trend in my yearly counts, without assuming normality?
정규성을 가정하지 않고 연도별 건수에 증가 추세가 있는지 확인하고 싶어요.
Split the ordered series into halves, pair the i-th value of each half and count how many pairs increase. Under no trend increases and decreases are equally likely, so an exact binomial test gives the p value.
When to use Cox-Stuart Trend Test
- You want a quick distribution-free test for a monotone trend.
- Outliers or skewness make parametric trend tests unreliable.
- The series is short and you want an exact p value.
When to use something else
- You need more power against a monotone trend; use the Mann-Kendall test.
- The series has strong seasonality; use the seasonal Mann-Kendall test.
Assumptions and requirements
- Pairs are independent of each other.
- Observations are ordered in time.
- Tied pairs carry no information and are dropped.
What the analysis reports
- Counts of increasing, decreasing and tied pairs
- Exact binomial p value
- Median pairwise slope
How to report it
The Cox-Stuart test on [value] pairs found [value] increases and [value] decreases (exact binomial p = [value]); the median pairwise slope was [value] per [unit].
Related methods
- Mann-Kendall Trend Test
- Sign Test
- Theil-Sen Estimator
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with SciPy and direct computations (formulas, enumeration or simulation).
독립 계산. SciPy·직접 계산(식·열거·모의실험) 대조 참조 시험 1건 통과.
Tolerances are relative differences (absolute differences for values near zero). R comparisons and reference tests are re-run before each release of the analysis engine.
허용오차는 상대 차이입니다(0 근처 값은 절대 차이). R 대조와 참조 시험은 분석 엔진을 배포할 때마다 다시 돌립니다.
Run Cox-Stuart Trend Test on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable
- Price
- 150 credits for one analysis up to 10,000 rows (complexity level 1); larger or wider data costs more. Optional methodologist review: 900 credits.
- Checking
- Compared with independent computations
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.