IDEAS home Printed from https://ideas.repec.org/a/eee/intfor/v40y2024i4p1336-1358.html
   My bibliography  Save this article

Thinking outside the container: A sparse partial least squares approach to forecasting trade flows

Author

Listed:
  • Stamer, Vincent

Abstract

Global container ship movements may reliably predict trade flows. First, this paper provides the methodology to construct maritime shipping time series from a dataset comprising millions of container vessel positions annually. Second, to forecast monthly goods trade using these time series, this study outlines the use of the least absolute shrinkage and selection operator (LASSO) in combination with a partial least squares process (PLS). An expanding window, out-of-sample exercise demonstrates that constructed forecasts outperform benchmark models for the vast majority of 76 countries and regions. The performance holds true for unilateral and bilateral trade flows, for trade of developed and developing countries, for real and nominal trade, as well as for time periods of economic crisis such as the COVID-19 pandemic. The resulting forecasts of trade flows precede official statistics by several months and may facilitate quantification of supply chain disruptions and trade wars.

Suggested Citation

  • Stamer, Vincent, 2024. "Thinking outside the container: A sparse partial least squares approach to forecasting trade flows," International Journal of Forecasting, Elsevier, vol. 40(4), pages 1336-1358.
  • Handle: RePEc:eee:intfor:v:40:y:2024:i:4:p:1336-1358
    DOI: 10.1016/j.ijforecast.2023.11.007
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S016920702300122X
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ijforecast.2023.11.007?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Giulia Brancaccio & Myrto Kalouptsidi & Theodore Papageorgiou, 2017. "Geography, Search Frictions and Endogenous Trade Costs," NBER Working Papers 23581, National Bureau of Economic Research, Inc.
    2. Jushan Bai & Serena Ng, 2002. "Determining the Number of Factors in Approximate Factor Models," Econometrica, Econometric Society, vol. 70(1), pages 191-221, January.
    3. Eickmeier, Sandra & Ng, Tim, 2011. "Forecasting national activity using lots of international predictors: An application to New Zealand," International Journal of Forecasting, Elsevier, vol. 27(2), pages 496-511, April.
    4. Alexander Keck & Alexander Raubold & Alessandro Truppia, 2010. "Forecasting international trade: A time series approach," OECD Journal: Journal of Business Cycle Measurement and Analysis, OECD Publishing, Centre for International Research on Economic Tendency Surveys, vol. 2009(2), pages 157-176.
    5. Andrei Dubovik & Adam Elbourne & Bram Hendriks & Mark Kattenberg, 2022. "Forecasting World Trade Using Big Data and Machine Learning Techniques," CPB Discussion Paper 441, CPB Netherlands Bureau for Economic Policy Analysis.
    6. Diego A. Cerdeiro & Andras Komaromi, 2022. "Supply spillovers during the pandemic: Evidence from high‐frequency shipping data," The World Economy, Wiley Blackwell, vol. 45(11), pages 3451-3474, November.
    7. Robert Lehmann, 2021. "Forecasting exports across Europe: What are the superior survey indicators?," Empirical Economics, Springer, vol. 60(5), pages 2429-2453, May.
    8. Julieta Fuentes & Pilar Poncela & Julio Rodríguez, 2015. "Sparse Partial Least Squares in Time Series for Macroeconomic Forecasting," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 30(4), pages 576-595, June.
    9. Jörg Breitung & Philipp Hansen, 2021. "Alternative estimation approaches for the factor augmented panel data model with small T," Empirical Economics, Springer, vol. 60(1), pages 327-351, January.
    10. Jushan Bai & Serena Ng, 2004. "A PANIC Attack on Unit Roots and Cointegration," Econometrica, Econometric Society, vol. 72(4), pages 1127-1177, July.
    11. Jörg Breitung & Malte Knüppel, 2021. "How far can we forecast? Statistical tests of the predictive content," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 36(4), pages 369-392, June.
    12. Roland Döhrn & Sönke Maatsch, 2012. "Der RWI/ISL-Containerumschlag-Index," Wirtschaftsdienst, Springer;ZBW - Leibniz Information Centre for Economics, vol. 92(5), pages 352-354, May.
    13. Maximo Camacho & Gabriel Perez-Quiros, 2010. "Introducing the euro-sting: Short-term indicator of euro area growth," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 25(4), pages 663-694.
    14. Alexander Sandkamp & Vincent Stamer & Shuyao Yang, 2022. "Where has the rum gone? The impact of maritime piracy on trade and transport," Review of World Economics (Weltwirtschaftliches Archiv), Springer;Institut für Weltwirtschaft (Kiel Institute for the World Economy), vol. 158(3), pages 751-778, August.
    15. Kyle Jurado & Sydney C. Ludvigson & Serena Ng, 2015. "Measuring Uncertainty," American Economic Review, American Economic Association, vol. 105(3), pages 1177-1216, March.
    16. Hyonho Chun & Sündüz Keleş, 2010. "Sparse partial least squares regression for simultaneous dimension reduction and variable selection," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 72(1), pages 3-25, January.
    17. Theodore Papageorgiou & Myrto Kalouptsidi & Giulia Brancaccio, 2017. "Geography, Search Frictions and Trade Costs," 2017 Meeting Papers 1105, Society for Economic Dynamics.
    18. Zou, Hui, 2006. "The Adaptive Lasso and Its Oracle Properties," Journal of the American Statistical Association, American Statistical Association, vol. 101, pages 1418-1429, December.
    19. Raffaella Giacomini & Halbert White, 2006. "Tests of Conditional Predictive Ability," Econometrica, Econometric Society, vol. 74(6), pages 1545-1578, November.
    20. Veenstra, Albert W. & Haralambides, Hercules E., 2001. "Multivariate autoregressive models for forecasting seaborne trade flows," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 37(4), pages 311-319, August.
    21. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    22. Ulltveit-Moe, Karen Helene & Heiland, Inga & Moxnes, Andreas & Zi, Yuan, 2019. "Trade From Space: Shipping Networks and The Global Implications of Local Shocks," CEPR Discussion Papers 14193, C.E.P.R. Discussion Papers.
    23. Soohyon Kim, 2020. "Macroeconomic and Financial Market Analyses and Predictions through Deep Learning," Working Papers 2020-18, Economic Research Institute, Bank of Korea.
    24. Jörg Breitung & Philipp Hansen, 2021. "Correction to: Alternative estimation approaches for the factor augmented panel data model with small T," Empirical Economics, Springer, vol. 61(6), pages 3557-3558, December.
    25. Hui Zou & Trevor Hastie, 2005. "Addendum: Regularization and variable selection via the elastic net," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 67(5), pages 768-768, November.
    26. Stock J.H. & Watson M.W., 2002. "Forecasting Using Principal Components From a Large Number of Predictors," Journal of the American Statistical Association, American Statistical Association, vol. 97, pages 1167-1179, December.
    27. Hui Zou & Trevor Hastie, 2005. "Regularization and variable selection via the elastic net," Journal of the Royal Statistical Society Series B, Royal Statistical Society, vol. 67(2), pages 301-320, April.
    Full references (including those not matched with items on IDEAS)

    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. Stamer, Vincent, 2022. "Thinking Outside the Container: A Sparse Partial Least Squares Approach to Forecasting Trade Flows," VfS Annual Conference 2022 (Basel): Big Data in Economics 264096, Verein für Socialpolitik / German Economic Association.
    2. Bae, Juhee, 2024. "Factor-augmented forecasting in big data," International Journal of Forecasting, Elsevier, vol. 40(4), pages 1660-1688.
    3. Cepni, Oguzhan & Clements, Michael P., 2024. "How local is the local inflation factor? Evidence from emerging European countries," International Journal of Forecasting, Elsevier, vol. 40(1), pages 160-183.
    4. Norman R. Swanson & Weiqi Xiong, 2018. "Big data analytics in economics: What have we learned so far, and where should we go from here?," Canadian Journal of Economics/Revue canadienne d'économique, John Wiley & Sons, vol. 51(3), pages 695-746, August.
    5. Joseph, Andreas & Potjagailo, Galina & Chakraborty, Chiranjit & Kapetanios, George, 2024. "Forecasting UK inflation bottom up," International Journal of Forecasting, Elsevier, vol. 40(4), pages 1521-1538.
    6. Borup, Daniel & Christensen, Bent Jesper & Mühlbach, Nicolaj Søndergaard & Nielsen, Mikkel Slot, 2023. "Targeting predictors in random forest regression," International Journal of Forecasting, Elsevier, vol. 39(2), pages 841-868.
    7. Barbara Rossi, 2019. "Forecasting in the presence of instabilities: How do we know whether models predict well and how to improve them," Economics Working Papers 1711, Department of Economics and Business, Universitat Pompeu Fabra, revised Jul 2021.
    8. Kim, Hyun Hak & Swanson, Norman R., 2014. "Forecasting financial and macroeconomic variables using data reduction methods: New empirical evidence," Journal of Econometrics, Elsevier, vol. 178(P2), pages 352-367.
    9. Eleni Kalamara & Arthur Turrell & Chris Redl & George Kapetanios & Sujit Kapadia, 2022. "Making text count: Economic forecasting using newspaper text," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(5), pages 896-919, August.
    10. Cheng, Mingmian & Swanson, Norman R. & Yang, Xiye, 2021. "Forecasting volatility using double shrinkage methods," Journal of Empirical Finance, Elsevier, vol. 62(C), pages 46-61.
    11. Araujo, Gustavo Silva & Gaglianone, Wagner Piazza, 2023. "Machine learning methods for inflation forecasting in Brazil: New contenders versus classical models," Latin American Journal of Central Banking (previously Monetaria), Elsevier, vol. 4(2).
    12. Cepni, Oguzhan & Güney, I. Ethem & Swanson, Norman R., 2019. "Nowcasting and forecasting GDP in emerging markets using global financial and macroeconomic diffusion indexes," International Journal of Forecasting, Elsevier, vol. 35(2), pages 555-572.
    13. Hyun Hak Kim & Norman Swanson, 2013. "Mining Big Data Using Parsimonious Factor and Shrinkage Methods," Departmental Working Papers 201316, Rutgers University, Department of Economics.
    14. Kim, Hyun Hak & Swanson, Norman R., 2018. "Mining big data using parsimonious factor, machine learning, variable selection and shrinkage methods," International Journal of Forecasting, Elsevier, vol. 34(2), pages 339-354.
    15. Philippe Goulet Coulombe & Maxime Leroux & Dalibor Stevanovic & Stéphane Surprenant, 2022. "How is machine learning useful for macroeconomic forecasting?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 37(5), pages 920-964, August.
    16. Magnus Reif, 2020. "Macroeconomics, Nonlinearities, and the Business Cycle," ifo Beiträge zur Wirtschaftsforschung, ifo Institute - Leibniz Institute for Economic Research at the University of Munich, number 87, March.
    17. 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.
    18. Caroline Jardet & Baptiste Meunier, 2022. "Nowcasting world GDP growth with high‐frequency data," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 41(6), pages 1181-1200, September.
    19. Costa, Alexandre Bonnet R. & Ferreira, Pedro Cavalcanti G. & Gaglianone, Wagner P. & Guillén, Osmani Teixeira C. & Issler, João Victor & Lin, Yihao, 2021. "Machine learning and oil price point and density forecasting," Energy Economics, Elsevier, vol. 102(C).
    20. Fang, Tong & Lee, Tae-Hwy & Su, Zhi, 2020. "Predicting the long-term stock market volatility: A GARCH-MIDAS model with variable selection," Journal of Empirical Finance, Elsevier, vol. 58(C), pages 36-49.

    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:eee:intfor:v:40:y:2024:i:4:p:1336-1358. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/ijforecast .

    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.