Computational Approaches to the Non-Observed EconomySpace and systems

Module 6Spatial dynamics

One national number can hide very different maps, and the map changes the policy. On an invented country of 160 hexagonal districts with a river, a smuggling corridor, two market towns and 40 surveys, we name the support, relation, observation process and task of a spatial study, use norms and graphs (and say what an edge means), smooth where the economy is continuous and not across a border, report the distance to the evidence, and test for structure with shuffles. Then we work backwards from traces to hidden activity, list the ways that fails, validate on regions a model never saw, and compress a detailed map into a small graph of regimes.

By the end you should be able to choose and justify a spatial relation, use smoothness as a prior with honest borders, test spatial structure and multiple local tests, reconstruct a map from traces with a stated operator and prior, validate on unseen regions, and report fidelity and reduction for a reduced model.

Key ideas, one per video

  • Video 12Moran's I was 0.86 on the Mainland, but a survey method alone produced 0.26, and a shuffled map still showed 7 'significant' local clusters. Picking audits by network exposure found a hider a third of the time, against one in eight at random.
  • Video 13The raw inversion was off by 4.4 points and light smoothing by 2.2. A wrong observation operator raised the error to 11.6, while deleting 30% of graph links left it at 2.2. Holding out whole regions doubled the map-neighbour error (2.3 to 4.6).

Book: Chapter 6 of Computational Approaches to the Non-Observed Economy: From Theory to Practice (coming soon). The videos and slides follow the chapter’s topics in our own words, figures and simulations; the towns and countries are invented, and nothing is copied from the book.

The title slide of Module 6: Spatial dynamics

28 slides, written to be read on your own, with worked examples, our own small simulations and check-yourself questions (answers at the end). PDF, 3.1 MB.

Watch

2 videos for this module, each about 8 to 11 minutes. Pick one from the list, and open the transcript to read along: each timestamp plays the video from there. The narration is generated with a voice clone of Teddy, used with his permission.

Video 12 · 8:50

Shadows have neighbours

Three maps of one invented country, each averaging 22% hidden: evenly spread, along a corridor, or around two market towns.

Moran's I was 0.86 on the Mainland, but a survey method alone produced 0.26, and a shuffled map still showed 7 'significant' local clusters. Picking audits by network exposure found a hider a third of the time, against one in eight at random.

TranscriptVideo 12
0:00

Same average, three maps. Here are three maps of the same invented country. In every one of them, the hidden share of the economy averages 22 percent. In the first map, hiding is spread evenly. In the second, it follows a smuggling corridor. In the third, it gathers around two market towns. A national estimate can't tell these apart. It's the same number every time. But they call for different policies. Patrol a corridor, inspect two markets, or improve services everywhere. Where hiding happens, and through which links, is part of the answer. This module is about seeing that structure.

0:43

The Mainland. Welcome to Module 6: the spatial dynamics of the non-observed economy. I'm Teddy. Our world zooms in on one country of the Archipelago. We call it the Mainland. It has 160 districts on a hexagonal map. A river splits it into two provinces. The West introduced e-invoicing, so it hides less. In the East there's a smuggling corridor from a border crossing to the port, two market towns, and hills full of self-employment. Careful surveys exist in 40 districts, mostly around the capital in the West. Everything else has to be estimated.

1:17

Name four things. Spatial analysis starts from a simple observation: nearby things tend to be more related than distant ones. But nearby can mean many things. Two districts can be neighbours on the map. Two countries can be close because their institutions are alike. Two firms can be close because they share an owner or trade every week. So before any model, name four things. The support: where is the process defined? Districts, firms, or transactions. The relation: who counts as close? The observation process: how does hidden activity leave traces? And the task: describe, predict, reconstruct, or simulate. Two warnings come with maps. Change the size of the regions, and the patterns you find can change. And a pattern among regional averages need not hold for the people or firms inside them.

2:03

Distance and bandwidth. The first way to represent space is a norm. Put every district in a feature space, and measure how far apart they are. The features can be coordinates, or the economy: cash use, self-employment, income, digital payments. The choice of distance says what similar means. When features are correlated, a distance that accounts for that stops one idea from being counted twice. When they mix numbers and categories, you need a distance built for mixed data. Distances turn into weights through a kernel, and the kernel has a bandwidth. Let's estimate the 120 unsurveyed districts from the 40 surveyed ones, weighting by economic similarity. With a tiny bandwidth, each estimate leans on one or two lookalikes, and the error is about 5.2 points. At the best bandwidth, it's 4.7. With a huge bandwidth, every survey counts equally. The error climbs to 9.2, almost exactly the error of the plain average. Which neighbours should count? Five nearest on the map gave an error of 4.8. Five nearest in the economy, also 4.8. A distance that mixes both did better, at 4.4. A norm also lets relationships change across space. A local regression fits its own coefficients around each district. Useful, but a map of local coefficients is not a map of causes.

3:19

