Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
10.1145/3604237.3626881acmotherconferencesArticle/Chapter ViewAbstractPublication PagesicaifConference Proceedingsconference-collections
research-article

Deep Calibration of Market Simulations using Neural Density Estimators and Embedding Networks

Published: 25 November 2023 Publication History

Abstract

The ability to construct a realistic simulator of financial exchanges, including reproducing the dynamics of the limit order book, can give insight into many counterfactual scenarios, such as a flash crash, a margin call, or changes in macroeconomic outlook. In recent years, agent-based models have been developed that reproduce many features of an exchange, as summarised by a set of stylised facts and statistics. However, the ability to calibrate simulators to a specific period of trading remains an open challenge. In this work, we develop a novel approach to the calibration of market simulators by leveraging recent advances in deep learning, specifically using neural density estimators and embedding networks. We demonstrate that our approach is able to correctly identify high probability parameter sets, both when applied to synthetic and historical data, and without reliance on manually selected or weighted ensembles of stylised facts.

References

[1]
Selim Amrouni, Aymeric Moulin, Jared Vann, Svitlana Vyetrenko, Tucker Balch, and Manuela Veloso. 2021. ABIDES-gym: gym environments for multi-agent discrete event simulation and application to financial markets. In Proceedings of the Second ACM International Conference on AI in Finance. 1–9.
[2]
Robert L Axtell and J Doyne Farmer. 2022. Agent-based modeling in economics and finance: past, present, and future. Journal of Economic Literature (2022).
[3]
Yuanlu Bai, Henry Lam, Tucker Balch, and Svitlana Vyetrenko. 2022. Efficient Calibration of Multi-Agent Simulation Models from Output Series with Bayesian Optimization. In Proceedings of the Third ACM International Conference on AI in Finance. 437–445.
[4]
Jean-Philippe Bouchaud and Marc Potters. 2001. More stylized facts of financial markets: leverage effect and downside correlations. Physica A: Statistical Mechanics and its Applications 299, 1-2 (2001), 60–70.
[5]
Johann Brehmer. 2021. Simulation-based inference in particle physics. Nature Reviews Physics 3, 5 (2021), 305–305.
[6]
Hans Buehler, Blanka Horvath, Terry Lyons, Imanol Perez Arribas, and Ben Wood. 2020. A data-driven market simulator for small data environments. arXiv preprint arXiv:2006.14498 (2020).
[7]
David Byrd, Maria Hybinette, and Tucker Hybinette Balch. 2019. Abides: Towards high-fidelity market simulation for ai research. arXiv preprint arXiv:1904.12066 (2019).
[8]
Patrick Cannon, Daniel Ward, and Sebastian M. Schmon. 2022. Investigating the Impact of Model Misspecification in Neural Simulation-based Inference. arxiv:2209.01845 [stat.ML]
[9]
Qinkai Chen and Christian-Yann Robert. 2022. Multivariate Realized Volatility Forecasting with Graph Neural Network. In Proceedings of the Third ACM International Conference on AI in Finance. 156–164.
[10]
Carl Chiarella. 1992. The dynamics of speculative behaviour. Annals of operations research 37, 1 (1992), 101–123.
[11]
Samuel N Cohen, Derek Snow, and Lukasz Szpruch. 2021. Black-box model risk in finance. arXiv preprint arXiv:2102.04757 (2021).
[12]
Andrea Coletta, Matteo Prata, Michele Conti, Emanuele Mercanti, Novella Bartolini, Aymeric Moulin, Svitlana Vyetrenko, and Tucker Balch. 2021. Towards realistic market simulations: a generative adversarial networks approach. In Proceedings of the Second ACM International Conference on AI in Finance. 1–9.
[13]
Rama Cont. 2001. Empirical properties of asset returns: stylized facts and statistical issues. Quantitative finance 1, 2 (2001), 223.
[14]
Kyle Cranmer, Johann Brehmer, and Gilles Louppe. 2020. The frontier of simulation-based inference. Proceedings of the National Academy of Sciences 117, 48 (2020), 30055–30062.
[15]
Nicols Cruz and Javier Ruiz-del Solar. 2020. Closing the simulation-to-reality gap using generative neural networks: Training object detectors for soccer robotics in simulation as a case study. In 2020 International Joint Conference on Neural Networks (IJCNN). IEEE, 1–8.
[16]
Conor Durkan, Artur Bekasov, Iain Murray, and George Papamakarios. 2019. Neural spline flows. Advances in neural information processing systems 32 (2019).
[17]
David Easley, Marcos M Lopez De Prado, and Maureen O’Hara. 2011. The microstructure of the “flash crash”: flow toxicity, liquidity crashes, and the probability of informed trading. The Journal of Portfolio Management 37, 2 (2011), 118–128.
[18]
Giorgio Fagiolo, Mattia Guerini, Francesco Lamperti, Alessio Moneta, and Andrea Roventini. 2019. Validation of agent-based models in economics and finance. Computer simulation validation: fundamental concepts, methodological frameworks, and philosophical perspectives (2019), 763–787.
[19]
Kang Gao, Perukrishnen Vytelingum, Stephen Weston, Wayne Luk, and Ce Guo. 2022. Understanding intra-day price formation process by agent-based financial market simulation: calibrating the extended chiarella model. arXiv preprint arXiv:2208.14207 (2022).
[20]
Pedro J Gonçalves, Jan-Matthis Lueckmann, Michael Deistler, Marcel Nonnenmacher, Kaan Öcal, Giacomo Bassetto, Chaitanya Chintaluri, William F Podlaski, Sara A Haddad, Tim P Vogels, 2020. Training deep neural density estimators to identify mechanistic models of neural dynamics. Elife 9 (2020), e56261.
[21]
Martin D Gould, Mason A Porter, Stacy Williams, Mark McDonald, Daniel J Fenn, and Sam D Howison. 2013. Limit order books. Quantitative Finance 13, 11 (2013), 1709–1742.
[22]
David Greenberg, Marcel Nonnenmacher, and Jakob Macke. 2019. Automatic posterior transformation for likelihood-free inference. In International Conference on Machine Learning. PMLR, 2404–2414.
[23]
Filip Guzy, Michał Woźniak, and Bartosz Krawczyk. 2021. Evaluating and explaining generative adversarial networks for continual learning under concept drift. In 2021 International Conference on Data Mining Workshops (ICDMW). IEEE, 295–303.
[24]
Erik Härkönen, Aaron Hertzmann, Jaakko Lehtinen, and Sylvain Paris. 2020. Ganspace: Discovering interpretable gan controls. Advances in Neural Information Processing Systems 33 (2020), 9841–9850.
[25]
Joeri Hermans, Volodimir Begy, and Gilles Louppe. 2020. Likelihood-free mcmc with amortized approximate ratio estimators. In International conference on machine learning. PMLR, 4239–4248.
[26]
Daolang Huang, Ayush Bharti, Amauri Souza, Luigi Acerbi, and Samuel Kaski. 2023. Learning Robust Statistics for Simulation-based Inference under Model Misspecification. arxiv:2305.15871 [stat.ML]
[27]
Ivan Kobyzev, Simon JD Prince, and Marcus A Brubaker. 2020. Normalizing flows: An introduction and review of current methods. IEEE transactions on pattern analysis and machine intelligence 43, 11 (2020), 3964–3979.
[28]
Adam A Majewski, Stefano Ciliberti, and Jean-Philippe Bouchaud. 2020. Co-existence of trend and value in financial markets: Estimating an extended Chiarella model. Journal of Economic Dynamics and Control 112 (2020), 103791.
[29]
George Papamakarios. 2019. Neural density estimation and likelihood-free inference. arXiv preprint arXiv:1910.13233 (2019).
[30]
George Papamakarios and Iain Murray. 2016. Fast ε -free inference of simulation models with bayesian conditional density estimation. Advances in neural information processing systems 29 (2016).
[31]
George Papamakarios, Theo Pavlakou, and Iain Murray. 2017. Masked autoregressive flow for density estimation. Advances in neural information processing systems 30 (2017).
[32]
Vasiliki Plerou, Parameswaran Gopikrishnan, Bernd Rosenow, Luis AN Amaral, and H Eugene Stanley. 2000. Econophysics: financial time series from a statistical physics point of view. Physica A: Statistical Mechanics and its Applications 279, 1-4 (2000), 443–456.
[33]
Tobias Preis, Sebastian Golke, Wolfgang Paul, and Johannes J Schneider. 2006. Multi-agent-based order book model of financial markets. Europhysics Letters 75, 3 (2006), 510.
[34]
Egle Samanidou, Elmar Zschischang, Dietrich Stauffer, and Thomas Lux. 2007. Agent-based models of financial markets. Reports on Progress in Physics 70, 3 (2007), 409.
[35]
Zijian Shi and John Cartlidge. 2023. Neural Stochastic Agent-Based Limit Order Book Simulation: A Hybrid Methodology. arXiv preprint arXiv:2303.00080 (2023).
[36]
George J Stigler. 1963. Public regulation of the securities markets. Bus. Law. 19 (1963), 721.
[37]
Namid R Stillman, Silke Henkes, Roberto Mayor, and Gilles Louppe. 2023. Graph-informed simulation-based inference for models of active matter. arXiv preprint arXiv:2304.06806 (2023).
[38]
Victor Storchan, Svitlana Vyetrenko, and Tucker Balch. 2021. Learning who is in the market from time series: market participant discovery through adversarial calibration of multi-agent simulators. arXiv preprint arXiv:2108.00664 (2021).
[39]
Timo Teräsvirta and Zhenfang Zhao. 2011. Stylized facts of return series, robust estimates and three popular models of volatility. Applied financial economics 21, 1-2 (2011), 67–94.
[40]
Svitlana Vyetrenko, David Byrd, Nick Petosa, Mahmoud Mahfouz, Danial Dervovic, Manuela Veloso, and Tucker Balch. 2020. Get real: Realism metrics for robust limit order book market simulations. In Proceedings of the First ACM International Conference on AI in Finance. 1–8.
[41]
Zihao Zhang, Stefan Zohren, and Stephen Roberts. 2019. Deeplob: Deep convolutional neural networks for limit order books. IEEE Transactions on Signal Processing 67, 11 (2019), 3001–3012.
[42]
Wenshuai Zhao, Jorge Pena Queralta, Li Qingqing, and Tomi Westerlund. 2020. Towards closing the sim-to-real gap in collaborative multi-robot deep reinforcement learning. In 2020 5th International Conference on Robotics and Automation Engineering (ICRAE). IEEE, 7–12.

