GCGiovanni Compiani

Giovanni Compiani

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Giovanni Compiani has a total of 16 co-authors. Here are the top co-authors by number of shared publications:

  • Steven T. Berry

    Yale University - Department of Economics; National Bureau of Economic Research (NBER); Yale University - Cowles Foundation

    3 shared publications
  • Matteo Benetton

    University of California, Berkeley - Haas School of Business; Centre for Economic Policy Research (CEPR)

    2 shared publications
  • Adair Morse

    University of California, Berkeley - Haas School of Business; National Bureau of Economic Research (NBER)

    1 shared publication
  • Gregory Lewis

    Amazon, Boston, Massachusetts 02138

    1 shared publication
  • Ilya Morozov

    Kellogg School of Management, Northwestern University Evanston Illinois USA

    1 shared publication
  • Ilya Morozov

    Northwestern University, Evanston, Illinois 60208

    1 shared publication

Latest Publications

  • Top Cited Papers
    Open Access

    Demand Estimation with Text and Image Data

    by Giovanni Compiani, Ilya Morozov, Stephan Seiler

    We propose a demand estimation approach that leverages unstructured data to infer substitution patterns. Using pre‐trained deep learning models, we extract embeddings from product images and textual descriptions and incorporate them into a mixed logit demand model. This approach enables demand estimation even when researchers lack data on product attributes or when consumers value hard‐to‐quantify attributes such as visual design. Using a choice experiment, we show this approach substantially outperforms standard attribute‐based models at counterfactual predictions of second choices. We also apply it to 40 product categories offered on Amazon.com and consistently find that unstructured data are informative about substitution patterns.


  • Online Search and Optimal Product Rankings: An Empirical Framework

    by Giovanni Compiani, Gregory Lewis, Sida Peng, Peichun Wang

    This paper proposes a microfounded and tractable model of consumer search, which is then used to optimize product rankings for consumer surplus and platform revenue.


  • Open Access

    An Equilibrium Model of Rollover Lotteries

    by Giovanni Compiani, Lorenzo Magnolfi, Lones Smith

    In a rollover lottery, buyers pick their own numbers, and a jackpot not won adds to the next draw. We develop an equilibrium model of this lottery, since it is a major source of government revenue. Buyers differ in their lottery enjoyment levels, and the market-clearing price is the expected monetary loss on a lottery ticket — namely, ticket face value less expected winnings. The supply curve captures the relation between tickets sold and expected loss implied by the rules of the game. We use this equilibrium model in two empirical applications. First, we test the model’s predictions on the optimal relationship between odds and population size using data from many countries, and across U.S. states. Second, we propose a structural empirical implementation of the model and nonparametrically estimate demand for U.S. national rollover lotteries by exploiting the randomness inherent in the rollover mechanism. We find that the model predicts well out of sample and show how to use it to inform lottery design.


  • Open Access

    When Cryptomining Comes to Town: High Electricity-use Spillovers to the Local Economy

    by Matteo Benetton, Giovanni Compiani, Adair Morse

    Cryptomining, the clearing of cryptocurrency transactions, uses large quantities of electricity. We document that cryptominers' use of local electricity implies higher electricity prices for existing small businesses and households. Studying the electricity market in Upstate NY and using the Bitcoin price as an exogenous shifter of the part of the supply curve faced by the community, we estimate the electricity demand functions for small businesses and households. Based on our estimates, we calculate counterfactual electricity bills, finding that small businesses and households paid an extra $92 million and $204 million annually in Upstate NY because of increased electricity consumption from cryptominers. Local governments in Upstate NY realize more business taxes, but this only offsets a small portion of the costs from higher community electricity bills. Using data on China, where electricity prices are fixed, we find that rationing of electricity in cities with cryptomining entrants deteriorates wages and investments, consistent with crowding-out effects on the local economy. Our results point to a yet-unstudied negative spillover from technology processing to local communities, which would need to be considered against welfare benefits.

  • Open Access

    Demand Estimation with Text and Image Data

    by Giovanni Compiani, Ilya Morozov, Stephan Seiler

    We propose a demand estimation method that allows researchers to estimate substitution patterns from unstructured image and text data. We first employ a series of machine learning models to measure product similarity from products’ images and textual descriptions. We then estimate a nested logit model with product-pair specific nesting parameters that depend on the image and text similarities between products. Our framework does not require collecting product attributes for each category and can capture product similarity along dimensions that are hard to account for with observed attributes. We apply our method to a dataset describing the behavior of Amazon shoppers across several categories and show that incorporating texts and images in demand estimation helps us recover a flexible cross-price elasticity matrix.


  • Open Access

    Empirical Models of Industry Dynamics with Endogenous Market Structure

    by Steven T. Berry, Giovanni Compiani

    This article reviews recent developments in the study of industry dynamics, with a special emphasis on the econometric endogeneity of market structure. Endogeneity of market structure follows from the presence of serially correlated unobservable shocks to the profitability of firms’ dynamic decisions, a feature common to many empirical settings. We particularly focus on extensions of standard two-step methods that leverage instrumental variables to address endogeneity, in both single-agent and oligopoly models.


  • Open Access

    Investors’ Beliefs and Asset Prices: A Structural Model of Cryptocurrency Demand

    by Matteo Benetton, Giovanni Compiani

    We explore the impact of investors’ beliefs on cryptocurrency demand and prices using three new individual-level surveys. We find that younger individuals with lower income and education are more optimistic about the future value of cryptocurrencies, as are late investors. We then estimate the cryptocurrency demand functions using a structural model with rich heterogeneity in investors’ beliefs and preferences. To identify the model, we combine observable beliefs with an instrumental variable strategy that exploits variation in the amount of energy required for the production of the different cryptocurrencies. We find that beliefs explain a large fraction of the cross-sectional variance of returns. A counterfactual exercise shows that banning entry of late investors leads to a decrease in the price of Bitcoin by about $3,500, or approximately 30% of the price during the boom in January 2018. Late investors’ optimism alone can explain about a third of the decline.


  • Open Access

    An Instrumental Variable Approach to Dynamic Models

    by Steven T. Berry, Giovanni Compiani

    We present a new class of methods for identification and inference in dynamic models with serially correlated unobservables, which typically imply that state variables are econometrically endogenous. In the context of Industrial Organization, these state variables often reflect econometrically endogenous market structure. We propose the use of Generalized Instrument Variables methods to identify those dynamic policy functions that are consistent with instrumental variable (IV) restrictions. Extending popular “two-step” methods, these policy functions then identify a set of structural parameters that are consistent with the dynamic model, the IV restrictions and the data. We provide computed illustrations to both single-agent and oligopoly examples. We also present a simple empirical analysis that, among other things, supports the counterfactual study of an environmental policy entailing an increase in sunk costs.

  • Open Access

    An Instrumental Variable Approach to Dynamic Models

    by Steven T. Berry, Giovanni Compiani

    We present a new class of methods for identification and inference in dynamic models with serially correlated unobservables, which typically imply that state variables are econometrically endogenous. In the context of Industrial Organization, these state variables often reflect econometrically endogenous market structure. We propose the use of Generalized Instrument Variables methods to identify those dynamic policy functions that are consistent with instrumental variable (IV) restrictions. Extending popular "two-step" methods, these policy functions then identify a set of structural parameters that are consistent with the dynamic model, the IV restrictions and the data. We provide computed illustrations to both single-agent and oligopoly examples. We also present a simple empirical analysis that, among other things, supports the counterfactual study of an environmental policy entailing an increase in sunk costs. Institutional subscribers to the NBER working paper series, and residents of developing countries may download this paper without additional charge at www.nber.org.