1. Learn
  2. /
  3. Courses
  4. /
  5. ARIMA Models in Python

Exercise

Plotting one-step-ahead predictions

Now that you have your predictions on the Amazon stock, you should plot these predictions to see how you've done.

You made predictions over the latest 30 days of data available, always forecasting just one day ahead. By evaluating these predictions you can judge how the model performs in making predictions for just the next day, where you don't know the answer.

The lower_limits, upper_limits and amazon DataFrames as well as your mean prediction mean_forecast that you created in the last exercise are available in your environment.

Instructions

100 XP
  • Plot the amazon data, using the amazon.index as the x coordinates.
  • Plot the mean_forecast prediction similarly, using mean_forecast.index as the x-coordinates.
  • Plot a shaded area between lower_limits and upper_limits of your confidence interval. Use the index of lower_limits as the x coordinates.