Index Terms

  1. Deep Calibration of Market Simulations using Neural Density Estimators and Embedding Networks
    Index terms have been assigned to the content through auto-classification.

    Recommendations

    Comments

    Information & Contributors

    Information

    Published In

    cover image ACM Other conferences
    ICAIF '23: Proceedings of the Fourth ACM International Conference on AI in Finance
    November 2023
    697 pages
    ISBN:9798400702402
    DOI:10.1145/3604237
    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected].

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    Published: 25 November 2023

    Permissions

    Request permissions for this article.

    Check for updates

    Author Tags

    1. Agent-based Models
    2. Embedding networks
    3. Market simulator
    4. Neural density estimators
    5. Simulation-based inference

    Qualifiers

    • Research-article
    • Research
    • Refereed limited

    Conference

    ICAIF '23

    Contributors

    Other Metrics

    Bibliometrics & Citations

    Bibliometrics

    Article Metrics

    • 0
      Total Citations
    • 105
      Total Downloads
    • Downloads (Last 12 months)105
    • Downloads (Last 6 weeks)11
    Reflects downloads up to 01 Nov 2024

    Other Metrics

    Citations

    View Options

    Get Access

    Login options

    View options

    PDF

    View or Download as a PDF file.

    PDF

    eReader

    View online with eReader.

    eReader

    HTML Format

    View this article in HTML Format.

    HTML Format

    Media

    Figures

    Other

    Tables

    Share

    Share

    Share this Publication link

    Share on social media