Python Linear Regression Statistics Formula