Combination of Historical Stock Data and External Factors In Improving Stock Price Prediction Performance
DOI:
https://doi.org/10.21776/jeeccis.v18i2.1707Keywords:
GRU, Attention, random forest regressor, stockAbstract
Stock price prediction continues to be a major focus for investors today, some previous studies often focus on technical analysis using historical stock price data and ignore external factors that can affect stock prices. The purpose of this research is to overcome the shortcomings of previous research by creating a stock price prediction model that combines historical stock data consisting of date, high, low, open, close, adj close, volume and external factors such as days, interest rates, inflation, and dividends. The data used came from 33 companies from 11 industrial sectors in Indonesia for 2267 trading days and evaluated the prediction performance using MSE, MAPE and R-squared. The results show a significant improvement in the evaluation metrics when external factors are added. This shows the importance of such factors in improving the prediction analysis and increasing the reliability of the prediction model. This approach is expected to not only overcome the limitations of traditional methods but also utilize a combination of deep learning and machine learning to improve prediction accuracy. Thus, this research not only provides new insights in the field of financial analysis but also provides new insights and solutions for investors to make more informed and less risky decisions.
References
Adyatma, S F and Alamsyah, A, "The Indonesia Stock Exchange Composite Prediction based on Macroeconomic Indicators using ARIMA, LSTM, and ANN," 2022 8th International Conference on Science and Technology (ICST), Yogyakarta, Indonesia, 2022, pp. 1-5, doi: 10.1109/ICST56971.2022.10136262.
Bahandau, D., Cho, K., and Bengio, Y. (2014). Neural Machine Translation by Jointly Learning to Align and Translate. Https://Doi.Org/10.48550/Arxiv.1409.0473.
Bi Rate, 2023. Tersedia Di: . [Accessed 20 September 2023].
Data Inflasi, 2023, Tersedia Di: . [Accessed 20 September 2023]
Chen, L.-P., 2020. Using Machine Learning Algorithms on Prediction of Stock Price. J. Model. Optim. 12, 84–99. Https://Doi.Org/10.32732/Jmo.2020.12.2.84.
Chicco, D., Warrens, M. J., And Jurman, G. (2021). The Coefficient of Determination R-Squared Is More Informative Than MAPE, MAE, MAPE, MSE and RMSE in Regression Analysis Evaluation. Peerj Computer Science, 7, E623. Https://Doi.Org/10.7717/Peerj-Cs.623
Economic Times, 2023. What Is Dividend. Tersedia Di:. Accessed 23 Oktober 2023.
Fu, S., Tang, Z., Li, J., 2023. Ibm Stock Forecast Using LSTM, GRU, Attention and Transformer Models, In: 2023 Ieee International Conference on Control, Electronics and Computer Technology (Iccect). Ieee, Pp. 167–172. Https://Doi.Org/10.1109/Iccect57938.2023.10140896.
Gao, Y., Wang, R., Zhou, E., 2021. Stock Prediction Based on Optimized LSTM and GRU Models. Scientific Programming, 2021, 1–8. Https://Doi.Org/10.1155/2021/4055281.
Gayaker, S., Yalcin, Y., Berument, M.H., 2020. The Day Of The Week Effect And Interest Rates. Borsa Istanbul Review 20, 55–63. Https://Doi.Org/10.1016/J.Bir.2019.07.010.
Gordon, M. V., And Clark, T. E. (2023). The Impacts Of Supply Chain Disruptions On Inflation. Economic Commentary (Federal Reserve Bank of Cleveland), 2023–08. Https://Doi.Org/10.26509/Frbc-Ec-202308
Illa, P.K., Parvathala, B., Sharma, A.K., 2022. Stock Price Prediction Methodology Using Random Forest Algorithm and Support Vector Machine. Materials Today: Proceedings 56, 1776–1782. Https://Doi.Org/10.1016/J.Matpr.2021.10.460.
Jadon, A., Patil, A., Jadon, S., 2022. A Comprehensive Survey of Regression Based Loss Functions For Time Series Forecasting. Https://Doi.Org/10.48550/Arxiv.2211.02989.
Javid, I., Khalaf, A., & Ghazali, R. (2020). Enhanced Accuracy Of Heart Disease Prediction Using Machine Learning And Recurrent Neural Networks Ensemble Majority Voting Method. International Journal of Advanced Computer Science and Applications, 11(3). Https://Doi.Org/10.14569/Ijacsa.2020.0110369.
Jung, S., Moon, J., Park, S., and Hwang, E. (2021). An Attention-Based Multilayer GRU Model for Multistep-Ahead Short-Term Load Forecasting. Sensors, 21(5), 1639. Https://Doi.Org/10.3390/S21051639
Kumar, K.V., And Anitha, R., 2022. A Novel Ensambel Model by Combining LSTM, BiLSTM, And Facebook Prophdkkgorithm to Forecast Stock Prices, In: 2022 Third International Conference On Intelligent Computing Instrumentation And Control Technologies (Icicict). Ieee, Pp. 1044–1047. Https://Doi.Org/10.1109/Icicict54557.2022.9917634.
Li, Y., Li, L., Zhao, X., Ma, T., Zou, Y., Chen, M., 2020. An Attention-Based LSTM Model for Stock Price Trend Prediction Using Limit Order Books. Journal Of Physics: Conference Series 1575, 012124. Https://Doi.Org/10.1088/1742-6596/1575/1/012124.
Liu, Y., 2022. Stock Prediction Using LSTM and GRU, In: 2022 6th Annual International Conference on Data Science and Business Analytics (Icdsba). Ieee, Pp. 206–211. Https://Doi.Org/10.1109/Icdsba57203.2022.00054
Mehta, S., Rana, P., Singh, S., Sharma, A., Agarwal, P., 2019. Ensambel Learning Approach for Enhanced Stock Prediction, In: 2019 Twelfth International Conference on Contemporary Computing (Ic3). Ieee, Pp. 1–5. Https://Doi.Org/10.1109/Ic3.2019.8844891.
Moghar, A. And Hamiche, M., 2020. Stock Market Prediction Using LSTM Recurrent Neural Network. Procedia Computer Science 170, 1168–1173. Https://Doi.Org/10.1016/J.Procs.2020.03.049.
Otoritas Jasa Keuangan, 2023. Saham. 2021. Http://202.124.203.210/Frontend/Cms/Category/64. Accessed 23 Oktober 2023.
Polepally, V., Reddy, N.S.N., Sindhuja, M., Anjali, N., Reddy, K.J., 2021. A Deep Learning ApproachfFor Prediction of Stock Price Based On Neural Network Models: LSTM And GRU, In: 2021 12th International Conference On Computing Communication And Networking Technologies (Icccnt). Ieee, Pp. 1–4. Https://Doi.Org/10.1109/Icccnt51525.2021.9579782.
Qiu, J., Wang, B., And Zhou, C. (2020). Forecasting Stock Prices With Long-Short Term Memory Neural Network Based On Attention Mechanism. Plos One, 15(1), E0227222. Https://Doi.Org/10.1371/Journal.Pone.0227222
Rao, N.S.S.V.S., Thangaraj, S.J.J., 2023. Flight Ticket Prediction Using Random Forest Regressor Compared with Decision Tree Regressor, In: 2023 Eighth International Conference on Science Technology Engineering and Mathematics (Iconstem). Ieee, Pp. 1–5. Https://Doi.Org/10.1109/Iconstem56934.2023.10142260.
Saha, S., Gao, J., & Gerlach, R. (2021). Stock Movement Prediction on Ex-Dividend Day Using Event Specific Features and Machine Learning Techniques. 2021 International Joint Conference on Neural Networks (Ijcnn), 1–10. Https://Doi.Org/10.1109/Ijcnn52387.2021.9533799
Saham. Pt Bursa Efek Indonesia. 2016. Tersedia Di: . [Accessed 23 September 2023].
Shah, A., Gor, M., Sagar, M., Shah, M., 2022. A Stock Market Trading Framework Based on Deep Learning Architectures. Multimedia Tools and Applications 81, 14153–14171. Https://Doi.Org/10.1007/S11042-022-12328-X
Sonkavde, G., Dharrao, D. S., Bongale, A. M., Deokate, S. T., Doreswamy, D., & Bhat, S. K. (2023). Forecasting Stock Market Prices Using Machine Learning and Deep Learning Models: A Systematic Review, Performance Analysis and Discussion Of Implications. International Journal of Financial Studies, 11(3), 94. Https://Doi.Org/10.3390/Ijfs11030094
Stockbit, 2023. Tersedia Di: . [Accessed 10 Oktober 2023>.
Umoh, U. A., Eyoh, I. J., Murugesan, V. S., And Nyoho, E. E. (2022). Fuzzy-Machine Learning Models for The Prediction of Fire Outbreaks: A Comparative Analysis. In Artificial Intelligence and Machine Learning For Edge Computing (Pp. 207–233). Elsevier. Https://Doi.Org/10.1016/B978-0-12-824054-0.00025-3.
Vijh, M., Chandola, D., Tikkiwal, V.A., Kumar, A., 2020. Stock Closing Price Prediction Using Machine Learning Techniques. Procedia Computer Science 167, 599–606. Https://Doi.Org/10.1016/J.Procs.2020.03.326.
Yahoo Finance, 2024. Tersedia Di: < Https://Finance.Yahoo.Com/Sectors/>. Accessed 13 Februari 2024.
Zhang, S., Zhang, H., 2020. Prediction of Stock Closing Prices Based on Attention Mechanism, in: 2020 16th Dahe Fortune China Forum and Chinese High-Educational Management Annual Academic Conference (DFHMC). IEEE, pp. 244–248. https://doi.org/10.1109/DFHMC52214.2020.00053.




