eprintid: 4082 rev_number: 12 eprint_status: archive userid: 69 dir: disk0/00/00/40/82 datestamp: 2021-07-19 09:36:23 lastmod: 2021-07-19 09:39:43 status_changed: 2021-07-19 09:36:23 type: monograph metadata_visibility: show creators_name: Micocci, Francesca creators_name: Rungi, Armando creators_id: francesca.micocci@imtlucca.it creators_id: armando.rungi@imtlucca.it title: Predicting Exporters with Machine Learning ispublished: pub subjects: HB subjects: HF subjects: HG divisions: EIC full_text_status: public monograph_type: imt_eic_working_paper keywords: Keywords: exporting; machine learning; trade promotion; trade finance; competitiveness. JEL Codes: F17; C53; C55; L21; L25 abstract: In this contribution, we exploit machine learning techniques to predict out-of-sample firms' ability to export based on the financial accounts of both exporters and non-exporters. Therefore, we show how forecasts can be used as exporting scores, i.e., to measure the distance of non-exporters from export status. For our purpose, we train and test various algorithms on the financial reports of 57,021 manufacturing firms in France in 2010-2018. We find that a Bayesian Additive Regression Tree with Missingness In Attributes (BART-MIA) performs better than other techniques with a prediction accuracy of up to 0:90. Predictions are robust to changes in definitions of exporters and in the presence of discontinuous exporters. Eventually, we argue that exporting scores can be helpful for trade promotion, trade credit, and to assess firms' competitiveness. For example, back-of-the-envelope estimates show that a representative firm with just below-average exporting scores needs up to 44% more cash resources and up to 2:5 times more capital expenses to reach full export status. date: 2021-07 date_type: published number: 3 place_of_pub: Lucca pages: 41 institution: IMT Institute for Advanced Studies Lucca issn: 2279-6894 referencetext: Ackerberg, D.A., Caves, K., Frazer, G., 2015. Identification properties of recent production function estimators. Econometrica 83, 2411-2451. Ahrens, A., Hansen, C.B., Schaffer, M.E., 2020. lassopack: Model selection and prediction with regularized regression in stata. arXiv preprint arXiv:1901.05397 . Almeida, H., Campello, M., Weisbach, M.S., 2004. The cash flow sensitivity of cash. The Journal of Finance 59, 1777-1804. Altman, E.I., 1968. Financial ratios, discriminant analysis and the prediction of corporate bankruptcy. The Journal of Finance 23, 589-609. Altman, E.I., et al., 2000. Predicting financial distress of companies: revisiting the z-score and zeta models. Stern School of Business, New York University , 9-12. Athey, S., 2018. The impact of machine learning on economics, in: The Economics of Artificial Intelligence: An Agenda. University of Chicago Press. Athey, S., Imbens, G., Metzger, J., Munro, E., 2021. Using wasserstein generative adversarial networks for the design of monte carlo simulations. Journal of Econometrics. Baier, S.L., Bergstrand, J.H., Mariutto, R., 2014. Economic determinants of free trade agreements revisited: Distinguishing sources of interdependence. Review of International Economics 22, 31-58. Bargagli-Stoffi, F., Riccaboni, M., Rungi, A., 2020. Machine Learning for Zombie Hunting. Firms' Failures and Financial Constraints. EIC Working Paper Series 1/2020. IMT School for Advanced Studies. Barro, R.J., Sala-i Martin, X., 1997. Technological diffusion, convergence, and growth. Journal of Economic Growth 2, 1-26. Bekes, G., Murakozy, B., 2012. Temporary trade and heterogeneous firms. Journal of International Economics 87, 232-246. Belloni, A., Chernozhukov, V., Fernandez-Val, I., Hansen, C., 2017. Program evaluation and causal inference with high-dimensional data. Econometrica 85, 233-298. Belloni, A., Chernozhukov, V., Hansen, C., 2014. High-dimensional methods and inference on structural and treatment e�ects. Journal of Economic Perspectives 28, 29-50. Belloni, A., Chernozhukov, V., Hansen, C., Kozbur, D., 2016. Inference in high-dimensional panel models with an application to gun control. Journal of Business & Economic Statistics 34, 590-605. Belloni, A., Chernozhukov, V., et al., 2013. Least squares after model selection in highdimensional sparse models. Bernoulli 19, 521-547. Bernard, A.B., Jensen, J.B., 1999. Exceptional exporter performance: cause, effect, or both? Journal of international economics 47, 1-25. Bernard, A.B., Jensen, J.B., 2004. Why some firms export. Review of economics and Statistics 86, 561-569. Bernard, A.B., Jensen, J.B., Lawrence, R.Z., 1995. Exporters, jobs, and wages in us manufacturing: 1976-1987. Brookings papers on economic activity. Microeconomics 1995, 67-119. Bernard, A.B., Jensen, J.B., Redding, S.J., Schott, P.K., 2012. The empirics of firm heterogeneity and international trade. Annual Review of Economics 4, 283-313. Breiman, L., 2001. Random forests. Machine learning 45, 5-32. Breiman, L., Friedman, J.H., Olshen, R.A., Stone, C.J., 1984. Classification and regression trees. Belmont, CA: Wadsworth & Brooks. Breinlich, H., Corradi, V., Rocha, N., Ruta, M., Santos Silva, J., Zylkin, T., 2021. Machine Learning in Gravity Models: An Application to Agricultural Trade. Research Working Paper 9629. World Bank. Caballero, R.J., Hoshi, T., Kashyap, A.K., 2008. Zombie lending and depressed restructuring in japan. American Economic Review 98, 1943-77. Chen, H.J., Chen, S.J., 2012. Investment-cash flow sensitivity cannot be a good measure of financial constraints: Evidence from the time series. Journal of Financial Economics 103, 393-410. Chen, J., Chen, Z., 2008. Extended bayesian information criteria for model selection with large model spaces. Biometrika 95, 759-771. Chipman, H.A., George, E.I., McCulloch, R.E., et al., 2010. Bart: Bayesian additive regression trees. The Annals of Applied Statistics 4, 266-298. Chor, D., Manova, K., 2012. Off the cliff and back? credit conditions and international trade during the global financial crisis. Journal of International Economics 87, 117-133. Symposium on the Global Dimensions of the Financial Crisis. Cravino, J., Levchenko, A.A., 2016. Multinational Firms and International Business Cycle Transmission. The Quarterly Journal of Economics 132, 921-962. Crozet, M., Head, K., Mayer, T., 2011. Quality Sorting and Trade: Firm-level Evidence for French Wine. The Review of Economic Studies 79, 609-644. De Loecker, J., Warzynski, F., 2012. Markups and firm-level export status. American Economic Review 102, 2437-71. Del Prete, D., Rungi, A., 2017. Organizing the global value chain: A firm-level test. Journal of International Economics 109, 16-30. Ellison, G., Glaeser, E., 1997. Geographic concentration in u.s. manufacturing industries: A dartboard approach. Journal of Political Economy 105, 889-927. Fazzari, S.M., Hubbard, R.G., Petersen, B.C., 1988. Financing Constraints and Corporate Investment. Brookings Papers on Economic Activity 19, 141-206. Fontagne, L., Secchi, A., Tomasi, C., 2018. Exporters' product vectors across markets. European Economic Review 110, 150-180. Gaulier, G., Santoni, G., Taglioni, D., Zignago, S., 2013. In the Wake of the Global Crisis. Evidence from a New Quarterly Database of Export Competitiveness. Policy Research Working Paper 9629. World Bank. Geishecker, I., Schroder, P.J., Sorensen, A., 2019. One-off export events. Canadian Journal of Economics/Revue canadienne d'economique 52, 93-131. Gopinath, G., Kalemli-Ozcan, S., Karabarbounis, L., Villegas-Sanchez, C., 2017. Capital allocation and productivity in south europe. The Quarterly Journal of Economics 132, 1915-1967. Gopinath, M., Batarseh, F.A., Beckman, J., 2020. Machine Learning in Gravity Models: An Application to Agricultural Trade. Working Paper 27151. National Bureau of Economic Research. Grossman, G.M., Helpman, E., 1990. Comparative advantage and long-run growth. The American Economic Review 80, 796-815. Hastie, T., Tibshirani, R., Friedman, J., 2017. The Elements of Statistical Learning: Data Mining, Inference, and Prediction. Springer. Hill, J., Linero, A., Murray, J., 2020. Bayesian additive regression trees: A review and look forward. Annual Review of Statistics and Its Application 7, 251-278. Hottman, C.J., Redding, S.J., Weinstein, D.E., 2016. Quantifying the Sources of Firm Heterogeneity. The Quarterly Journal of Economics 131, 1291-1364. Joseph, A., 2020. Parametric inference with universal function approximators. Bank of England Staff Working Paper no. 784. Kapelner, A., Bleich, J., 2013. bartmachine: Machine learning with bayesian additive regression trees. arXiv preprint arXiv:1312.2171 . Kapelner, A., Bleich, J., 2015. Prediction with missing data via bayesian additive regression trees. Canadian Journal of Statistics 43, 224-239. Leamer, E., Stern, R., 1970. Quantitative International Economics. Allin and Bacon, Boston. chapter 7. Liu, X., 2012. Classification accuracy and cut point selection. Statistics in medicine 31, 2676-2686. Manova, K., 2012. Credit Constraints, Heterogeneous Firms, and International Trade. The Review of Economic Studies 80, 711-744. Melitz, M.J., 2003. The impact of trade on intra-industry reallocations and aggregate industry productivity. Econometrica 71, 1695-1725. Melitz, M.J., Ottaviano, G.I.P., 2008. Market Size, Trade, and Productivity. The Review of Economic Studies 75, 295-316. Melitz, M.J., Redding, S.J., 2014. Chapter 1 - heterogeneous firms and trade, in: Gopinath, G., Helpman, E., Rogoff, K. (Eds.), Handbook of International Economics. Elsevier. volume 4 of Handbook of International Economics, pp. 1-54. Merton, R.C., 1974. On the pricing of corporate debt: The risk structure of interest rates. The Journal of finance 29, 449-470. Mullainathan, S., Spiess, J., 2017. Machine learning: an applied econometric approach. Journal of Economic Perspectives 31, 87-106. Nickell, S., Nicolitsas, D., 1999. How does financial pressure affect firms? European Economic Review 43, 1435-1456. Reis, J.G., Wagle, S., Farole, T., 2010. Analyzing Trade Competitiveness : A Diagnostics Approach. The World Bank. Richardson, J., 1971a. Constant-market-shares analysis of export growth. Journal of International Economics 1, 227-239. Richardson, J., 1971b. Some sensitivity tests for a "constant-market-shares" analysis of export growth. The Review of Economics and Statistics 53, 300-304. Rivera-Batiz, L.A., Romer, P.M., 1991. International trade with endogenous technological change. European Economic Review 35, 971-1001. Romer, P., 1994. New goods, old theory, and the welfare costs of trade restrictions. Journal of Development Economics 43, 5-38. Rungi, A., Del Prete, D., 2018. The smile curve at the firm level: Where value is added along supply chains. Economics Letters 164, 38-42. Uddin, M.S., 2021. Machine learning in credit risk modeling: Empirical application of neural network approaches. The Fourth Industrial Revolution: Implementation of Artificial Intelligence for Growing Business Success , 417-435. Van Biesebroeck, J., Konings, J., Volpe Martincus, C., 2016. Did export promotion help firms weather the crisis? Economic Policy 31, 653-702. Volpe Martincus, C., Carballo, J., 2008. Is export promotion effective in developing countries? Firm-level evidence on the intensive and the extensive margins of exports. Journal of International Economics 76, 89-106. Volpe Martincus, C., Carballo, J., 2010a. Entering new country and product markets: does export promotion help? Review of World Economics 146, 437-467. Volpe Martincus, C., Carballo, J., 2010b. Export promotion: Bundled services work better. The World Economy 33, 1718-1756. Volpe Martincus, C., Estevadeordal, A., Gallo, A., Luna, J., 2010. Information barriers, export promotion institutions, and the extensive margin of trade. Review of World Economics 146, 91-111. citation: Micocci, Francesca and Rungi, Armando Predicting Exporters with Machine Learning. EIC working paper series #3/2021 ISSN 2279-6894. document_url: http://eprints.imtlucca.it/4082/1/WP_EIC_3-2021.pdf