Abstract

This paper introduces an innovative approach to forecasting stock prices. Forecasting stock prices is crucial in assisting investors in making informed decisions. Our research presents a unique method that utilizes transformer-based machine learning approach for stock price forecasting. This method exploits self-attention mechanisms to grasp intricate patterns and dynamics within historical stock price data. To bolster our model performance, we integrate investors’ sentiment collected from social media by using sentiment analysis with the help of natural language processing. Utilizing the variation caused by investors’ sentiment over time, as well as external macroeconomic factors, our proposed model outperforms benchmark models. Through extensive comparisons with various benchmark machine-learning algorithms, results produced by our proposed method are favorably comparable to those produced by conventional approaches. Across multiple machine learning models, our preferred model demonstrates superior performance, achieving an RMSE value of 0.96 compared to the RMSE value of 1.58 obtained from LSTM model.

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.