https://github.com/nixtla logo
j

Jose Bordon

11/17/2022, 10:45 PM
I think this will be a beginner question, what does levels do in the forecast function
m

Max (Nixtla)

11/17/2022, 10:53 PM
The
predict
and
forecast
method takes two arguments: forecasts the next
h
(for horizon) and`level`. *
level
(list of floats): this optional parameter is used for probabilistic forecasting. Set the
level
(or confidence percentile) of your prediction interval. For example,
level=[90]
means that the model expects the real value to be inside that interval 90% of the times. The forecast object here is a new data frame that includes a column with the name of the model and the y hat values, as well as columns for the uncertainty intervals.
Please check this guide on Arima and Predictions Intervals and let us know if something doest not work.