Pemodelan Deret Waktu Menggunakan Non-linear Autoregressive Neural Network: Studi Kasus Prediksi Harga Saham Mandiri

Mohamad Khoirun Najib, Sri Nurdiati

Abstract


Accurate stock price forecasting is critical for investment decision-making, yet the nonlinear and complex nature of time series data poses significant challenges. This study investigates the application of the Nonlinear Autoregressive Neural Network (NARNN) for modeling the monthly stock price time series of PT Bank Mandiri (Persero) Tbk (BMRI) from January 2011 to December 2023. The model is constructed by exploring combinations of feedback delays and hidden neurons to identify the optimal configuration based on the root mean squared error. The dataset is divided into training, validation, and testing. Evaluation results show that the configurations 8–12 and 8–13 yield the best testing accuracy with a MAPE of 4.71%. An ensemble mean strategy is also employed, producing competitive and stable performance. These findings demonstrate that the NARNN approach effectively captures nonlinear patterns in stock data and holds promise for financial forecasting applications.


Keywords


Artificial Neural Network; NARNN; Prediction; Stock Price; Time Series Forecasting

Full Text:

PDF

References


M. Mudelsee, “Trend analysis of climate time series: A review of methods,” Earth-Science Reviews, vol. 190, pp. 310–322, 2019. doi:10.1016/j.earscirev.2018.12.005.

D. S. Stoffer and H. Ombao, “Special issue on time series analysis in the biological sciences,” pp. 701–703, 2012. doi:10.1111/j.1467-9892.2012.00805.x.

B. Lim and S. Zohren, “Time-series forecasting with deep learning: A survey,” Philosophical Transactions of the Royal Society A, vol. 379, no. 2194, p. 20200209, 2021. doi:10.1098/rsta.2020.0209.

U. Chatterjee, “Forecasting economic growth: Evidence from housing, banking, and credit conditions,” Journal of Economics and Finance, vol. 47, no. 4, pp. 936–958, 2023. doi:10.1007/s12197-023-09637-8.

K. He, Q. Yang, L. Ji, J. Pan, and Y. Zou, “Financial time series forecasting with the deep learning ensemble model,” Mathematics, vol. 11, no. 4, p. 1054, 2023. doi:10.3390/math11041054.

M. Shahvaroughi Farahani and S. H. Razavi Hajiagha, “Forecasting stock price using integrated artificial neural network and metaheuristic algorithms compared to time series models,” Soft Computing, vol. 25, no. 13, pp. 8483–8513, 2021. doi:10.1007/s00500-021-05775-5.

A. Mystakidis, P. Koukaras, N. Tsalikidis, D. Ioannidis, and C. Tjortjis, “Energy forecasting: A comprehensive review of techniques and technologies,” Energies, vol. 17, no. 7, p. 1662, 2024. doi:10.3390/en17071662.

J. Kaur, K. S. Parmar, and S. Singh, “Autoregressive models in environmental forecasting time series: A theoretical and application review,” Environmental Science and Pollution Research, vol. 30, no. 8, pp. 19617–19641, 2023. doi:10.1007/s11356-023-25148-9.

C. Li and Q. Qi, “A novel hybrid grey system forecasting model based on seasonal fluctuation characteristics for electricity consumption in primary industry,” Energy, vol. 287, p. 129585, 2024. doi:10.1016/j.energy.2023.129585.

M. Russo, D. Carvalho, N. Martins, and A. Monteiro, “Forecasting the inevitable: A review on the impacts of climate change on renewable energy resources,” Sustainable Energy Technologies and Assessments, vol. 52, p. 102283, 2022. doi:10.1016/j.seta.2022.102283.

L. Vancsura, T. Tatay, and T. Bareith, “Evaluating the effectiveness of modern forecasting models in predicting commodity futures prices in volatile economic times,” Risks, vol. 11, no. 2, p. 27, 2023. doi:10.3390/risks11020027.

N. Döhler, C. Wellenreuther, and A. Wolf, “Market dynamics of biodegradable bio-based plastics: Projections and linkages to European policies,” EFB Bioeconomy Journal, vol. 2, p. 100028, 2022. doi:10.1016/j.bioeco.2022.100028.

L. C. Roy, S. K. Das, M. S. Yeasar, M. R. Islam, S. Alam, and M. Mamun, “Capturing rainfall dynamics: The efficacy of ARIMA models in environmental forecasting,” in Proceedings of the 7th International Conference on Advances in Civil Engineering (ICACE2024), Chattogram, Bangladesh: CUET, Dec. 2024, pp. 583–590.

