Taken together, the gradient boosting regression
model satisfies the experimental criteria due to its
superior prediction accuracy and is finally
recommended as the main prediction model in this
paper.
4 CONCLUSIONS
Based on the historical stock price data of
Amazon.com from 2000 to 2025, this paper explores
the performance differences of three typical machine
learning regression models with different feature
dimensions and training strategies around the stock
price prediction task. The experimental results show
that ridge regression has a good fitting effect in the
smoother data interval, and the model is concise and
stable in training; the random forest model shows
some advantages in dealing with nonlinear
relationships and feature interactions, but has a high
parameter dependence and is prone to overfitting on
the training set; and the gradient boosting model
shows stronger generalisation ability and robustness
in capturing stock price trends and detailed
fluctuations, and is suitable for complex financial
forecasting environment. Through comparative
analysis, this study not only verifies the effectiveness
of integrated learning models in stock price
prediction, but also provides empirical references for
modelling practices in related fields.
Although this study has achieved some results,
there are still some limitations. Firstly, limited by the
data structure and feature selection, the model has a
limited ability to respond to unexpected events and
extreme market conditions; secondly, more
sophisticated deep learning models, such as LSTM or
Transformer architectures, were not introduced in the
study, and their potential for modelling time series
has not been fully explored. Future research can
further expand in the following aspects: introducing
heterogeneous data from multiple sources (e.g., news,
financial reports, macro indicators) to improve the
diversity and depth of features; applying deep
learning and hybrid modelling techniques to enhance
the model's ability to understand time series structure
and market sentiment; and further optimising the
model tuning strategy and validation method to
improve the practicability and popularity.
In summary, this study demonstrates the
promising application of machine learning in
financial time series forecasting, showing that data-
driven methods have strong modelling capabilities
and decision support value in complex market
environments.
REFERENCES
Adam, H. A., Raditiansyah, F., Imani, M. R., Fawwaz, M.
F., Julham, J., & Lubis, A. R. (2024). Comparison of
ARIMA and LSTM Models in Stock Price Forecasting:
A Case Study of GOTO. JK. Journal of Informatics and
Telecommunication Engineering, 8(1), 94–105.
Khaidem, L., Saha, S., & Dey, S. R. (2016). Predicting the
direction of stock market prices using random forest.
arXiv preprint arXiv:1605.00003.
Kumar, A. (2025). Developing a Stock Price Predictor:
Enhancing Investment Strategies with Machine
Learning. [Online]. Available:
https://medium.com/@amit.saptech/developing-a-
stock-price-predictor-enhancing-investment-strategies-
with-machine-learning-7bcb5aeb5a85
Mehtab, S., & Sen, J. (2020, November). Stock price
prediction using CNN and LSTM-based deep learning
models. In 2020 International Conference on Decision
Aid Sciences and Application (DASA) (pp. 447–453).
IEEE.
Mehtab, S., Sen, J., & Dutta, A. (2020, October). Stock
price prediction using machine learning and LSTM-
based deep learning models. In Symposium on Machine
Learning and Metaheuristics Algorithms, and
Applications (pp. 88–106). Singapore: Springer
Singapore.
Moodi, F., Jahangard-Rafsanjani, A., & Zarifzadeh, S.
(2023). Feature selection and regression methods for
stock price prediction using technical indicators. arXiv
preprint arXiv:2310.09903.
Ngui, S. W. (2023). How to Use Ridge Regression to
Predict a Stock Price. Medium. [Online]. Available:
https://swngui.medium.com/how-to-use-ridge-
regression-to-predict-a-stock-price-1b0099320ef4
Qi, Y. (2024). Research on Stock Price Prediction Based on
LSTM Model and Random Forest. Advances in
Economics, Management and Political Sciences, 86,
35–42.
Reddy, P. V., & Kumar, S. M. (2022, December). A novel
approach to improve accuracy in stock price prediction
using gradient boosting machines algorithm compared
with naive Bayes algorithm. In 2022 4th International
Conference on Advances in Computing,
Communication Control and Networking (ICAC3N)
(pp. 695–699). IEEE.
Zheng, J., Xin, D., Cheng, Q., Tian, M., & Yang, L. (2024).
The random forest model for analyzing and forecasting
the US stock market in the context of smart finance.
arXiv preprint arXiv:2402.17194.