A firm network. The second representation is a graph. Nodes are units, and edges are relations: shared borders, similar profiles, trade, ownership, or movement of workers. Graphs come with a toolbox. Who is central, how clustered the network is, and which groups trade mostly among themselves. One graph is often not enough. Geography, transactions, ownership and social ties are different layers. Merging them can invent paths that don't exist, so say what an edge means. Here's a firm network we invented. Three hundred firms in fifteen trading communities. In three of those communities, most firms hide sales. Elsewhere, few do. Fifteen hiders have already been caught. The tax office can audit thirty more. Who should it pick? Picking at random finds a hider in about one audit in eight. Picking the firms located closest to known hiders, about one in five. Picking by network exposure, how close a firm is to known hiders through its trading links, finds a hider in a third of the audits. The communities weren't geographic, so the map missed them. One caution: the edges most likely to be missing are cash deals and informal subcontracting. A missing link is not proof of independence.

4:34

Smoothness and borders. A graph also lets you measure smoothness: add up the squared differences between connected districts. Small means neighbours look alike. That sum is a useful regulariser. But smoothness is an assumption, not a law. Borders, reforms and special zones create real jumps. Our river is one. Let's take a cheap, noisy estimate for every district, and smooth it over the map. Right at the river, the true step between the provinces is 6.4 points. Smoothing across the river shrank it to about four. Cutting the edges that cross the river kept a step, though it overshot, at 8.7 points. And near the river, the error fell to 1.6 points, down from 1.8. Smooth where the economy is continuous. Let the model jump where the rules change.

5:21

Distance from the evidence. Distance can also be an indicator in its own right. Distance from a tax office, a bank, or a border can stand for enforcement, transaction costs, or how well statistics reach a place. On a globe, straight-line distance is a start. Inside a country, travel time and road access usually mean more. And a nearest-neighbour graph can quietly create very long edges for remote places, so look at it. In networks, distance is the shortest path. A firm can be one ownership step from a known shell company, and far away on the map. One distance deserves a place in every report: how far a district is from the nearest surveyed district, in the economy's terms. For the quarter of districts closest to a survey, our neighbour estimates were off by about 1.7 points. For the farthest quarter, about 10.5. Every one of the farthest was in the East. Distance from the evidence is a warning light. It tells you when a model is extrapolating, which a standard confidence interval often doesn't.

6:19

Moran's I and local clusters. Now, how do you test whether a map has structure at all? The classic statistic is Moran's I. It asks whether connected districts deviate from the mean in the same direction. For the Mainland's hidden shares, Moran's I is 0.86. To judge it, shuffle the values across the map and recompute. None of 999 shuffled maps came close. The evenly spread map from the start scores about zero. The corridor map, 0.70. The market-town map, 0.59. Here's a trap. We made a map with no hidden structure at all, but the East's survey method reads three points high. Moran's I jumped to 0.26, and again, no shuffle came close. Spatial structure in the measurements is not the same as spatial structure in the hidden economy. Local statistics break the map into clusters: high districts among high neighbours, low among low, and outliers. The Mainland has 36 high clusters, 55 low ones, and no significant outliers. Before the next number, guess. If we shuffle the map completely, how many districts will still look like significant clusters? Seven. With 160 tests at the five percent level, some false hot spots are guaranteed. Local maps are exploratory, and multiple testing has to be reported. Finally, a dependent map can enter a regression in two ways. Neighbours' hidden shares can affect each district directly, or the errors can be correlated because something spatial is missing. They mean different things, and cross-sectional data often can't tell them apart.

7:54

Recap. Let's recap. A national number hides very different maps, and the map changes the policy. Name the support, the relation, the observation process and the task. Norms measure similarity, graphs encode relations, and both need a stated meaning. Smooth where the economy is continuous, not across borders. Report the distance to your evidence. And test structure with shuffles, remembering that measurement methods can create it. In the lab, you'll explore the Mainland's map, change who counts as a neighbour, and hunt for hot spots, real and false. Next video: turning traces on a map back into the hidden activity that made them.

Interactive lab

The night atlas

Explore an invented country of 160 hexagonal districts with 40 surveys. Choose who counts as a neighbour, estimate the unsurveyed districts, smooth across or within a river, test for spatial structure with shuffles, and hunt for hot spots, real and false.

The map is simulated in your browser (a river, a smuggling corridor, two market towns, hills). Four challenges are checked as you go.

Simple math

The night atlas: 160 districts, 40 surveys

An invented country on a hexagonal map. A river splits a West that hides less from an East with a smuggling corridor, two market towns and hills. Careful surveys exist in 40 districts (rings), mostly in the West; cash use and self-employment are known everywhere.

Neighbours
map, economy, or both

Which districts count as close decides what an estimate borrows.

Smoothing
minimise ‖z − ŝ‖² + λ Σ(zᵢ − zⱼ)²

Cut the edges across the river and the model can jump there.

Moran's I
I = (n/W) Σ wᵢⱼ zᵢ zⱼ / Σ zᵢ²

Compare it with shuffled maps; local versions find clusters.

Moran's I (truth)
–
Error, unsurveyed
–
Step at the river
–
Significant local clusters
–

Running…

The map

Challenges

Each one is checked on your current settings.

  1. See Moran's I above 0.8 on the true map, then shuffle the values and bring it near zero.
  2. Estimate the unsurveyed districts with an error below 2.3 points.
  3. Smooth with a strength of at least 1 and still keep a step of at least 7 points at the river.
  4. On the shuffled map, find at least three “significant” local clusters: false hot spots from many tests.