Ramsey RESET Test
Ramsey RESET Test
Overview
Definition
The Ramsey Regression Equation Specification Error Test (RESET) determines whether a linear regression model has been incorrectly specified. Specifically, it tests for omitted variables or incorrect functional forms (e.g., non-linear relationships missing).
1. Procedure
- Estimate the OLS model:
. - Calculate the fitted values:
. - Create auxiliary regression: Add powers of fitted values (
) as new predictors to the original model. - Test Significance: Test if
using an F-test.
2. Interpretation
- Null Hypothesis (
): The model is correctly specified. - Alternative (
): The model is misspecified.
Significant Result: Indicates that non-linear combinations of the predictors help explain the response, suggesting that terms (like squares or interactions) are missing from the original model.
3. Python Implementation Example
import statsmodels.stats.diagnostic as dg
# Results: [F-Stat, p-value, df_num, df_denom]
reset = dg.linear_reset(model, power=2, test_type='fitted')
print(f"RESET p-value: {reset.pvalue:.4f}")
4. Related Concepts
- Multiple Linear Regression - Model being tested.
- Log Transformations - Potential fix for non-linearity.