Fonction Python Moving Regression Equation