【发布时间】:2015-07-18 10:34:32
【问题描述】:
我有一个包含季节性成分的时间序列。我为 statsmodels ARIMA 安装了
model = tsa.arima_model.ARIMA(data, (8,1,0)).fit()
例如。现在,我知道 ARIMA 会区分我的数据。如何比较来自
的结果prediction = model.predict()
fig, ax = plt.subplots()
data.plot()
prediction.plot()
由于数据将是原始数据并且预测有所不同,因此平均值在 0 左右,与数据的平均值不同?
【问题讨论】:
-
查看预测文档字符串和
typ关键字。 -
谢谢。现在看起来有点明显,但是当我阅读文档时,它并不是那么简单。也许在文档上提供更多指示会有所帮助?
-
另外,这个问题似乎已经出现在邮件列表中:groups.google.com/forum/?hl=en#!topic/pystatsmodels/QIhYf9XCyd8
标签: python statsmodels