IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i14p3085-d1192712.html
   My bibliography  Save this article

The Forecasting of a Leading Country’s Government Expenditure Using a Recurrent Neural Network with a Gated Recurrent Unit

Author

Listed:
  • Cheng-Hong Yang

    (Department of Information Management, Tainan University of Technology, Tainan 710302, Taiwan
    Department of Electronic Engineering, National Kaohsiung University of Science and Technology, Kaohsiung 80778, Taiwan
    Ph.D. Program in Biomedical Engineering, Kaohsiung Medical University, Kaohsiung 80708, Taiwan
    School of Dentistry, Kaohsiung Medical University, Kaohsiung 80708, Taiwan)

  • Tshimologo Molefyane

    (Department of Electronic Engineering, National Kaohsiung University of Science and Technology, Kaohsiung 80778, Taiwan)

  • Yu-Da Lin

    (Department of Computer Science and Information Engineering, National Penghu University of Science and Technology, Magong 880011, Taiwan)

Abstract

Economic forecasting is crucial in determining a country’s economic growth or decline. Productivity and the labor force must be increased to achieve economic growth, which leads to the growth of gross domestic product (GDP) and income. Machine learning has been used to provide accurate economic forecasts, which are essential to sound economic policy. This study formulated a gated recurrent unit (GRU) neural network model to predict government expenditure, an essential component of gross domestic product. The GRU model was evaluated against autoregressive integrated moving average, support vector regression, exponential smoothing, extreme gradient boosting, convolutional neural network, and long short-term memory models using World Bank data regarding government expenditure from 1990 to 2020. The mean absolute error, root mean square error, and mean absolute percentage error were used as performance metrics. The GRU model demonstrates superior performance compared to all other models in terms of MAE, RMSE, and MAPE (with an average MAPE of 2.774%) when forecasting government spending using data from the world’s 15 largest economies from 1990 to 2020. The results indicate that the GRU can be used to provide accurate economic forecasts.

