Price Elasticity, Price Optimization, Price Analysis, Python, Regression.
X = add_constant(x_value) model = sm.OLS(y_value, X) result = model.fit() print(result.summary()) The small P values (0.000) indicate that we can reject the null hypothesis that Price does not affect Quantity. A low R-squared (0.049) indicates that our model cannot explain a lot of the response