IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2309.16196.html
   My bibliography  Save this paper

Stock Volatility Prediction Based on Transformer Model Using Mixed-Frequency Data

Author

Listed:
  • Wenting Liu
  • Zhaozhong Gui
  • Guilin Jiang
  • Lihua Tang
  • Lichun Zhou
  • Wan Leng
  • Xulong Zhang
  • Yujiang Liu

Abstract

With the increasing volume of high-frequency data in the information age, both challenges and opportunities arise in the prediction of stock volatility. On one hand, the outcome of prediction using tradition method combining stock technical and macroeconomic indicators still leaves room for improvement; on the other hand, macroeconomic indicators and peoples' search record on those search engines affecting their interested topics will intuitively have an impact on the stock volatility. For the convenience of assessment of the influence of these indicators, macroeconomic indicators and stock technical indicators are then grouped into objective factors, while Baidu search indices implying people's interested topics are defined as subjective factors. To align different frequency data, we introduce GARCH-MIDAS model. After mixing all the above data, we then feed them into Transformer model as part of the training data. Our experiments show that this model outperforms the baselines in terms of mean square error. The adaption of both types of data under Transformer model significantly reduces the mean square error from 1.00 to 0.86.

Suggested Citation

  • Wenting Liu & Zhaozhong Gui & Guilin Jiang & Lihua Tang & Lichun Zhou & Wan Leng & Xulong Zhang & Yujiang Liu, 2023. "Stock Volatility Prediction Based on Transformer Model Using Mixed-Frequency Data," Papers 2309.16196, arXiv.org.
  • Handle: RePEc:arx:papers:2309.16196
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2309.16196
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Andersen, Torben G & Bollerslev, Tim, 1998. "Answering the Skeptics: Yes, Standard Volatility Models Do Provide Accurate Forecasts," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 39(4), pages 885-905, November.
    2. Stephen J. Taylor, 1994. "Modeling Stochastic Volatility: A Review And Comparative Study," Mathematical Finance, Wiley Blackwell, vol. 4(2), pages 183-204, April.
    3. Charlotte Christiansen & Maik Schmeling & Andreas Schrimpf, 2012. "A comprehensive look at financial volatility prediction by economic variables," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 27(6), pages 956-977, September.
    4. Bjoern Schulte-Tillman & Mawuli Segnon & Bernd Wilfling, 2022. "Financial-market volatility prediction with multiplicative Markov-switching MIDAS components," CQE Working Papers 9922, Center for Quantitative Economics (CQE), University of Muenster.
    5. J. Piplack, 2009. "Estimating and Forecasting Asset Volatility and Its Volatility: A Markov-Switching Range Model," Working Papers 09-08, Utrecht School of Economics.
    6. Engle, Robert F, 1982. "Autoregressive Conditional Heteroscedasticity with Estimates of the Variance of United Kingdom Inflation," Econometrica, Econometric Society, vol. 50(4), pages 987-1007, July.
    7. Robert F. Engle & Jose Gonzalo Rangel, 2008. "The Spline-GARCH Model for Low-Frequency Volatility and Its Global Macroeconomic Causes," The Review of Financial Studies, Society for Financial Studies, vol. 21(3), pages 1187-1222, May.
    8. Audrino, Francesco & Sigrist, Fabio & Ballinari, Daniele, 2020. "The impact of sentiment and attention measures on stock market volatility," International Journal of Forecasting, Elsevier, vol. 36(2), pages 334-357.
    9. Ghysels, Eric & Santa-Clara, Pedro & Valkanov, Rossen, 2006. "Predicting volatility: getting the most out of return data sampled at different frequencies," Journal of Econometrics, Elsevier, vol. 131(1-2), pages 59-95.
    10. Hartwell, Christopher A., 2018. "The impact of institutional volatility on financial volatility in transition economies," Journal of Comparative Economics, Elsevier, vol. 46(2), pages 598-615.
    11. Gilles Zumbach, 2004. "Volatility processes and volatility forecast with long memory," Quantitative Finance, Taylor & Francis Journals, vol. 4(1), pages 70-86.
    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. Alexander Subbotin & Thierry Chauveau & Kateryna Shapovalova, 2009. "Volatility Models: from GARCH to Multi-Horizon Cascades," Université Paris1 Panthéon-Sorbonne (Post-Print and Working Papers) halshs-00390636, HAL.
    2. Fang, Tong & Lee, Tae-Hwy & Su, Zhi, 2020. "Predicting the long-term stock market volatility: A GARCH-MIDAS model with variable selection," Journal of Empirical Finance, Elsevier, vol. 58(C), pages 36-49.
    3. Grassi, Stefano & Santucci de Magistris, Paolo, 2015. "It's all about volatility of volatility: Evidence from a two-factor stochastic volatility model," Journal of Empirical Finance, Elsevier, vol. 30(C), pages 62-78.
    4. Amendola, A. & Candila, V. & Cipollini, F. & Gallo, G.M., 2024. "Doubly multiplicative error models with long- and short-run components," Socio-Economic Planning Sciences, Elsevier, vol. 91(C).
    5. Christian T. Brownlees & Giampiero M. Gallo, 2010. "Comparison of Volatility Measures: a Risk Management Perspective," Journal of Financial Econometrics, Oxford University Press, vol. 8(1), pages 29-56, Winter.
    6. Mei, Dexiang & Zhao, Chenchen & Luo, Qin & Li, Yan, 2022. "Forecasting the Chinese low-carbon index volatility," Resources Policy, Elsevier, vol. 77(C).
    7. Andrea BUCCI, 2017. "Forecasting Realized Volatility A Review," Journal of Advanced Studies in Finance, ASERS Publishing, vol. 8(2), pages 94-138.
    8. Subbotin, Alexandre, 2009. "Volatility Models: from Conditional Heteroscedasticity to Cascades at Multiple Horizons," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 15(3), pages 94-138.
    9. Denisa Banulescu-Radu & Christophe Hurlin & Bertrand Candelon & Sébastien Laurent, 2016. "Do We Need High Frequency Data to Forecast Variances?," Annals of Economics and Statistics, GENES, issue 123-124, pages 135-174.
    10. Jonathan J. Reeves & Xuan Xie, 2014. "Forecasting stock return volatility at the quarterly frequency: an evaluation of time series approaches," Applied Financial Economics, Taylor & Francis Journals, vol. 24(5), pages 347-356, March.
    11. Mittnik, Stefan & Robinzonov, Nikolay & Spindler, Martin, 2015. "Stock market volatility: Identifying major drivers and the nature of their impact," Journal of Banking & Finance, Elsevier, vol. 58(C), pages 1-14.
    12. Zhu, Haibin & Bai, Lu & He, Lidan & Liu, Zhi, 2023. "Forecasting realized volatility with machine learning: Panel data perspective," Journal of Empirical Finance, Elsevier, vol. 73(C), pages 251-271.
    13. Vladimir Pyrlik & Pavel Elizarov & Aleksandra Leonova, 2021. "Forecasting Realized Volatility Using Machine Learning and Mixed-Frequency Data (the Case of the Russian Stock Market)," CERGE-EI Working Papers wp713, The Center for Economic Research and Graduate Education - Economics Institute, Prague.
    14. Torben G. Andersen & Luca Benzoni, 2008. "Realized volatility," Working Paper Series WP-08-14, Federal Reserve Bank of Chicago.
    15. Xue Gong & Weiguo Zhang & Yuan Zhao & Xin Ye, 2023. "Forecasting stock volatility with a large set of predictors: A new forecast combination method," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(7), pages 1622-1647, November.
    16. Eugenie Hol & Siem Jan Koopman, 2000. "Forecasting the Variability of Stock Index Returns with Stochastic Volatility Models and Implied Volatility," Tinbergen Institute Discussion Papers 00-104/4, Tinbergen Institute.
    17. Kaminska, Iryna & Roberts-Sklar, Matt, 2018. "Volatility in equity markets and monetary policy rate uncertainty," Journal of Empirical Finance, Elsevier, vol. 45(C), pages 68-83.
    18. Christian T. Brownlees & Giampiero Gallo, 2007. "Volatility Forecasting Using Explanatory Variables and Focused Selection Criteria," Econometrics Working Papers Archive wp2007_04, Universita' degli Studi di Firenze, Dipartimento di Statistica, Informatica, Applicazioni "G. Parenti".
    19. Louzis, Dimitrios P. & Xanthopoulos-Sisinis, Spyros & Refenes, Apostolos P., 2014. "Realized volatility models and alternative Value-at-Risk prediction strategies," Economic Modelling, Elsevier, vol. 40(C), pages 101-116.
    20. Giot, Pierre & Laurent, Sebastien, 2004. "Modelling daily Value-at-Risk using realized volatility and ARCH type models," Journal of Empirical Finance, Elsevier, vol. 11(3), pages 379-398, June.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:arx:papers:2309.16196. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.