Ruby Autoregressive Model