ComenzarEmpieza gratis

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.

Este ejercicio forma parte del curso

ARIMA Models in R

Ver curso

Instrucciones del ejercicio

  • 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.

Ejercicio interactivo práctico

Prueba este ejercicio completando el código de muestra.

# Plot unemp 


# Difference your data and plot it
d_unemp <- 


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

Editar y ejecutar código