Illustrative code to compute the covariance of the second order autoregression (AR2) model.
Useful links