EconPapers    
Economics at your fingertips  
 

Forecasting Canadian GDP Growth with Machine Learning

Shafiullah Qureshi (), Ba Chu and Fanny S. Demers ()
Additional contact information
Shafiullah Qureshi: Department of Economics, Carleton University, https://carleton.ca/economics/people/qureshi-shafiullah/
Fanny S. Demers: Department of Economics, Carleton University, https://carleton.ca/economics/people/demers-fanny-s/

No 21-05, Carleton Economic Papers from Carleton University, Department of Economics

Abstract: This paper applies state-of-the-art machine learning (ML) algorithms to forecast monthly real GDP growth in Canada by using both Google Trends (GT) data and official macroeconomic data (which are available ahead of the release of GDP data by Statistics Canada). We show that we can forecast real GDP growth accurately ahead of the release of GDP figures by using GT and official data (such as employment) as predictors. We first pre-select features by applying up-to-date techniques, namely XGBoost's variable importance score, and a recent variable-screening procedure for time series data, namely, PDC-SIS+. These pre-selected features are then used to build advanced ML models for forecasting real GDP growth, by employing tree-based ensemble algorithms, such as XGBoost, LightGBM, Random Forest, and GBM. We provide empirical evidence that the variables pre-selected by either PDC-SIS+ or the XGBoost's variable importance score can have a superior forecasting ability. We find that the pre-selected GT data features perform as well as the pre-selected official data features with respect to short-term forecasting ability, while the pre-selected official data features are superior with respect to long-term forecasting ability. We also find that (1) the ML algorithms we employ often perform better with a large smaple than with a small sample, even when the small sample has a larger set of predictors; and (2) the Random Forest (that often produces nonlinear models to capture nonlinear patterns in the data) tends to under-perform a standard autoregressive model in several cases while there is no clear evidence that the XGBoost and the LightGBM can always outperform each other.

Pages: 21 pages
Date: 2021-05-17
New Economics Papers: this item is included in nep-big, nep-cmp, nep-cwa and nep-for
References: View references in EconPapers View complete reference list from CitEc
Citations:

Published: Carleton Economics Papers

Downloads: (external link)
https://carleton.ca/economics/wp-content/uploads/cewp21-05.pdf

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:car:carecp:21-05

Ordering information: This working paper can be ordered from

Access Statistics for this paper

More papers in Carleton Economic Papers from Carleton University, Department of Economics C870 Loeb Building, 1125 Colonel By Drive, Ottawa Ontario, K1S 5B6 Canada.
Bibliographic data for series maintained by Court Lindsay ().

 
Page updated 2025-03-30
Handle: RePEc:car:carecp:21-05