Python out of sample forecasting ARIMA predict()

[亡魂溺海] 提交于 2019-12-13 07:17:09

问题


Does statsmodels.api.tsa.ARIMA(mylist, (p,d,q)).fit().predict(start, end) only work for d=0?...

myList is a list of 72 decimals all >0, p=2, d=1, q=1, start=72, end=12 and the majority of the forecasts are negative decimal numbers which leads me to believe statsmodels doesn't automatically undifference after performing the forecasts.


回答1:


See the typ keyword of predict in the docstring. It determines whether you get predictions in terms of differences or levels. The default is 'linear' differences not levels. As an aside, your start should not be greater than your end. If this works, then this may NOT be giving you what you want and should probably be reported as a bug.



来源:https://stackoverflow.com/questions/27258465/python-out-of-sample-forecasting-arima-predict

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!