IDEAS home Printed from
   My bibliography  Save this paper

Who Drives the Market? Estimating a Heterogeneous Agent-based Financial Market Model Using a Neural Network Approach


  • Klein, A.
  • Urbig, D.
  • Kirn, S.


Introduction. The objects of investigation of this work are micro-level behaviors in stock markets. We aim at better understanding which strategies of market participants drive stock markets. The problem is that micro-level data from real stock markets are largely unobservable. We take an estimation perspective to obtain daily time series of fractions of chartists and fundamentalists among market participants. We estimate the heterogeneous agent-based financial market model introduced by Lux and Marchesi [1] to the S&P 500. This model has more realistic time series properties compared to less complex econometric and other agent-based models. Such kinds of models have a rather complex dependency between micro and macro parameters that have to be mapped to empirical data by the estimation method. This poses heavy computational burdens. Our contribution to this field is a new method for indirectly estimating time-varying micro-parameters of highly complex agent-based models at high frequency. Related work. Due to the high complexity, few authors have published on this topic to date (e.g., [2], [3], and [4]). Recent approaches in directly estimating agent-based models are restricted to simpler models, make simplifying assumptions on the estimation procedure, estimate only non-time varying parameters, or estimate only low frequency time series. Approach and computational methods. The indirect estimation method we propose is based on estimating the inverse model of a rich agent-based model that derives realistic macro market behavior from heterogeneous market participants’ behaviors. Applying the inverse model, which maps macro parameters back to micro parameters, to widely available macro-level financial market data, allows for estimating time series of aggregated real world micro-level strategy data at daily frequency. To estimate the inverse model in the first place, a neural network approach is used, as it allows for a large degree of freedom concerning the structure of the mapping to be represented by the neural network. As basis for learning the mapping, micro and macro time series of the market model are generated artificially using a multi-agent simulation based on RePast [5]. After applying several pre-processing and smoothing methods to these time series, a feed-forward multilayer perceptron is trained using a variant of the Levenberg-Marquardt algorithm combined with Bayesian regularization [6]. Finally, the trained network is applied to the S&P 500 to estimate daily time series of fractions of strategies used by market participants. Results. The main contribution of this work is a model-free indirect estimation approach. It allows estimating micro-parameter time series of the underlying agent-based model of high complexity at high frequency. No simplifying assumptions concerning the model or the estimation process have to be applied. Our results also contribute to the understanding of theoretical models. By investigating fundamental depen¬den¬cies in the Lux and Marchesi model by means of sensitivity analysis of the resulting neural network inverse model, price volatility is found to be a major driver. This provides additional support to findings in [1]. Some face validity for concrete estimation results obtained from the S&P 500 is shown by comparing to results of Boswijk et al. [3]. This is the work which comes closest to our approach, albeit their model is simpler and estimation frequency is yearly. We find support for Boswijk et al.’s key finding of a large fraction of chartists during the end of 1990s price bubble in technology stocks. Eventually, our work contributes to understanding what kind of micro-level behaviors drive stock markets. Analyzing correlations of our estimation results to historic market events, we find the fraction of chartists being large at times of crises, crashes, and bubbles. See also for some continuously updated results.

Suggested Citation

  • Klein, A. & Urbig, D. & Kirn, S., 2008. "Who Drives the Market? Estimating a Heterogeneous Agent-based Financial Market Model Using a Neural Network Approach," MPRA Paper 14433, University Library of Munich, Germany.
  • Handle: RePEc:pra:mprapa:14433

    Download full text from publisher

    File URL:
    File Function: original version
    Download Restriction: no

    File URL:
    File Function: revised version
    Download Restriction: no

    File URL:
    File Function: revised version
    Download Restriction: no

    References listed on IDEAS

    1. Westerhoff Frank H. & Reitz Stefan, 2003. "Nonlinearities and Cyclical Behavior: The Role of Chartists and Fundamentalists," Studies in Nonlinear Dynamics & Econometrics, De Gruyter, vol. 7(4), pages 1-15, December.
    2. Simone Alfarano & Thomas Lux & Friedrich Wagner, 2005. "Estimation of Agent-Based Models: The Case of an Asymmetric Herding Model," Computational Economics, Springer;Society for Computational Economics, vol. 26(1), pages 19-49, August.
    3. Lux, T. & M. Marchesi, "undated". "Volatility Clustering in Financial Markets: A Micro-Simulation of Interacting Agents," Discussion Paper Serie B 437, University of Bonn, Germany, revised Jul 1998.
    Full references (including those not matched with items on IDEAS)


    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.

    Cited by:

    1. repec:kap:compec:v:51:y:2018:i:4:d:10.1007_s10614-017-9652-1 is not listed on IDEAS
    2. Lux, Thomas, 2012. "Estimation of an agent-based model of investor sentiment formation in financial markets," Journal of Economic Dynamics and Control, Elsevier, vol. 36(8), pages 1284-1302.

    More about this item


    stock market; heterogeneous agent-based models; indirect estimation; inverse model; trading strategies; chartists; fundamentalists; neural networks;

    JEL classification:

    • C32 - Mathematical and Quantitative Methods - - Multiple or Simultaneous Equation Models; Multiple Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes; State Space Models
    • G12 - Financial Economics - - General Financial Markets - - - Asset Pricing; Trading Volume; Bond Interest Rates
    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C81 - Mathematical and Quantitative Methods - - Data Collection and Data Estimation Methodology; Computer Programs - - - Methodology for Collecting, Estimating, and Organizing Microeconomic Data; Data Access
    • C15 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Statistical Simulation Methods: General

    NEP fields

    This paper has been announced in the following NEP Reports:


    Access and download statistics


    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:pra:mprapa:14433. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Joachim Winter). General contact details of provider: .

    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 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.

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

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.