Day 12. The Delta Method
Standard errors for functions of estimates (logs, ratios, odds, percentage effects) via a first-order Taylor expansion.
- ●Apply the univariate delta method to logs, square roots, inverses and odds.
- ●Derive it from a Taylor expansion plus the CLT, and know when it fails.
- ●Use the multivariate delta method for ratios (cost-effectiveness, relative effects, Wald IV estimates).
- ●Convert log-point regression coefficients into percentage effects with correct standard errors.
Theory
The idea
You have an estimate with , but you care about : a percentage effect, an elasticity, a ratio. A first-order Taylor expansion around gives
so is approximately a linear function of an approximately normal variable:
Several estimates at once
For a vector with covariance matrix and a scalar function with gradient :
For a ratio :
Limits
- It is a local linear approximation: poor when is very curved relative to the SE, or when is near a point where blows up (a ratio with denominator near zero, e.g. a weak first stage).
- If the first-order term vanishes and a second-order expansion is needed.
- The bootstrap (Day 9) is the usual cross-check.
Part 1 · Warm-up
Exercise 1 · Derivative of the log
What is for , and what does it imply for ?
Show solution
, so : the coefficient of variation.
Exercise 2 · Log of a mean
with SE 2. Find the SE of .
Show solution
.
Exercise 3 · Square root
with SE 0.8. Find the SE of .
Show solution
, so SE .
Exercise 4 · Inverse
with SE 0.2. Find the SE of .
Show solution
, so SE .
Exercise 5 · Odds
with SE 0.0894 (Day 11). Find the SE of the odds .
Show solution
, so SE around the odds estimate 1.5.
Part 2 · Proofs
Exercise 6 · Deriving the delta method
Using a Taylor expansion with remainder and the CLT, derive the univariate delta method.
Show solution
Step 1 (mean value theorem). For some between and :
Step 2. Rearrange and multiply by :
Step 3. and is squeezed between them, so . With continuous, .
Step 4. By assumption (the CLT), .
Step 5. Slutsky's theorem (a term converging to a constant times a term converging in distribution):
Exercise 7 · The ratio formula
Derive the variance of from the multivariate delta method.
Show solution
has gradient . Then
Exercise 8 · Second-order bias
Using a second-order expansion, show , and apply it to .
Show solution
Step 1. .
Step 2. Take expectations: the linear term has mean zero and .
Step 3. For : , so .
Step 4. The log of a mean is biased downward, as Jensen's inequality predicts, but the bias vanishes at rate .
Exercise 9 · When the first derivative is zero
Let be a mean with and variance , and . Why does the delta method fail, and what is the limit of ?
Show solution
Step 1. , so the first-order approximation predicts zero variance, which is wrong.
Step 2. Instead, , so .
Step 3. The estimator converges at rate , not , and its distribution is not normal.
Exercise 10 · Log-odds
Derive the SE of the log-odds and evaluate it at , .
Show solution
. With :
Part 3 · Applied
Exercise 11 · From log points to percent
In a log-wage regression, a training dummy has (SE 0.02). Report the exact percentage effect with its SE.
Show solution
Step 1. Exact percentage effect: .
Step 2. Derivative: .
Step 3. Delta method: percentage points.
Answer: training raises wages by 8.3% (SE 2.2 points).
Exercise 12 · Cost-effectiveness ratio
A programme costs an extra (SE 300) and adds QALYs (SE 0.1), estimated independently. Find the ICER and its SE.
Show solution
Step 1. Point estimate: per QALY.
Step 2. Ratio formula with zero covariance, , :
Step 3. First term: .
Step 4. Second term: .
Step 5. Total , so .
Answer: $3,000 per QALY (SE ≈ $1,061). The imprecise denominator contributes half the variance; a bootstrap interval would be visibly skewed.
Exercise 13 · A relative treatment effect
The effect is (SE 1) and the control mean is (SE 2), independent. Find the relative effect and its SE.
Show solution
Step 1. Point estimate: .
Step 2. Ratio formula with , , independent estimates:
Step 3. .
Answer: a 10% relative effect, ± about 2 points. Almost all the uncertainty comes from .
Exercise 14 · The Wald (IV) estimator
An encouragement design has reduced form 0.6 (SE 0.2) and first stage 0.3 (SE 0.05), independent. Find the IV estimate and its SE.
Show solution
Step 1. Point estimate: .
Step 2. Ratio formula with (reduced form), (first stage):
Step 3. , .
Answer: IV estimate 2 (SE ≈ 0.75). With a weak first stage (denominator near zero) this approximation breaks down: the weak-instruments problem of Phase 5.
Exercise 15 · Log of mean income: delta method versus simulation
A survey estimates mean household income (in $10,000) as with SE 2. Analysts report . Compare the delta-method SE of with a simulation when the true mean is 50 (a rich region) and when it is 5 (a poor region). When does the delta method fail?
Show solution
Step 1. Delta method: .
Step 2. Rich region: . Poor region: .
Step 3. Simulation (code below): about 0.040 in the rich region, but about 0.52 in the poor region.
Step 4. Reason: when is large, ranges over values where is strongly curved, so the linear approximation is poor and is skewed.
Answer: the delta method is excellent when the coefficient of variation is small (0.04) and misleading when it is large (0.4); check with the bootstrap or simulation.
Verify in Python
import numpy as np
rng = np.random.default_rng(12)
for mu, se in ((50, 2), (5, 2)):
xbar = rng.normal(mu, se, 1_000_000)
xbar = xbar[xbar > 0]
print(f"mu={mu}, SE={se}: delta SE of ln = {se/mu:.4f}, simulated = {np.log(xbar).std():.4f}")
# ICER (Exercise 12): delta method vs simulation
dC = rng.normal(1200, 300, 1_000_000); dE = rng.normal(0.4, 0.1, 1_000_000)
icer = dC / dE
q25, q50, q75 = np.percentile(icer, [25, 50, 75])
print("ICER delta SE ~ 1061; simulated robust SD (IQR/1.349):", round((q75 - q25) / 1.349),
"; simulated 2.5/50/97.5 percentiles:", np.percentile(icer, [2.5, 50, 97.5]).round())
# (the plain SD is unstable: a few draws of dE near zero make the ratio explode)
print("percent effect:", round(100 * (np.exp(0.08) - 1), 2), "SE", round(100 * np.exp(0.08) * 0.02, 2))
Key takeaways
- ; for several estimates use the gradient and the covariance matrix.
- Ratios with noisy denominators (ICERs, IV with a weak first stage) are where the approximation is weakest.
- Check the delta method against the bootstrap when the transformation is strongly non-linear.
Simulation Lab: Delta Method vs Simulation
Open full screen →Push a normal estimate through ln, √, 1/x or x² and compare the delta-method normal with the truth.
The estimate x̄ ~ N(μ, SE²) is pushed through g. Bars: the true distribution of g(x̄). Orange: the delta-method normal N(g(μ), (g′(μ)·SE)²). They agree when SE is small relative to the curvature of g.