Producer Surplus
Computing producer surplus from a linear supply (marginal cost) curve at a given price.
Question template
You are a baker selling loaves of bread. Your marginal cost for each loaf is described by the following supply curve, s curve. What is your producer surplus if you set a price of price?
Use it
from datasets import load_dataset
ds = load_dataset("narunraman/steer_me", "producer_surplus")curl "https://steer-benchmark.cs.ubc.ca/api/sample?element_name=producer_surplus&n=5&seed=42"
See the Reference for the parameters.