shubham gupta
shubham gupta

Reputation: 21

Difference between arima.predict() and arima.forecast()

What is difference between arima.predict() and arima.forecast().

Which function should use for forecasting time series in python?

Upvotes: 1

Views: 3293

Answers (1)

Hari Prince
Hari Prince

Reputation: 11

They will give you the same answers. But the combination of Arima (not arima) and forecast from the forecast package are enhanced versions with additional functionality.

Arima calls stats::arima for the estimation, but stores more information in the returned object. It also allows some additional model functionality such as including a drift term in a model with a unit root.

forecast calls stats::predict to generate the forecasts. It will automatically handle the drift term from Arima. It returns a forecast object (rather than a simple list) which is useful for plotting, displaying, summarizing and analysing the results.

Upvotes: 1

Related Questions