IDEAS home Printed from https://ideas.repec.org/a/taf/quantf/v25y2025i6p873-893.html
   My bibliography  Save this article

Stock market simulator using hidden Markov generative model and its application in risk measurement

Author

Listed:
  • Riasat Ali Istiaque
  • Chi Seng Pun
  • Brandon Yung Sin Yong

Abstract

We propose a novel data-driven framework, called hidden Markov generative model, which combines the hidden Markov model (HMM) and a generative model for simulating a sequence of data. Specifically, we use the Wasserstein generative adversarial network (WGAN) as the generative model and use the resulting setup, HMM-WGAN, for simulating multivariate stock returns. In line with the original GAN model for images, we depict the invisible hands in financial markets as market painters and the different market regimes as distinct observable painting styles. The framework comprises of two phases. In Phase I, we train a time-homogeneous HMM to identify market painters for each trading day using a set of realized exogenous features. In Phase II, the painting style for each market painter is learned adversarially from a set of realized stock returns using WGAN. Subsequently, the market painter for the next trading day is simulated with the current regime and the trained HMM's transition matrix, and the consequent painting, i.e. multivariate stock returns, is then generated using the market painter's trained WGAN generator. Our empirical results demonstrate that the simulated multivariate stock returns not only replicate a comprehensive set of well-documented stylized facts—including heavy-tailed distributions, volatility clustering, and leverage effects—but also yield a more robust value-at-risk estimates compared to traditional approaches. As such, our framework provides a flexible, data-driven alternative to conventional parametric models without imposing restrictive assumptions.

Suggested Citation

  • Riasat Ali Istiaque & Chi Seng Pun & Brandon Yung Sin Yong, 2025. "Stock market simulator using hidden Markov generative model and its application in risk measurement," Quantitative Finance, Taylor & Francis Journals, vol. 25(6), pages 873-893, June.
  • Handle: RePEc:taf:quantf:v:25:y:2025:i:6:p:873-893
    DOI: 10.1080/14697688.2025.2511115
    as

    Download full text from publisher

    File URL: http://hdl.handle.net/10.1080/14697688.2025.2511115
    Download Restriction: Access to full text is restricted to subscribers.

    File URL: https://libkey.io/10.1080/14697688.2025.2511115?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    More about this item

    Statistics

    Access and download statistics

    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:taf:quantf:v:25:y:2025:i:6:p:873-893. 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.

    We have no bibliographic references for this item. You can help adding them by using 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: Chris Longhurst (email available below). General contact details of provider: http://www.tandfonline.com/RQUF20 .

    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.