Skip to main content

Consumer Demand Systems (AIDS, QUAIDS) & Structural Berry-BLP

Family 13 (Structural IO & Demand Systems) provides structural estimators for multi-good household budget-share equations and market-level differentiated-product discrete choice demand. These estimators underpin empirical welfare analysis, commodity tax incidence, household living-standards research (VHLSS), and competition or merger counterfactuals.

In EcoLab, access these estimators under Modeling → 13. Demand Systems & BLP. See also the 16-Family Estimator Catalog.


When Should You Use Family 13?​

  • AIDS & QUAIDS: When analyzing household expenditure shares across JJ mutually exclusive commodity groups (∑j=1Jwj=1\sum_{j=1}^J w_j = 1), capturing curvature in Engel curves with respect to log total expenditure, and computing Marshallian (uncompensated) and Hicksian (compensated) price elasticities subject to adding-up, homogeneity, and Slutsky symmetry restrictions.
  • Berry Logit IV & Random-Coefficients BLP: When observing aggregate market shares sjts_{jt}, prices pjtp_{jt}, and product attributes xjtx_{jt} across markets tt, where prices correlate with unobserved product quality shocks ξjt\xi_{jt} and consumers exhibit heterogeneous taste coefficients over product characteristics.

Structural Mathematical Specifications​

1. Quadratic Almost Ideal Demand System — QUAIDS (Banks, Blundell & Lewbel, 1997)​

Budget share wiw_i for commodity group ii given total expenditure mm and price vector p\mathbf{p} satisfies:

wi=αi+∑j=1Jγijln⁡pj+βiln⁡[ma(p)]+λib(p){ln⁡[ma(p)]}2+uiw_i = \alpha_i + \sum_{j=1}^{J} \gamma_{ij} \ln p_j + \beta_i \ln \left[\frac{m}{a(\mathbf{p})}\right] + \frac{\lambda_i}{b(\mathbf{p})} \left\{\ln \left[\frac{m}{a(\mathbf{p})}\right]\right\}^2 + u_i

subject to theoretical demand restrictions ∑iαi=1\sum_i \alpha_i = 1, ∑iβi=∑iλi=0\sum_i \beta_i = \sum_i \lambda_i = 0, ∑jγij=0\sum_j \gamma_{ij} = 0, and symmetry γij=γji\gamma_{ij} = \gamma_{ji}. Restricting λi=0\lambda_i = 0 for all ii yields the classical AIDS model of Deaton & Muellbauer (1980).

2. Differentiated-Product Berry Logit IV & BLP (Berry, Levinsohn & Pakes, 1995)​

Indirect utility of consumer ii choosing product jj in market tt is given by:

uijt=xjtβˉ−αˉpjt+ξjt+μijt(xjt,pjt,νi;Σ)+εijtu_{ijt} = x_{jt} \bar{\beta} - \bar{\alpha} p_{jt} + \xi_{jt} + \mu_{ijt}(x_{jt}, p_{jt}, \nu_i; \Sigma) + \varepsilon_{ijt}
  • Under Berry (1994) Logit IV (Σ=0\Sigma = 0), share inversion yields the linear IV equation ln⁡(sjt)−ln⁡(s0t)=xjtβˉ−αˉpjt+ξjt\ln(s_{jt}) - \ln(s_{0t}) = x_{jt}\bar{\beta} - \bar{\alpha} p_{jt} + \xi_{jt} estimated with BLP rival-characteristics instruments or cost shifters.
  • Under Random-Coefficients BLP, Berry's contraction mapping inverts observed market shares for mean utilities δjt(st;Σ)\delta_{jt}(s_t; \Sigma) inside an optimal two-step GMM routine.

Identification Assumptions and Postestimation Diagnostics​

  1. Demand-Theory Restrictions (AIDS/QUAIDS): Joint Wald tests for zero-degree homogeneity and Slutsky symmetry, alongside quadratic Engel-curve significance tests on λi\lambda_i.
  2. Price Endogeneity & Instrument Strength (Berry/BLP): Kleibergen-Paap / Sanderson-Windmeijer first-stage FF-statistics and Hansen JJ overidentification tests on excluded cost or differentiation instruments.
  3. Economic Regularity of Own-Price Elasticities: Verifies negative own-price elasticities (ηii<0\eta_{ii} < 0) so implied Bertrand-Nash markups remain economically well-defined.

Three-Language Replication Code Examples​

* === 1. QUAIDS Demand System With Demographic Scaling ===
quaids w_food w_housing w_transport w_other, anot(10) ///
prices(p_food p_housing p_transport p_other) ///
expenditure(total_exp) demographics(hh_size urban)
estat expenditure, atmeans
estat uncompensated, atmeans

* === 2. Berry (1994) Logit Demand IV ===
gen log_share_ratio = ln(share) - ln(outside_share)
ivregress 2sls log_share_ratio x_quality x_size (price = cost_shifter blp_iv_other), vce(cluster market_id)
estat firststage
estat overid