假设我有一个时间序列我想使用以下形式的 ARIMA(1,1,0) 模型进行拟合:
这可以重写为:
最后一个方程描述了一个 AR(2) 模型,其系数为和。我认识到,根据,这个 AR(2) 模型可能是非平稳的。但是,如果我一开始就采用差异,那么我正在建模的系列不应该是静止的。
我知道如果模型是非平稳的,应该使用差异。但是,如果我使用 AR(2) 模型与 ARIMA(1,1,0) 模型,结果会有什么不同呢?我假设(如 R 所暗示的那样)它存在收敛问题。但是,当我要求 R 执行拟合时,它会同时执行它们,并且系数(大部分)与我上面的观察结果一致。不过,预测肯定是不同的。
如果有人可以对此有所了解,或者为我指出一个好的参考,我将不胜感激。
这是我用来生成这两个模型的 R 代码。
> set.seed(2)
> x <- arima.sim(n = 1000, model=list(order=c(1,1,0), ar=c(0.3)))
> plot(x)
> arima(x, order=c(1,1,0))
Call:
arima(x = x, order = c(1, 1, 0))
Coefficients:
ar1
0.3291
s.e. 0.0298
sigma^2 estimated as 1.03: log likelihood = -1433.91, aic = 2871.81
> arima(x, order=c(2,0,0))
Call:
arima(x = x, order = c(2, 0, 0))
Coefficients:
ar1 ar2 intercept
1.3290 -0.3294 50.9803
s.e. 0.0298 0.0299 35.9741
sigma^2 estimated as 1.03: log likelihood = -1438.93, aic = 2885.86
Warning messages:
1: In log(s2) : NaNs produced
2: In log(s2) : NaNs produced
3: In log(s2) : NaNs produced
4: In arima(x, order = c(2, 0, 0)) :
possible convergence problem: optim gave code = 1