Reproducible Research Repository
Reproducible Research Repository
  • Home
  • Repository
  • Collections
  • About
    Home / Repository / PRWP / RR_WLD_2025_424
PRWP

Reproducibility package for Measuring Exposure And Vulnerability To International Trade Shocks

2025
Get Reproducibility Package
Reference ID
RR_WLD_2025_424
DOI
https://doi.org/10.60572/a47x-as66
Author(s)
Jean-Christophe Maur, Jean-Francois Arvis, Akanksha Burman, Alvaro Espitia, Nadia Rocha, Daria Ulybina
Collections
World Bank Policy Research Working Papers
Metadata
JSON
Created on
Oct 10, 2025
Last modified
Oct 10, 2025
  • Project Description
  • Downloads
  • Overview
  • Reproducibility Package
  • Description
  • Scope and coverage
  • Disclaimer
  • Access and rights
  • Contacts
  • Information on metadata
  • Citation
  • Overview

    Abstract

    This work discusses simple frameworks for measuring a country's exposure and vulnerability to international trade shocks at the sector and product level based on widely available data. Exposure refers to measuring the reliance, at country or sector level, on purchases or sales abroad, while vulnerability assesses the risks associated with exposure. The paper argues that traditional measures of trade openness, such as trade over GDP that measure participation in international trade, and exposure to it, fail to capture the true extent of a country's reliance on international markets and do not allow for more granular insights at the sectoral level. A set of indicators based on multi-region input-output (MRIO) data and disaggregated trade datais proposed to address these shortcomings. MRIO based indicators highlight the need to consider both drivers of supply and demand through participation into global value chains and resulting indirect trade linkages as important dimensions to consider of exposure to global trade.
    Whether the exposure to international markets leads to vulnerabilities is captured by identifying risk features of participation in international trade. Vulnerability will arise when foreign sourcing (imports) and foreign demand (exports) cannot be easily substituted to mitigate shocks on international markets. When assessing risks of disruption to international trade flows, this work proposes to combine three dimensions related with trade concentration, its volatility, and logistics complexity, highlighting both the risks associated with over-reliance on specific and volatile trade partners and products in the absence of easy substitutes, as well as inherent risks associated with international logistics supply chains.

    Reproducibility Package

    Scripts
    Readme Get Reproducibility Package
    Link: https://reproducibility.worldbank.org/index.php/catalog/363/download/1032/README.pdf
    Reproducibility package for Measuring Exposure And Vulnerability To International Trade Shocks
    File name
    RR_WLD_2025_424
    Zip package
    RR_WLD_2025_424.zip
    Title
    Reproducibility package for Measuring Exposure And Vulnerability To International Trade Shocks
    Date
    2025-10
    Dependencies
    Stata dependencies are listed in the ado folder. Python dependencies are stored in the environment.yml file.
    Instructions
    See README in reproducibility package.
    Notes
    Computational reproducibility verified by Development Impact (DECDI) Analytics team, World Bank.
    Source code repository
    Repository name URI
    Reproducible Research Repository (World Bank) https://reproducibility.worldbank.org
    Software
    Stata
    Name
    Stata
    Version
    18.0
    Python
    Name
    Python
    Version
    3.11.4
    Excel
    Name
    Excel
    Version
    Microsoft Excel for Microsoft 365 MSO

    Reproducibility

    Technology environment

    Paper exhibits were reproduced on a computer with the following specifications:
    • OS: Windows 11 Enterprise, version 23H2
    • Processor: Intel(R) Xeon(R) Platinum 8562Y+ 2.80 GHz (2 processors)
    • Memory available: 128 GB

    Technology requirements

    Runtime from raw data: 5 hours.
    Runtime from intermediate data: 2 minutes.

    Reproduction instructions

    To reproduce the findings in the paper, follow these steps:

    1. Obtain the raw data not included in the package and place it in the correct folder structure.
    2. Open the file EORA GVC Indicators package/code/[0.0] master do file. Update the file paths as needed, then run the code.
    3. Open the file Supply Chain Complexity indicator package/sc_complexity/bilateral sc complexity.ipynb. Restore the environment and run all cells.
    4. From the run in step 3, copy the file sc complexity output - bilateral weighted averages (REDUCED).csv into the folder Product exposure and vulnerability package 0925/Data/Raw. (This file is already included in the folder.)
    5. Open the file Product exposure and vulnerability package 0925/Code/[0.0] Master do file. Update the paths if needed and run the code.
    6. Finally, open the top-level do file: Replication of Tables and Figures. Update the path and run the code. This last step will export all figures and tables into the Outputs folder at the top level of the directory.

    Note: Most intermediate data needed to reproduce the results with this script are already included in the package. Therefore, to replicate the findings, users only need to run steps 1,2, and 6.
    The exhibits produced by the replicators are included in the folder Outputs so users can compare them directly with the published paper.
    Additionally, there is another folder in the reproducibility package, ICIO GVC Indicators package. This folder is not used to generate the final figures but provides an alternative data source for users who wish to reproduce the findings using different input data.

    Data

    Datasets
    EORA 26
    Name
    EORA 26
    Note
    Located at: EORA GVC Indicators package/data/Eora26_year'_bp` zip. To obtain access to the EORA 26 dataset, users should visit the link below, create an account, and select the appropriate license type (either an academic license or a trial license). After obtaining access, they should download the ZIP files for the years 2022 to 1990 and place them in the folder specified above. Access date: 10 September 2024.
    Access policy
    Data is accessible, but does not allow redistribution and is not included in the reproducibility package
    License URL
    https://worldmrio.com/licensing.jsp
    Data URL
    https://worldmrio.com/eora26/
    Citation
    Lenzen, M., Moran, D., Kanemoto, K., & Geschke, A. (2013). Building EORA: A Global Multi-Region Input-Output Database at High Country and Sector Resolution. Economic Systems Research, 25(1), 20–49. doi:10.1080/09535314.2013.769938
    Inter-Country Input-Output tables, 2023 Release
    Name
    Inter-Country Input-Output tables, 2023 Release
    Note
    Located at: ICIO GVC Indicators package/data/ICIO_2023/1995.csv to 2020.csv. Access date: 23 September 2024. To download, users can follow the link below, download the zip folders 1995-2000, 2001-2005, 2006-2010, 2011-2015, 2016-2020, and place them in the mentioned folder.
    Access policy
    Data is publicly available, but because of size constraints, it is not included in the reproducibility package
    License URL
    https://www.oecd.org/en/about/terms-conditions.html
    Data URL
    https://www.oecd.org/en/data/datasets/inter-country-input-output-tables.html
    Citation
    Organisation for Economic Co-operation and Development (2024). Inter-Country Input-Output tables. Available at: https://www.oecd.org/en/data/datasets/inter-country-input-output-tables.html
    International Trade Database, Version 202501 (HS17)
    Name
    International Trade Database, Version 202501 (HS17)
    Note
    File location: Product GVC Indicators package/Data/Raw/BACI_HS17_V202501/ Files range from BACI_HS17_Y2017_V202501.csv to BACI_HS17_Y2023_V202501.csv; country_codes_V202501.csv; product_codes_HS17_V202501.csv. Access date: 12 February 2025. Download instructions: To download the files, follow the link provided below. Select the 202501 version, then click on HS17 (2017–2023). This will download a ZIP folder containing all the required CSV files. Unzip the folder and place the CSV files in the correct directory indicated above.
    Access policy
    Data is publicly available, but because of size constraints, it is not included in the reproducibility package
    License
    OPEN LICENCE 2.0
    License URL
    https://www.etalab.gouv.fr/wp-content/uploads/2018/11/open-licence.pdf
    Data URL
    https://www.cepii.fr/CEPII/en/bdd_modele/bdd_modele_item.asp?id=37
    Citation
    Gaulier, G. and Zignago, S. (2010) BACI: International Trade Database at the Product-Level. The 1994-2007 Version. CEPII Working Paper, N°2010-23.
    Product Concordance Tables
    Name
    Product Concordance Tables
    Note
    Source: World Bank World Integrated Trade Solution Database. File location: Product GVC Indicators package/Data/Support/HS2017toHS2012ConversionAndCorrelationTables.xlsx; HS2017toHS1992ConversionAndCorrelationTables.xlsx Product GVC Indicators package/Data/Support/Concordance_HS_to_H0.CSV; Product GVC Indicators package/Data/Support/HS 2012 to HS 1992 Correlation and conversion tables (1).xls; Product exposure and vulnerability package 0925/Data/ValueChains/GreenValueChains/Mapping_HS6/HSCodeandDescription.xlsx; HS2017toHS1992ConversionAndCorrelationTables.xlsx; HS 2012 to HS 1992 Correlation and conversion tables.xls. Access date: 24 September 2025.
    Access policy
    Data is publicly available and included in the reproducibility package
    Data URL
    https://wits.worldbank.org/product_concordance.html
    World Bank Country and Lending Groups
    Name
    World Bank Country and Lending Groups
    Note
    Source: World Bank. File location: Product GVC Indicators package/Data/WB_Country_Classification_FY_25.dta.
    Access policy
    Data is publicly available and included in the reproducibility package
    License
    Creative Commons Attribution 4.0 International License (CC BY 4.0)
    License URL
    https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets
    Data URL
    https://datahelpdesk.worldbank.org/knowledgebase/articles/906519-world-bank-country-and-lending-groups
    Green Value Chains Data
    Name
    Green Value Chains Data
    Note
    Files location: Product exposure and vulnerability package/Data/ValueChains/GreenValueChains/Mapping_HS6/new_GVC_dataset.dta. Access date: 24 September 2025. Data is available in Annex 3 from the publication below.
    Access policy
    Data is publicly available and included in the reproducibility package
    License
    Creative Commons Attribution 3.0 License (CC BY 3.0 IGO)
    Data URL
    https://openknowledge.worldbank.org/entities/publication/75964bc2-4115-4178-9d80-fb7518ebd4b9
    Citation
    Rosenow, Samuel Kaspar; Mealy, Penny. 2024. Turning Risks into Reward: Diversifying the Global Value Chains of Decarbonization Technologies. Policy Research Working Paper; 10696. © World Bank. http://hdl.handle.net/10986/41024 License: CC BY 3.0 IGO.
    ISO3 Concordance Data
    Name
    ISO3 Concordance Data
    Note
    File manually created by the authors. File location: Product GVC Indicators package/Data/ISO3 concordance.dta
    Access policy
    Data is included in the reproducibility package
    Semiconductors Data
    Name
    Semiconductors Data
    Note
    Files location: Product exposure and vulnerability package/Data/ValueChains/GreenValueChains/Semiconductors/List of Products Semiconductors.xlsx. Access date: 24 September 2025.
    Access policy
    Data is publicly available and included in the reproducibility package
    Data URL
    https://www.oecd.org/content/dam/oecd/en/publications/reports/2019/12/measuring-distortions-in-international-markets-the-semiconductor-value-chain_bf9aafd6/8fe4491d-en.pdf
    Logistics Performance Index (LPI)
    Name
    Logistics Performance Index (LPI)
    Note
    Source: World Bank. File location: Supply Chain Complexity indicator package/sc_complexity/c2c minus myanmar (calcs).xlsx. Access date: 24 September 2025.
    Access policy
    Data is publicly available and included in the reproducibility package
    Data URL
    https://lpi.worldbank.org/international/global
    Liner Shipping Bilateral Connectivity Index
    Name
    Liner Shipping Bilateral Connectivity Index
    Note
    Data is publicly available and included in the reproducibility package
    Access policy
    File location: Supply Chain Complexity indicator package/ sc_complexity/unctad codes.csv. Access date: 24 September 2025.
    License
    Creative Commons Attribution 3.0 IGO license
    License URL
    https://unctadstat.unctad.org/EN/About.html#TERMS_OF_USE
    Data URL
    https://unctadstat.unctad.org/datacentre/reportInfo/US.LSBCI
    Citation
    UNCTAD, Division on Technology and Logistics, Division on International Trade in Goods and Services, and Commodities based on data from MDS Transmodal (https://www.mdst.co.uk).
    Travel Time & Distance
    Name
    Travel Time & Distance
    Note
    File location: Supply Chain Complexity indicator package/sc_complexity/results Travel Time and geo distance.csv Access date: May 2025. As this dataset cannot be included in the package, a CSV file containing the data structure is provided instead. This allows users to prepare their own version of the dataset and reproduce the analysis and findings presented in the paper.
    Access policy
    Data is accessible, but does not allow redistribution and is not included in the reproducibility package
    License
    Wolfram Mathematica License Agreement
    License URL
    https://www.wolfram.com/legal/agreements/wolfram-mathematica/
    Archetypical GVCs Value chains
    Name
    Archetypical GVCs Value chains
    Note
    Files location: Product exposure and vulnerability package/Data/ValueChains/GreenValueChains/Mapping_HS6/HS_GVC_ProductGroup.xlsx Access date: 29 September 2025.
    Access policy
    Data is publicly available and included in the reproducibility package
    Data URL
    https://wits.worldbank.org/data/public/HS_GVC_ProductGroup.xlsx
    Citation
    Ferrantino, Michael Joseph; Schmidt, Gabriela. Using gross trade data to map archetypal GVCs (English). Paper is funded by the Strategic Research Program (SRP)|Policy Research working paper|no. WPS 8296 Washington, D.C.: World Bank Group. http://documents.worldbank.org/curated/en/860011515427969143
    Data statement

    All data sources are publicly available, but not all are included in the reproducibility package.

    Description

    Output
    Measuring Exposure And Vulnerability To International Trade Shocks
    Type
    Working Paper
    Title
    Measuring Exposure And Vulnerability To International Trade Shocks
    Description
    Policy Research Working Papers (PRWP)
    Authors
    Author Affiliation Email
    Jean-Christophe Maur World Bank jmaur@worldbank.org
    Jean-Francois Arvis World Bank jarvis1@worldbank.org
    Akanksha Burman IFC aburman1@ifc.org
    Alvaro Espitia World Bank aespitia@worldbank.org
    Nadia Rocha InterAmerican Development Bank nadiaro@iadb.org
    Daria Ulybina World Bank dulybina@worldbank.org
    Date of production

    2025-10-03

    Scope and coverage

    Geographic locations
    Location Code
    World WLD
    Keywords
    International Trade Global Value Chains Trade Shocks Exposure To Trade Supply Chains Trade Vulnerability Trade Exposure
    Topics
    ID Topic Parent topic ID Vocabulary Vocabulary URI
    F14 Empirical Studies of Trade F1 Journal of Economic Literature (JEL)
    F15 Economic Integration F1 Journal of Economic Literature (JEL)
    F61 Microeconomic Impacts F6 Journal of Economic Literature (JEL)

    Disclaimer

    Disclaimer

    The materials in the reproducibility packages are distributed as they were prepared by the staff of the International Bank for Reconstruction and Development/The World Bank. The findings, interpretations, and conclusions expressed in this event do not necessarily reflect the views of the World Bank, the Executive Directors of the World Bank, or the governments they represent. The World Bank does not guarantee the accuracy of the materials included in the reproducibility package.

    Access and rights

    License
    Name URI
    Modified BSD3 https://opensource.org/license/bsd-3-clause/

    Contacts

    Contacts
    Name Affiliation Email
    Jean-Christophe Maur World Bank jmaur@worldbank.org
    Reproducibility WBG World Bank reproducibility@worldbank.org

    Information on metadata

    Producers
    Name Abbreviation Affiliation Role
    Reproducibility WBG DECDI World Bank - Development Impact Department Verification and preparation of metadata
    Date of Production

    2025-10-03

    Document version

    1

    Citation

    Citation
    loading, please wait...
    Citation format
    Export citation: RIS | BibTeX | Plain text
    Back to Catalog
    The World Bank Working for a World Free of Poverty
    • IBRD IDA IFC MIGA ICSID

    © The World Bank Group, All Rights Reserved.