我有一个时间序列,我正在尝试使用 Python 的 statsmodels ARIMA api 进行建模。当我应用以下内容时:
from statsmodels.tsa.arima_model import ARIMA
model = ARIMA(data['Sales difference'].dropna(), order=(2, 1, 2))
results_AR = model.fit(disp=-1)
我收到以下错误:
ValueError: The computed initial AR coefficients are not stationary
You should induce stationarity, choose a different model order, or you can
pass your own start_params.
但我已经区分了数据:
data['Sales'] = data['Sales'] - data['Sales'].shift()
我还能做些什么来诱导平稳性?
ARIMA api 运行什么测试来确定数据不是静止的?