Sub topic 12
Estimating Elasticities from Data with Log-Log Regression
Prerequisites and the basic model
This chapter assumes that you know percentage changes, demand curves, price elasticity, and ceteris paribus reasoning. It also assumes basic familiarity with averages and interpreting a regression line.
When economists estimate elasticity from data, they often use a log-log regression. A log-log regression relates the logarithm of quantity demanded to the logarithm of a variable that affects demand:
\[ \ln Q = \alpha + \beta \ln X + u \]
Here:
- \(Q\) is quantity demanded.
- \(X\) is the demand driver, such as income or another good's price.
- \(\alpha\) is the intercept.
- \(\beta\) is the slope.
- \(u\) represents other factors that affect demand.
In this model, the slope \(\beta\) is an elasticity. A 1% increase in \(X\) is associated with approximately a \(\beta\)% change in \(Q\).
For income elasticity, use income as \(X\):
\[ \ln Q_A = \alpha + \beta \ln I + u \]
The coefficient \(\beta\) estimates how quantity demanded of good A responds to income. For cross-price elasticity, use the price of another good:
\[ \ln QA = \alpha + \beta \ln PB + u \]
The coefficient then estimates how quantity demanded of good A responds to the price of good B.
Why logarithms produce elasticity
A percentage change is approximately a change in a logarithm. Therefore, the slope in a regression of \(\ln Q\) on \(\ln X\) measures the percentage response of quantity to a percentage change in \(X\).
The interpretation depends on the variable:
| Regression | Slope interpretation |
|---|---|
| \(\ln Q_A\) on \(\ln I\) | Income elasticity of demand for A |
| \(\ln Q_A\) on \(\ln P_B\) | Cross-price elasticity of demand between A and B |
| \(\ln Q_A\) on \(\ln P_A\) | Own-price elasticity of demand for A |
A constant elasticity model assumes that the elasticity is the same at all observed values of \(X\). This assumption can be useful for forecasting, but it may not fit every market.
Worked example in Python
The following data are constructed so that quantity equals \(2\sqrt{I}\). Doubling income does not always produce the same absolute increase in quantity, but the income elasticity remains 0.5.
import numpy as np
income = np.array([100, 400, 900, 1600])
quantity = 2 * np.sqrt(income) # 20, 40, 60, 80
# In a log-log regression the slope is the constant elasticity.
slope, intercept = np.polyfit(np.log(income), np.log(quantity), 1)
print(round(slope, 2)) # 0.5The estimated slope is 0.5. This means a 1% increase in income is associated with a 0.5% increase in quantity demanded. The good is therefore normal because the coefficient is positive, and it is a necessity because the coefficient is between zero and one.
The same method applies to cross-price elasticity. Replace income with the price of good B and regress the logarithm of A's quantity on the logarithm of B's price. A positive slope suggests substitutes. A negative slope suggests complements.
From estimates to decisions
An estimated elasticity can support a forecast. If income elasticity is 0.5 and income is expected to rise by 4%, predicted demand rises by approximately:
\[ 0.5 \times 4\% = 2\% \]
For a cross-price elasticity of -0.8, a 5% increase in the price of B predicts an approximately 4% decrease in demand for A.
Assumptions and common errors
A regression coefficient describes an association unless the research design supports a causal interpretation. Income may change at the same time as advertising, population, or product availability. Prices may respond to demand shocks. These factors can bias the estimate.
Common errors include:
- Regressing quantity on the unlogged driver and calling the slope an elasticity.
- Ignoring whether the coefficient is statistically uncertain.
- Treating a short-term elasticity as a long-term response.
- Assuming one constant elasticity applies outside the observed data range.
- Forgetting that cross-price relationships can differ depending on which good's price changes.
Exercise
A log-log regression estimates an income coefficient of -0.3. How should you classify the good, and what does the coefficient predict for a 10% income increase?
Show answer
The good is inferior because the coefficient is negative. A 10% income increase is associated with an approximately 3% decrease in quantity demanded.