STSTEER

Price Elasticity of Demand

Computing the price elasticity of demand from a price change and the resulting quantity change.

Question template

I noticed that when I lowered the price of my online investment course from start price to end price, the number of enrollments increased from start quantity to end quantity. Compute the percentage changes relative to the initial price and quantity (not the midpoint formula). How can I calculate the price elasticity of demand for my course?

Use it

from datasets import load_dataset
ds = load_dataset("narunraman/steer_me", "price_elasticity")