Session Ready
Exercise

Compute the ACF for Several MA Time Series

Unlike an AR(1), an MA(1) model has no autocorrelation beyond lag 1, an MA(2) model has no autocorrelation beyond lag 2, etc. The lag-1 autocorrelation for an MA(1) model is not \(\small \theta\), but rather \(\small \theta / (1+\theta^2)\). For example, if the MA parameter, \(\small \theta\), is = +0.9, the first-lag autocorrelation will be \(\small 0.9/(1+(0.9)^2)=0.497\), and the autocorrelation at all other lags will be zero. If the MA parameter, \(\small \theta\), is -0.9, the first-lag autocorrelation will be \(\small -0.9/(1+(-0.9)^2)=-0.497\).

You will verify these autocorrelation functions for the three time series you generated in the last exercise.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • simulated_data_1 is the first simulated time series with an MA parameter of \(\small \theta=-0.9\).
  • Compute the autocorrelation function of simulated_data_1 using the plot_acf function with 20 lags.