A. G. Billé, A. Gianfreda, F. Del Grosso, and F. Ravazzolo, “Forecasting electricity prices with expert, linear, and nonlinear models,” International Journal of Forecasting, vol. 39, no. 2, pp. 570–586, 2023.

J. Wang, X. Sun, Q. Cheng, and Q. Cui, “An innovative random forest-based nonlinear ensemble paradigm of improved feature extraction and deep learning for carbon price forecasting,” Science of the Total Environment, vol. 762, p. 143099, 2021. doi:10.1016/j.scitotenv.2020.143099.

S. Jaipuria and S. Mahapatra, “A hybrid forecasting technique to deal with heteroskedastic demand in a supply chain,” Operations and Supply Chain Management: An International Journal, vol. 14, no. 2, pp. 123–132, 2021. doi:10.31387/oscm0450291.

A. Mahmud, I. Hamilton, V. V. Gayah, and R. J. Porter, “Estimation of VMT using heteroskedastic log-linear regression models,” Transportation Letters, vol. 16, no. 4, pp. 320–329, 2024. doi:10.1080/19427867.2023.2189802.

A. Ameur, A. Berrada, and A. Emrani, “Dynamic forecasting model of a hybrid photovoltaic/gravity energy storage system for residential applications,” Energy and Buildings, vol. 271, p. 112325, 2022. doi:10.1016/j.enbuild.2022.112325.

M. Ala’raj, M. Majdalawieh, and N. Nizamuddin, “Modeling and forecasting of COVID-19 using a hybrid dynamic model based on SEIRD with ARIMA corrections,” Infectious Disease Modelling, vol. 6, pp. 98–111, 2021. doi:10.1016/j.idm.2020.11.007.

Q. Huang, Z. Zhou, K. Yang, and Y. Wang, “Exploiting language power for time series forecasting with exogenous variables,” in Proceedings of the ACM on Web Conference 2025, 2025, pp. 4043–4052. doi:10.1145/3696410.3714793.

Y. Wang, H. Wu, J. Dong, G. Qin, H. Zhang, Y. Liu, Y. Qiu, J. Wang, and M. Long, “Timexer: Empowering transformers for time series forecasting with exogenous variables,” arXiv preprint arXiv:2402.19072, 2024.

K. G. Olivares, C. Challu, G. Marcjasz, R. Weron, and A. Dubrawski, “Neural basis expansion analysis with exogenous variables: Forecasting electricity prices with NBEATSx,” International Journal of Forecasting, vol. 39, no. 2, pp. 884–900, 2023. doi:10.1016/j.ijforecast.2022.03.001.

W. Song and S. Fujimura, “Capturing combination patterns of long- and short-term dependencies in multivariate time series forecasting,” Neurocomputing, vol. 464, pp. 72–82, 2021. doi:10.1016/j.neucom.2021.08.100.

X. Guo, Y. Gao, Y. Li, D. Zheng, and D. Shan, “Short-term household load forecasting based on long- and short-term time-series network,” Energy Reports, vol. 7, pp. 58–64, 2021. doi:10.54097/fbem.v9i2.9139.

G. T. Igwama, J. A. Olaboye, C. C. Maha, M. D. Ajegbile, and S. Abdul, “Big data analytics for epidemic forecasting: Policy frameworks and technical approaches,” International Journal of Applied Research in Social Sciences, vol. 6, no. 7, pp. 1449–1460, 2024. doi:10.51594/ijarss.v6i7.1334.

M. Fathi, M. Haghi Kashani, S. M. Jameii, and E. Mahdipour, “Big data analytics in weather forecasting: A systematic review,” Archives of Computational Methods in Engineering, vol. 29, no. 2, pp. 1247–1275, 2022. doi:10.1007/s11831-021-09616-4.

C. Zhao, M. Wu, J. Liu, Z. Duan, L. Shen, X. Shangguan, D. Liu, Y. Wang et al., “Progress and prospects of data-driven stock price forecasting research,” International Journal of Cognitive Computing in Engineering, vol. 4, pp. 100–108, 2023. doi:10.1016/j.ijcce.2023.03.001.

P. H. Vuong, L. H. Phu, T. H. Van Nguyen, L. N. Duy, P. T. Bao, and T. D. Trinh, “A bibliometric literature review of stock price forecasting: From statistical model to deep learning approach,” Science Progress, vol. 107, no. 1, p. 00368504241236557, 2024. doi:10.1177/00368504241236557.

S. Keswani, V. Puri, and R. Jha, “Relationship among macroeconomic factors and stock prices: Cointegration approach from the Indian stock market,” Cogent Economics & Finance, vol. 12, no. 1, p. 2355017, 2024. doi:10.1080/23322039.2024.2355017.

