Trade Network Analysis

Machine Learning
Introduced by
Network science applied to trade (e.g., Michael Ward, John Ahlquist & Arturas Rozenas)
Year
2013
Type
Network and inferential-network analysis of trade flows
Family
Network & graph analysis for IR / international political economy

What does it do?

Trade network analysis treats the international trade system as a weighted, directed graph in which states are nodes and trade flows are edges.

Descriptive network measures summarize the structure of that graph. Inferential network models, such as latent space models, go further and model how trade ties form, treating ties as interdependent rather than as separate dyads, as the standard gravity model does. Ward, Ahlquist, and Rozenas (2013) combine a gravity specification with latent space networks to capture this dependence in bilateral trade data.

The intuition behind the method

Trade is better understood as a web than as a set of separate bilateral pipes. Whether two countries trade depends on more than their sizes and the distance between them, since shared partners, bloc membership, and central hubs can all shape flows. The gravity model predicts each pair separately and so cannot represent these structural effects. Trade network analysis looks at the whole graph: it identifies which economies are central, how the system clusters, and whether trade shows dependence that an independence assumption would miss. Ward, Ahlquist, and Rozenas argue that such dependence is expected in trade, so standard gravity models are empirically inadequate. Their latent space approach places countries in an unobserved space, where closer countries trade more.

History

Gravity models were the standard empirical tool for bilateral trade. Ward, Ahlquist, and Rozenas (2013) argued that trade data show network dependencies that gravity models ignore, so standard gravity specifications are empirically inadequate. Their paper, 'Gravity's Rainbow', published in Network Science, combined a gravity specification with latent space networks to build a dynamic mixture model for real-valued directed graphs, estimated on bilateral trade data from 1990 to 2008.

When to use it

Choose trade network analysis when you suspect that trade ties are interdependent, so that a country's trade with one partner depends on its position in the wider trade system, and when your question concerns that structure. It suits describing the architecture of the trade system, locating central economies and blocs, and testing whether gravity estimates hold once network dependence is modelled, as Ward, Ahlquist, and Rozenas did for bilateral trade from 1990 to 2008. Do not use it when interdependence is not the question, when a standard dyadic gravity estimate answers the research question adequately, or when the network is too small or too sparse to support stable inferential models.

Limitations and considerations

  • Inferential network models are computationally demanding for a large, dense graph of many countries observed over many periods.
  • Trade data contain reporting discrepancies between exporter and importer records and missing flows, which feed directly into edge weights.
  • Latent positions help describe and predict ties, but their axes have no fixed substantive meaning, which makes them hard to interpret directly.
  • Results depend on how trade is weighted and, for descriptive measures, on any threshold used to define a tie.
  • Latent space models require checks of convergence and identification, and results can be sensitive to the chosen number of latent dimensions. Zero and missing flows must also be handled explicitly, so state how the model you use treats them.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Models interdependence among trade ties, which dyadic gravity regressions assume away.
  • Reveals system-level structure such as hubs, blocs, and core-periphery hierarchy that pair-by-pair analysis cannot show.
  • Latent space models combine network dependence with gravity-style covariates in one specification, so covariate effects can be read alongside the latent structure.
  • The cited model handles both whether a trade tie exists and how large it is, and is assessed on out-of-sample prediction.

Applications

  • Mapping the structure of the world trade system and its regional blocs.
  • Identifying central, hub, and gatekeeper economies in global trade.
  • Modeling trade-tie formation with network dependence beyond gravity covariates.
  • Studying the co-evolution of trade with conflict, alliances, and sanctions.
  • Assessing the resilience of supply and trade networks to shocks or the removal of key nodes.

How it works

How it works

1

States are nodes, and each bilateral trade flow is a weighted, directed edge running from exporter i to importer j. Because trade changes over time, the network is built as a series of graphs, one per period. The cited study uses bilateral trade data for 1990 to 2008.

Formula
G = (V, E),\ w_{ij} = \text{trade flow from } i \text{ to } j
2

Descriptive statistics summarize the structure of the graph before any model is fitted. Degree and strength capture how many partners a country has and how much volume it trades. Centrality identifies pivotal economies, community detection finds groups of densely linked states, and core-periphery measures show whether a densely connected core is surrounded by a sparsely connected periphery. These measures describe existing structure; they do not model how ties form.

Formula
\text{degree, strength, centrality, community, core-periphery}
3

Inferential network models treat the observed trade pattern as the outcome of an underlying process. In a generic latent space specification, each country has an unobserved position, and the log of expected trade between two countries equals a set of covariate terms minus the distance between their latent positions, so closer countries are expected to trade more. The equation shown for this step is this simplified, static form, given for illustration. Ward, Ahlquist, and Rozenas (2013) extend the latent space idea to a dynamic mixture model for real-valued directed graphs that models trade incidence and trade volumes together over time. Their exact specification is more elaborate than the displayed equation.

Formula
\log E[w_{ij}] = \mathbf{x}_{ij}'\boldsymbol{\beta} - |z_i - z_j|
4

The model is estimated from the observed bilateral data to recover the latent positions and covariate coefficients. The positions give a map of which countries sit close together in the trade network, and the coefficients give gravity-style effects net of the network dependence captured by the positions. The cited study evaluates its model on in-sample and out-of-sample predictive performance, reporting that it substantially outperforms standard gravity accounts, and illustrates it by tracking trading propensities between the USA and China. In your own application, check convergence and fit diagnostics, and test how sensitive the results are to the number of latent dimensions.

Formula
\hat{z}_i \in \mathbb{R}^d,\ \hat{\boldsymbol{\beta}} \Rightarrow \text{structure + covariate effects}

Common pitfalls

  • Assuming dyadic independence is harmless when trade is strongly interdependent, which can distort gravity-style estimates.
  • Dichotomizing flows at an arbitrary threshold and discarding volume information that the latent space model is designed to retain.
  • Ignoring mirror-statistics discrepancies between exporter and importer reports when building directed edges.
  • Reading latent-space coordinates as if their axes had a fixed substantive meaning, when positions are estimated relative to one another.

Frequently asked questions

How does trade network analysis differ from the gravity model of trade?

The gravity model predicts bilateral trade from the two economies' sizes and the distance and frictions between them, treating each dyad independently. Trade network analysis recognizes that trade ties are interdependent, shaped by shared partners, blocs, and hubs, and models the whole graph, using structural statistics and inferential models (such as latent space models) that capture this dependence. They are complementary: network models can recover gravity-like effects while correcting for the dependence gravity regressions ignore.

What is a core-periphery structure in the trade network?

It describes a system in which a densely interconnected core of major trading economies is surrounded by a sparsely connected periphery that trades mainly with the core rather than with other peripheral economies. Detecting this structure gives a descriptive measure of hierarchy in the trade system, in line with world-systems ideas of dominant and dependent economies. It is a pattern to be measured in the data, not one that every trade network is assumed to show.

What data are used for trade network analysis?

Bilateral trade flows over time, commonly from the Correlates of War Trade dataset, the IMF Direction of Trade Statistics, UN Comtrade, or the CEPII gravity datasets. Analysts build yearly directed, weighted graphs from exports and imports, reconcile reporting discrepancies between partners, and merge in covariates such as GDP, distance, and shared memberships.

Related methods

Sources

  1. Ward, M. D., Ahlquist, J. S., & Rozenas, A. (2013). Gravity's rainbow: A dynamic latent space model for the world trade network. Network Science, 1(1), 95–118.

    Open DOI reference