IDEAS home Printed from https://ideas.repec.org/a/bla/randje/v51y2020i4p1108-1161.html
   My bibliography  Save this article

Best practices for differentiated products demand estimation with PyBLP

Author

Listed:
  • Christopher Conlon
  • Jeff Gortmaker

Abstract

Differentiated products demand systems are a workhorse for understanding the price effects of mergers, the value of new goods, and the contribution of products to seller networks. Berry, Levinsohn, and Pakes (1995) provide a flexible random coefficients logit model which accounts for the endogeneity of prices. This article reviews and combines several recent advances related to the estimation of BLP‐type problems and implements an extensible generic interface via the PyBLP package. Monte Carlo experiments and replications suggest different conclusions than the prior literature: multiple local optima appear to be rare in well‐identified problems; good performance is possible even in small samples, particularly when “optimal instruments” are employed along with supply‐side restrictions. If Python is installed on your computer, PyBLP can be installed with the following command: pip install pyblp.Up‐to‐date documentation for the package is available at https://pyblp.readthedocs.io.

Suggested Citation

  • Christopher Conlon & Jeff Gortmaker, 2020. "Best practices for differentiated products demand estimation with PyBLP," RAND Journal of Economics, RAND Corporation, vol. 51(4), pages 1108-1161, December.
  • Handle: RePEc:bla:randje:v:51:y:2020:i:4:p:1108-1161
    DOI: 10.1111/1756-2171.12352
    as

    Download full text from publisher

    File URL: https://doi.org/10.1111/1756-2171.12352
    Download Restriction: no

    File URL: https://libkey.io/10.1111/1756-2171.12352?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Reynaert, Mathias & Verboven, Frank, 2014. "Improving the performance of random coefficients demand models: The role of optimal instruments," Journal of Econometrics, Elsevier, vol. 179(1), pages 83-98.
    2. Hansen, Lars Peter, 1982. "Large Sample Properties of Generalized Method of Moments Estimators," Econometrica, Econometric Society, vol. 50(4), pages 1029-1054, July.
    3. Whitney K. Newey & Richard J. Smith, 2004. "Higher Order Properties of Gmm and Generalized Empirical Likelihood Estimators," Econometrica, Econometric Society, vol. 72(1), pages 219-255, January.
    4. Heiss, Florian & Winschel, Viktor, 2008. "Likelihood approximation by numerical integration on sparse grids," Journal of Econometrics, Elsevier, vol. 144(1), pages 62-80, May.
    5. Ravi Varadhan & Christophe Roland, 2008. "Simple and Globally Convergent Methods for Accelerating the Convergence of Any EM Algorithm," Scandinavian Journal of Statistics, Danish Society for Theoretical Statistics;Finnish Statistical Society;Norwegian Statistical Association;Swedish Statistical Association, vol. 35(2), pages 335-353, June.
    6. Paulo Guimarães & Pedro Portugal, 2010. "A simple feasible procedure to fit models with high-dimensional fixed effects," Stata Journal, StataCorp LP, vol. 10(4), pages 628-649, December.
    7. Che‐Lin Su & Kenneth L. Judd, 2012. "Constrained Optimization Approaches to Estimation of Structural Models," Econometrica, Econometric Society, vol. 80(5), pages 2213-2230, September.
    8. James Levinsohn & Steven Berry & Ariel Pakes, 1999. "Voluntary Export Restraints on Automobiles: Evaluating a Trade Policy," American Economic Review, American Economic Association, vol. 89(3), pages 400-430, June.
    9. Jinhyuk Lee & Kyoungwon Seo, 2015. "A computationally fast estimator for random coefficients logit demand models using aggregate data," RAND Journal of Economics, RAND Corporation, vol. 46(1), pages 86-102, March.
    10. Bresnahan, Timothy F., 1982. "The oligopoly solution concept is identified," Economics Letters, Elsevier, vol. 10(1-2), pages 87-92.
    11. Steven T. Berry & Philip A. Haile, 2014. "Identification in Differentiated Products Markets Using Market Level Data," Econometrica, Econometric Society, vol. 82, pages 1749-1797, September.
    12. Lee, Jinhyuk & Seo, Kyoungwon, 2016. "Revisiting the nested fixed-point algorithm in BLP random coefficients demand estimation," Economics Letters, Elsevier, vol. 149(C), pages 67-70.
    13. Fox, Jeremy T. & Kim, Kyoo il & Ryan, Stephen P. & Bajari, Patrick, 2012. "The random coefficients logit model is identified," Journal of Econometrics, Elsevier, vol. 166(2), pages 204-212.
    14. Céline Bonnet & Pierre Dubois, 2010. "Inference on vertical contracts between manufacturers and retailers allowing for nonlinear pricing and resale price maintenance," RAND Journal of Economics, RAND Corporation, vol. 41(1), pages 139-164, March.
    15. Kenneth Train ., 2000. "Halton Sequences for Mixed Logit," Economics Working Papers E00-278, University of California at Berkeley.
    16. Kate Ho & Ariel Pakes, 2014. "Hospital Choices, Hospital Prices, and Financial Incentives to Physicians," American Economic Review, American Economic Association, vol. 104(12), pages 3841-3884, December.
    17. Christopher R. Knittel & Konstantinos Metaxoglou, 2014. "Estimation of Random-Coefficient Demand Models: Two Empiricists' Perspective," The Review of Economics and Statistics, MIT Press, vol. 96(1), pages 34-59, March.
    18. Patrick Bayer & Fernando Ferreira & Robert McMillan, 2007. "A Unified Framework for Measuring Preferences for Schools and Neighborhoods," Journal of Political Economy, University of Chicago Press, vol. 115(4), pages 588-638, August.
    19. Daniel McFadden & Kenneth Train, 2000. "Mixed MNL models for discrete response," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 15(5), pages 447-470.
    20. Steven T. Berry, 1994. "Estimating Discrete-Choice Models of Product Differentiation," RAND Journal of Economics, The RAND Corporation, vol. 25(2), pages 242-262, Summer.
    21. Jean-Francois Houde, 2012. "Spatial Differentiation and Vertical Mergers in Retail Markets for Gasoline," American Economic Review, American Economic Association, vol. 102(5), pages 2147-2182, August.
    22. W. Ross Morrow & Steven J. Skerlos, 2011. "Fixed-Point Approaches to Computing Bertrand-Nash Equilibrium Prices Under Mixed-Logit Demand," Operations Research, INFORMS, vol. 59(2), pages 328-345, April.
    23. Bhat, Chandra R., 2001. "Quasi-random maximum simulated likelihood estimation of the mixed multinomial logit model," Transportation Research Part B: Methodological, Elsevier, vol. 35(7), pages 677-693, August.
    24. Robin S. Lee, 2013. "Vertical Integration and Exclusivity in Platform and Two-Sided Markets," American Economic Review, American Economic Association, vol. 103(7), pages 2960-3000, December.
    25. Train,Kenneth E., 2009. "Discrete Choice Methods with Simulation," Cambridge Books, Cambridge University Press, number 9780521766555.
    26. Caplin, Andrew & Nalebuff, Barry, 1991. "Aggregation and Imperfect Competition: On the Existence of Equilibrium," Econometrica, Econometric Society, vol. 59(1), pages 25-59, January.
    27. Freyberger, Joachim, 2015. "Asymptotic theory for differentiated products demand models with many markets," Journal of Econometrics, Elsevier, vol. 185(1), pages 162-181.
    28. Brunner, Daniel & Heiss, Florian & Romahn, André & Weiser, Constantin, 2017. "Reliable estimation of random coefficient logit demand models," DICE Discussion Papers 267, Heinrich Heine University Düsseldorf, Düsseldorf Institute for Competition Economics (DICE).
    29. Guillermo Gallego & Woonghee Tim Huh & Wanmo Kang & Robert Phillips, 2006. "Price Competition with the Attraction Demand Model: Existence of Unique Equilibrium and Its Stability," Manufacturing & Service Operations Management, INFORMS, vol. 8(4), pages 359-375, June.
    30. Hess, Stephane & Train, Kenneth E. & Polak, John W., 2006. "On the use of a Modified Latin Hypercube Sampling (MLHS) method in the estimation of a Mixed Logit Model for vehicle choice," Transportation Research Part B: Methodological, Elsevier, vol. 40(2), pages 147-163, February.
    31. Kenneth L. Judd & Ben Skrainka, 2011. "High performance quadrature rules: how numerical integration affects a popular model of product differentiation," CeMMAP working papers CWP03/11, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.
    32. Bernard Salanie & Frank A. Wolak, 2018. "Fast, "robust", and approximately correct: estimating mixed demand systems," CeMMAP working papers CWP64/18, Centre for Microdata Methods and Practice, Institute for Fiscal Studies.
    33. Kenneth L. Judd, 1998. "Numerical Methods in Economics," MIT Press Books, The MIT Press, edition 1, volume 1, number 0262100711, April.
    34. Ying Fan, 2013. "Ownership Consolidation and Product Characteristics: A Study of the US Daily Newspaper Market," American Economic Review, American Economic Association, vol. 103(5), pages 1598-1628, August.
    35. Timothy B. Armstrong, 2016. "Large Market Asymptotics for Differentiated Product Demand Estimators With Economic Models of Supply," Econometrica, Econometric Society, vol. 84, pages 1961-1980, September.
    36. Nathan H. Miller & Matthew C. Weinberg, 2017. "Understanding the Price Effects of the MillerCoors Joint Venture," Econometrica, Econometric Society, vol. 85(6), pages 1763-1791, November.
    37. K. Newey, Whitney, 1985. "Generalized method of moments specification testing," Journal of Econometrics, Elsevier, vol. 29(3), pages 229-256, September.
    38. Laura Grigolon & Frank Verboven, 2014. "Nested Logit or Random Coefficients Logit? A Comparison of Alternative Discrete Choice Models of Product Differentiation," The Review of Economics and Statistics, MIT Press, vol. 96(5), pages 916-935, December.
    39. Newey, Whitney K, 1990. "Semiparametric Efficiency Bounds," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 5(2), pages 99-135, April-Jun.
    40. Isaiah Andrews & Matthew Gentzkow & Jesse M. Shapiro, 2017. "Measuring the Sensitivity of Parameter Estimates to Estimation Moments," The Quarterly Journal of Economics, President and Fellows of Harvard College, vol. 132(4), pages 1553-1592.
    41. Chunrong Ai & Xiaohong Chen, 2003. "Efficient Estimation of Models with Conditional Moment Restrictions Containing Unknown Functions," Econometrica, Econometric Society, vol. 71(6), pages 1795-1843, November.
    42. Amil Petrin, 2002. "Quantifying the Benefits of New Products: The Case of the Minivan," Journal of Political Economy, University of Chicago Press, vol. 110(4), pages 705-729, August.
    43. Chamberlain, Gary, 1987. "Asymptotic efficiency in estimation with conditional moment restrictions," Journal of Econometrics, Elsevier, vol. 34(3), pages 305-334, March.
    44. Donald, Stephen G. & Imbens, Guido W. & Newey, Whitney K., 2009. "Choosing instrumental variables in conditional moment restriction models," Journal of Econometrics, Elsevier, vol. 152(1), pages 28-36, September.
    45. Steven Berry & Ariel Pakes, 2007. "The Pure Characteristics Demand Model," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 48(4), pages 1193-1225, November.
    46. Amemiya, Takeshi, 1977. "The Maximum Likelihood and the Nonlinear Three-Stage Least Squares Estimator in the General Nonlinear Simultaneous Equation Model," Econometrica, Econometric Society, vol. 45(4), pages 955-968, May.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Amit Gandhi & Jean-François Houde, 2019. "Measuring Substitution Patterns in Differentiated-Products Industries," NBER Working Papers 26375, National Bureau of Economic Research, Inc.
    2. Steven T. Berry & Philip A. Haile, 2021. "Foundations of Demand Estimation," Cowles Foundation Discussion Papers 2301, Cowles Foundation for Research in Economics, Yale University.
    3. Laura Grigolon, 2021. "Blurred boundaries: A flexible approach for segmentation applied to the car market," Quantitative Economics, Econometric Society, vol. 12(4), pages 1273-1305, November.
    4. Matthew Backus & Christopher Conlon & Michael Sinkinson, 2021. "Common Ownership and Competition in the Ready-to-Eat Cereal Industry," NBER Working Papers 28350, National Bureau of Economic Research, Inc.
    5. Byrne, David P. & Imai, Susumu & Jain, Neelam & Sarafidis, Vasilis, 2022. "Instrument-free identification and estimation of differentiated products models using cost data," Journal of Econometrics, Elsevier, vol. 228(2), pages 278-301.
    6. Lu, Zhentong & Shi, Xiaoxia & Tao, Jing, 2023. "Semi-nonparametric estimation of random coefficients logit model for aggregate demand," Journal of Econometrics, Elsevier, vol. 235(2), pages 2245-2265.
    7. Victor Aguirregabiria & Margaret Slade, 2017. "Empirical models of firms and industries," Canadian Journal of Economics/Revue canadienne d'économique, John Wiley & Sons, vol. 50(5), pages 1445-1488, December.
    8. Reynaert, Mathias & Verboven, Frank, 2014. "Improving the performance of random coefficients demand models: The role of optimal instruments," Journal of Econometrics, Elsevier, vol. 179(1), pages 83-98.
    9. Mogens Fosgerau & Julien Monardo & André de Palma, 2024. "The Inverse Product Differentiation Logit Model," American Economic Journal: Microeconomics, American Economic Association, vol. 16(4), pages 329-370, November.
    10. Wang, Ao, 2021. "A BLP Demand Model of Product-Level Market Shares with Complementarity," The Warwick Economics Research Paper Series (TWERPS) 1351, University of Warwick, Department of Economics.
    11. Sun, Yutec & Ishihara, Masakazu, 2019. "A computationally efficient fixed point approach to dynamic structural demand estimation," Journal of Econometrics, Elsevier, vol. 208(2), pages 563-584.
    12. David P. Byrne & Susumu Imai & Vasilis Sarafidis & Masayuki Hirukawa, 2015. "Instrument-free Identification and Estimation of Differentiated Products Models," Working Paper Series 26, Economics Discipline Group, UTS Business School, University of Technology, Sydney.
    13. Kaiser, Ulrich & Mendez, Susan J. & Rønde, Thomas & Ullrich, Hannes, 2014. "Regulation of pharmaceutical prices: Evidence from a reference price reform in Denmark," Journal of Health Economics, Elsevier, vol. 36(C), pages 174-187.
    14. Ketz, Philipp, 2019. "On asymptotic size distortions in the random coefficients logit model," Journal of Econometrics, Elsevier, vol. 212(2), pages 413-432.
    15. Pál, László & Sándor, Zsolt, 2023. "Comparing procedures for estimating random coefficient logit demand models with a special focus on obtaining global optima," International Journal of Industrial Organization, Elsevier, vol. 88(C).
    16. David P. Byrne & Susumu Imai & Neelam Jain & Vasilis Sarafidis & Masayuki Hirukawa, 2019. "Identification and Estimation of Differentiated Products Models," Monash Econometrics and Business Statistics Working Papers 33/19, Monash University, Department of Econometrics and Business Statistics.
    17. C. Luke Watson & Oren Ziv, 2021. "Is the Rent Too High? Land Ownership and Monopoly Power," CESifo Working Paper Series 8864, CESifo.
    18. Greg Lewis & Bora Ozaltun & Georgios Zervas, 2021. "Maximum Likelihood Estimation of Differentiated Products Demand Systems," Papers 2111.12397, arXiv.org.
    19. Brett Hollenbeck & Kosuke Uetake, 2021. "Taxation and market power in the legal marijuana industry," RAND Journal of Economics, RAND Corporation, vol. 52(3), pages 559-595, September.
    20. Keith Head & Thierry Mayer, 2021. "Poor Substitutes? Counterfactual methods in IO and Trade compared," Working Papers 2021-11, CEPII research center.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bla:randje:v:51:y:2020:i:4:p:1108-1161. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Wiley Content Delivery (email available below). General contact details of provider: https://edirc.repec.org/data/randdus.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.