Machine Learning and Macroeconomic Indicators for Predicting Consumer Goods Stock Prices in Nigeria

Authors

  • Oluwatayofunmi F Durodola Department of Computer Science, Babcock University, Nigeria
  • Folashade Y. Ayankoya Department of Computer Science, Babcock University, Nigeria
  • Shade O. Kuyoro Department of Computer Science, Babcock University, Nigeria

DOI:

https://doi.org/10.70112/ajeat-2025.14.2.4328

Keywords:

Stock Price Forecasting, Hybrid Models, ARIMA–SVR, Macroeconomic Indicators, Nigerian FMCG Sector

Abstract

Nigeria’s fast-moving consumer goods (FMCG) sector is Africa’s most dynamic market; however, stock prices remain highly sensitive to inflation, exchange rate volatility, and oil shocks. Despite global advances in machine learning, sector-specific forecasting models for Nigerian equities are scarce. This study addresses this gap by developing hybrid models to forecast BUA Foods PLC stock prices and by evaluating the influence of macroeconomic predictors. A hybrid framework employing Mixed Data Sampling (MIDAS) integrated daily stock and Brent crude data with monthly macroeconomic indicators (USD/NGN rate, inflation, and MPR) from 2022 to 2025. Features included technical indicators (RSI and MACD) and lagged variables. We compared three models-univariate ARIMA (baseline), ARIMA–SVR, and ARIMA–LSTM-using walk-forward validation based on Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE). SHAP values were used to provide model interpretability. The ARIMA–SVR hybrid proved superior, achieving an MAE of ₦1.28 and an RMSE of ₦1.66-an improvement of 82.3% and 77.2%, respectively, over the ARIMA baseline (MAE ₦7.24, RMSE ₦7.29). While the ARIMA–LSTM hybrid also outperformed the baseline (MAE ₦1.71), it lagged behind the SVR approach. SHAP analysis identified the USD/NGN exchange rate and oil prices as the most dominant predictors. Hybrid models, particularly ARIMA–SVR, significantly enhance forecasting accuracy in Nigerian consumer goods stocks by effectively capturing nonlinear macroeconomic dependencies. These findings demonstrate the value of integrating traditional time-series methods with kernel-based machine learning for volatile emerging markets, offering investors actionable insights into currency and commodity risks.

References

[1] NielsenIQ, “Nigeria consumer goods market overview report,” Global Data and Analytics, 2025.

[2] Nigerian Exchange Ltd. (NGX), “Nigerian stock market transactions and performance reports,” 2025.

[3] Central Bank of Nigeria, “Exchange rates and economic data,” 2025. [Online]. Available: https://www.cbn.gov.ng/

[4] E. C. Uzoaga, O. Olumide, and K. Adeyemi, “Predictive machine learning methods for stock returns among emerging economies in Africa,” Science World Journal, vol. 20, no. 4, pp. 941–970, 2025.

[5] J. A. Iliya, U. Hassan, and R. T. Oladele, “Framework for price prediction in the Nigerian stock market using machine learning and data mining techniques,” Nolan Academic Journals, vol. 16, no. 3, pp. 215–237, 2024.

[6] R. H. Khan, S. Patel, and S. Kumar, “Stock price prediction using RNNs: A comparative analysis of RNN, LSTM, GRU, and BiRNN,” IEEE Trans. Comput. Intell. AI Games, vol. 35, no. 3, pp. 2891–2905, 2024.

[7] O. Adeyemi and K. Oluwadamilola, “Predictive machine learning methods for stock returns among emerging economies in Africa,” Science World Journal, vol. 18, no. 4, pp. 941–951, 2023.

[8] F. Sultana, A. Ghosal, and P. Senapati, “Forecasting stock market indices using recurrent neural network-based hybrid models: CNN-LSTM, GRU-CNN, and ensemble models,” Applied Sciences, vol. 13, no. 7, p. 4644, 2023.

[9] K. W. Tsui, N. Chen, and Q. Zhou, “Forecasting with mixed data sampling regression models,” in Oxford Research Encyclopedia of Economics and Finance. Oxford, U.K.: Oxford Univ. Press, 2018.

[10] G. Petneházi, “Recurrent neural networks for time series forecasting,” arXiv preprint arXiv:1901.00069, 2019.

[11] W. Bao, J. Yue, and Y. Rao, “Data-driven stock forecasting models based on neural networks: A comprehensive review,” Information Fusion, vol. 135, pp. 102–156, 2025.

[12] W. Irene, D. Saputra, and A. Wijaya, “Integration of technical analysis and machine learning to improve stock price prediction accuracy,” Int. J. Innov. Technol. Explor. Eng., vol. 11, no. 2, pp. 156–174, 2024.

[13] S. S. Chauhan and P. Singh, “A causality investigation into stock prices and macroeconomic variables: Evidence from the Indian stock market,” J. Econ. Res. Policy Anal., vol. 12, no. 1, pp. 78–102, 2025.

[14] Scitepress, “Research on stock price prediction based on the ARIMA model,” in Proc. Int. Conf. E-Learning, E-Education, and Online Training, vol. 561, pp. 341–356, 2023.

[15] “Time series forecasting of stock market using ARIMA, LSTM, and FB Prophet,” MATEC Web Conf., vol. 372, p. 01163, 2024.

[16] B. Schölkopf and A. J. Smola, Learning with Kernels: Support Vector Machines, Regularization, Optimization, and Beyond. Cambridge, MA, USA: MIT Press, 2018.

[17] M. Hajibabaei, M. Zamani, and A. Barati, “Tehran stock price modeling and forecasting using SVR–ARIMA hybrid model,” Int. J. Inf. Bus. Manag., vol. 6, no. 3, pp. 89–104, 2014.

[18] B. M. Henrique, V. A. Sobreiro, and H. Kimura, “Stock price prediction using support vector regression on daily and up-to-the-minute prices,” J. Finance Data Sci., vol. 4, no. 3, pp. 183–201, 2018.

[19] K. S. Al-Khalifa, A. Albattah, and M. A. Farooqui, “Deep learning models for stock market forecasting: A comprehensive comparative analysis,” J. Bus. Manag. Stud., vol. 5, no. 2, pp. 156–189, 2025.

[20] L. Arnott, S. Kim, and W. Zhang, “Predicting stock prices using hybrid LSTM and ARIMA models,” Int. J. Appl. Math., vol. 54, no. 3, pp. 342–361, 2023.

[21] T. J. Hsieh, H. F. Hsiao, and W. C. Yeh, “Mining financial distress trend data using penalty-guided support vector machines based on a hybrid of particle swarm optimization and artificial bee colony algorithm,” Neurocomputing, vol. 82, pp. 196–206, 2023.

Downloads

Published

05-12-2025

How to Cite

Durodola, O. F., Ayankoya, F. Y., & Kuyoro, S. O. (2025). Machine Learning and Macroeconomic Indicators for Predicting Consumer Goods Stock Prices in Nigeria. Asian Journal of Engineering and Applied Technology, 14(2), 35–43. https://doi.org/10.70112/ajeat-2025.14.2.4328

Similar Articles

<< < 1 2 3 4 5 > >> 

You may also start an advanced similarity search for this article.