Given that inflation is one of the most important problems facing the Egyptian economy, determining the factors affecting it is very important. Thus, we aim to use machine learning algorithms like Support vector machine (SVM), K-nearest neighbor (KNN), Random Forest (R.F.), Neural Network (ANN), Gradient boosting (G.B.) and decision tree (D.T.) to determine the accurate algorithm and analyze the factors affecting on Egypt inflation. The study found that the G.B. algorithm is the most accurate among the used algorithms and showed that The major significant variables determining inflation in Egypt are the exchange rate (30.5%), gross fixed formation (24.5%) and government expenditure (12.3%). We also found a positive relationship between the inflation rate and government expenditure, money supply, gross domestic product (GDP) growth, gross fixed formation, foreign direct investment, GDP per capita and exchange rate. Furthermore, there is a negative relationship between the inflation rate, household expenditure and the external trade balance.
Citation: Mohamed F. Abd El-Aal. Analysis Factors Affecting Egyptian Inflation Based on Machine Learning Algorithms[J]. Data Science in Finance and Economics, 2023, 3(3): 285-304. doi: 10.3934/DSFE.2023017
Given that inflation is one of the most important problems facing the Egyptian economy, determining the factors affecting it is very important. Thus, we aim to use machine learning algorithms like Support vector machine (SVM), K-nearest neighbor (KNN), Random Forest (R.F.), Neural Network (ANN), Gradient boosting (G.B.) and decision tree (D.T.) to determine the accurate algorithm and analyze the factors affecting on Egypt inflation. The study found that the G.B. algorithm is the most accurate among the used algorithms and showed that The major significant variables determining inflation in Egypt are the exchange rate (30.5%), gross fixed formation (24.5%) and government expenditure (12.3%). We also found a positive relationship between the inflation rate and government expenditure, money supply, gross domestic product (GDP) growth, gross fixed formation, foreign direct investment, GDP per capita and exchange rate. Furthermore, there is a negative relationship between the inflation rate, household expenditure and the external trade balance.
[1] | Abd El-Aal MF, Algarni A, Fayomi A, et al. (2021) Forecasting foreign direct investment inflow to Egypt and determinates: Using machine learning algorithms and ARIMA model. J Adv Transport 2021: 1–7. https://doi.org/10.1155/2021/9614101 doi: 10.1155/2021/9614101 |
[2] | Acquah-Sam E (2017) Influencers of Inflation in Ghana. Eur Sci J 13: 140–158. |
[3] | Aurangzeb AUH, Haq UA (2012) Determinants of inflation in Pakistan. J Manag Soc Sci 2: 89–96. |
[4] | Baybuza I (2018) Inflation forecasting using machine learning methods. Russ J Money Financ 77: 42–59. https://doi.org/10.31477/rjmf.201804.42 doi: 10.31477/rjmf.201804.42 |
[5] | Biresaw TT (2014) Determinant and impacts of dynamic inflation in Ethiopia. Master's thesis, Norwegian University of Life Sciences, As. |
[6] | Chakraborty C, Joseph A (2017). Machine learning at central banks. |
[7] | Chen, LP (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 doi: 10.32732/jmo.2020.12.2.84 |
[8] | DELL'AVERSANA P (2019) Comparison of different Machine Learning algorithms for lithofacies classification from well logs. B Geofis Teor Appl 60. https://doi.org/10.4430/bgta0256 doi: 10.4430/bgta0256 |
[9] | Durevall D, Ndung'u NS (2001) A dynamic model of inflation of Kenya, 1974–1996. J Afr Econ 10: 92–125. |
[10] | Durguti E, Tmava Q, Demiri-Kunoviku F, et al. (2021) Panel estimating effects of macroeconomic determinants on Inflation: Evidence of Western Balkan. Cogent Eco Financ 9: 1942601. https://doi.org/10.1080/23322039.2021.1942601 doi: 10.1080/23322039.2021.1942601 |
[11] | Freund Y, Schapire RE (1997) A decision-theoretic generalization of online learning and an application to boosting. J Comput Syst Sci 55: 119–139. https://doi.org/10.1006/jcss.1997.1504 doi: 10.1006/jcss.1997.1504 |
[12] | Friedman M (1968) Dollars and deficits: inflation, monetary policy, and the balance of payments (No. 332.4/F91d). |
[13] | Garcia MG, Medeiros MC, Vasconcelos GF (2017) Real-time inflation forecasting with high dimensional models: the case of Brazil, Int J Forecasting 33: 679–693. https://doi.org/10.1016/j.ijforecast.2017.02.002 doi: 10.1016/j.ijforecast.2017.02.002 |
[14] | Garcia-Bellido J, Morales ER (2017) Primordial black holes from single field models of inflation. Phys Dark Universe 18: 47–54. https://doi.org/10.1016/j.dark.2017.09.007 doi: 10.1016/j.dark.2017.09.007 |
[15] | Groen JJ, Paap R, Ravazzolo F (2013) Real-time inflation forecasting in a changing world. J Bus Econ Statis 31: 29–44. https://doi.org/10.1080/07350015.2012.727718 doi: 10.1080/07350015.2012.727718 |
[16] | Gyebi F, Boafo GK (2013) Macroeconomic determinants of inflation in Ghana from 1990–2009. Int J Bus Soc Res 3: 81–93. |
[17] | He Z, Lin D, Lau T, et al. (2019) Gradient boosting machine: a survey. arXiv preprint arXiv: 1908.06951. |
[18] | Iversen J, Laseen S, Lundvall H, et al. (2016) Real-time Forecasting for Monetary Policy Analysis: The Case of Sveriges Riksbank. Riksbank Res Pap Ser 142. https://doi.org/10.2139/ssrn.2780417 doi: 10.2139/ssrn.2780417 |
[19] | Kinda MT (2011) Modeling inflation in Chad. International Monetary Fund. https://doi.org/10.5089/9781455221011.001 |
[20] | Lim YC, Sek SK (2015) An examination of the determinants of inflation. J Econ Bus Manage 3: 678–682. https://doi.org/10.7763/JOEBM.2015.V3.265 doi: 10.7763/JOEBM.2015.V3.265 |
[21] | Loua A, Wan Rong Y, Koivogui SK, et al.. (2018) Macroeconomic Determinants of Inflation: Evidence from the Republic of Guinea. Res J Financ Account 9: 13–21. |
[22] | Madesha W, Chidoko C, Zivanomoyo J (2013) Empirical test of the relationship between exchange rate and inflation in Zimbabwe. J Econ Sustain Dev 4: 52–58. |
[23] | Medeiros MC, Vasconcelos GF, Veiga Á, et al. (2021) Forecasting inflation in a data-rich environment: the benefits of machine learning methods. J Bus Econ Stat 39: 98–119. https://doi.org/10.1080/07350015.2019.1637745 doi: 10.1080/07350015.2019.1637745 |
[24] | Mehrara M, Sujoudi A (2015) The relationship between money, government spending, and inflation in the Iranian economy. Int Lett Soc Humanistic Sci 51: 89–94. https://doi.org/10.18052/www.scipress.com/ILSHS.51.89 doi: 10.18052/www.scipress.com/ILSHS.51.89 |
[25] | Monteforte L, Moretti G (2013) Real‐time forecasts of inflation: The role of financial variables. J Forecast 32: 51–61. https://doi.org/10.1002/for.1250 doi: 10.1002/for.1250 |
[26] | Mwase N (2006) An empirical investigation of the exchange rate pass-through to inflation in Tanzania. 2006: 34. https://doi.org/10.2139/ssrn.920242 |
[27] | Qayyum A (2006) Money, inflation, and growth in Pakistan. Pakistan Dev Rev 45: 203–212. https://doi.org/10.30541/v45i2pp.203-212 doi: 10.30541/v45i2pp.203-212 |
[28] | Qurbanalieva N (2013) An empirical study of factors affecting inflation in the Republic of Tajikistan. Theo Pract Res Econ F 4: 229–246 |
[29] | Rodríguez-Vargas A (2020) Forecasting Costa Rican inflation with machine learning methods. Lat Am J Cent Bank 1: 100012. https://doi.org/10.1016/j.latcb.2020.100012 doi: 10.1016/j.latcb.2020.100012 |
[30] | Sen J, Mehtab S, Engelbrecht A (2021) Machine Learning: Algorithms, Models, and Applications. BoD–Books on Demand. https://doi.org/10.5772/intechopen.94615 |
[31] | Shaari MS, Ahmad TST, Razali R (2018) Tourism led-inflation: A case of Malaysia. In MATEC Web of Conferences. 150: 06026. EDP Sciences. https://doi.org/10.1051/matecconf/201815006026 |
[32] | Vijh M, Chandola D, Tikkiwal VA, et al. (2020) Stock closing price prediction using machine learning techniques. Procedia Comput Sci 167: 599–606. https://doi.org/10.1016/j.procs.2020.03.326 doi: 10.1016/j.procs.2020.03.326 |
[33] | Yadav O, Gomes C, Kanojiya A, et al. (2019) Inflation prediction model using machine learning. Int J Inform Comput Sci 6: 121–128. |
[34] | Yolanda Y (2017) Analysis of factors affecting inflation and its impact on the human development index and poverty in Indonesia. https://doi.org/10.35808/ersj/873 |
[35] | Yusof N, Nin LF, Kamal HKM, et al. (2021) Factors that influence the inflation rate in Malaysia. Int J Acad Res Bus Soc Sci 11: 626–637. https://doi.org/10.6007/IJARBSS/v11-i9/10838 doi: 10.6007/IJARBSS/v11-i9/10838 |