Numerical Method Using Python For Regression