Forecasting when there is trend
The method described in the previous page works well if there is no trend in the time series. If there is trend, we should remove it before using an AR(1) model. The steps for forecasting a future value are therefore...
(There are more efficient ways to do steps 1 and 2 together, but these are beyond the scope of an introductory course.)