Python 使用ARIMA 模型,做最后残差分析时报错

麻烦各位看看 :

这是源程序
model_bic = ARIMA(stock_train, order=(1, 1, 0),freq='W-MON')
model_results_bic=model_bic.fit()

model_results_aic.plot_diagnostics(figsize=(16, 12))

结果
AttributeError: 'ARIMAResults' object has no attribute 'plot_diagnostics'

model_request_bic.plot_diagonstics(figsize=(16, 12))
如果不是这样的话,还麻烦给出完整的代码。

pred = result.predict('2017-09', dynamic=False)  #带入预测时间区域
pred_ci = pred.conf_int()

报错 'ARIMAResults' object has no attribute 'get_prediction' 这是为啥

季节ARIMA模型SARIMAX才能用plot_diagonstics,ARIMA模型是不可以的