3.11.16.1.4. statsmodels.stats.outliers_influence.reset_ramsey

statsmodels.stats.outliers_influence.reset_ramsey(res, degree=5)[source]

Ramsey’s RESET specification test for linear models

This is a general specification test, for additional non-linear effects in a model.

Notes

The test fits an auxiliary OLS regression where the design matrix, exog, is augmented by powers 2 to degree of the fitted values. Then it performs an F-test whether these additional terms are significant.

If the p-value of the f-test is below a threshold, e.g. 0.1, then this indicates that there might be additional non-linear effects in the model and that the linear model is mis-specified.

References

http://en.wikipedia.org/wiki/Ramsey_RESET_test