econ.GNMar 2, 2026

Neural Demand Estimation with Habit Formation and Rationality Constraints

Authors: Marta Grzeskiewicz

Organizations: University of Cambridge

Abstract

We develop a flexible neural demand system for continuous budget allocation that estimates budget shares on the simplex by minimizing KL divergence. Shares are produced via a softmax of a state-dependent preference scorer and disciplined with regularity penalties (monotonicity, Slutsky symmetry) to support coherent comparative statics and welfare without imposing a parametric utility form. State dependence enters through a habit stock defined as an exponentially weighted moving average of past consumption. Simulations recover elasticities and welfare accurately and show sizable gains when habit formation is present. In our empirical application using Dominick's analgesics data, adding habit reduces out-of-sample error by c.33%, reshapes substitution patterns, and increases CV losses from a 10% ibuprofen price rise by about 15-16% relative to a static model. The code is available at https://github.com/martagrz/neural_demand_habit .

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Integrable Elasticity via Neural Demand Potentials

    May 21, 2026Carlos Heredia, Daniel Roncel

  2. Learning Consumer Preferences from Bundle Sales Data

    Sep 11, 2022Ningyuan Chen, Setareh Farajollahzadeh, Qingwei Jin +2User Preference Modeling

  3. Selective Tie Learning: Mitigating Spurious Correlations in Preference Optimization

    Oct 26, 2026Christian Moya, Purav Matlia, Elliott Thornley +1Preference OptimizationSpurious Correlation Robustness