ComeçarComece de graça

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 exercício faz parte do curso

ARIMA Models in R

Ver curso

Instruções do exercício

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

Exercício interativo prático

Experimente este exercício completando este código de exemplo.

# Plot unemp 


# Difference your data and plot it
d_unemp <- 


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

Editar e executar o código