I already posted the same question on https://stackoverflow.com/questions/49298634/how-to-interpret-results-of-auto-arima-in-r but some one pointed to ask it on here. I would appreciate any relevant help.
Let I have a time series X and I used fit<-auto.arima() followed by fcast <- forecast(fit, h=100). When I do print(summary(fcast)), I get a result having number of variables (snapshot of an example is attached).
- What is the meaning of each variable (specially, highlighted in red boxes)? If someone can explain in simple terms, it would be great.
- What is the meaning of getting
-InfandInfforMPEandMAPErespectively? - What is meaning of
Lo 80,Hi 80,Lo 95, andHi 95? Can I say that it is 80% likely to have actual value equal toForecast+Lo 80+Hi 80?

fcast <- forecast(fit, h=100)forecasts next 100 values based onfit. How can I get forecasted values? Doesfcast$fittedgives the forecast? In my case,fcast$fittedproduces multiple instances of negative values. – Jitendra Mar 20 '18 at 06:56fcast$fittedwill give you the in-sample fits. To get the mean point forecasts, usefcast$mean. See?forecast. If you have nonsensical negative values, that is a separate problem. We have some related questions here. – Stephan Kolassa Mar 20 '18 at 07:10fcast$meangives the mean point forecasts. How can I compute errors in future forecasts? Is it difference betweenfcast$meanandactual? If possible can you give me an expression that can computeRMSE. For instance, some thing likesqrt(mean((fcast$mean - fcast$x)^2))– Jitendra Mar 21 '18 at 19:15accuracy()function. Look at?accuracy. – Stephan Kolassa Mar 21 '18 at 20:50forecastsand we can compute the errors by comparing theforecastswithactuals. Now I want to understand theauto.arima's mechanism of computing error in forecast. Is itfcast$fitted - fcast$xorfcast$mean - fcast$x. – Jitendra Mar 22 '18 at 16:35fcast$meanand compare it with whatever object holds your actuals. The output offorecast.Arima()will not contain any holdout actuals (how should it?). Have you looked at the help page foraccuracy(), specifically the examples? – Stephan Kolassa Mar 22 '18 at 16:39set.seed(159357025)
data_rand = round(runif(100,10,100), 0) fit <- auto.arima(data_rand[1:50]) fcast <- forecast(fit, h=50)
plot(fcast) lines(data_rand)
accuracy(fit)
– Jitendra Mar 22 '18 at 17:38an error is triggered. i.e.Error in mean(actual != predicted) : argument "predicted" is missing, with no default`accuracy(fit)gives me the training set accuracy, as it should. I am running R 3.4.4 and forecast 8.2. If your error persists after updating (if necessary), I'd recommend you ask on StackOverflow in the R tag. – Stephan Kolassa Mar 22 '18 at 19:50forecast::accuracywas masked byMetrics::accuracy. I made changes accordingly and now its working. Thanks for help. – Jitendra Mar 23 '18 at 05:07MPEandMAPEareInfbecasue of zeros in actual values. Is it a good idea to rescale theactualvalues to some positive scale e.g. (1, 5)? – Jitendra Mar 23 '18 at 05:45