I compared the auto.arima
forecast checkts
below to the rolling forecast fc
and noticed that every of the error measures is lower for fc
.
Will rolling forecasts have lower errors than a forecasted auto.arima
model in general?
Why might that happen?
The data to run the code below is in the "fpp" package. Code:
library("fpp")
library("forecast")
##Multi-step forecasts without re-estimation
h <- 5
train <- window(hsales,end=1989.99)
test <- window(hsales,start=1990)
n <- length(test) - h + 1
fit <- auto.arima(train)
fc <- ts(numeric(n), start=1990+(h-1)/12, freq=12)
for(i in 1:n)
{
x <- window(hsales, end=1989.99 + (i-1)/12)
refit <- Arima(x, model=fit)
fc[i] <- forecast(refit, h=h)$mean[h]
}
checkts<-forecast(fit,h=71)
accuracy(checkts$mean,test)
accuracy(fc,test) ##All Error measures are lower than Checkts$mean