BaşlayınÜcretsiz Başlayın

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.

Bu egzersiz

ARIMA Models in R

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Plot unemp 


# Difference your data and plot it
d_unemp <- 


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

Kodu Düzenle ve Çalıştır