AR1 function

Autoregressive model of first order