Refactored code for oil,gold autoregressive, multiple linear regressive and arma models