Prediction of stock price direction with machine learning models
Machine Learning (ML) algorithms drew a great deal of attention in the recent years as promising models in time-series predictions, allowing investors to leverage on these computational abilities to perform stock analysis more efficiently. Stock analysis can be done through Technical Analysis (TA),...
Saved in:
Main Author: | |
---|---|
Other Authors: | |
Format: | Final Year Project |
Language: | English |
Published: |
Nanyang Technological University
2024
|
Subjects: | |
Online Access: | https://hdl.handle.net/10356/176943 |
Tags: |
Add Tag
No Tags, Be the first to tag this record!
|
Institution: | Nanyang Technological University |
Language: | English |
id |
sg-ntu-dr.10356-176943 |
---|---|
record_format |
dspace |
spelling |
sg-ntu-dr.10356-1769432024-05-24T15:44:06Z Prediction of stock price direction with machine learning models Kant Kaw Khin Wong Jia Yiing, Patricia School of Electrical and Electronic Engineering EJYWong@ntu.edu.sg Computer and Information Science Artificial intelligence Machine learning Stock price prediction Machine Learning (ML) algorithms drew a great deal of attention in the recent years as promising models in time-series predictions, allowing investors to leverage on these computational abilities to perform stock analysis more efficiently. Stock analysis can be done through Technical Analysis (TA), Fundamental Analysis (FA) and Sentiment Analysis (SA). This project investigates and compares how well ML models can predict the price direction of prominent stocks listed on the SGX based on (1) TA, (2) SA, and (3) a combination of both TA and SA. The ML models used in this paper are Random Forest (RF) Classification, XGBoost Classification, Long Short-Term Memory (LSTM) Classification and LSTM Regression model. The classification models are used to predict price stock direction, while the regression model is used to predict closing prices. RF and XGBoost mostly supported the project’s objective that a model based on TA + SA will perform better than models based on TA and SA individually when predicting stock price direction. Using the stock of Singapore Telecommunications Limited (Z74.SI) as a reference, RF and XGBoost produced accuracy rates of 82% and 78.4% for TA + SA analysis respectively, which is higher than that of models conducting TA and SA individually. However, LSTM Classification model did not perform satisfactorily, with accuracy rate in TA + SA (52.3%) falling behind that of TA only (60.1%). LSTM Regression model was also used to predict closing prices, and its performances was evaluated against a well-known time-series prediction ARIMA model. The results were satisfactory with the LSTM Regression model outperforming for TA + SA as compared to TA and SA individually. Bachelor's degree 2024-05-23T07:18:35Z 2024-05-23T07:18:35Z 2024 Final Year Project (FYP) Kant Kaw Khin (2024). Prediction of stock price direction with machine learning models. Final Year Project (FYP), Nanyang Technological University, Singapore. https://hdl.handle.net/10356/176943 https://hdl.handle.net/10356/176943 en application/pdf Nanyang Technological University |
institution |
Nanyang Technological University |
building |
NTU Library |
continent |
Asia |
country |
Singapore Singapore |
content_provider |
NTU Library |
collection |
DR-NTU |
language |
English |
topic |
Computer and Information Science Artificial intelligence Machine learning Stock price prediction |
spellingShingle |
Computer and Information Science Artificial intelligence Machine learning Stock price prediction Kant Kaw Khin Prediction of stock price direction with machine learning models |
description |
Machine Learning (ML) algorithms drew a great deal of attention in the recent years as promising models in time-series predictions, allowing investors to leverage on these computational abilities to perform stock analysis more efficiently. Stock analysis can be done through Technical Analysis (TA), Fundamental Analysis (FA) and Sentiment Analysis (SA).
This project investigates and compares how well ML models can predict the price direction of prominent stocks listed on the SGX based on (1) TA, (2) SA, and (3) a combination of both TA and SA. The ML models used in this paper are Random Forest (RF) Classification, XGBoost Classification, Long Short-Term Memory (LSTM) Classification and LSTM Regression model. The classification models are used to predict price stock direction, while the regression model is used to predict closing prices.
RF and XGBoost mostly supported the project’s objective that a model based on TA + SA will perform better than models based on TA and SA individually when predicting stock price direction. Using the stock of Singapore Telecommunications Limited (Z74.SI) as a reference, RF and XGBoost produced accuracy rates of 82% and 78.4% for TA + SA analysis respectively, which is higher than that of models conducting TA and SA individually. However, LSTM Classification model did not perform satisfactorily, with accuracy rate in TA + SA (52.3%) falling behind that of TA only (60.1%). LSTM Regression model was also used to predict closing prices, and its performances was evaluated against a well-known time-series prediction ARIMA model. The results were satisfactory with the LSTM Regression model outperforming for TA + SA as compared to TA and SA individually. |
author2 |
Wong Jia Yiing, Patricia |
author_facet |
Wong Jia Yiing, Patricia Kant Kaw Khin |
format |
Final Year Project |
author |
Kant Kaw Khin |
author_sort |
Kant Kaw Khin |
title |
Prediction of stock price direction with machine learning models |
title_short |
Prediction of stock price direction with machine learning models |
title_full |
Prediction of stock price direction with machine learning models |
title_fullStr |
Prediction of stock price direction with machine learning models |
title_full_unstemmed |
Prediction of stock price direction with machine learning models |
title_sort |
prediction of stock price direction with machine learning models |
publisher |
Nanyang Technological University |
publishDate |
2024 |
url |
https://hdl.handle.net/10356/176943 |
_version_ |
1814047439045263360 |