Cause and Effect

28 Mar 2022

Problem

MegaFon wanted to price mobile devices and accessories so that a fixed batch, with the next delivery a year later, brings maximum profit. Profit is π(p)=pq(p)−cq(p), where p is the retail price, q(p) the quantity sold and c the wholesale price. The optimal price needs the demand curve q(p). A plain regression of sales on price fails: few observations per product, products whose price never changed, and some products with a positive price coefficient. That last sign shows that price correlates with unobserved drivers of demand.

Example from the article: a universal smartphone charger with no technological aging over a year.

Solution in brief

Pool products of one class to get observations and price variation, and randomize prices for products that never changed. Treat a surprising price sign as endogeneity and fix it with instrumental variables and two-stage least squares (2SLS). For a per-observation effect, use the Method of Direct Estimation and its instrumental variant LICE, with a random forest in place of linear regression.

Questions this case answers
  • How to estimate the effect of a controllable variable on an outcome from observational data when the variable is correlated with unobserved drivers of the outcome
  • How to estimate a per-observation effect of a continuous treatment with a flexible model when a valid instrument is available
  • How to estimate the price elasticity of demand for a product when the price history is observational?
  • How to tell whether a positive price coefficient in a demand regression reflects an omitted variable or reverse causality?

Tools and methods

  • Linear regression (OLS) — baseline estimate of q(p) with product features X
  • Instrumental variables, 2SLS — remove omitted-variable and reverse-causality bias from the price coefficient
  • Method of Direct Estimation (Ratkovic and Tingley) — B-spline interactions of price and covariates with L1 selection, giving an effect per observation
  • LICE (Local Instantaneous Causal Effect) — the instrumental analog of 2SLS inside that method
  • Random forest — replaces the linear regression
Continue reading — it's free

Google or a one-time email code. No password.