Abstract
While traditional empirical models using determinants like size and trade costs can predict RTA formation reasonably well, we demonstrate that allowing for machine-detected nonlinear patterns helps to improve the predictive power of RTA formation substantially. We find that the fitted tree-based methods and neural networks deliver sharper and more accurate predictions than the probit model. For the majority of models, the allowance of fixed effects increases the predictive performance considerably. We apply our models to predict the likelihood of RTA formation of the EU and the USA with their trading partners, respectively.
Similar content being viewed by others
Notes
We provide a graph showing the development of the number of trade relationships with different types of RTAs over the years 1960–2019 in the Online Appendix.
Since Baier and Bergstrand (2004) many papers refined the specification, including for example neighboring effects like Egger and Larch (2008), Chen and Joshi (2010), Baldwin and Jaimovich (2012), and Baier et al. (2014) or political economy motives like Facchini et al. (2013), Maggi and Rodríguez-Clare (2007), Liu (2008), and Liu and Ornelas (2014). See Maggi (2014) for an excellent survey.
The data are freely available at https://www.ewf.uni-bayreuth.de/de/forschung/RTA-daten/index.html.
The data can be downloaded at https://databank.worldbank.org/source/world-development-indicators.
The data can be downloaded at https://worldmap.harvard.edu/data/geonode:country_centroids_az8.
Note that \(\text{ DROWKL }\) is significant but positive for all RTAs in the cross section in Egger and Larch (2008). Hence, using more recent data and data for more countries seems to bring the probit estimates closer to the theory.
Available for download at https://CRAN.R-project.org/package=fixest.
We provide formal demonstrations of these multi-collinearities in the Online Appendix.
A regression of \(\text{ REMOTE }\) on \(\text{ NATURAL }\) and importer and exporter fixed effects delivers and \(R^2\) from basically 1 and a residual standard error of 0.0008558.
Available for download at https://cran.r-project.org/package=rpart.
Available for download at https://cran.r-project.org/web/packages/randomForest/.
\(\lceil \cdot \rceil \) denotes the ceiling function, which always rounds to the next largest integer.
Available for download at https://cran.r-project.org/web/packages/xgboost/.
Available for download at https://cran.r-project.org/web/packages/GA/index.html. Alternative ways to do automatic hyperparametrization optimization are Bayesian optimization or simple random search (see Chollet and Allaire 2018 for example).
Note that these are only possible explanations. It would be interesting in future research to dig deeper into the specific events and mechanisms.
Available for download at https://cran.r-project.org/package=tensorflow.
Available for download at https://cran.r-project.org/package=keras.
While in the 1990s a big focus was on investigating the effect of different activation functions, the consensus nowadays is that a simple, computationally efficient nonlinear transformation is sufficient if one uses enough nodes and layers (see Taddy 2019).
The corresponding figure without fixed effects is in the Online Appendix as Figure A.8.
References
Akman E, Karaman AS, Kuzey C (2020) Visa trial of international trade: evidence from Support vector machines and neural networks. J Manag Anal 7:231–252
Alimi OA, Ouahada K, Abu-Mahfouz AM (2020) A review of machine learning approaches to power system security and stability. IEEE Access 8:113512–113531
Alschner W, Seiermann J, Skougarevskiy D (2018) Text of trade agreements (ToTA)–a structured corpus for the text-as-data analysis of preferential trade agreements. J Empir Legal Stud 15:648–666
Athey S, Imbens G (2017) The state of applied econometrics: causality and policy evaluation. J Econ Perspect 31:3–32
Baier S, Bergstrand J (2004) The economic determinants of free trade agreements. J Int Econ 64:29–63
Baier SL, Bergstrand JH, Mariutto R (2014) Economic determinants of free trade agreements revisited: distinguishing sources of interdependence. Rev Int Econ 22:31–58
Baldwin R, Jaimovich D (2012) Are free trade agreements contagious? J Int Econ 88:1–16
Batarseh F, Gopinath M, Nalluru G, Beckman J (2019) Application of machine learning in forecasting international trade trends. arXiv preprint arXiv:1910.03112
Bergé L (2018) Efficient estimation of maximum likelihood models with multiple fixed-effects: the R Package FENmlm. CREA Discussion Paper Series available for download at https://EconPapers.repec.org/RePEc:luc:wpaper:18-13
Bernhofen DM, El-Sahli Z, Kneller R (2016) Estimating the effects of the container revolution on world trade. J Int Econ 98:36–50
Breeden JL (2020) Survey of machine learning in credit risk. Available at SSRN 3616342
Breinlich H, Corradi V, Rocha N, Ruta M, Santos Silva JAMC, Zylkin T (2021) Machine learning in international trade research—evaluating the impact of trade agreements. University of Surrey Discussion Papers in Economics DP 05/21
Cameron A, Trivedi P (2005) Microeconometrics–methods and applications. Cambridge University Press, Cambridge
Chen M, Joshi S (2010) Third-country effects on the formation of free trade agreements. J Int Econ 82:238–248
Chollet F, Allaire J (2018) Deep Learning with R. Manning
Circlaeys S, Kanitkar C, Kumazawa D (2017) Bilateral trade flow prediction. Unpublished manuscript, available for download at http://cs229.stanford.edu/proj2017/final-reports/5240224.pdf
De Veaux RD, Ungar LH (1994) Multicollinearity: a tale of two nonparametric regressions. Selecting models from data. Springer, Berlin, pp 393–402
Efron B, Hastie T (2016) Computer age statistical inference–algorithms, evidence, and data science. Cambridge University Press, Cambridge
Egger P, Larch M (2008) Interdependent preferential trade agreement memberships: an empirical analysis. J Int Econ 76:384–399
Facchini G, Silva P, Willmann G (2013) The customs union issue: why do we observe so few of them? J Int Econ 90:136–147
Ghoddusi H, Creamer GG, Rafizadeh N (2019) Machine learning in energy economics and finance: a review. Energy Econ 81:709–727
Goodfellow I, Bengio J, Courville A, Bach F (2016) Deep learning. MIT Press, Massachusetts
Gopinath M, Batarseh F, Beckman J (2020) Machine learning in gravity models: an application to agricultural trade. NBER Working Paper No. 27151
Hastie T, Tibshirani R, Friedman J (2009) The elements of statistical learning–data mining, inference, and prediction, 2nd edn. Springer, New York
Herbrich R, Keilbach M, Graepel T, Bollmann-Sdorra P, Obermayer K (2001) Neural networks in economics: background. Technical University of Berlin, Applications and New Developments, Department of Computer Science
Hummels DL, Schaur G (2013) Time as a trade barrier. Am Econ Rev 103:2935–2959
Jahn M (2020) Artificial neural network regression models in a panel setting: predicting economic growth. Econ Model 91:148–154
James G, Witten D, Hastie T, Tibshirani R (2021) An introduction to statistical learning–with applications in R, 2nd edn. Springer, New York
Lahann J, Scheid M, Fettke P (2020) Towards optimal free trade agreement utilization through deep learning techniques. In: Bui T, Sprague R (eds) Proceedings of the 53th Hawaii International Conference on System Sciences. Hawaii International Conference on System Sciences (HICSS-2020), January 7–10, Maui, Hawaii, United States. IEEE Computer Society
Liu X (2008) The political economy of free trade agreements: an empirical investigation. J Econ Integr 23:237–271
Liu X, Ornelas E (2014) Free trade agreements and the consolidation of democracy. Am Econ J Macroecon 6:29–70
Maggi G (2014) International trade agreements. In: Gopinath G, Helpman E, Rogoff KS (eds) Chapter 6 in the handbook of international economics, vol 4, Elsevier Ltd., Oxford, pp 317–390
Maggi G, Rodríguez-Clare A (2007) A political-economy theory of trade agreements. Am Econ Rev 97:1374–1406
Masini RP, Medeiros MC, Mendes EF (2020) Machine learning advances for time series forecasting. arXiv preprint arXiv:2012.12802
Mullainathan S, Spiess J (2017) Machine learning: an applied econometric approach. J Econ Perspect 31:87–106
Murphy K (2012) Machine learning–a probabilistic perspective. MIT Press, Cambridge
Ni D, Xiao Z, Lim MK (2020) A systematic review of the research trends of machine learning in supply chain management. Int J Mach Learn Cybern 11:1463–1482
Quimba F, Barral M (2018) Exploring neural network models in understanding bilateral trade in APEC: a review of history and concepts. PIDS Discussion Paper No. 2018-33
Scrucca L (2017) On some extensions to GA package: hybrid optimisation. Parallelisation and islands evolution. The R Journal 9:187–206
Srivastava N, Hinton G, Krizhevsky A, Sutskever I, Salakhutdinov R (2014) Dropout: a simple way to prevent neural networks from overfitting. J Mach Learn Res 15:1929–1958
Stammann A (2017) Fast and feasible estimation of generalized linear models with high-dimensional k-way fixed effects. Unpublished manuscript, available at arXiv:1707.01815
Stock J, Watson M (2017) Twenty years of time series econometrics in ten pictures. J Econ Perspect 31:59–86
Storm H, Heckelei T, Baylis K, Mittenzwei K (2019) Identifying effects of farm subsidies on structural change using neural networks. Agricultural and Resource Economics, Discussion Paper 2019:1. Available for download at http://ageconsearch.umn.edu/record/287343
Taddy M (2019) Business data science. McGraw-Hill Education Ltd
Varian H (2014) Big data: new tricks for econometrics. J Econ Perspect 28:3–28
Wohl I, Kennedy J (2018) Neural network analysis of international trade. Office of Industries Working Paper ID-049. Available for download at https://www.usitc.gov/publications/332/working_papers/neural_networks_and_international_trade_-_compiled_draft_06.pdf
Acknowledgements
We thank the handling editor Robert M. Kunst, the anonymous reviewers, and participants of the 2021 European Trade Study Group for useful comments.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Below is the link to the electronic supplementary material.
Rights and permissions
About this article
Cite this article
Blöthner, S., Larch, M. Economic determinants of regional trade agreements revisited using machine learning. Empir Econ 63, 1771–1807 (2022). https://doi.org/10.1007/s00181-022-02203-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00181-022-02203-x