Hello,
In the online text books (2nd and 3rd editions) there is a section devoted to the test and train approach to determining model accuracy. I am following the 3rd edition and would like to extract confidence intervals on the from the one-step forecast done on the test set. I am unable to share data because this is for work. However I am able to obtain the fitted values with the code below
fit%>%####ie the model fitted on the train data
refit(test)%>%###ie apply the model to the test data or one step forecast on the test data
fitted()###give the fitted values
The code above returns a tsible object with .model, Date, and .fitted parameters.
But shouldn't there be prediction intervals as well?
Am I totally off here and there are no prediction intervals for 1-step forecasts?
The one step forecast variance is simply the residual variance, so it is easy to construct prediction intervals if you need them. Here is an example where 95% prediction intervals are computed assuming Gaussian residuals.