LoslegenKostenlos loslegen

Forecasting global temperatures

Now you can try forecasting real data.

Here, you will forecast the annual global temperature deviations globtemp to 2050. Recall that in previous exercises, you fit an ARIMA(0,1,2) model to the data. You will refit the model to confirm it, and then forecast the series 35 years into the future.

The astsa package is preloaded and the data are plotted.

Diese Übung ist Teil des Kurses

ARIMA Models in R

Kurs anzeigen

Anleitung zur Übung

  • Fit an ARIMA(0,1,2) model to the data using sarima(). Based on your previous analysis this was the best model for the globtemp data. Recheck the parameter significance in the t-table output and check the residuals for any departures from the model assumptions.
  • Use sarima.for() to forceast your global temperature data 35 years ahead to 2050 using the ARIMA(0,1,2) fit.

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Fit an ARIMA(0,1,2) to globtemp and check the fit


# Forecast data 35 years into the future
 
Code bearbeiten und ausführen