Sub topic 1
What Buyers Are Willing to Pay
Prerequisites
This chapter assumes you can read a supply and demand graph, understand what market equilibrium means, and read a linear equation of the form P = a - bQ, where P is price and Q is quantity.
What buyers are willing to pay
Every buyer has a maximum price they will pay for a good. Economists call this the willingness to pay (WTP). A buyer who values a concert ticket at $80 will buy at $60 but not at $90.
WTP differs from person to person. Some buyers value a good highly, and others value it little. Ranking all buyers from highest to lowest WTP gives the market demand.
The demand curve as a ladder of willingness to pay
Sort buyers by WTP, from highest to lowest, and plot each one as a step. The result is a downward-sloping demand curve. At any quantity Q, the demand price tells you the WTP of the buyer who would take the last unit.
For a linear demand curve, P = 100 - 2Q. The following code finds the quantity demanded at a given price.
def quantity_demanded(price, a=100, b=2):
return (a - price) / b
print(quantity_demanded(60)) # 20.0Seller cost and the supply curve
Sellers have a minimum price they must receive, set by their cost of producing one more unit. Ranking sellers from lowest to highest cost gives the supply curve, which slopes upward.
For the linear supply curve P = 10 + Q, the seller of the 30th unit needs at least $40.
Equilibrium price and quantity
The market settles where buyers' WTP equals sellers' minimum price. This point is the equilibrium. Setting the two equations equal gives the equilibrium quantity, then substituting it back gives the price.
a, b = 100, 2 # demand: P = a - b*Q
c, d = 10, 1 # supply: P = c + d*Q
q_eq = (a - c) / (b + d)
p_eq = c + d * q_eq
print(q_eq, p_eq) # 30.0 40.0Exercise
On the demand curve P = 100 - 2Q, how many units do buyers want at a price of 60?
Show answer
Set 60 = 100 - 2Q, so Q = 20.