Abstract

Predicting stock market price movement has been a challenging problem for time series forecasting due to its inherent volatility. The introduction of machine learning techniques, such as the use of a recurrent neural network (RNN), have since dominated the field for stock trend forecasting and stock price prediction. RNNs have inherent model limitations that are solved with the introduction of the transformer model, which has since been used in many sequential classification and generative tasks. This study demonstrates the viability of a transformer-based model on the field of stock price prediction by comparing the predictions of a transformer-based model with some RNN-based baseline models on the hourly closing price of Apple (AAPL) stock prices. A dimension reducing simple autoencoder was also incorporated into the transformer model to increase performance. Although RNN-based models are shown to outperform the transformer model in accuracy, the transformer model leads in directional stock accuracy. This demonstrates that the transformer is applicable to compete with RNN based models within the field, along with the incorporation of an autoencoder to further integrate the transformer’s power to this field.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.