Harvey-Collier Test for Linearity
The Harvey-Collier test checks whether a linear regression has the right functional form. Observations are ordered, usually by one regressor, and recursive residuals are computed by predicting each new observation from a regression fitted to the earlier ones. If the relation is linear these residuals average zero; a curved relation makes them drift systematically, which a t test detects.
하비-콜리어 검정은 선형 회귀의 함수 형태가 맞는지 확인합니다. 관측값을 대개 한 설명변수 순서로 정렬하고, 앞선 관측값으로 적합한 회귀로 다음 관측값을 예측하여 재귀 잔차를 구합니다. 관계가 선형이면 재귀 잔차의 평균이 0이고, 곡선 관계면 한쪽으로 치우치며 이를 t 검정으로 찾아냅니다.
Is the relation between my outcome and a predictor really linear, or does the straight line miss a curve?
결과와 예측변수의 관계가 정말 직선인지, 아니면 곡선을 놓치고 있는지 어떻게 확인합니까?
The method returns the t statistic, degrees of freedom and p-value, the mean and SD of the recursive residuals, a normality check of those residuals and a CUSUM plot.
When to use Harvey-Collier Test for Linearity
- You suspect curvature along one particular regressor.
- You want a simple t test of linearity after fitting OLS.
- Data have a natural order such as time or dose.
When to use something else
- You want a general test against omitted powers of the fit: use Ramsey RESET Test for Functional Form
- You want to see the shape of the misfit: use Regression Diagnostic Plots (Added-Variable, Component-Plus-Residual, CERES)
- Error variance is the concern: use Heteroscedasticity Test Battery (Breusch-Pagan, Koenker, White, Goldfeld-Quandt, Glejser, Harvey, Park)
Assumptions and requirements
- Normal, homoscedastic, independent errors
- The ordering variable is chosen before testing
What the analysis reports
- t statistic, df and p-value
- Mean and SD of recursive residuals
- Normality check
- CUSUM plot
How to report it
The Harvey-Collier test with recursive residuals ordered by [value] gave t([value]) = [value], p = [value].
Related methods
- Ramsey RESET Test for Functional Form
- Multiple Linear Regression
- Regression Diagnostic Plots (Added-Variable, Component-Plus-Residual, CERES)
How this method is validated
이 방법의 검증 근거
- Independent computation. 1 reference test compares the results with statsmodels.
독립 계산. statsmodels 대조 참조 시험 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 Harvey-Collier Test for Linearity on Quorant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- 250 credits for one analysis up to 10,000 rows (complexity level 2); larger or wider data costs more. Optional methodologist review: 1200 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.