Price Elasticity, Price Optimization, Price Analysis, Python, Regression.
2889.2504 + (-6.6389)*Price. coefficient_pvalue = result.f_pvalue intercept,slope = result.params #Linear Price elasticity Formula price_elasticity = round((slope)*(mean_price/mean_quantity),2) print('Linear Price Elasticity {} with pvalue {}'\ .format(price_elasticity, coefficient_pvalue))