Submit your papersSubmit Now
For Enquiries: [email protected]
IIARD LogoIIARD

Application of Supervised Machine Learning Techniques for Predicting Nigeria’s Gross Domestic Product

Nwagu Okwudiri Godswill, Nnodi Joy Tochukwu

Abstract

Gross Domestic Product (GDP) is a vital indicator for assessing a country’s economic growth. This study applies linear regression, a machine learning technique, to accurately predict GDP using independent variables such as private consumption and gross private investment. Past prediction models faced challenges due to inappropriate model selection and data gaps, resulting in inaccurate forecasts. This research aims to overcome these limitations by developing and testing a linear regression model and comparing its performance with previous models, including the K-Nearest Neighbors (KNN) algorithm. The model development process involved data acquisition, cleaning, transformation, splitting, training, and performance evaluation using Mean Squared Error (MSE). A dataset of 39 complete observations was used. Comparative results indicate that the linear regression model achieved a prediction accuracy of 98.2%, outperforming KNN (89%) and other regression methods such as Ordinary Least Squares (88.9%), Ridge Regression (88.5%), and Principal Component Regression (87.3%). The findings, supported by visual comparisons of actual and predicted GDP values, demonstrate that linear regression offers superior predictive performance for GDP estimation. The model's high accuracy and low error rate highlight its reliability and effectiveness in economic forecasting.

Keywords

Gross Domestic Product (GDP)Linear RegressionMachine LearningEconomic

References

Hamilton J.D. (1989).“A New Approach to the Economic Analysis of Nonstationary Time Series and the Business Cycle”, Econometrica, No.57, pp.357–84 Hamilton, J. D. (1994). State-space Models. In R.F. Engle and D.L. McFadden (Eds), Handbook of Econometrics, Volume 4, Chapter 50, 3039-3080. Amsterdam, The Netherlands: Elsevier Science B.V. Hindrayanto I., S. J. Koopman and J. Winter (2014).”Nowcasting and Forecasting EconomicGrowth in the Euro Area using PrincipalComponents”, Tinbergen Institute Discussion Paper No. TI 2014-113/III Jonanovic, B. and M. Petrovska (2010). “Forecasting Macedonian GDP: Evaluation of Different Models for Short-Term Forecasting”, National Bank of the Republic of Macedonia, Working Paper, August. Kozicki S. (2004). “How Do Data Revisions AffectThe Evaluation and Conduct ofMonetary Policy?”, Federal Reserve Bank of Kansas City Economic Review, First Quarter. Kugler, P., T. J. Jordan, C. Lenz and M. R. Savioz (2004). “Measurement Errors in GDP and Forward-looking Monetary Policy: The Swiss Case”, Deutsche Bundesbank, Discussion Paper Series 1: Studies of the Economic Research Centre No 31. Litterman R. B. (1986). ”Forecasting with Bayesian Vector Autoregressions years of Experience e”, Journal of Business and Economic Statistics, Vol.4, pp.25-38. Mergner, Sascha (2009). Applications of State Space Models in Finance: An Empirical Analysis of the Time-varying Relationship between Macroeconomics, Fundamentals and Pan-European Industry Portfolios. Universitätsverlag Göttingen http://univerlag.uni-goettingen.de Nadal-De Simone F. (2000). “Forecasting Inflation in Chile using State-Space and Regime- Switching Models”, IMF Working Paper. WP/001/162. Orphanides, A. (2000) “The Quest for Prosperity Without Inflation”, European Central Bank Working Paper No. 15. Orphanides, A. (2001) “Monetary Policy Rules Based on Real- Time Data”, American Economic Review, 91, 964-985. Schulz C. (2007).”Forecasting Economic Growth for Estonia Application of Common Factor Methodologies”, Bank of Estonia Working Paper Series No 9 Schulz C. (2008). “Forecasting Economic Activity for Estonia: The Application of Dynamic Principal Components Analysis”, Bank of Estonia Working Paper Series 2/2008. Schumacher, C. and C. Dreger (2005).“Estimating large scale factor models for economic activity in Germany: Do they outperform simpler models?”, Jahrbbiucher fur Nationalokonomie und Statistik 224, 731-750. Sims, C. A. (1993). “A Nine Variable Probabilistic Macroeconomic Forecasting Model”, in NBER Studies in Business: Business Cycles, Indicators, and Forecasting, Volume 28. James H. Stock and Mark W. Watson, eds. Chicago: University of Chicago Press, pp. 179–214. Sims, C. A. and T.Zha (1996)."Bayesian methods for dynamic multivariate models", Federal Reserve Bank of Atlanta Working Paper 96-13. Stock J.H. and M.W. Watson (2002).“Forecasting Using Principal Components from a Large Number of Predictors”, Journal of the American Statistical Association, No.97, pp 147– 62 Stock, J.H. and M.W. Watson (1991). A probability model of the coincident economic indicators. In K. Lahiri and G.H. Moore (Eds.), Leading Economic Indicators: New Approaches and Forecasting Records, 63-89. Cambridge, UK: Cambridge University Press. Stock, J. H., and M. Watson (1989). “New Indexes of Coincident and Leading Economic Indicators., in O. Blanchard and S. Fischer (Eds.), NBER Macroeconomics Annual, Vol. 4, pp. Nnodi J.T., Asagba P.O. and Ugwu C. (2022) User Classification Model for Quality of Web Experience. International Journal of Scientific and Research Publications. (IJSRP). 12(4)

More Articles from INTERNATIONAL JOURNAL OF COMPUTER SCIENCE AND MATHEMATICAL THEORY

Advances in Algorithmic Contract Scoring for Pre-Negotiation Yield Optimization and Risk Retention

Author: Ngozi Samuel Uzougbo, Michael Ominyi, Cyril Chimelie Anichukwueze, Blessing, Chika Jones

DevTest flow: Designing a Scalable Continuous Testing Pipeline for High-Velocity Software Delivery

Author: Lawal Ahmed Oladimeji, Achori Busayo, Akeju BusayoZainab, Saka Samson, Damilare, Mbah Demian Chidi, Runsewe Similoluwa Mayowa, Oladiti Luqman, Abiodun