Suggested Citation

  • Cheng-Hong Yang & Tshimologo Molefyane & Yu-Da Lin, 2023. "The Forecasting of a Leading Country’s Government Expenditure Using a Recurrent Neural Network with a Gated Recurrent Unit," Mathematics, MDPI, vol. 11(14), pages 1-17, July.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:14:p:3085-:d:1192712
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/14/3085/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/14/3085/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Ginn, William & Pourroy, Marc, 2022. "The contribution of food subsidy policy to monetary policy in India," Economic Modelling, Elsevier, vol. 113(C).
    2. Jeong, Kwangbok & Koo, Choongwan & Hong, Taehoon, 2014. "An estimation model for determining the annual energy cost budget in educational facilities using SARIMA (seasonal autoregressive integrated moving average) and ANN (artificial neural network)," Energy, Elsevier, vol. 71(C), pages 71-79.
    3. Yong-Chao Su & Cheng-Yu Wu & Cheng-Hong Yang & Bo-Sheng Li & Sin-Hua Moi & Yu-Da Lin, 2021. "Machine Learning Data Imputation and Prediction of Foraging Group Size in a Kleptoparasitic Spider," Mathematics, MDPI, vol. 9(4), pages 1-16, February.
    4. William Ginn & Marc Pourroy, 2022. "The Contribution of Food Subsidy Policy to Monetary Policy in India," Working Papers hal-02944209, HAL.
    5. Barro, Robert J, 1990. "Government Spending in a Simple Model of Endogenous Growth," Journal of Political Economy, University of Chicago Press, vol. 98(5), pages 103-126, October.
    6. Wei, Xiaobo & Mohsin, Muhammad & Zhang, Qiongxin, 2022. "Role of foreign direct investment and economic growth in renewable energy development," Renewable Energy, Elsevier, vol. 192(C), pages 828-837.
    7. Duan, Jiandong & Wang, Peng & Ma, Wentao & Tian, Xuan & Fang, Shuai & Cheng, Yulin & Chang, Ying & Liu, Haofan, 2021. "Short-term wind power forecasting using the hybrid model of improved variational mode decomposition and Correntropy Long Short -term memory neural network," Energy, Elsevier, vol. 214(C).
    8. Sermpinis, Georgios & Stasinakis, Charalampos & Theofilatos, Konstantinos & Karathanasopoulos, Andreas, 2015. "Modeling, forecasting and trading the EUR exchange rates with hybrid rolling genetic algorithms—Support vector regression forecast combinations," European Journal of Operational Research, Elsevier, vol. 247(3), pages 831-846.
    9. Hyndman, Rob J. & Koehler, Anne B., 2006. "Another look at measures of forecast accuracy," International Journal of Forecasting, Elsevier, vol. 22(4), pages 679-688.
    10. Lago, Jesus & De Ridder, Fjo & De Schutter, Bart, 2018. "Forecasting spot electricity prices: Deep learning approaches and empirical comparison of traditional algorithms," Applied Energy, Elsevier, vol. 221(C), pages 386-405.
    11. Huang, Xiaoqiao & Li, Qiong & Tai, Yonghang & Chen, Zaiqing & Zhang, Jun & Shi, Junsheng & Gao, Bixuan & Liu, Wuming, 2021. "Hybrid deep neural model for hourly solar irradiance forecasting," Renewable Energy, Elsevier, vol. 171(C), pages 1041-1060.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Karol Pilot & Alicja Ganczarek-Gamrot & Krzysztof Kania, 2024. "Dealing with Anomalies in Day-Ahead Market Prediction Using Machine Learning Hybrid Model," Energies, MDPI, vol. 17(17), pages 1-20, September.
    2. Madadkhani, Shiva & Ikonnikova, Svetlana, 2024. "Toward high-resolution projection of electricity prices: A machine learning approach to quantifying the effects of high fuel and CO2 prices," Energy Economics, Elsevier, vol. 129(C).
    3. Lago, Jesus & Marcjasz, Grzegorz & De Schutter, Bart & Weron, Rafał, 2021. "Forecasting day-ahead electricity prices: A review of state-of-the-art algorithms, best practices and an open-access benchmark," Applied Energy, Elsevier, vol. 293(C).
    4. Chen, Xi & Yu, Ruyi & Ullah, Sajid & Wu, Dianming & Li, Zhiqiang & Li, Qingli & Qi, Honggang & Liu, Jihui & Liu, Min & Zhang, Yundong, 2022. "A novel loss function of deep learning in wind speed forecasting," Energy, Elsevier, vol. 238(PB).
    5. Olivares, Kin G. & Challu, Cristian & Marcjasz, Grzegorz & Weron, Rafał & Dubrawski, Artur, 2023. "Neural basis expansion analysis with exogenous variables: Forecasting electricity prices with NBEATSx," International Journal of Forecasting, Elsevier, vol. 39(2), pages 884-900.
    6. Chethana Dharmawardane & Ville Sillanpää & Jan Holmström, 2021. "High-frequency forecasting for grocery point-of-sales: intervention in practice and theoretical implications for operational design," Operations Management Research, Springer, vol. 14(1), pages 38-60, June.
    7. Katarzyna Maciejowska & Bartosz Uniejewski & Rafa{l} Weron, 2022. "Forecasting Electricity Prices," Papers 2204.11735, arXiv.org.
    8. Munir Husein & Il-Yop Chung, 2019. "Day-Ahead Solar Irradiance Forecasting for Microgrids Using a Long Short-Term Memory Recurrent Neural Network: A Deep Learning Approach," Energies, MDPI, vol. 12(10), pages 1-21, May.
    9. Junhwa Hwang & Dongjun Suh & Marc-Oliver Otto, 2020. "Forecasting Electricity Consumption in Commercial Buildings Using a Machine Learning Approach," Energies, MDPI, vol. 13(22), pages 1-29, November.
    10. Rao, B. Bhaskara, 2010. "Estimates of the steady state growth rates for selected Asian countries with an extended Solow model," Economic Modelling, Elsevier, vol. 27(1), pages 46-53, January.
    11. repec:prg:jnlcfu:v:2022:y:2022:i:1:id:572 is not listed on IDEAS
    12. Esa Mangeloja, 2004. "Interrelationship of economic growth and regional religious properties," ERSA conference papers ersa04p94, European Regional Science Association.
    13. Atolia, Manoj & Chatterjee, Santanu & Turnovsky, Stephen J., 2010. "How misleading is linearization? Evaluating the dynamics of the neoclassical growth model," Journal of Economic Dynamics and Control, Elsevier, vol. 34(9), pages 1550-1571, September.
    14. Pierre‐Richard Agénor, 2009. "Infrastructure Investment and Maintenance Expenditure: Optimal Allocation Rules in a Growing Economy," Journal of Public Economic Theory, Association for Public Economic Theory, vol. 11(2), pages 233-250, April.
    15. Arcalean, Calin & Glomm, Gerhard & Schiopu, Ioana, 2012. "Growth effects of spatial redistribution policies," Journal of Economic Dynamics and Control, Elsevier, vol. 36(7), pages 988-1008.
    16. Gonzalez-Eiras, Martín & Niepelt, Dirk, 2012. "Ageing, government budgets, retirement, and growth," European Economic Review, Elsevier, vol. 56(1), pages 97-115.
    17. Ingrid Ott & Stephen J. Turnovsky, 2006. "Excludable and Non‐excludable Public Inputs: Consequences for Economic Growth," Economica, London School of Economics and Political Science, vol. 73(292), pages 725-748, November.
    18. Iamsiraroj, Sasi, 2016. "The foreign direct investment–economic growth nexus," International Review of Economics & Finance, Elsevier, vol. 42(C), pages 116-133.
    19. David Owyong & Shandre Thangavelu, 2001. "An empirical study on public capital spillovers from the USA to Canada," Applied Economics, Taylor & Francis Journals, vol. 33(11), pages 1493-1499.
    20. Jing Xing, 2011. "Does tax structure affect economic growth? Empirical evidence from OECD countries," Working Papers 1120, Oxford University Centre for Business Taxation.
    21. Ingrid Ott & Susanne Soretz, 2006. "Governmental activity, integration, and agglomeration," Working Paper Series in Economics 57, University of Lüneburg, Institute of Economics.

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:11:y:2023:i:14:p:3085-:d:1192712. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.