Understanding Auto regression in machine learning