Y. Zhang, J. He, M. He, and S. Li, “Geopolitical risk and stock market volatility: A global perspective,” Finance Research Letters, vol. 53, p. 103620, 2023. doi:10.1016/j.frl.2022.103620.

Q. Guo, “The relationship between investor sentiment and stock market price,” Frontiers in Business, Economics and Management, vol. 9, no. 2, pp. 124–129, 2023. doi:10.54097/fbem.v9i2.9139.

H. Alabdulrazzaq, M. N. Alenezi, Y. Rawajfih, B. A. Alghannam, A. A. AlHassan, and F. S. Al-Anzi, “On the accuracy of ARIMA based prediction of COVID-19 spread,” Results in Physics, vol. 27, p. 104509, 2021. doi:10.1016/j.rinp.2021.104509.

V. Vig, “Time series forecasting using ARIMA models: A systematic literature review of 2000s,” Computational Intelligence Applications for Software Engineering Problems, pp. 135–152, 2023. doi:10.1201/9781003283195-7.

S. Ma, Q. Liu, and Y. Zhang, “A prediction method of fire frequency: Based on the optimization of SARIMA model,” PLoS One, vol. 16, no. 8, p. e0255857, 2021. doi:10.1371/journal.pone.0255857.

N. Deretić, D. Stanimirović, M. A. Awadh, N. Vujanović, and A. Djukić, “SARIMA modelling approach for forecasting of traffic accidents,” Sustainability, vol. 14, no. 8, p. 4403, 2022. doi:10.3390/su14084403.

W. Sulandari, Suhartono, Subanar, and P. C. Rodrigues, “Exponential smoothing on modeling and forecasting multiple seasonal time series: An overview,” Fluctuation and Noise Letters, vol. 20, no. 04, p. 2130003, 2021. doi:10.1142/S0219477521300032.

M. Mirdaolivia and A. Amelia, “Metode exponential smoothing untuk forecasting jumlah penduduk miskin di Kota Langsa,” Jurnal Gamma-PI, vol. 3, no. 1, pp. 47–52, 2021. doi:10.33059/jgp.v3i1.3771.

R. Kozma, C. Alippi, Y. Choe, and F. C. Morabito, Artificial Intelligence in the Age of Neural Networks and Brain Computing. Academic Press, 2023. doi:10.1016/C2021-0-01760-0.

R. Qamar and B. A. Zardari, “Artificial neural networks: An overview,” Mesopotamian Journal of Computer Science, vol. 2023, pp. 124–133, 2023. doi:10.58496/MJCSC/2023/015.

R. Saleem, B. Yuan, F. Kurugollu, A. Anjum, and L. Liu, “Explaining deep neural networks: A survey on the global interpretation methods,” Neurocomputing, vol. 513, pp. 165–180, 2022. doi:10.1016/j.neucom.2022.09.045.

Z. Wang, S. Ruan, T. Huang, H. Zhou, S. Zhang, Y. Wang, L. Wang, Z. Huang, and Y. Liu, “A lightweight multi-layer perceptron for efficient multivariate time series forecasting,” Knowledge-Based Systems, vol. 288, p. 111463, 2024. doi:10.1016/j.knosys.2023.111463.

O. Trisnawati and M. Prastuti, “Peramalan curah hujan di Stasiun Juanda menggunakan metode ARIMA Box-Jenkins dan radial basis function neural network,” Jurnal Sains dan Seni ITS, vol. 11, no. 1, pp. D82–D88, 2022. doi:10.12962/j23373520.v11i1.63165.

H. Hewamalage, C. Bergmeir, and K. Bandara, “Recurrent neural networks for time series forecasting: Current status and future directions,” International Journal of Forecasting, vol. 37, no. 1, pp. 388–427, 2021. doi:10.1016/j.ijforecast.2020.06.008.

B. Lindemann, T. Müller, H. Vietz, N. Jazdi, and M. Weyrich, “A survey on long short-term memory networks for time series prediction,” Procedia CIRP, vol. 99, pp. 650–655, 2021. doi:10.1016/j.procir.2021.03.088.

X. Xu and Y. Zhang, “Soybean and soybean oil price forecasting through the nonlinear autoregressive neural network (NARNN) and NARNN with exogenous inputs (NARNN–X),” Intelligent Systems with Applications, vol. 13, p. 200061, 2022. doi:10.1016/j.iswa.2022.200061.

N. H. Abd Rahman, “Nonlinear autoregressive neural network for forecasting COVID-19 confirmed cases in Malaysia,” Journal of Statistical Modeling & Analytics (JOSMA), vol. 5, no. 2, 2023. doi:10.22452/josma.vol5no2.6.

