Solution

ID: past-exam-of-the-mathematics-course-of-the-university-of-cambridge/2021/iii/paper-218/6/e/solution

The first line searches candidate ARIMA models and selects the one with smallest Akaike information criterion. The second constructs a one-step-ahead point forecast and nominal 95-percent prediction interval from the fitted values of the selected model.

New to topics? Read the docs here!