Stock market prediction using machine learning

Investors, economists, and researchers have always been interested in the stock market. Predicting stock prices accurately is challenging due to its complex nature, influenced by numerous factors, such as political events, economic indicators, and social media trends. Recently, machine learning mode...

全面介紹

Saved in:
書目詳細資料
主要作者: Lim, Alloysius Zong Hong
其他作者: Sourav S Bhowmick
格式: Final Year Project
語言:English
出版: Nanyang Technological University 2023
主題:
在線閱讀:https://hdl.handle.net/10356/166157
標簽: 添加標簽
沒有標簽, 成為第一個標記此記錄!
機構: Nanyang Technological University
語言: English
實物特徵
總結:Investors, economists, and researchers have always been interested in the stock market. Predicting stock prices accurately is challenging due to its complex nature, influenced by numerous factors, such as political events, economic indicators, and social media trends. Recently, machine learning models have gained popularity in predicting stock prices due to their ability to analyze large amounts of data and detect patterns. This project aims to predict stock prices using machine learning, specifically the transformer model and time embedding. The project focuses on predicting the stock prices of technology companies such as Tesla and Google, using a dataset from Yahoo Finance comprising daily stock prices and volume data from January 1980 to March 2023. The project began with a comprehensive literature review that discusses traditional methods of stock prediction, time series models, and recurrent neural networks (RNN). The review reveals the limitations of these methods, such as handling large datasets, modeling long-term dependencies, and slow training times. To overcome these limitations, the project utilizes a transformer model and time embedding for stock prediction. The transformer model is a deep learning architecture, successful in natural language processing tasks and image recognition. Time embedding is a technique that encodes time- related features into a continuous vector space, allowing the model to learn long-term dependencies. The study evaluated the transformer model and time embedding's performance using Mean Average Error (MAE) and Mean Average Percentage Error (MAPE). The results showed that the transformer model and time embedding outperformed other traditional methods. These results demonstrate that the transformer model and time embedding are powerful tools for predicting stock prices and could provide valuable insights to investors. Overall, this project highlights the effectiveness of the transformer model and time embedding for stock prediction, providing a roadmap for future research in this area. The project's findings could assist in investment decision-making and improve stock price predictions' accuracy.