[go: up one dir, main page]

IDEAS home Printed from https://ideas.repec.org/p/car/carecp/20-14.html
   My bibliography  Save this paper

Forecasting Canadian GDP growth using XGBoost

Author

Abstract
The objective of this paper is to apply state-of-the-art machine-learning (ML) algorithms to predict the monthly and quarterly real GDP growth of Canada using both Google Trends (GT) and Official data that are available ahead of the release of GDP data by Statistics Canada. This paper applies a novel approach for selecting features with Extreme Gradient Boosting (XGBoost) using the AutoML function of H2O. For this purpose, 5000 to 15000 XGBoost models are trained using this function. We use a very rigorous variable selection procedure, where only the best features are selected into the next stage to build a final learning model. Then pertinent features are introduced into XGBoost for forecasting real GDP growth rate. The forecasts are further improved by using Principal Component Analysis (PCA) to choose the best factors out of the predictors selected by XGBoost. The results indicate that there are gains in nowcasting accuracy from using XGBoost with this two-step strategy. We first find that XGBoost is a superior algorithm for forecasting relative to our baseline methods, such as autoregression and other standard boosting algorithms. We also find that Google Trends data provides a very viable source of information for predicting Canadian real GDP growth with XGBoost when Official data are not yet available due to publication lags. Therefore, we can forecast real GDP growth rate accurately ahead of the release of Official data. Moreover, we apply various techniques to make the machine learning model more interpretable.

Suggested Citation

  • Shafiullah Qureshi & Ba M. Chu & Fanny S. Demers, 2020. "Forecasting Canadian GDP growth using XGBoost," Carleton Economic Papers 20-14, Carleton University, Department of Economics, revised 24 Aug 2020.
  • Handle: RePEc:car:carecp:20-14
    as

    Download full text from publisher

    File URL: https://www.carleton.ca/economics/wp-content/uploads/cewp20-14.pdf
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Hyunyoung Choi & Hal Varian, 2012. "Predicting the Present with Google Trends," The Economic Record, The Economic Society of Australia, vol. 88(s1), pages 2-9, June.
    2. Chernis, Tony & Cheung, Calista & Velasco, Gabriella, 2020. "A three-frequency dynamic factor model for nowcasting Canadian provincial GDP growth," International Journal of Forecasting, Elsevier, vol. 36(3), pages 851-872.
    3. Tony Chernis & Rodrigo Sekkel, 2017. "A dynamic factor model for nowcasting Canadian GDP growth," Empirical Economics, Springer, vol. 53(1), pages 217-234, August.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Franck Ramaharo & Gerzhino Rasolofomanana, 2023. "Nowcasting Madagascar's real GDP using machine learning algorithms," Papers 2401.10255, arXiv.org.

    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. James Chapman & Ajit Desai, 2021. "Using Payments Data to Nowcast Macroeconomic Variables During the Onset of COVID-19," Staff Working Papers 21-2, Bank of Canada.
    2. Chien-jung Ting & Yi-Long Hsiao, 2022. "Nowcasting the GDP in Taiwan and the Real-Time Tourism Data," Advances in Management and Applied Economics, SCIENPRESS Ltd, vol. 12(3), pages 1-2.
    3. Chien-jung Ting & Yi-Long Hsiao & Rui-jun Su, 2022. "Application of the Real-Time Tourism Data in Nowcasting the Service Consumption in Taiwan," Journal of Applied Finance & Banking, SCIENPRESS Ltd, vol. 12(4), pages 1-4.
    4. James T. E. Chapman & Ajit Desai, 2023. "Macroeconomic Predictions Using Payments Data and Machine Learning," Forecasting, MDPI, vol. 5(4), pages 1-32, November.
    5. Shafiullah Qureshi & Ba Chu & Fanny S. Demers, 2021. "Forecasting Canadian GDP Growth with Machine Learning," Carleton Economic Papers 21-05, Carleton University, Department of Economics.
    6. Ashton de Silva & Maria Yanotti & Sarah Sinclair & Sveta Angelopoulos, 2023. "Place‐Based Policies and Nowcasting," Australian Economic Review, The University of Melbourne, Melbourne Institute of Applied Economic and Social Research, vol. 56(3), pages 363-370, September.
    7. Tingguo Zheng & Xinyue Fan & Wei Jin & Kuangnan Fang, 2024. "Forecasting CPI with multisource data: The value of media and internet information," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 43(3), pages 702-753, April.
    8. Iva Glišic, 2024. "A comparison of using MIDAS and LSTM models for GDP nowcasting," Working Papers Bulletin 22, National Bank of Serbia.
    9. Baumeister, Christiane & Guérin, Pierre, 2021. "A comparison of monthly global indicators for forecasting growth," International Journal of Forecasting, Elsevier, vol. 37(3), pages 1276-1295.
    10. Zhang, Yixiao & Yu, Cindy L. & Li, Haitao, 2022. "Nowcasting GDP Using Dynamic Factor Model with Unknown Number of Factors and Stochastic Volatility: A Bayesian Approach," Econometrics and Statistics, Elsevier, vol. 24(C), pages 75-93.
    11. Kevin Moran & Simplice Aimé Nono & Imad Rherrad, 2018. "Forecasting with Many Predictors: How Useful are National and International Confidence Data?," Cahiers de recherche 1814, Centre de recherche sur les risques, les enjeux économiques, et les politiques publiques.
    12. Stavros Degiannakis, 2023. "The D-model for GDP nowcasting," Swiss Journal of Economics and Statistics, Springer;Swiss Society of Economics and Statistics, vol. 159(1), pages 1-33, December.
    13. Danilo Leiva-Leon & Gabriel Perez-Quiros & Eyno Rots, 2020. "Real-time weakness of the global economy: a first assessment of the coronavirus crisis," Working Papers 2015, Banco de España.
    14. Stankevich, Ivan, 2020. "Comparison of macroeconomic indicators nowcasting methods: Russian GDP case," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 59, pages 113-127.
    15. Daniel Hopp, 2022. "Benchmarking Econometric and Machine Learning Methodologies in Nowcasting," Papers 2205.03318, arXiv.org.
    16. Konstantin S. Rybak, 2023. "Анализ Важности Глобальных Факторов Для Наукастинга Ввп," Russian Economic Development (in Russian), Gaidar Institute for Economic Policy, issue 12, pages 18-23, December.
    17. Andrius Grybauskas & Vaida Pilinkienė & Mantas Lukauskas & Alina Stundžienė & Jurgita Bruneckienė, 2023. "Nowcasting Unemployment Using Neural Networks and Multi-Dimensional Google Trends Data," Economies, MDPI, vol. 11(5), pages 1-23, April.
    18. Julien Champagne & Guillaume Poulin‐Bellisle & Rodrigo Sekkel, 2020. "Introducing the Bank of Canada staff economic projections database," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 35(1), pages 114-129, January.
    19. Tony Chernis & Taylor Webley, 2022. "Nowcasting Canadian GDP with Density Combinations," Discussion Papers 2022-12, Bank of Canada.
    20. Tony Chernis & Rodrigo Sekkel, 2018. "Nowcasting Canadian Economic Activity in an Uncertain Environment," Discussion Papers 18-9, Bank of Canada.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    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:car:carecp:20-14. 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: Court Lindsay (email available below). General contact details of provider: .

    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.