Time Series - AR

PACF plots for the daily log returns

Two approaches to estiamte the AR model

Yule-Walker

First, apply the Yule-Walker equations to estimate the AR coefficients. The method returns the coefficients as well as the sigma of the residuals. By default, this method will remove the mean beforeing fitting, and there is no constant term.

Reference: https://www.statsmodels.org/devel/generated/statsmodels.regression.linear_model.yule_walker.html#statsmodels.regression.linear_model.yule_walker

$$ \widehat{\phi}=\mathbf{R}^{-1} \mathbf{r} $$

The method returns the $\widehat{\phi}$, not $\mathbf{R}$, though variable is called so. The $\mathbf{R}$ and $\mathbf{r}$ are estimated by Yule-Walker.

Least Squares

Then, apply the AutoReg method (least square estimates). The coefficients obtained are very close, except for the second one (close to zero, trivial). Also, the sigmas from both residuals are close

Reference: https://www.statsmodels.org/devel/generated/statsmodels.tsa.ar_model.AutoReg.html#statsmodels.tsa.ar_model.AutoReg

Predictions

The predictions using least squares are relatively easy.

Comments before predicting by Yule-Walker

Load another predictions on the same data set that we have obtained before, and compare the results

Comments

  1. The predictions from two AR approaches are almost the same
  2. The AR models have lower MSE than our linear prediction in Problem 2e