IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v8y2020i2p198-d316964.html
   My bibliography  Save this article

Detecting the Proportion of Traders in the Stock Market: An Agent-Based Approach

Author

Listed:
  • Minh Tran

    (John von Neumann Institute, Vietnam National University Ho Chi Minh City, Ho Chi Minh City 70000, Vietnam
    CHArt Laboratory EA 4004, EPHE, PSL Research University, 75014 Paris, France)

  • Thanh Duong

    (CEO at QT-Data Inc., Saskatoon, SK S7K 2P7, Canada)

  • Duc Pham-Hi

    (John von Neumann Institute, Vietnam National University Ho Chi Minh City, Ho Chi Minh City 70000, Vietnam
    Financial Engineering Department, ECE Paris Graduate School of Engineering, Paris 75015, France)

  • Marc Bui

    (CHArt Laboratory EA 4004, EPHE, PSL Research University, 75014 Paris, France)

Abstract

In this research, an agent-based model (ABM) of the stock market is constructed to detect the proportion of different types of traders. We model a simple stock market which has three different types of traders: noise traders, fundamental traders, and technical traders, trading a single asset. Bayesian optimization is used to tune the hyperparameters of the strategies of traders as well as of the stock market. The experimental results on Bayesian calibration with the Kolmogorov–Smirnov (KS) test demonstrated that the proposed separate calibrations reduced simulation error, with plausible estimated parameters. With empirical data of the Dow Jones Industrial Average (DJIA) index, we found that fundamental traders account for 9%–11% of all traders in the stock market. The statistical analysis of simulated data can produce the important stylized facts in real stock markets, such as the leptokurtosis, the heavy tail of the returns, and volatility clustering.

