Giovanni Compiani
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 publicationsMatteo Benetton
University of California, Berkeley - Haas School of Business; Centre for Economic Policy Research (CEPR)
2 shared publicationsAdair Morse
University of California, Berkeley - Haas School of Business; National Bureau of Economic Research (NBER)
1 shared publicationGregory Lewis
Amazon, Boston, Massachusetts 02138
1 shared publicationIlya 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 PapersOpen Access
- 23 March 2026
- Published by Wiley in The RAND Journal of Economics
Demand Estimation with Text and Image Data
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.
- 23 March 2026
- Published by Wiley in The RAND Journal of Economics
Top Cited PapersOpen AccessDemand Estimation with Text and Image Data
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.
- Open Access
- 11 March 2026
- Published by Institute for Fiscal Studies
Common values, unobserved heterogeneity, and endogenous entry in U.S. offshore oil lease auctions
- 11 March 2026
- Published by Institute for Fiscal Studies
Open AccessCommon values, unobserved heterogeneity, and endogenous entry in U.S. offshore oil lease auctions
- 1 May 2024
- Published by Institute for Operations Research and the Management Sciences (INFORMS) in Marketing Science
- Vol. 43 (3) , 615-636
Online Search and Optimal Product Rankings: An Empirical Framework
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.
- 1 May 2024
- Published by Institute for Operations Research and the Management Sciences (INFORMS) in Marketing Science
- Vol. 43 (3) , 615-636
Online Search and Optimal Product Rankings: An Empirical Framework
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
- 1 January 2024
- Published by Elsevier in SSRN Electronic Journal
An Equilibrium Model of Rollover Lotteries
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.
- 1 January 2024
- Published by Elsevier in SSRN Electronic Journal
Open AccessAn Equilibrium Model of Rollover Lotteries
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
- 5 June 2023
- Published by Elsevier in SSRN Electronic Journal
When Cryptomining Comes to Town: High Electricity-use Spillovers to the Local Economy
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.
- 5 June 2023
- Published by Elsevier in SSRN Electronic Journal
Open AccessWhen Cryptomining Comes to Town: High Electricity-use Spillovers to the Local Economy
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
- 1 January 2023
- Published by Elsevier in SSRN Electronic Journal
Demand Estimation with Text and Image Data
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.
- 1 January 2023
- Published by Elsevier in SSRN Electronic Journal
Open AccessDemand Estimation with Text and Image Data
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
- 15 August 2020
- Published by Elsevier in SSRN Electronic Journal
Empirical Models of Industry Dynamics with Endogenous Market Structure
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.
- 15 August 2020
- Published by Elsevier in SSRN Electronic Journal
Open AccessEmpirical Models of Industry Dynamics with Endogenous Market Structure
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
- 6 August 2020
- Published by Elsevier in SSRN Electronic Journal
Investors’ Beliefs and Asset Prices: A Structural Model of Cryptocurrency Demand
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.
- 6 August 2020
- Published by Elsevier in SSRN Electronic Journal
Open AccessInvestors’ Beliefs and Asset Prices: A Structural Model of Cryptocurrency Demand
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
- 4 August 2020
- Published by Elsevier in SSRN Electronic Journal
An Instrumental Variable Approach to Dynamic Models
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.
- 4 August 2020
- Published by Elsevier in SSRN Electronic Journal
Open AccessAn Instrumental Variable Approach to Dynamic Models
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
- 1 August 2020
- Published by Elsevier in SSRN Electronic Journal
An Instrumental Variable Approach to Dynamic Models
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.
- 1 August 2020
- Published by Elsevier in SSRN Electronic Journal
Open AccessAn Instrumental Variable Approach to Dynamic Models
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.