Here’s a step-by-step walkthrough of how the Berry-Levinsohn-Pakes (BLP) demand‐estimation framework works in Industrial Organization (IO). I'll first set out the economic intuition, then the math, and finally the computational recipe (nested fixed‐point).
1. Economic intuition
- We observe – in each market t – a set of differentiated products j (e.g. car models), each with observed characteristics x_jt (e.g. horsepower, fuel-economy), price p_jt and market share s_jt.
- Consumers differ in how much they value each characteristic (“random coefficients”).
- The goal is to back out:
• the mean utility levels δ_jt for each product, and
• the distribution (variance) of consumer tastes for the characteristics, plus
• supply‐side cost/markups if you augment with a pricing equation.
2. The BLP utility specification
For consumer i choosing product j in market t we postulate
u_{i j t} = x_{j t}′ β + ξ_{j t} + Π(x_{j t}, z_i, θ_2) + ε_{i j t}
where
• x_{j t}′β + ξ_{j t} ≡ δ_{j t}: the “mean utility” (common to all consumers).
• Π(·) ≡ random‐coeff terms that allow e.g. price coefficients, taste for horsepower, to vary with i’s income z_i, captured by a parameter vector θ_2.
• ε_{i j t} i.i.d. Type-I extreme value.
Because ε is extreme value, the choice probabilities (conditional on Π) take a nice “logit” form, but aggregate market shares s_jt integrate out the consumer heterogeneity z_i.
3. From utility to market shares
Conditional on δ and θ_2, the predicted share of product j in market t is
ŝ_{j t}(δ, θ_2)
= ∫
exp[δ_{j t} + Π(x_{j t}, z, θ_2)]
————————————————————————————————
∑{k=0}^J exp[δ{k t} + Π(x_{k t}, z, θ_2)]
dF_Z(z)
where k=0 denotes the outside good.
We observe the actual s_{j t}^{obs} from data.
4. Inverting shares → mean utilities (the “δ‐inversion”)
BLP’s key insight is that for fixed θ_2 the mapping
δ ↦ ŝ(δ, θ_2)
is monotonic. Hence you can numerically invert
ŝ_{j t}(δ*, θ_2) = s_{j t}^{obs}
for each j,t
to recover the vector δ*(θ_2).
In practice one uses a contraction‐mapping (fixed‐point) algorithm:
- Start with an initial guess δ⁰
- Iterate
δ^{q+1}{j t} = δ^q{j t} + ln(s_{j t}^{obs}) – ln(ŝ_{j t}(δ^q, θ_2))
- Stop when ‖δ^{q+1} – δ^q‖ is tiny.
This inner loop costs most of the computation.
5. Dealing with price endogeneity
Price p_{j t} is correlated with ξ_{j t} (unobserved quality). We instrument p by variables z_{j t} (e.g. other firms’ characteristics, cost shifters) and impose moment conditions:
E[ z_{j t} · ξ_{j t}(θ) ] = 0
where ξ_{j t}(θ) ≡ δ*(θ_2)j t – x{j t}′β.
Here θ ≡ (β, θ_2).
6. GMM objective
Collect all J×T moments into a vector g(θ) and form the GMM criterion
Q(θ) = g(θ)′ W g(θ)
Minimize Q(θ) over θ.
7. The nested‐fixed point algorithm
Put it all together:
- Guess θ = (β, θ_2).
- Inner loop (δ‐inversion): given θ, find δ*(θ) so that model shares = observed shares.
- Compute ξ_{j t}(θ) = δ*_jt – x′_jt β.
- Form moments g(θ) = (1/√N) ∑ z_{j t} ξ_{j t}(θ).
- Evaluate Q(θ) = g′ W g.
- Outer loop: update θ to reduce Q(θ).
- Repeat until convergence.
At convergence you’ve identified:
• β and the variance‐parameters θ_2 (taste dispersion),
• the implied δ*_jt (mean utilities),
• and – if you add the supply‐side – marginal costs and markups.
8. Extensions & Practical Tips
- Supply‐side: Stack a pricing equation p = f(mc, markups(θ, δ*)) to back out marginal cost shocks, impose additional moments.
- Instruments: Common choices are rival product characteristics and cost shifters.
- MPEC: An alternative to the nested‐fixpoint is Mathematical Programming with Equilibrium Constraints, which solves (θ, δ) jointly.
- Computation: Most implementations (e.g. in Python’s
pyBLP or FDA’s BLPestimator) exploit parallelization over markets, careful Jacobian approximations, and Hessian updates.
—
That’s the essence of BLP in IO: a random‐coefficients logit that you “invert” to back out mean utilities, then GMM‐fit your taste‐dispersion and price‐coeff parameters while using valid instruments for price endogeneity.