H. Carreon-Ortiz, F. Valdez, P. Melin, and O. Castillo, “Architecture optimization of a non-linear autoregressive neural networks for Mackey-Glass time series prediction using discrete mycorrhiza optimization algorithm,” Micromachines, vol. 14, no. 1, p. 149, 2023. doi:10.3390/mi14010149.

A. Wunsch, T. Liesch, and S. Broda, “Groundwater level forecasting with artificial neural networks: A comparison of long short-term memory (LSTM), convolutional neural networks (CNNs), and non-linear autoregressive networks with exogenous input (NARX),” Hydrology and Earth System Sciences, vol. 25, no. 3, pp. 1671–1687, 2021. doi:10.5194/hess-25-1671-2021.

I. M. Yassin, A. Zabidi, M. K. M. Salleh, and N. E. A. Khalid, “Malaysian tourism interest forecasting using nonlinear auto-regressive (NAR) model,” in 2013 IEEE 3rd International Conference on System Engineering and Technology. IEEE, 2013, pp. 32–36. doi:10.1109/ICSEngT.2013.6650138.

Y. Liu, G. Qin, X. Huang, J. Wang, and M. Long, “AutoTimes: Autoregressive time series forecasters via large language models,” Advances in Neural Information Processing Systems, vol. 37, pp. 122154–122184, 2024.

A. Kozuch, D. Cywicka, and K. Adamowicz, “A comparison of artificial neural network and time series models for timber price forecasting,” Forests, vol. 14, no. 2, p. 177, 2023. doi:10.3390/f14020177.

D. M. Ahmed, M. M. Hassan, and R. J. Mstafa, “A review on deep sequential models for forecasting time series data,” Applied Computational Intelligence and Soft Computing, vol. 2022, no. 1, p. 6596397, 2022. doi:10.1155/2022/6596397.

S.-A. Chen, C.-L. Li, N. Yoder, S. O. Arik, and T. Pfister, “TSMixer: An all-MLP architecture for time series forecasting,” arXiv preprint arXiv:2303.06053, 2023.

P. Sohrabi, B. Jodeiri Shokri, and H. Dehghani, “Predicting coal price using time series methods and combination of radial basis function (RBF) neural network with time series,” Mineral Economics, vol. 36, no. 2, pp. 207–216, 2023. doi:10.1007/s13563-021-00286-z.

J. Wang, X. Li, J. Li, Q. Sun, and H. Wang, “NGCU: A new RNN model for time-series data prediction,” Big Data Research, vol. 27, p. 100296, 2022. doi:10.1016/j.bdr.2021.100296.

K. W. Yee and H. B. Samsudin, “Comparison between artificial neural network and ARIMA model in forecasting palm oil price in Malaysia,” International Journal of Scientific Engineering and Science, vol. 5, no. 11, pp. 12–15, 2021.

M. Melina, S. Sukono, H. Napitupulu, N. Mohamed, Y. H. Chrisnanto, A. I. Hadiana, V. A. Kusumaningtyas, and U. Nabilla, “Comparative analysis of time series forecasting models using ARIMA and neural network autoregression methods,” BAREKENG: Jurnal Ilmu Matematika dan Terapan, vol. 18, no. 4, pp. 2563–2576, 2024. doi:10.30598/barekengvol18iss4pp2563-2576.

İ. Kırbaş, A. Sözen, A. D. Tuncer, and F. Ş. Kazancıoğlu, “Comparative analysis and forecasting of COVID-19 cases in various European countries with ARIMA, NARNN and LSTM approaches,” Chaos, Solitons & Fractals, vol. 138, p. 110015, 2020. doi:10.1016/j.chaos.2020.110015.

I. G. A. D. Aryawangsa, N. L. P. A. Diantini, P. P. G. Pertama, and P. A. G. Permana, “Analisis pengaruh rasio keuangan perbankan terhadap harga saham menggunakan algoritma random forest,” Jurnal Teknik Informatika dan Sistem Informasi (JATISI), vol. 12, no. 2, pp. 140–152, June 2025.




DOI: https://doi.org/10.37905/jjom.v7i2.33397



Copyright (c) 2025 Mohamad Khoirun Najib, Sri Nurdiati

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.


Jambura Journal of Mathematics has been indexed by

>>>More Indexing<<<


Creative Commons License

Jambura Journal of Mathematics (e-ISSN: 2656-1344) by Department of Mathematics Universitas Negeri Gorontalo is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. Powered by Public Knowledge Project OJS. 


Editorial Office


Department of Mathematics, Faculty of Mathematics and Natural Science, Universitas Negeri Gorontalo
Jl. Prof. Dr. Ing. B. J. Habibie, Moutong, Tilongkabila, Kabupaten Bone Bolango, Gorontalo, Indonesia
Email: [email protected].