Nowcasting World Trade with Machine Learning: a Three-Step Approach

49 Pages Posted: 18 Jul 2023

See all articles by Menzie David Chinn

Menzie David Chinn

University of Wisconsin, Madison - Robert M. La Follette School of Public Affairs and Department of Economics; National Bureau of Economic Research (NBER)

Baptiste Meunier

European Central Bank (ECB)

Sebastian Stumpner

Banque de France

Multiple version iconThere are 3 versions of this paper

Date Written: July 2023

Abstract

We nowcast world trade using machine learning, distinguishing between tree-based methods (random forest, gradient boosting) and their regression-based counterparts (macroeconomic random forest, linear gradient boosting). While much less used in the literature, the latter are found to outperform not only the tree-based techniques, but also more “traditional” linear and non-linear techniques (OLS, Markov-switching, quantile regression). They do so significantly and consistently across different horizons and real-time datasets. To further improve performance when forecasting with machine learning, we propose a flexible three-step approach composed of (step 1) pre-selection, (step 2) factor extraction and (step 3) machine learning regression. We find that both pre-selection and factor extraction significantly improve the accuracy of machine-learning-based predictions. This three-step approach also outperforms workhorse benchmarks, such as a PCA-OLS model, an elastic net, or a dynamic factor model. Finally, on top of high accuracy, the approach is flexible and can be extended seamlessly beyond world trade.

Keywords: Forecasting, Big Data, Large Dataset, Factor Model, Pre-Selection

JEL Classification: C53, C55, E37

Suggested Citation

Chinn, Menzie David and Meunier, Baptiste and Stumpner, Sebastian, Nowcasting World Trade with Machine Learning: a Three-Step Approach (July 2023). Banque de France Working Paper No. 917, Available at SSRN: https://ssrn.com/abstract=4513741 or http://dx.doi.org/10.2139/ssrn.4513741

Menzie David Chinn

University of Wisconsin, Madison - Robert M. La Follette School of Public Affairs and Department of Economics ( email )

1180 Observatory Drive
Madison, WI 53706-1393
United States
608-262-7397 (Phone)
608-262-2033 (Fax)

National Bureau of Economic Research (NBER)

1050 Massachusetts Avenue
Cambridge, MA 02138
United States

Baptiste Meunier

European Central Bank (ECB) ( email )

Sonnemannstrasse 22
Frankfurt am Main, 60314
Germany

Sebastian Stumpner (Contact Author)

Banque de France ( email )

Paris
France

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
54
Abstract Views
349
Rank
432,090
PlumX Metrics