Suggested Citation

  • Minh Tran & Thanh Duong & Duc Pham-Hi & Marc Bui, 2020. "Detecting the Proportion of Traders in the Stock Market: An Agent-Based Approach," Mathematics, MDPI, vol. 8(2), pages 1-14, February.
  • Handle: RePEc:gam:jmathe:v:8:y:2020:i:2:p:198-:d:316964
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/8/2/198/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/8/2/198/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Lamperti, Francesco & Roventini, Andrea & Sani, Amir, 2018. "Agent-based model calibration using machine learning surrogates," Journal of Economic Dynamics and Control, Elsevier, vol. 90(C), pages 366-389.
    2. Recchioni, Maria Cristina & Tedeschi, Gabriele & Gallegati, Mauro, 2015. "A calibration procedure for analyzing stock price dynamics in an agent-based framework," Journal of Economic Dynamics and Control, Elsevier, vol. 60(C), pages 1-25.
    3. John Y. Campbell & John Cochrane, 1999. "Force of Habit: A Consumption-Based Explanation of Aggregate Stock Market Behavior," Journal of Political Economy, University of Chicago Press, vol. 107(2), pages 205-251, April.
    4. Plott, Charles R & Sunder, Shyam, 1982. "Efficiency of Experimental Security Markets with Insider Information: An Application of Rational-Expectations Models," Journal of Political Economy, University of Chicago Press, vol. 90(4), pages 663-698, August.
    5. Waseem Akram & Muaz Niazi & Laszlo Barna Iantovics & Athanasios V. Vasilakos, 2019. "Towards Agent-Based Model Specification of Smart Grid: A Cognitive Agent-Based Computing Approach," Interdisciplinary Description of Complex Systems - scientific journal, Croatian Interdisciplinary Society Provider Homepage: http://indecs.eu, vol. 17(3-B), pages 546-585.
    6. Ferreira, Fernando F. & de Oliveira, Viviane M. & Crepaldi, Antônio F. & Campos, Paulo R.A., 2005. "Agent-based model with heterogeneous fundamental prices," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 357(3), pages 534-542.
    7. Martin, Anna D., 2001. "Technical trading rules in the spot foreign exchange markets of developing countries," Journal of Multinational Financial Management, Elsevier, vol. 11(1), pages 59-68, February.
    8. Brian M. Lucey & Michael Dowling, 2005. "The Role of Feelings in Investor Decision‐Making," Journal of Economic Surveys, Wiley Blackwell, vol. 19(2), pages 211-237, April.
    9. Brock, William & Lakonishok, Josef & LeBaron, Blake, 1992. "Simple Technical Trading Rules and the Stochastic Properties of Stock Returns," Journal of Finance, American Finance Association, vol. 47(5), pages 1731-1764, December.
    10. Pagani, Giuliano Andrea & Aiello, Marco, 2013. "The Power Grid as a complex network: A survey," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 392(11), pages 2688-2700.
    11. Hommes, Cars H., 2006. "Heterogeneous Agent Models in Economics and Finance," Handbook of Computational Economics, in: Leigh Tesfatsion & Kenneth L. Judd (ed.), Handbook of Computational Economics, edition 1, volume 2, chapter 23, pages 1109-1186, Elsevier.
    12. Lux, Thomas & Alfarano, Simone, 2016. "Financial power laws: Empirical evidence, models, and mechanisms," Chaos, Solitons & Fractals, Elsevier, vol. 88(C), pages 3-18.
    13. Tauchen, George E & Pitts, Mark, 1983. "The Price Variability-Volume Relationship on Speculative Markets," Econometrica, Econometric Society, vol. 51(2), pages 485-505, March.
    14. Rama Cont, 2007. "Volatility Clustering in Financial Markets: Empirical Facts and Agent-Based Models," Springer Books, in: Gilles Teyssière & Alan P. Kirman (ed.), Long Memory in Economics, pages 289-309, Springer.
    15. repec:hal:spmain:info:hdl:2441/13thfd12aa8rmplfudlgvgahff is not listed on IDEAS
    16. H. Jeong & B. Tombor & R. Albert & Z. N. Oltvai & A.-L. Barabási, 2000. "The large-scale organization of metabolic networks," Nature, Nature, vol. 407(6804), pages 651-654, October.
    17. Alan P. Kirman, 1992. "Whom or What Does the Representative Individual Represent?," Journal of Economic Perspectives, American Economic Association, vol. 6(2), pages 117-136, Spring.
    18. M. Cristelli & L. Pietronero & A. Zaccaria, 2011. "Critical Overview of Agent-Based Models for Economics," Papers 1101.1847, arXiv.org.
    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. Fischer, Thomas & Riedler, Jesper, 2014. "Prices, debt and market structure in an agent-based model of the financial market," Journal of Economic Dynamics and Control, Elsevier, vol. 48(C), pages 95-120.
    2. Staccioli, Jacopo & Napoletano, Mauro, 2021. "An agent-based model of intra-day financial markets dynamics," Journal of Economic Behavior & Organization, Elsevier, vol. 182(C), pages 331-348.
    3. Oldham, Matthew, 2020. "Quantifying the concerns of Dimon and Buffett with data and computation," Journal of Economic Dynamics and Control, Elsevier, vol. 113(C).
    4. Kukacka, Jiri & Barunik, Jozef, 2017. "Estimation of financial agent-based models with simulated maximum likelihood," Journal of Economic Dynamics and Control, Elsevier, vol. 85(C), pages 21-45.
    5. Raquel Almeida Ramos & Federico Bassi & Dany Lang, 2020. "Bet against the trend and cash in profits," CEPN Working Papers halshs-02956879, HAL.
    6. repec:hal:spmain:info:hdl:2441/5mqflt6amg8gab4rlqn6sbko4b is not listed on IDEAS
    7. LeBaron, Blake, 2006. "Agent-based Computational Finance," Handbook of Computational Economics, in: Leigh Tesfatsion & Kenneth L. Judd (ed.), Handbook of Computational Economics, edition 1, volume 2, chapter 24, pages 1187-1233, Elsevier.
    8. Kukacka, Jiri & Kristoufek, Ladislav, 2021. "Does parameterization affect the complexity of agent-based models?," Journal of Economic Behavior & Organization, Elsevier, vol. 192(C), pages 324-356.
    9. Markus C. Becker & Thorbjørn Knudsen, 2017. "Heterogeneity of habits as a foundation for Schumpeterian economic policy," Journal of Evolutionary Economics, Springer, vol. 27(1), pages 43-62, January.
    10. Naimzada, Ahmad K. & Ricchiuti, Giorgio, 2009. "Dynamic effects of increasing heterogeneity in financial markets," Chaos, Solitons & Fractals, Elsevier, vol. 41(4), pages 1764-1772.
    11. Alexandru Mandes & Peter Winker, 2017. "Complexity and model comparison in agent based modeling of financial markets," Journal of Economic Interaction and Coordination, Springer;Society for Economic Science with Heterogeneous Interacting Agents, vol. 12(3), pages 469-506, October.
    12. Kukacka, Jiri & Kristoufek, Ladislav, 2020. "Do ‘complex’ financial models really lead to complex dynamics? Agent-based models and multifractality," Journal of Economic Dynamics and Control, Elsevier, vol. 113(C).
    13. Jean-Philippe Bouchaud, 2012. "Crises and collective socio-economic phenomena: simple models and challenges," Papers 1209.0453, arXiv.org, revised Dec 2012.
    14. Cheol‐Ho Park & Scott H. Irwin, 2007. "What Do We Know About The Profitability Of Technical Analysis?," Journal of Economic Surveys, Wiley Blackwell, vol. 21(4), pages 786-826, September.
    15. Xu, Hai-Chuan & Zhang, Wei & Xiong, Xiong & Wang, Xue & Zhou, Wei-Xing, 2021. "The double-edged role of social learning: Flash crash and lower total volatility," Journal of Economic Behavior & Organization, Elsevier, vol. 182(C), pages 405-420.
    16. Westerhoff Frank H., 2008. "The Use of Agent-Based Financial Market Models to Test the Effectiveness of Regulatory Policies," Journal of Economics and Statistics (Jahrbuecher fuer Nationaloekonomie und Statistik), De Gruyter, vol. 228(2-3), pages 195-227, April.
    17. Chia-Lin Chang & Jukka Ilomäki & Hannu Laurila & Michael McAleer, 2018. "Long Run Returns Predictability and Volatility with Moving Averages," Risks, MDPI, vol. 6(4), pages 1-18, September.
    18. Corgnet, Brice & Hernán-González, Roberto & Kujal, Praveen, 2020. "On booms that never bust: Ambiguity in experimental asset markets with bubbles," Journal of Economic Dynamics and Control, Elsevier, vol. 110(C).
    19. Delli Gatti, Domenico & Grazzini, Jakob, 2020. "Rising to the challenge: Bayesian estimation and forecasting techniques for macroeconomic Agent Based Models," Journal of Economic Behavior & Organization, Elsevier, vol. 178(C), pages 875-902.
    20. 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.
    21. Matteo Coronese & Davide Luzzati, 2022. "Economic impacts of natural hazards and complexity science: a critical review," LEM Papers Series 2022/13, Laboratory of Economics and Management (LEM), Sant'Anna School of Advanced Studies, Pisa, Italy.

    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:gam:jmathe:v:8:y:2020:i:2:p:198-:d:316964. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.