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

Transformer-Based Downside Risk Forecasting: A Data-Driven Approach with Realized Downward Semi-Variance

Author

Listed:
  • Yuping Song

    (School of Finance and Business, Shanghai Normal University, Shanghai 200234, China
    These authors contributed equally to this work.)

  • Yuetong Zhang

    (School of Mathematics, Shandong University, Jinan 250100, China
    These authors contributed equally to this work.)

  • Po Ning

    (School of Finance and Business, Shanghai Normal University, Shanghai 200234, China
    These authors contributed equally to this work.)

  • Jiayi Peng

    (School of Finance and Business, Shanghai Normal University, Shanghai 200234, China)

  • Chunyu Kao

    (Securities Institute for Financial Studies, Shandong University, Jinan 250100, China)

  • Liang Hao

    (School of Finance and Business, Shanghai Normal University, Shanghai 200234, China)

Abstract

Realized downward semi-variance (RDS) has been realized as a key indicator to measure the downside risk of asset prices, and the accurate prediction of RDS can effectively guide traders’ investment behavior and avoid the impact of market fluctuations caused by price declines. In this paper, the RDS rolling prediction performance of the traditional econometric model, machine learning model, and deep learning model is discussed in combination with various relevant influencing factors, and the sensitivity analysis is further carried out with the rolling window length, prediction length, and a variety of evaluation methods. In addition, due to the characteristics of RDS, such as aggregation and jumping, this paper further discusses the robustness of the model under the impact of external events, the influence of emotional factors on the prediction accuracy of the model, and the results and analysis of the hybrid model. The empirical results show that (1) when the rolling window is set to 20, the overall prediction effect of the model in this paper is the best. Taking the Transformer model under SSE as an example, compared with the prediction results under the rolling window length of 5, 10, and 30, the RMSE improvement ratio reaches 24.69%, 15.90%, and 43.60%, respectively. (2) The multivariable Transformer model shows a better forecasting effect. Compared with traditional econometric, machine learning, and deep learning models, the average increase percentage of RMSE, MAE, MAPE, SMAPE, MBE, and SD indicators is 52.23%, 20.03%, 62.33%, 60.33%, 37.57%, and 18.70%, respectively. (3) In multi-step prediction scenarios, the DM test statistic of the Transformer model is significantly positive, and the prediction accuracy of the Transformer model remains stable as the number of prediction steps increases. (4) Under the impact of external events of COVID-19, the Transformer model has stability, and the addition of emotional factors can effectively improve the prediction accuracy. In addition, the model’s prediction performance and generalization ability can be further improved by stacked prediction models. An in-depth study of RDS forecasting is of great value to capture the characteristics of downside risks, enrich the financial risk measurement system, and better evaluate potential losses.

Suggested Citation

  • Yuping Song & Yuetong Zhang & Po Ning & Jiayi Peng & Chunyu Kao & Liang Hao, 2025. "Transformer-Based Downside Risk Forecasting: A Data-Driven Approach with Realized Downward Semi-Variance," Mathematics, MDPI, vol. 13(8), pages 1-28, April.
  • Handle: RePEc:gam:jmathe:v:13:y:2025:i:8:p:1260-:d:1632745
    as

    Download full text from publisher

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

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

    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:13:y:2025:i:8:p:1260-:d:1632745. 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: 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.