Enhancing Stock Price Prediction Using Machine Learning Models: A Comparative Study of SVM, LSTM, and GRU
dc.contributor.advisor | Andrea, Ducci | |
dc.contributor.author | AlMohamdy, Razan | |
dc.date.accessioned | 2024-11-26T12:41:04Z | |
dc.date.issued | 2024-08 | |
dc.description.abstract | This study evaluates the effectiveness of three machine learning models—Support Vector Machine (SVM), Long Short-Term Memory (LSTM) networks, and Gated Recurrent Units (GRU)—in predicting the stock prices of Saudi Aramco. Using historical stock price data and technical indicators, the models were assessed based on their accuracy in both long-term and short-term predictions. The findings reveal that LSTM and GRU significantly outperform SVM, with LSTM showing superior performance in capturing long-term dependencies and GRU offering a balance between accuracy and computational efficiency. Specifically, LSTM achieved a Root Mean Squared Error (RMSE) of 0.0516 and a Mean Absolute Error (MAE) of 0.0323, while GRU recorded an RMSE of 0.0539 and an MAE of 0.0234. In contrast, SVM exhibited a much higher RMSE of 0.1712 and an MAE of 0.1079, indicating its struggles with market volatility. The 30-day prediction analysis further highlighted the strengths of LSTM and GRU in short-term forecasting, with both models maintaining an R² value above 0.993, while SVM lagged behind at 0.9332. Despite their advantages, the study identified limitations such as the exclusion of external economic factors and the models' varying effectiveness across different time horizons. These findings contribute to the growing field of financial forecasting, offering practical insights for investors and analysts on model selection. Future research is recommended to incorporate broader economic indicators, explore cross-market validation, and enhance the models' responsiveness to short-term market fluctuations. | |
dc.format.extent | 30 | |
dc.identifier.uri | https://hdl.handle.net/20.500.14154/73800 | |
dc.language.iso | en | |
dc.publisher | University College London | |
dc.subject | Stock Price Prediction Machine Learning Models | |
dc.subject | Support Vector Machine (SVM) | |
dc.subject | Long Short-Term Memory (LSTM) | |
dc.subject | Gated Recurrent Unit (GRU) | |
dc.subject | Comparative Analysis | |
dc.subject | Financial Forecasting | |
dc.subject | Data Preprocessing | |
dc.subject | Technical Indicators | |
dc.subject | Moving Averages (MA) | |
dc.subject | Relative Strength Index (RSI) | |
dc.subject | Moving Average Convergence Divergence (MACD) | |
dc.subject | Time Series Analysis | |
dc.subject | Root Mean Squared Error (RMSE) | |
dc.subject | Mean Squared Error (MSE) | |
dc.subject | Mean Absolute Error (MAE) | |
dc.subject | Hyperparameter Tuning | |
dc.subject | MATLAB | |
dc.subject | Yahoo Finance | |
dc.subject | Saudi Aramco | |
dc.subject | Financial Markets | |
dc.subject | Model Evaluation | |
dc.subject | Investment Decision-Making | |
dc.subject | High-Frequency Trading | |
dc.subject | Feature Selection | |
dc.title | Enhancing Stock Price Prediction Using Machine Learning Models: A Comparative Study of SVM, LSTM, and GRU | |
dc.type | Thesis | |
sdl.degree.department | Mechanical Engineering | |
sdl.degree.discipline | Finance | |
sdl.degree.grantor | University College London | |
sdl.degree.name | MSc Engineering with Finance |