简体   繁体   English

线性回归模型的平稳性检验

[英]Stationarity Test on Linear Regression Model

I am trying to test a linear regression model built using OLS method for co-integration/model misspecification/stationary. 我正在尝试测试使用OLS方法构建的线性回归模型,以进行协整/模型错误指定/平稳。

I understand there are certain conditions that have to be satisfied - 我了解必须满足某些条件-

If the independent and dependent variables are all stationary, then the linear regression model (OLS assumption) has been satisfied. 如果自变量和因变量都是平稳的,则满足线性回归模型(OLS假设)。 However, if both the dependent variable and at least one of the independent variables are non-stationary, then the stationarity of the residuals is to be tested. 但是,如果因变量和至少一个自变量都不是平稳的,则将测试残差的平稳性。 If the residuals are stationary, then model is co-integrated. 如果残差是固定的,则将模型进行协整。 For all other stationarity results, the models are concluded as misspecified. 对于所有其他平稳性结果,模型得出的结论是错误指定的。

I also understand that I will have to use the following syntax 我也了解我将必须使用以下语法

statsmodels.tsa.stattools.adfuller

However, I am not very sure for 'regression' input - which one should be used in this case based on documentation provided. 但是,我不确定“回归”输入-在这种情况下,应根据提供的文档使用哪个输入。

regression{‘c’,’ct’,’ctt’,’nc’}
Constant and trend order to include in regression

‘c’ : constant only (default)

‘ct’ : constant and trend

‘ctt’ : constant, and linear and quadratic trend

‘nc’ : no constant, no trend

These are various versions of the Augmented Dickey-Fuller Test or Dickey-Fuller Test in general 这些通常是增强Dickey-Fuller测试或Dickey-Fuller测试的各种版本

  1. ADF with drift 带漂移的ADF
  2. ADF with drift + deterministic trend 具有漂移+确定趋势的ADF
  3. ADF with no drift or trend ADF没有漂移或趋势

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM