Skip to main content

Nowcasting Global Trade: A RAS Simulation

In the fast-moving world of international trade, data is often the bottleneck. Detailed Inter-Country Input-Output (ICIO) tables—the maps that tell us exactly how many semiconductors Japan sold to Germany—often lag by years. Yet, policymakers and analysts need to know what the world looks like today.

How do we reconcile the detailed structural data of the past with the aggregate economic realities of the present? In this analysis, we deployed the RAS Method (Bi-Proportional Adjustment) to "Nowcast" the 2022 global trade structure using only historical patterns and current headlines.

The Methodology: A Blind Simulation

To rigorously test the RAS capability, we set up a "Blind Simulation" using Python. Although we possessed the full 2022 Input-Output tables, we deliberately ignored the interior data—the specific supply chain connections between countries.

Instead, we fed the algorithm only two specific inputs, mimicking the real-world constraint where detailed data is missing:

  • The "Seed" (Structure): The outdated 2016 trade matrix, representing the "technological recipe" of the past.
  • The "Controls" (Scale): The 2022 Row and Column totals. These represent the verified "Headline Numbers" (Total Exports and Total Imports per country) which are typically released years ahead of the detailed tables.

The algorithm's task was to mathematically stretch and compress the 2016 structure until it perfectly fit inside the 2022 aggregate boundaries.

Technical Challenge & Solution:
Real-world data is messy. Our Python script handled two specific pitfalls to ensure convergence:
  • The Zero Problem: Trade routes that didn't exist in 2016 (zeros) would mathematically stay zero forever. We solved this by injecting a tiny epsilon value (1×10-4) into the seed matrix, allowing the algorithm to "discover" new trade routes (like Vietnam → USA) if the 2022 totals demanded it.
  • Negative Values: Inventory changes and subsidies often appear as negative numbers in raw data, which causes the RAS algorithm to explode. We implemented a cleaning step to clip these values at zero, ensuring mathematical stability.

The Big Questions: What This Solves

By forcing the 2016 trade structure to conform to 2022's hard totals, we generated a Predicted 2022 Matrix that allows us to answer structural questions without waiting for official reports:

  • Is "Decoupling" Real? – Did trade between the US and China shrink relative to their economic growth?
  • Who are the New Hubs? – Which countries (e.g., Vietnam, Mexico) have structurally intensified their trade relationships with the West?
  • The Reshoring Question: – Have major economies like Germany and the USA become more insular, trading more with themselves (Domestic Output) than with partners?

Visualizing the Shift: The 2016–2022 Heatmap

The heatmap below visualizes the Implied Structural Growth derived from our RAS simulation. This is not just a map of volume, but of structural intensity.

How to Read This Map

  • Deep Blue (Intensification): These cells represent trade relationships that grew faster than the general GDP growth of the trading partners. A blue square for Vietnam → USA signals a deepening structural reliance.
  • Red (Relative Decline): These cells indicate trade relationships that lagged. A red hue for China → USA implies that, even if absolute dollar amounts rose, the share of trade is shrinking relative to China's massive total output—a quantitative signal of decoupling.
  • White / Light: These relationships grew roughly in line with the broader economy.

Conclusion

This simulation demonstrates that while we often lack detailed maps of the present, we can construct reliable approximations using the RAS method. By fusing the "geometry" of the past with the "scale" of the present, analysts can identify winners and losers in the post-2020 supply chain restructuring long before official tables are published.

Analysis performed using Python, Pandas, and the OECD ICIO Datasets.

Comments

Popular posts from this blog

Mapping the Blast Radius: What Happens When the "World's Factory" Stops?

In global trade, "efficiency" often masks "fragility." We know that China is central to the global electronics supply chain, but how central? And if that node were to go dark, who would feel the shockwaves first? To answer this, I moved beyond standard trade statistics and built a network simulation using the OECD Inter-Country Input-Output (ICIO) Tables (2023 Edition) . This dataset maps the DNA of the global economy, tracking every dollar of input across 66 countries and 45 industries. 1. The Blast Radius: Tracing the Contagion I treated the global economy as a directed graph and simulated a total supply shock to Chinese Electronics (CHN_C26) . By tracing the flow of inputs across three tiers of buyers, I visualized the "Blast Radius" of this disruption. Fig 1: The Supply Chain Cascade. The shock originates in China (Red) and immediately hits "Tier 1" assembly hubs (Dark Blue) before cascading to global consumers...

Turkey's Informality Tax

A general-equilibrium model of Turkey's dual labour market says the cost of taxing formal work doesn't show up where we usually look for it. The bottomline: Making Turkey's transfer to the unemployed a third more generous raises unemployment from 8.6% to 9.2% . That is the honest cost, and it is not large. How you pay for it matters more than whether you pay for it. Funded by payroll taxes, the poor end up 0.6% worse off than before the transfer was raised — the policy defeats itself. Funded by VAT, they are 0.5% better off . The reason is not unemployment, which is nearly identical under both. It is informality . A higher payroll tax pushes formal jobs into the unregistered sector, where the wage is 43% lower and nothing is taxed. Turkey is not on the wrong side of the payroll-tax Laffer curve — revenue peaks around 53%, well above today's ~37.5% wedge. But the marginal cost...

Modeling Core PCE inflation: A dual approach

Today's release of the August 2025 Personal Consumption Expenditures (PCE) inflation data drew widespread media attention, with coverage highlighting both the persistence of inflation and its implications for Federal Reserve policy. Across outlets, analysts pointed to resilient consumer spending and income growth as signs of underlying economic strength, even as inflation remains above the Fed's 2% target. The consensus among media reports is that while inflation is not worsening, its stubbornness continues to challenge policymakers navigating a softening labor market and evolving rate expectations. To provide deeper insights into inflation's trajectory, I've developed a forecasting framework that combines two econometric approaches — ARIMA time series modeling and Phillips Curve analysis—to predict Core PCE inflation. This analysis presents a unique opportunity to validate my forecasting methodology against eight months of 2025 data. ...