Fonction Python Moving Regression Definition