I want to know how arima works well by using difference between predict value and real value. So I used predict()(the below one) but it is different from the value of plot_predict()(above one). (please look how it is different) enter image description here I think plot_predict values are what I want, since it is closer to the real values but what I can get from predict() is so low. Please help me to find the answer. Appreciate for your help.
For the first one, I used
from statsmodels.tsa.arima_model import ARIMA
model = ARIMA(sales, order=(0,1,1))
model_fit = model.fit(trend='nc',full_output=True, disp=1)
print(model_fit.summary())
model_fit.plot_predict(dynamic=False)
for the below one, I used
predict=model_fit.predict()
plt.plot(predict)