LoslegenKostenlos loslegen

Data analysis - unemployment I

In the video, we fit a seasonal ARIMA model to the log of the monthly AirPassengers data set. You will now start to fit a seasonal ARIMA model to the monthly US unemployment data, unemp, from the astsa package.

The first thing to do is to plot the data, notice the trend and the seasonal persistence. Then look at the detrended data and remove the seasonal persistence. After that, the fully differenced data should look stationary.

The astsa package has been pre-loaded for you.

Diese Übung ist Teil des Kurses

ARIMA Models in R

Kurs anzeigen

Anleitung zur Übung

  • Plot the monthly US unemployment (unemp) time series from astsa. Note trend and seasonality.
  • Detrend and plot the data. Save this as d_unemp. Notice the seasonal persistence.
  • Seasonally difference the detrended series and save this as dd_unemp. Plot this new data and notice that it looks stationary now.

Interaktive Übung

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

# Plot unemp 


# Difference your data and plot it
d_unemp <- 


# Seasonally difference d_unemp and plot it
dd_unemp <- diff(___, lag = 12)  

Code bearbeiten und ausführen