Abstract
dc:description.abstractThe growing complexity and volatility observed in global financial markets pose significant challenges for traditional statistical models and human-driven analysis, which frequently fail to account for the nonlinear and evolving patterns embedded in stock price behavior. Recent progress in AI and machine learning has paved the way for the development of more accurate and dependable prediction methodologies. This dissertation presents a comprehensive comparative study on the application of AI and ML algorithms for stock price and stock trend prediction, addressing both regression tasks and classification tasks. Five representative models are systematically evaluated: Decision Tree, Support Vector Machine, Long Short-Term Memory network, Random Forest, and XGBoost. The experimental data is sourced from the AKShare interface, comprising daily trading records of 10 major U.S. stocks across key sectors, including technology, finance, consumer goods, and pharmaceuticals, spanning a six-year period from January 2020 to December 2025. The models are evaluated under multiple configurations: sequence lengths of 1, 7, and 30 days, and prediction periods of 1, 7, and 30 days. Performance is assessed using regression metrics and classification metrics . The results demonstrate that ensemble methods achieve the highest accuracy in regression tasks, with R2 consistently above 0.91 and RMSE significantly lower than other models. In classification tasks, LSTM and XGBoost outperform their counterparts, achieving accuracy improvements of up to 5 percentage points over random guessing, i particularly in medium-term predictions (7 days). The inclusion of technical indicators yields modest gains in classification accuracy (0.4–1.2 percentage points) but degrades regression performance for most models. Sequence length impacts model performance in a model-dependent manner: ensemble models exhibit monotonic decline with longer sequences, LSTM follows an inverted U-shaped pattern, SVM shows sharp degradation, and Decision Tree performance remains near-random. Notably, long-term prediction proves inherently challenging, with all models struggling to exceed an accuracy of 0.53. This dissertation concludes that no single model is universally optimal. Model selection should be guided by task type, prediction period, and feature set. At the end of this dissertation are the limitations and recommendation in future work.
Degree
thesis:*- College dc:contributor.school
- School of Electrical and Electronic Engineering
- Grantor dc:publisher
- Nanyang Technological University
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- An, Feng
- Advisor dc:contributor.supervisor
-
- Mohammed Yakoob Siyal
Subjects
dc:subject × 1Rights
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/10356/214323