IDEAS home Printed from https://ideas.repec.org/a/hin/jnddns/7119678.html
   My bibliography  Save this article

A Data Organization Method for LSTM and Transformer When Predicting Chinese Banking Stock Prices

Author

Listed:
  • Zong-Yu Peng
  • Pei-Chang Guo
  • Chun Wei

Abstract

The accurate prediction of stock prices is not an easy task. The long short-term memory (LSTM) neural network and the transformer are good machine learning models for times series forecasting. In this paper, we use LSTM and transformer to predict prices of banking stocks in China’s A-share market. It is shown that organizing the input data can help get accurate outcomes of the models. In this paper, we first introduce some basic knowledge about LSTM and present prediction results using a standard LSTM model. Then, we show how to organize the input data during the training period and give the comparison results for not only LSTM but also the transformer model. The numerical results show that the prediction results of LSTM and transformer can be improved after the input data are organized when training.

Suggested Citation

  • Zong-Yu Peng & Pei-Chang Guo & Chun Wei, 2022. "A Data Organization Method for LSTM and Transformer When Predicting Chinese Banking Stock Prices," Discrete Dynamics in Nature and Society, Hindawi, vol. 2022, pages 1-8, January.
  • Handle: RePEc:hin:jnddns:7119678
    DOI: 10.1155/2022/7119678
    as

    Download full text from publisher

    File URL: http://downloads.hindawi.com/journals/ddns/2022/7119678.pdf
    Download Restriction: no

    File URL: http://downloads.hindawi.com/journals/ddns/2022/7119678.xml
    Download Restriction: no

    File URL: https://libkey.io/10.1155/2022/7119678?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
    ---><---

    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:hin:jnddns:7119678. 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: Mohamed Abdelhakeem (email available below). General contact details of provider: https://www.hindawi.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.