Sub topic 4
From the law to a demand schedule
The law of demand says that when the price of a good rises and nothing else changes, buyers want less of it. That statement gives a direction but no numbers. A demand schedule adds the numbers by listing, for several prices, how much buyers would want at each one. This chapter covers how to read, build, and check a schedule. The next chapter draws it as a curve.
This chapter assumes you know what quantity demanded means, what ceteris paribus (all else equal) means, and how to state the law of demand. It also assumes you can read a table and evaluate a simple linear equation.
What a demand schedule is
A demand schedule is a table with two columns. One column lists prices and the other lists the quantity demanded at each price. Each row answers a "what if" question: if the price were this, how much would buyers want to buy?
Here is a schedule for a single buyer, Maya, who buys coffee beans by the bag over one month.
| Price per bag ($) | Quantity demanded (bags per month) |
|---|---|
| 6 | 8 |
| 8 | 6 |
| 10 | 4 |
| 12 | 2 |
| 14 | 0 |
Read the rows independently. The row "$10, 4 bags" does not mean the price was $10 last week and became $12 this week. It says that if the price were $10, with everything else fixed, Maya would want 4 bags. The five rows are five hypothetical situations placed side by side.
The schedule is where the law of demand shows up in numbers. As you go down the price column, the quantity column falls. If it did not, the schedule would contradict the law.
What every schedule must specify
A schedule is only meaningful if you know what it describes. Four details need to be fixed:
- The good. "Coffee beans" is vague. A 1 kg bag of medium roast is a specific good with a specific unit.
- The buyers. A schedule can describe one person, one household, or a whole market. The numbers in each case are very different.
- The time period. Quantity demanded is a flow, an amount per period. "4 bags" is incomplete. "4 bags per month" is a complete statement. If you change the period from a month to a week, the quantities change even though nothing about behavior changed.
- The conditions held constant. This is the ceteris paribus part. Income, the prices of related goods, tastes, expectations, and the number of buyers are all fixed at some level.
The last item is the one people forget. A schedule is not a fact about the good by itself. It is a fact about the good given a particular set of background conditions. Change the background and you get a different schedule.
Generating a schedule from a rule
If you know a demand function, you can produce a schedule by evaluating it at chosen prices. A later chapter covers demand functions in detail. For now, take a simple linear rule: quantity demanded equals 100 minus 2 times the price, and never below zero.
def quantity_demanded(price, a=100, b=2):
"""Linear demand: Q = a - b * P, never below zero."""
return max(a - b * price, 0)
print("Price Quantity")
for p in range(0, 51, 10):
print(f"{p:>5} {quantity_demanded(p):>8}")
# Output:
# Price Quantity
# 0 100
# 10 80
# 20 60
# 30 40
# 40 20
# 50 0Three features of this output are worth noticing.
- Quantity falls by 20 for every $10 price increase. That steady drop comes from the rule being linear. Real schedules need not fall at a constant rate.
- At a price of 0, quantity is 100. This is the amount buyers would take if the good were free. It is the point where the quantity is largest.
- At a price of 50, quantity reaches 0. A price at or above this level shuts demand off entirely. This price is often called the choke price. The
max(..., 0)in the code is what stops the function from returning negative quantities at prices above 50.
The max call encodes a real constraint. Quantity demanded cannot be negative. A buyer who will not pay a price buys nothing. The buyer does not sell the good back to the market.
The same idea in a diagram
The process for building a schedule is the same whether the numbers come from a formula, a survey, or an experiment.
The order matters. You fix the conditions before you pick prices, because changing the conditions later would give you a different schedule and you could not compare the rows.
Checking that a schedule obeys the law
If you receive a schedule from a survey or a dataset, you can check it against the law of demand. As price rises down the table, quantity demanded should not rise. The following code does this check.
def obeys_law(schedule):
"""True if quantity never rises as price rises."""
prices = sorted(schedule)
quantities = [schedule[p] for p in prices]
return all(q1 >= q2 for q1, q2 in zip(quantities, quantities[1:]))
good = {2: 90, 4: 70, 6: 55, 8: 35, 10: 20}
suspect = {2: 90, 4: 70, 6: 75, 8: 35, 10: 20}
print(obeys_law(good)) # True
print(obeys_law(suspect)) # FalseThe check uses >= and not >. A schedule where quantity stays the same across two prices does not contradict the law. It only says that buyers did not respond over that range. The law as usually stated allows flat stretches, and what it rules out is a rise in quantity.
When a schedule fails the check, do not assume the law is wrong. Look first for a measurement problem. The usual cause is that something else changed between the observations, such as a rise in income or a holiday that raised interest in the good. That would break the ceteris paribus condition. The next chapters on shifts return to this point.
Reading between and beyond the rows
A schedule lists only some prices. Buyers also face prices that are not in the table. To estimate quantity at an unlisted price, you can interpolate, which means assuming a straight line between the two nearest rows.
def interpolate(schedule, price):
"""Linear estimate between the two nearest listed prices."""
prices = sorted(schedule)
if price < prices[0] or price > prices[-1]:
raise ValueError("price is outside the schedule")
for lo, hi in zip(prices, prices[1:]):
if lo <= price <= hi:
share = (price - lo) / (hi - lo)
return schedule[lo] + share * (schedule[hi] - schedule[lo])
good = {2: 90, 4: 70, 6: 55, 8: 35, 10: 20}
print(interpolate(good, 5)) # 62.5
print(interpolate(good, 6)) # 55.0At a price of 5, the estimate lies halfway between 70 at price 4 and 55 at price 6, which gives 62.5.
The function refuses to answer for prices outside the table. That is deliberate. Estimating inside the listed range is interpolation, and it is usually reasonable. Estimating outside the range is extrapolation, and it is much riskier. Buyers may behave very differently at prices far from anything you observed. A schedule tells you nothing about a price of $100 if its highest row is $10.
Also keep in mind that quantity can be fractional in a schedule. A figure like 62.5 bags per month is sensible as an average over many months or many people, even though no one buys half a bag at a time. For goods sold in whole units, the table is often rounded.
Individual and market schedules
Maya's schedule above describes one buyer. A market has many buyers, and the market schedule lists the total quantity demanded by all of them at each price. You get it by adding the individual quantities row by row. The chapter on market demand covers this in detail. The practical point for now is that you must say which schedule you mean. A statement such as "demand at $10 is 4" is wrong if 4 is Maya's quantity and the reader assumes it is the whole market's.
A market schedule built from many buyers is usually smoother than any one person's. One buyer might drop from 4 bags to 0 bags between two prices. When thousands of buyers each have their own cutoff, the total falls gradually, because different people stop buying at different prices.
Common errors
| Error | Why it is wrong | Fix |
|---|---|---|
| Reading rows as a sequence in time | Each row is a separate hypothetical at one fixed set of conditions | Treat rows as "if the price were..." statements |
| Leaving out the time period | Quantity demanded is a rate, and the number depends on the period | Always write "per week", "per month", and so on |
| Mixing schedules for different conditions in one table | Rows would no longer be comparable | Build one table per set of background conditions |
| Reading a rise in quantity as a violation of the law | The cause is often a change in income, tastes, or another condition | Check whether ceteris paribus held |
| Extrapolating far beyond the listed prices | Buyer behavior at untested prices is unknown | Restrict estimates to the listed range |
| Confusing quantity demanded with quantity sold | Sales also depend on supply and on whether the market clears | Treat the schedule as what buyers want, not what happens |
The last row deserves emphasis. A demand schedule records desired purchases at given prices. Whether those purchases happen depends on whether sellers will supply that amount at that price. Only the supply side, which comes later in the course, settles that.
Summary of the working model
- A demand schedule is a two-column table of prices and the quantities demanded at those prices.
- Each row is a separate hypothetical under the same fixed background conditions.
- A complete schedule names the good, the buyers, the time period, and the conditions held constant.
- Quantities fall, or at least do not rise, as price rises. A table that breaks this pattern should first be checked for a change in conditions.
- Interpolation within the listed prices is reasonable. Extrapolation beyond them is not.
Exercise
A student records the price of concert tickets and the number sold at one venue over four weeks: week 1 at $40 sold 500, week 2 at $50 sold 520, week 3 at $60 sold 540, week 4 at $70 sold 560. The student says this table disproves the law of demand. Give two reasons why it may not be a demand schedule at all.
Show answer
First, the rows come from different weeks, so they are observations over time. They are not hypotheticals at one fixed set of conditions. Income, the popularity of the performers, or the season may have changed from week to week, which breaks ceteris paribus. Second, the figures are quantities sold, not quantities demanded. If the venue has a limited number of seats or raised prices because demand was rising, then sales reflect both buyers and sellers. A shift in demand to the right could explain rising prices and rising sales together without any contradiction of the law.
Exercise
Using the linear rule Q = 100 - 2P with quantity never below zero, find the quantity demanded at P = 15 and at P = 60. Then say what the second answer tells you about the choke price.
Show answer
At P = 15, Q = 100 - 2 * 15 = 70. At P = 60, the raw value is 100 - 120 = -20, which is negative, so quantity demanded is 0. The choke price is the lowest price at which quantity demanded reaches zero. Setting 100 - 2P = 0 gives P = 50, so every price of 50 or above gives a quantity of 0, and 60 is simply a price above the choke price.
Exercise
Given the schedule {2: 90, 4: 70, 6: 55, 8: 35, 10: 20}, estimate quantity demanded at a price of 9 by interpolation. Why would you not use the same method to estimate it at a price of 15?
Show answer
Price 9 lies between 8 (quantity 35) and 10 (quantity 20). It is halfway, so the estimate is 35 + 0.5 * (20 - 35) = 27.5. A price of 15 lies above the highest listed price of 10, so any figure would be extrapolation. The schedule contains no evidence on how buyers behave at that price, and the straight-line assumption may fail there.