Sub topic 13
Estimating Elasticity from Data with a Log-Log Regression
Assume you know the law of demand, percentage changes, basic algebra, and introductory derivatives. This chapter focuses on estimating a constant price elasticity from observed price and quantity data.
Why use a log-log model?
A demand relationship can be written as:
\[ Q = A P^\beta \]
Here:
- \(Q\) is quantity demanded.
- \(P\) is price.
- \(A\) is a scale factor.
- \(\beta\) is the price elasticity of demand.
Taking natural logarithms of both sides gives:
\[ \ln Q = \ln A + \beta \ln P \]
This equation has the form of a straight-line regression:
\[ Y = \alpha + \beta X \]
where \(Y = \ln Q\), \(X = \ln P\), and the slope \(\beta\) estimates price elasticity.
The key interpretation is that a 1% increase in price is associated with an estimated \(\beta\)% change in quantity demanded. For ordinary demand, \(\beta\) is negative.
Reading the regression coefficient
| Estimated coefficient | Interpretation |
|---|---|
| \(\beta=-1.5\) | A 1% price increase is associated with a 1.5% quantity decrease |
| \(\beta=-0.6\) | A 1% price increase is associated with a 0.6% quantity decrease |
| \(\beta=0\) | Quantity has no estimated percentage response to price |
The absolute value determines the usual category:
- \(|\beta|>1\): elastic demand.
- \(|\beta|<1\): inelastic demand.
- \(|\beta|=1\): unit elastic demand.
The coefficient describes an average or fitted response over the data. It does not prove that price changes caused the quantity changes.
A Python example
The following data follow a constant-elasticity demand function with elasticity \(-1.5\). numpy.polyfit fits a line to the logarithms.
import numpy as np
prices = np.array([2.0, 4.0, 5.0, 8.0, 10.0])
quantities = 200 * prices ** -1.5
log_prices = np.log(prices)
log_quantities = np.log(quantities)
slope, intercept = np.polyfit(log_prices, log_quantities, 1)
print("Estimated elasticity:", round(slope, 2))
print("Estimated intercept:", round(intercept, 2))
# Estimated elasticity: -1.5The estimated slope is \(-1.5\). Therefore, within this modeled relationship, a 1% price increase corresponds to an estimated 1.5% decrease in quantity demanded.
What can go wrong?
A regression can report a precise coefficient while still giving a misleading economic estimate.
- Omitted variables: Income, advertising, seasonality, or tastes may affect quantity and may also be related to price.
- Reverse causality: Sellers may change prices because they observe changes in demand.
- Changing elasticity: A constant-elasticity model may be too restrictive when responsiveness varies across price ranges.
- Limited variation: If prices barely change, the data contain little information about price responsiveness.
- Measurement error: Incorrect prices or quantities can distort the slope.
Use the regression coefficient as an estimate tied to a specific market, period, and model. Do not automatically treat it as a universal law.
Exercise
A log-log regression estimates a price coefficient of -0.75. How should you interpret it, and is demand elastic or inelastic?
Show answer
A 1% increase in price is associated with an estimated 0.75% decrease in quantity demanded. Because the absolute value is less than 1, demand is inelastic.