STSTEER

Aggregation of Consumer Demand

Adding up demand across two consumer groups with different linear demand curves at a given price.

Question template

In a study on renewable energy adoption, a researcher is analyzing the demand for solar panels across different continents. They find that there are num consumers total consumers interested in purchasing solar panels. Among them, num a consumers in Asia have the demand function demand function a, and num b consumers in Africa have the demand function demand function b. Each demand function gives the quantity demanded by a single member of its group at price P; the answer is the total over both groups, rounded to two decimal places. What is the aggregated demand for solar panels at a price of price?

Use it

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