Sub topic 1
Percentage changes and the midpoint method
Elasticity compares two percentage changes: how much a quantity moves, and how much the driver behind it moved. Income elasticity and cross-price elasticity both depend on these percentages. A small error in the percentage change carries straight into the elasticity, and the error can be large when the changes are big. This chapter sets up the calculation you will reuse in every later chapter.
Prerequisites
This chapter assumes you already know:
- What a demand curve is and what the law of demand says.
- How to compute a simple percentage change and a ratio.
- The basic idea of price elasticity of demand: a ratio of the percentage change in quantity demanded to the percentage change in price.
- Ceteris paribus reasoning, meaning you change one variable and hold the others fixed.
You do not need calculus or statistics. The short Python snippets use only the standard library, except for a numpy example in a later chapter.
The ordinary percentage change
The ordinary (or "simple") percentage change measures a change relative to the starting value:
percentage change = (new - old) / old × 100If a household's income rises from 40,000 to 44,000, the change is 4,000 and the base is 40,000. That is a 10% increase.
This formula treats the starting value as the reference point. That choice causes a problem when you compare two values and no direction is obviously "first".
The direction problem
Take a good whose quantity demanded goes from 100 to 120 units, then back from 120 to 100.
| Move | Change | Base | Simple percentage change |
|---|---|---|---|
| 100 to 120 | +20 | 100 | +20.00% |
| 120 to 100 | -20 | 120 | -16.67% |
The same pair of numbers gives +20% going up and -16.67% going down. The size of the percentage depends on which end you call the start.
For elasticity this matters because the ratio of two such percentages inherits the asymmetry. The elasticity between two points on the same demand curve would change depending on whether you read the data forward or backward in time. That is a flaw, because the relationship between the two points has not changed.
The midpoint method
The midpoint method (also called the arc method) uses the average of the old and new values as the base:
midpoint percentage change = (new - old) / ((new + old) / 2) × 100Apply it to the same pair of numbers:
| Move | Change | Base (average) | Midpoint percentage change |
|---|---|---|---|
| 100 to 120 | +20 | 110 | +18.18% |
| 120 to 100 | -20 | 110 | -18.18% |
The base is the same in both directions, so the two percentages have the same size and opposite signs. The result no longer depends on which value you treat as the start.
The midpoint elasticity formula
Combine the two midpoint percentages. Let x be the driver (income, or the price of another good) and q the quantity demanded of the good you are studying:
elasticity = [(q1 - q0) / ((q1 + q0) / 2)] / [(x1 - x0) / ((x1 + x0) / 2)]The factors of 1/2 in both denominators cancel, so you can also write:
elasticity = [(q1 - q0) / (q1 + q0)] / [(x1 - x0) / (x1 + x0)]The same formula serves three different elasticities. Only the meaning of x changes:
- Price elasticity of demand: x is the good's own price.
- Income elasticity of demand: x is consumer income.
- Cross-price elasticity of demand: x is the price of a different good.
The interpretation of the sign and size is what differs, and later chapters cover each one.
A first calculation
The two code examples in this tutorial use the same function. Here it is with the numbers from this chapter.
def midpoint_elasticity(x0, x1, q0, q1):
"""Elasticity of quantity q with respect to driver x (income or another good's price)."""
pct_q = (q1 - q0) / ((q1 + q0) / 2)
pct_x = (x1 - x0) / ((x1 + x0) / 2)
return pct_q / pct_x
# Income rises from 40,000 to 44,000; quantity demanded rises from 100 to 108.
income_e = midpoint_elasticity(40000, 44000, 100, 108)
print(round(income_e, 2)) # 0.81: normal good, necessity (between 0 and 1)
# Price of good B rises from 1.00 to 1.10; quantity demanded of good A falls from 200 to 190.
cross_e = midpoint_elasticity(1.00, 1.10, 200, 190)
print(round(cross_e, 2)) # -0.54: negative sign, so A and B are complementsYou do not need to interpret the 0.81 or the -0.54 yet. The point here is the mechanics. For the income example:
- Percentage change in income: 4,000 / 42,000 = 9.52%.
- Percentage change in quantity: 8 / 104 = 7.69%.
- Ratio: 7.69 / 9.52 = 0.81.
For the cross-price example:
- Percentage change in the price of B: 0.10 / 1.05 = 9.52%.
- Percentage change in the quantity of A: -10 / 195 = -5.13%.
- Ratio: -5.13 / 9.52 = -0.54.
Keep the signs. Dropping the negative sign is a common mistake, and for cross-price elasticity the sign carries the main information.
Seeing the difference on a larger change
For small changes the two methods agree closely. For the income example above, the simple method gives 8% / 10% = 0.80, against 0.81 from the midpoint method. The gap grows with the size of the change.
Consider a price that rises from 10 to 20 while quantity falls from 100 to 60. The code below compares the methods in both directions.
def simple_pct(old, new):
return (new - old) / old
def midpoint_pct(old, new):
return (new - old) / ((new + old) / 2)
def simple_elasticity(x0, x1, q0, q1):
return simple_pct(q0, q1) / simple_pct(x0, x1)
def midpoint_elasticity(x0, x1, q0, q1):
return midpoint_pct(q0, q1) / midpoint_pct(x0, x1)
print(round(simple_pct(100, 120) * 100, 2)) # 20.0
print(round(simple_pct(120, 100) * 100, 2)) # -16.67
print(round(midpoint_pct(100, 120) * 100, 2)) # 18.18
print(round(midpoint_pct(120, 100) * 100, 2)) # -18.18
# Price rises 10 -> 20, quantity falls 100 -> 60, then the reverse path.
print(round(simple_elasticity(10, 20, 100, 60), 2)) # -0.4
print(round(simple_elasticity(20, 10, 60, 100), 2)) # -1.33
print(round(midpoint_elasticity(10, 20, 100, 60), 2)) # -0.75
print(round(midpoint_elasticity(20, 10, 60, 100), 2)) # -0.75The simple method gives -0.40 going up and -1.33 going down for the same two points. That is the difference between a demand that looks inelastic and one that looks elastic. The midpoint method gives -0.75 either way.
What the midpoint elasticity really measures
The midpoint elasticity is an arc elasticity. It describes the average responsiveness between two points, not the responsiveness at one exact point. If the underlying relationship is curved, the arc value differs a little from the value at either end.
This shapes how you should use it:
- Use it when you have two observed data points that may be far apart.
- Treat the result as an average over that interval.
- Do not apply it to values far outside the interval you observed.
When changes are very small, the arc elasticity approaches the point elasticity, which is the elasticity at one exact point. The two measures then agree for practical purposes.
Edge cases and common errors
Percentage points are not percentages
A change from a 20% budget share to a 25% budget share is 5 percentage points. It is a 25% relative increase (5 / 20, by the simple method). Elasticity uses relative percentage changes, not percentage-point differences. Mixing them up changes the answer by a large factor.
Zero and sign problems
The simple method cannot start from zero, because dividing by zero is undefined. The midpoint method can handle a move from 0 to 5, which gives +200%, but this is the upper limit of the midpoint percentage and says little about proportional response. If both values are zero, or if they sum to zero (for example, -5 and +5), the midpoint base is zero and the formula fails. Guard against it:
def midpoint_pct_checked(old, new):
base = (new + old) / 2
if base == 0:
raise ValueError("midpoint base is zero; percentage change is undefined")
return (new - old) / base
print(round(midpoint_pct_checked(0, 5) * 100, 1)) # 200.0Quantities and prices are normally positive, so these cases usually mean a data error. Check the inputs before blaming the formula.
A zero change in the driver
If x does not change (x1 equals x0), the denominator of the elasticity is zero and the elasticity is undefined. You need variation in the driver to measure a response to it.
Mixing units
The percentage change does not depend on units. Income in dollars or thousands of dollars gives the same percentage. You must, however, use the same units for old and new values within one variable.
Changing more than one thing
The formula attributes the whole change in quantity to the one driver. If a second factor also moved (for example, the good's own price changed while you measured the income effect), the result mixes the two effects. This is the ceteris paribus requirement from the prerequisites, and a later chapter on limitations returns to it.
Rounding too early
Round only the final answer. Rounding the two percentage changes to whole numbers first can move an elasticity of 0.81 to 0.78 or 0.88, which may change how you classify a good.
Summary of the method
- Record the old and new value of the driver (x0, x1) and of the quantity (q0, q1).
- Compute each change and divide by the average of its old and new value.
- Divide the percentage change in quantity by the percentage change in the driver.
- Keep the sign and report the number to two decimal places.
Exercise
A household's income rises from 50,000 to 60,000, and its monthly purchases of a good rise from 20 units to 22 units. (a) Compute the midpoint percentage change in income and in quantity. (b) Compute the midpoint elasticity. (c) Compute the same elasticity going backward, from 60,000 to 50,000 and from 22 to 20 units, and say what you notice.
Show answer
(a) Income: 10,000 / 55,000 = 18.18%. Quantity: 2 / 21 = 9.52%. (b) Elasticity = 9.52 / 18.18 = 0.52 (exactly 0.5238). (c) Going backward the changes are -18.18% and -9.52%, so the ratio is again 0.52. The midpoint method gives the same value in both directions, which the simple method would not (it gives 0.50 forward and 0.55 backward).
Exercise
A price rises from 4 to 6 and the quantity demanded of another good falls from 90 to 70. Compute the midpoint ratio of the percentage change in quantity to the percentage change in price. Why must you keep the negative sign?
Show answer
Price: 2 / 5 = 40%. Quantity: -20 / 80 = -25%. Ratio = -25 / 40 = -0.625, which rounds to -0.63. The negative sign shows that the quantity moves in the opposite direction to the price. For cross-price elasticity this sign is what tells you whether the goods are substitutes or complements, so dropping it throws away the main result.