EEconomics, Built

Act XII · The Frontier

Part 63 of 68

The Economy as a Network

Researchstarts at this level41 min of film18 chaptersprerequisites: Part 3, Part 8, Part 9, Part 20, Part 26, Part 33

When does a shock to one firm become a shock to everyone?

On 11 March 2011 an earthquake and tsunami strike north-east Japan; firms far from the coast, undamaged, stop for want of parts, and the loss travels along supplier-customer links to about half a point of Japan's growth. The Island's input-output table becomes a network: Domar weights as sums over supply paths, and Hulten's theorem that a small shock matters by the sector's sales and nothing else. The viewer picks the sector whose failure would cost most (services, by sales; energy, a third more than its sales say when inputs are hard to replace). Zipf-sized firms and lopsided networks keep idiosyncratic shocks from cancelling (Gabaix; Acemoglu et al.), and large shocks to essential inputs bend Hulten's line (Baqaee and Farhi). The Island's earthquake travels through specific inputs, as in Japan and America's disasters; Kremer's O-ring. After an intermission of Japan's industrial production through March 2011, banks' clearing vectors and contagion, robust yet fragile; weak ties (Called it? right); seeding a village; the key player; network formation, stable against efficient; two new Dials; and supply networks fragile by design.

What you need. Part 3: the input-output table; Part 8: technologies and substitution; Part 9: general equilibrium; Part 20: growth accounting; Part 26: bank runs; Part 33: financial crises; Statistics, Built: random graphs and peer effects.

Hook
an earthquake's shadow down the supply chain, 2011
Ideas, models and mathematics
input–output and Hulten's theorem, granular firms, when small shocks do not average out, non-linear propagation, supply chains, financial contagion and clearing, social networks and diffusion, games on networks
Agora gains
a production network; a clearing system
Play it
which firm's failure matters most?

What you will be able to do

Principles and the major

  • Explain why a sector's sales, not its links, measure its importance for small shocks.
  • Explain why firm-level shocks need not cancel out in the aggregate.
  • Explain how a disaster travels along supply chains, and what stops it.

Graduate

  • Compute Domar weights from an input-output table and show that they add to more than one.
  • Prove Hulten's theorem for Cobb-Douglas economies, and compute the second-order term with CES.
  • Find the Eisenberg-Noe clearing vector and compare ring and complete networks.

Research

  • Solve a production network with complements and say when second-order terms dominate.
  • Characterize efficient and pairwise stable networks in the connections model.
  • Explain why supply networks can be fragile in equilibrium, and what it implies for policy.

Practice

  • Map a supply chain beyond the first tier and identify the inputs that cannot be replaced.

Contents

Each chapter has a home level. Choose a track to see what to read and watch: Principles and the major 22 min · Graduate 30 min · Research 41 min · Practice 30 min.

  1. 0A supplier's supplierPrinciples and the major3 min
  2. 1Leontief's pathsPrinciples and the major3 min
  3. 2Hulten's theoremPrinciples and the major2 min
  4. 3Play it: which failure costs most?Principles and the major2 min
  5. 4Why shocks do not wash outPrinciples and the major3 min
  6. 5Beyond Hulten: large shocksResearch3 min
  7. 6Supply chains, measuredPractice3 min
  8. 7The O-ringPrinciples and the major2 min
  9. Intermission: Japan's industry, 2000-2024Principles and the major
  10. 8Financial networksPractice3 min
  11. 9The strength of weak tiesPrinciples and the major2 min
  12. 10Diffusion: who to tell firstPrinciples and the major2 min
  13. 11Games on networks: the key playerResearch3 min
  14. 12Network formationResearch2 min
  15. 13The Dials: granular shocks and substitutionResearch2 min
  16. 14In practice: supply-chain and systemic riskPractice1 min
  17. 15Frontier: fragile by designResearch2 min
  18. Recap, problems, and the road aheadAll tracks3 min

Also on this page: Lecture · Key results · Try it · Lab · Problems · Notes and sources · Build the film.

Lecture

The text of each chapter is the film's narration, as it is spoken, so you can read along or revise without the film. The pictures are in the film.

A supplier's supplierPrinciples and the major3 min

At a quarter to three in the afternoon of the eleventh of March 2011, an earthquake of magnitude nine struck off the coast of north-east Japan. The tsunami that followed left about eighteen thousand people dead or missing. Then something stranger happened. Firms hundreds of kilometres away, with no damage at all, stopped working. A plant that made the chips that control car engines was hit, and carmakers in other prefectures, and in America, cut production for want of parts. Vasco Carvalho, Makoto Nirei, Yukiko Saito and Alireza Tahbaz-Salehi followed the loss through the records of who supplies whom. It travelled along the links, from supplier to customer and from customer back to supplier, and added up to about half a point off Japan's growth in the year after.

Here is the Island's version, in miniature. Seventy firms in five layers, from raw materials on the left to final goods on the right; each line is a firm buying from a supplier. A disaster hits three of them. Their customers are short of a part, and so are their customers' customers: the shock flows downstream. And their suppliers have lost a buyer, and so have the suppliers' suppliers: the shock flows upstream too. Three firms hit; most of the web feels it. Whether that adds up to a recession depends on how big the firms are, how the links are arranged, and how easily a firm can replace what it has lost. That is this part.

The question: when does a shock to one firm become a shock to everyone? Why do some firms' troubles matter more than others'? Why don't millions of small shocks simply cancel out? How do losses travel along supply chains, and between banks? How do jobs, news and habits travel between people? And who forms the links in the first place, and are they the right ones?

Economics, Built. Part sixty-three: the economy as a network. Act eleven was economics at work. Act twelve, the last, is the frontier: where the field is still finding out. By the end of this part you will know how an input-output table turns into a network, and why, to a first approximation, a sector matters by its sales and nothing else; why that approximation fails, so that small shocks need not cancel out; what the evidence from earthquakes and floods says about supply chains, and why one weak link can sink a team; how banks' debts to each other can absorb a shock or spread it; and how jobs and news travel between people, who to tell first, whom to remove, and why the networks people build are not always the ones we would choose.

What it does: The 2011 earthquake; the Island's supply web and a shock along its links; the question; objectives

1Leontief's pathsPrinciples and the major3 min

Part three met Wassily Leontief's input-output table. Here is the Island's, for eight sectors. Each row is a buyer; each column a seller. A row says where a sector's costs go: so much to energy, so much to transport, and the rest, in the last column, to the people who work in it. Retail, for example, spends a fifth of its costs on the goods factories make, and fifteen cents in the dollar on farms.

Draw the same table as a network. Each sector is a node, and an arrow runs from seller to buyer whenever an input is a large part of the buyer's costs. Energy sells to every sector, metals mostly to factories. And households buy mainly services and retail, almost nothing from the metal works. The question of this chapter: when households spend a dollar, how much of it ends up as sales of each sector, and along which paths?

Follow a dollar of household spending. Some of it goes straight to a sector: forty-five cents to services, twenty-eight to retail. But retail spends part of its dollar on factories, which spend part of theirs on metals, which buy energy. Each step is one more power of the matrix of input shares, and the sum of all the paths is Leontief's inverse. The result is each sector's sales per dollar of GDP, its Domar weight, after Evsey Domar. Services sell 0.64, mostly straight to households. Energy sells 0.25, and only a fifth of that goes to households directly: the rest travels along chains of one, two or more buyers. The weights add up to 1.90, not one, because sales count an input again every time it changes hands.

One more measure of where a sector sits. Count, on average, how many steps its sales travel before they reach a household. That is its upstreamness. Metals are three and a half steps away: ore becomes steel, steel becomes a part, the part becomes a machine. Retail is one step: it sells to us. It is tempting to think that a sector deep upstream, feeding everything, must matter most when it fails. The next chapter says that, to a first approximation, it does not.

What it does: The input-output table as a network; Domar weights as sums over paths; upstreamness

2Hulten's theoremPrinciples and the major2 min

In 1978 Charles Hulten proved a result that makes the network disappear. If the economy is efficient, the change in real GDP from a small change in one sector's productivity is that change times the sector's Domar weight: its sales divided by GDP. That is all you need. Not how many sectors it supplies, not how far upstream it sits, not even its share of value added. Its sales summarize everything the network does with its output.

Check it on the Island. Lower each sector's productivity by ten percent, one at a time, and solve the whole network for its new prices and GDP. In grey, the sector's share of value added: the wages it pays, as a share of GDP. In gold, its Domar weight. And in red, the fall in GDP that the model actually computes. The red dots sit on the gold bars, every one. Energy adds only 14 percent of GDP itself, but sells 25 percent, and a ten percent fall in its productivity costs 2.5 percent of GDP: its sales, not its value added.

Why? Suppose energy's productivity rises by ten percent. Every unit of energy now takes ten percent less to make, so, in a competitive economy, it costs ten percent less. Every buyer, whether a factory or a farm or a household, saves ten percent of what it spends on energy. And the total spent on energy, by everyone, is energy's sales. It does not matter who buys it or how long the chain is: the saving is the same. But notice the small print. The theorem is about small shocks, in an efficient economy. Chapters four and five break each of those conditions, and with them the idea that a sector's sales tell you everything.

What it does: Sales, not links or value added; checked on the Island; why

3Play it: which failure costs most?Principles and the major2 min

Your turn. A disaster takes two fifths of one sector's productivity for a year. For that year, firms cannot easily switch to other inputs. Which sector's failure should the Island fear most? A: energy, which sells to every sector and sits nearly three steps from the household. B: chips, which go into every machine and car. C: services, the biggest seller of all, mostly straight to households. D: retail, the last step before the household. Which costs the most GDP?

Here is what the Island computes. The bars are the loss of GDP for the year; the white lines are what Hulten's rule predicts from each sector's sales alone. C. Services cost 30 percent of GDP, far more than any other, because they are by far the largest seller: the network's links do not rescue the upstream sectors from being smaller. But look at energy. Its sales predict a loss of 11.8 percent; the model computes 15.4. When inputs are hard to replace, losing an input that everyone needs costs more than its sales share, and the gap grows with the size of the shock. So sales decide the ranking, and Hulten is a good first answer. The premium for being upstream and hard to replace is the second answer, and chapter five is about when it becomes the first.

What it does: Four sectors, inputs hard to replace; sales first, an upstream premium

4Why shocks do not wash outPrinciples and the major3 min

Robert Lucas made the argument in 1977: an economy has millions of firms, and each one's good and bad years are its own, so they should cancel out. If every firm's sales swing by twelve percent a year, independently, GDP's growth is the average, and its standard deviation is twelve percent times the square root of the sum of squared sales shares. With equal firms that falls like one over the square root of their number: ten thousand firms, and the aggregate swing is 0.12 percent, nothing. But firms are not equal. Their sizes follow something close to Zipf's law, the largest twice the second, three times the third. Then the square root barely falls: with ten thousand firms the aggregate still swings by 1.6 percent, as much as a real business cycle. The ten largest firms make 30 percent of all sales, and their shocks are the economy's.

Here are forty simulated years of the Island's GDP growth, from nothing but firms' own shocks: no recession, no central bank, no oil price. With equal firms, the line is flat. With firms sized like real ones, it swings by a couple of percent, up and down, like a business cycle. Xavier Gabaix called this the granular hypothesis: the economy is made of grains, some of them large. He measured the surprises of the hundred largest American firms, their growth above or below their peers', and found that they account for about a third of the swings in output.

Big firms are one reason the shocks do not cancel. The shape of the network is another. Daron Acemoglu, Vasco Carvalho, Asuman Ozdaglar and Alireza Tahbaz-Salehi compared economies in which every sector sells the same amount to households but buys differently. In a ring, each sector supplies the next. Add sectors, and the volatility of GDP falls away like one over the square root of their number, as Lucas expected. In a star, one sector supplies all the others. Its sales grow with the economy, so its shocks never become small, and the volatility of GDP stops falling. Same shocks, same number of sectors: the shape of the network decides whether the law of large numbers works.

What it does: Equal against Zipf-sized firms; Gabaix; a star against a ring

5Beyond Hulten: large shocksResearch3 min

Hulten's theorem is a statement about small shocks. David Baqaee and Emmanuel Farhi asked what happens with large ones. On the Island, change energy's productivity by every amount from a severe loss to a healthy gain. Hulten's rule is a straight line through the origin, with slope equal to energy's sales share, a quarter. If firms can swap between inputs with an elasticity of one, the computed response lies exactly on it. If inputs are hard to substitute, as they are within a year, the curve bends down: a loss of seventy log points in energy costs 27 log points of GDP, not seventeen and a half. If inputs are easy to substitute, it bends the other way. And with complements the curve is not symmetric: a bad shock costs more than a good shock of the same size gains.

Why does the curve bend? Hulten's rule still holds at every point on it: the slope is always energy's current sales share. The second derivative is the change in that share. Plot the share. When inputs substitute at an elasticity of one, it never moves. When they are complements, energy grows scarce and dear, everyone still needs it, so spending on it rises: its share climbs from a quarter towards 0.60, and each further loss costs more than the last. The network matters again, through prices: a sector that everyone needs and nobody can replace becomes a bigger share of the economy exactly when it fails.

This is an old puzzle with a new answer. In 1973 the price of crude oil roughly quadrupled within a few months. Oil was a small share of rich countries' spending, and Hulten's arithmetic says a small sector cannot cost much. Yet recessions followed. Baqaee and Farhi showed that the second-order terms, which depend on elasticities of substitution and on the shape of the network, can dominate when the shock is large and the input is hard to replace. So the rule is: sales first, then substitution. A small sector can matter a great deal if nobody can do without it, and the shock is big. Which brings us back to Japan.

What it does: Response curves by elasticity; the moving sales share; 1973

6Supply chains, measuredPractice3 min

Back to the Island's three thousand firms, in five tiers, now with a disaster. 5 percent of them, on the coast, lose 40 percent of their output for a year. Their direct customers lose sales because a part is missing: 7.4 percent on average. Their customers' customers lose 1.2, and the loss fades within a few steps. Upstream, the hit firms' suppliers lose a buyer: 17.1 percent at one step, 9.2 at two. Counting only the hit firms, the Island loses 2.0 percent of its sales. With the links, it loses 7.6: most of the damage is done to firms the disaster never touched.

What makes a link carry a shock? Some inputs are specific: made to the buyer's design, a moulded part, a custom chip. If its maker is hit, there is no other supplier for months. Direct customers who bought something specific from a hit firm lose 16.7 percent of their sales. Customers who bought only generic inputs from it, steel, packaging, lose 5.3, and most of that through their other links. Make every input replaceable and the direct customers' loss falls to 4.4 percent, and the Island's total loss from 7.6 percent to 6.0. What the links carry depends on what flows along them.

The real economy has run this experiment several times. In Japan in 2011, firms linked to the disaster area lost sales whether the link ran upstream or downstream, and the loss reached firms several links away: about half a point of GDP growth in all. Jean-Noël Barrot and Julien Sauvagnat followed American firms hit by hurricanes, floods and earthquakes over several decades. Their customers' sales growth fell by about two percentage points, but only when the hit supplier made something specific. Christoph Boehm, Aaron Flaaen and Nitya Pandalai-Nayar looked at Japanese-owned plants in America after the earthquake: their output fell almost one for one with the parts they could no longer import, as if inputs could not be substituted at all. Floods in Thailand later in 2011, the shortage of chips in the pandemic: the same mechanism each time, and each time a surprise to those who had not mapped their suppliers' suppliers.

What it does: The Island's quake by distance; specific inputs; Japan, America, since

7The O-ringPrinciples and the major2 min

On the twenty-eighth of January 1986 the space shuttle Challenger broke apart seventy-three seconds after launch, because a rubber seal, an O-ring, failed in the cold. Thousands of parts worked; one did not. Michael Kremer built a theory of production on it. A product needs several tasks done right, and its value is the product of the chances that each is done right. Four workers who each get their task right ninety-nine times in a hundred make 0.96 of the perfect output. Swap one of them for a worker who gets it right sixty percent of the time, and output falls to 0.58. One weak link costs two fifths of everything. If output were the average of the four, it would cost a tenth.

Multiplication has a consequence for who works with whom. Take four hundred of the Island's workers, with skills spread like this, and form a hundred teams of four. Teams drawn at random produce 49.7 units. Put the best with the best and the worst with the worst, and they produce 55.3: 11 percent more from the same people, because a skilled worker's care is wasted beside a careless one. So skills are complements, and firms, cities and whole countries sort: the best engineers work together, and a country with a few weak links in its infrastructure or its courts drags down the value of everyone's skill.

And pay. If output added up skills, a worker ten percent less careful would earn ten percent less. In Kremer's sorted economy, wages rise with skill to the power of the team's size. A worker ten percent less careful earns about 34 percent less. Small differences in skill become large differences in pay, within countries and between them. The network here is the smallest possible: four people at one bench. But it already shows the theme of this part. When everyone depends on everyone, the weakest link sets the pace.

What it does: One weak link; sorting; convex wages

Intermission: Japan's industry, 2000-2024Principles and the major

This chapter has no narration to read.

8Financial networksPractice3 min

Banks lend to each other, so a bank's ability to pay depends on whether its debtors pay it. Four banks. A owes B eight; B owes C six; C owes four to A and four to D. Each also has some money of its own. The rule, from Larry Eisenberg and Thomas Noe: each bank pays what it owes if it can, and otherwise everything it has, shared among its creditors in proportion. A owes eight and has two; it pays what it can, 5.5. B receives that, adds its own three, and pays its six in full. C receives six, has one of its own, and can pay only 7 of the eight it owes, half to A and half to D. But that payment is part of what A has: so A's 5.5 depends on C's 7, which depends on B's, which depends on A's. The payments are a fixed point, the clearing vector, and Eisenberg and Noe showed how to find it: start from full payment and lower it until everyone's books balance.

Is it safer for banks to owe each other a little, or a lot to one? Daron Acemoglu, Asuman Ozdaglar and Alireza Tahbaz-Salehi worked it out. Ten banks, each owing ten in total, each with a cushion of one. In a ring, each bank owes the next. A loss at one bank passes to the next in line, and each extra unit of loss topples one more bank. In a complete network, each bank owes a little to all the others. Small losses are shared nine ways and absorbed: only the bank that was hit fails. But past a threshold, a loss of about 10 here, the same links carry it to everyone, and all ten fail at once. Robust yet fragile: the dense network is the safest for small shocks and the most dangerous for large ones.

The theory arrived with the crisis that needed it. On the fifteenth of September 2008 Lehman Brothers was allowed to fail. The next day the American government rescued the insurer AIG, which had sold protection to too many banks to be let go. Afterwards, the leaders of the G20 agreed that standard derivatives should pass through central counterparties: clearing houses that stand between every buyer and seller, a star network built on purpose. Supervisors now collect who owes whom among the largest banks, to see the network before the shock. And the catch, from chapter four: a star is only as safe as its centre. And Matthew Elliott, Benjamin Golub and Matthew Jackson showed the same two-sidedness in the number of counterparties: spreading exposures first connects the network and lets cascades travel, then, as it grows, insures the banks against one another.

What it does: A clearing vector by hand; ring against complete; what regulators took from it

9The strength of weak tiesPrinciples and the major2 min

Networks carry information as well as goods and debts. In the late 1960s the sociologist Mark Granovetter asked professional, technical and managerial workers in Newton, Massachusetts, who had just changed jobs, how they had heard of the new one. Many had heard through a personal contact. So he asked how often they had seen that contact at the time. Often, twice a week or more: only one in six. Occasionally: more than half. Rarely, once a year or less: more than a quarter. The news came mostly from acquaintances, not friends. He called it the strength of weak ties.

Why would acquaintances help more than friends? Two forces pull in opposite directions. Your close friends move in your circles: they know what you know. The weaker the tie, the more likely the other person has heard of something you have not. But the weaker the tie, the less likely they think of you, or bother to pass it on. A tie is worth the product of the two. It peaks at fairly weak ties: not strangers, not best friends, but the people you see now and then. Granovetter's survey could not show which way the causation ran. Fifty years later, a platform's experiments could.

Called it? In 1973 Granovetter argued that weak ties, more than strong ones, carry news of jobs you have not heard of. In 2022 Karthik Rajkumar, Guillaume Saint-Jacques, Iavor Bojinov, Erik Brynjolfsson and Sinan Aral used LinkedIn's experiments with the connections it suggests, which changed at random who met whom, among twenty million people over five years. The ties that most raised the chance of moving to a new job were moderately weak; the strongest and the very weakest helped least, and weak ties mattered most in digital industries. The verdict: right. And with the shape the two forces predict: an inverted U.

What it does: Granovetter's survey; two forces; Called it?

10Diffusion: who to tell firstPrinciples and the major2 min

Here is one of the Island's villages: two hundred households, each linked to its neighbours and to a few people further away, with six households that everyone knows. A lender arrives and can tell five households about its loans. Each round, every household that knows tells each of its contacts with a chance of about one in eight. On the left, it tells the five most central households; in the middle, five at random; on the right, the five least central. Watch eight rounds.

After eight rounds, in this run, the news has reached most of the village when it started at the centre, much of it when it started at random, and only a corner of it when it started at the edge.

Averaged over three hundred runs: starting from the most central households, 86 percent of the village knows after eight rounds; from households chosen at random, 63 percent; from the least central, 15. Same village, same five conversations. Where the news starts decides how far it goes. Centrality here is eigenvector centrality: you are central if your contacts are central.

This is not only a simulation. In Karnataka, in south India, a microfinance lender entering forty-three villages first invited local leaders, teachers, shopkeepers and the heads of savings groups to a meeting, and asked them to spread the word. Abhijit Banerjee, Arun Chandrasekhar, Esther Duflo and Matthew Jackson had surveyed the villages' networks beforehand. Where the leaders who heard first were more central, more households took up the loans. Later trials have seeded information through the people villagers themselves name as good at spreading news: a cheap way to find the centre of a network without mapping it.

What it does: A village seeded three ways; microfinance in Karnataka

11Games on networks: the key playerResearch3 min

Some behaviour is contagious: studying, smoking, crime. Coralio Ballester, Antoni Calvó-Armengol and Yves Zenou wrote it as a game on a network. Each player chooses an effort, and the more effort their contacts put in, the more each wants to put in, by a factor delta for each link. Here are thirteen of the Island's teenagers: on the left, a popular one with seven friends who do not know each other; on the right, a tight group of five who all know each other, one of whom also knows the popular one. In equilibrium the hub, with eight links, puts in 5.2. The clique members, with four or five links each, put in more, 5.9 to 6.7, because their friends' friends are also their friends. Effort equals each player's Bonacich centrality: it counts links, and links of links, and so on, each further step discounted.

Now a policy question. You can remove one player, by persuading them, treating them, or arresting them. Whose removal cuts the group's total effort the most? Removing the hub, the one with most friends, cuts it by 36 percent. A follower, by 8. But the clique member who also knows the hub cuts it by 50 percent: more than another clique member, 41, and far more than the hub. The key player is the one whose removal changes the network most, and that is not simply the one with most links. Ballester, Calvó-Armengol and Zenou derived a centrality that finds them.

All of this assumes that effort really is contagious. Charles Manski called the difficulty the reflection problem: friends may behave alike because they influence each other, because they chose each other for being alike, or because they share a school and a teacher. From group averages alone, the three cannot be told apart. A network helps. A friend of your friend who is not your friend moves your friend but not you, except through your friend: Yann Bramoullé, Habiba Djebbari and Bernard Fortin turned that into an instrument. Or assign roommates or classmates at random, and the sorting goes away. The key-player policy is only as good as the evidence that the effort is contagious.

What it does: Bonacich effort; removing the bridge; the reflection problem

12Network formationResearch2 min

So far the network was given. But firms choose their suppliers, banks their counterparties, people their friends. Matthew Jackson and Asher Wolinsky asked whether the network they build is the one a planner would build. Their connections model: each player gains something from every other player it is connected to, directly or indirectly, delta for a direct link, delta squared at two steps, and so on; and each pays a cost c for every link of its own. With delta at 0.6, a friend is worth 0.6, a friend of a friend 0.36. With four players, three shapes matter: everyone linked to everyone, a star, and no links at all.

Now vary the cost of a link and ask two questions. Which network gives the most in total? And which would survive, if any two players could add a link they both want, and anyone could cut one of their own? When links are cheap, below delta minus delta squared, everyone linked to everyone is best, and nobody wants to cut a link. When links cost more, the star is best: everyone reaches everyone in two steps with only three links. And while the cost is below delta, it is stable too. But between delta and delta plus delta squared, the star is still the best network, and it does not survive. The hub pays for three links whose benefit goes mostly to the others: each leaf reaches the other two through the hub. So the hub cuts them. The efficient network exists, and nobody wants to be its centre. That is the tension in every network built by choice, from supply chains to friendships: links create value for people who do not pay for them, and the fix is to pay the centre.

What it does: Efficient against pairwise stable networks by link cost

13The Dials: granular shocks and substitutionResearch2 min

This part opens two Dials. The first: what share of the swings in aggregate output comes from firms' and industries' own shocks, rather than from shocks that hit everyone? Gabaix's granular residual, the hundred largest American firms: about a third. Andrew Foerster, Pierre-Daniel Sarte and Mark Watson, separating industries' own shocks from common ones in industrial production: about half, after the mid-1980s, when common shocks grew quieter. Enghin Atalay, letting the elasticities of substitution be estimated rather than set to one: at least half. And the Island, where the truth is planted at 0.34: Gabaix's method finds 0.27 in the typical forty-year history, because it sees only the largest hundred firms, with a wide spread from one history to the next. The status is contested: a third to more than half, depending on the years, the data, and above all on the elasticities, which is the second Dial.

The second: how easily can a firm swap one input for another within a year? An elasticity of one is the Cobb-Douglas case, where Hulten's rule is exact; zero is Leontief's fixed recipe. Atalay, from American industries' input shares and prices: between zero and about 0.15, depending on the specification. Boehm, Flaaen and Pandalai-Nayar, from the Japanese-owned plants after the earthquake: about 0.2 among materials. And the Island: from thirty years of its tables, 0.16, with the truth planted at 0.15. Settled within a range: in the short run, inputs are close to fixed proportions. That is why chapter five's curves bend, and why a disaster's cost depends on what flows along the links.

What it does: Firms' own shocks in the cycle (new); input substitution within a year (new)

14In practice: supply-chain and systemic riskPractice1 min

Where is this used? In supply-chain risk. After 2011, manufacturers that had known only their direct suppliers began mapping the suppliers behind them, and for specific parts they keep a second source or a stock, which is chapter six's lesson. In systemic risk: central banks and supervisors collect who owes whom, run stress tests in which losses travel between banks, and oversee the clearing houses at the centre of the derivatives network. In seeding: public-health campaigns, marketing and microfinance choose whom to tell first. And in policy: governments use input-output tables to plan for disasters, and, as Part sixty-six will show, to find the inputs their rivals cannot replace.

And three cautions this part teaches. Sales first: to a first approximation, a sector matters by its sales, however central it looks in a picture of the network. Then ask what cannot be replaced: a large shock to an essential input costs more than its sales, and more the longer the chain cannot adjust. And linked is not contagious. Friends, banks and trading partners resemble each other for many reasons; showing that something travels along the links takes a design: a disaster, a randomized suggestion, a natural experiment.

What it does: Supply-chain risk, systemic risk, seeding, planning; three cautions

15Frontier: fragile by designResearch2 min

The frontier is the network that firms build for themselves. Matthew Elliott, Benjamin Golub and Matthew Leduc model a large economy in which every firm needs several essential inputs, here four, and keeps relationships with a few possible suppliers of each. Any relationship can fail, and a supplier delivers only if it can produce itself. With two suppliers of each input, production is high while relationships are very reliable. With three, or five, the economy tolerates weaker relationships. But look at the shape. As relationships weaken, production holds up, and then, at about 0.78 with three suppliers, it falls from 86 percent of firms to none. A small aggregate shock, a slight weakening of every link, can cause a collapse. Their result is that firms, insuring themselves just enough, tend to settle near the cliff's edge: fragile in equilibrium, though never efficiently so. More suppliers move the cliff; they do not remove it.

What remains open? Networks rewire: after a shock, firms change suppliers, so the network is an outcome, not a given. Ezra Oberfield, and Daron Acemoglu and Pablo Azar, have built models in which it is chosen. Resilience costs money: a second source, or a stock of parts, is paid for every year and used rarely, and its benefit is shared by everyone downstream. Part sixty-six takes that up for whole countries. Measurement is improving fast: tax invoices and payment records now show who supplies whom, firm by firm, in a growing number of countries. And the old difficulty remains: telling what travels along the links from what the linked simply share.

What it does: Fragile by design; networks that rewire; resilience against efficiency

Recap, problems, and the road aheadAll tracks3 min

So: when does a shock to one firm become a shock to everyone? To a first approximation, when the firm or sector is large: it matters by its sales, and with firms as unequal as real ones, their own shocks do not cancel out. Beyond that, when the shock is large and the input hard to replace, when the network is lopsided, and when links are specific or debts concentrated, a local shock travels along the links and grows. And dense links are a double-edged insurance: they absorb small shocks and spread large ones.

Part sixty-three in twelve lines. An input-output table is a network, and Leontief's inverse sums its paths. To first order, a sector matters by its sales. The biggest seller is the biggest risk, with a premium for essential inputs. Firms' own shocks do not cancel when firms are unequal or networks lopsided. Large shocks to inputs nobody can replace cost more than their sales. Disasters travel along supply chains, through specific inputs. One weak link can sink a team, so skills sort. Dense banking networks are robust yet fragile. Weak ties carry news of jobs. Where news starts decides how far it goes. The key player is not the most popular. And the networks people choose are not always the ones that would be best.

The problems: Leontief's inverse and why sales add to more than GDP; Hulten's theorem for Cobb-Douglas economies; why Zipf's law slows the law of large numbers; a clearing vector by hand; the key player in a star; and a starred problem on when the efficient star is stable. Full solutions are in the part's notes.

The reading: Matthew Jackson's Social and Economic Networks; Vasco Carvalho and Alireza Tahbaz-Salehi's primer on production networks; and Sanjeev Goyal's Connections. Then the papers, from Leontief to the experiments on weak ties.

Next time, from the networks to the machines that learn from them. Every day, judges in the United States decide whether people who have been arrested should wait for trial at home or in jail, by guessing who would not come back. Could an algorithm trained on the same facts guess better? And how would we know, when we never see what the jailed would have done? Prediction policy problems, selective labels, double machine learning, and language models as subjects and assistants. Part sixty-four: machines that learn.

Where it goes next. Part 64 turns from networks to the machines that learn from data: prediction, selective labels and machine learning in economics.

Key results

The part's results in one place, for revision.

Domar weights\(\displaystyle \lambda' = \beta'(I - \Omega)^{-1}\)
Hulten's theorem\(\displaystyle d\log Y = \sum_i \lambda_i \, d\log A_i\)
Granular volatility\(\displaystyle \sigma_{Y} = \sigma \sqrt{\textstyle\sum_i s_i^2}\)
Clearing vector\(\displaystyle p_i = \min\!\Big(\bar p_i,\; e_i + \sum_j \pi_{ji} p_j\Big)\)
Key player effort\(\displaystyle x = (I - \delta G)^{-1} a\)

Try it

Lab 63 · The economy as a network

Turn the Island's input-output table into a network, test Hulten's theorem and break it, and follow shocks along supply chains, between banks and through villages.

Figure produced by Lab 63: The economy as a network
Produced by the lab below, seed 0, in 0.5 s.
python -m videos.economics.labs 63 needs numpy, scipy, matplotlib · download lab63.py · source on GitHub
Domar weights (sales over GDP), and their sum                                               farms 0.12, energy 0.25, chips 0.10, metals 0.10, factories 0.24, transport 0.15, services 0.64, retail 0.30; sum 1.90
Hulten checked: largest gap between computed and lambda x shock (Cobb-Douglas)              3.8e-17
a loss of 0.5 log points, elasticity 0.15: GDP's fall, computed (Hulten), %                 farms 6.6 (5.7), energy 15.4 (11.8), chips 5.9 (4.7), metals 6.5 (4.8), factories 13.2 (11.3), transport 8.5 (7.2), services 29.6 (27.4), retail 14.2 (14.0)
GDP's swing from 12% firm shocks, 10,000 firms: equal, Zipf                                 0.12%, 1.57%
the quake: loss downstream at 1, 2, 3 steps; upstream; total against the hit firms alone    7.4, 1.2, 0.4; 17.1, 9.2, 5.6; 7.6% against 2.0%
the O-ring: sorting's gain over random teams                                                11.2%
contagion: defaults at a loss of 5 (ring, complete); the complete network's breaking point  4, 1; 11
diffusion after 8 rounds: most central, random, least central seeds                         86%, 64%, 14%
the key player against the player with most links                                           player 8 (removal costs 50%) against 0 (36%)
formation (links in the efficient network; star stable?) at c = 0.1, 0.4, 0.8, 1.1          6 (no), 3 (yes), 3 (no), 0 (no)
fragility: the cliff with 2, 3, 5 suppliers per input                                       0.94, 0.78, 0.55
Dials: granular residual's median R-squared (planted share); elasticity estimate (planted)  0.28 (0.34); 0.165 (0.15)
Japan's industrial production, March 2011 against February                                  -15.8%

Hulten's theorem says sales are enough for small shocks; everything after it in this lab is a reason they are not: unequal firms, lopsided networks, large shocks to essential inputs, specific links, concentrated debts.
The code (89 lines; it asserts its own result)
"""Lab 63: the economy as a network: Domar weights and Leontief's paths, Hulten's theorem and its second-order terms,
granular and network volatility, a supply-chain disaster, the O-ring, clearing and contagion, diffusion, the key
player, network formation, fragility, and the Dials' Island estimates."""

import numpy as np

from videos.coursekit import labs
from explainer.economics import data
from explainer.economics.agora import network as N

TITLE = "The economy as a network"
GOAL = ("Turn the Island's input-output table into a network, test Hulten's theorem and break it, and follow shocks "
        "along supply chains, between banks and through villages.")
TASKS = [
    "Make every input easy to substitute (N.which_failure(theta=1.5)). Which sector's failure now costs more or less "
    "than its sales predict?",
    "Give every firm more possible suppliers (N.quake(replace_specific=0.6)). How much of the Island's loss do the "
    "links still add?",
    "Cut the banks' cushion to zero (N.contagion(buffer=0.0)). Where does the complete network now fail?",
]


def run(seed=0):
    lab = labs.Lab()
    L = N.leontief()
    lab.row("Domar weights (sales over GDP), and their sum",
            ", ".join(f"{s} {d:.2f}" for s, d in zip(N.SECTORS, L["domar"])) + f"; sum {L['sum_domar']:.2f}")
    H = N.which_failure(shock=-0.1, theta=1.0)
    gap = max(abs(r["loss"] - r["hulten"]) for r in H["rows"])
    assert gap < 1e-9                                             # Hulten's theorem, exactly, for Cobb-Douglas
    lab.row("Hulten checked: largest gap between computed and lambda x shock (Cobb-Douglas)", f"{gap:.1e}")
    P = N.which_failure(shock=-0.5, theta=0.15)
    lab.row("a loss of 0.5 log points, elasticity 0.15: GDP's fall, computed (Hulten), %",
            ", ".join(f"{r['sector']} {100 * (1 - np.exp(r['loss'])):.1f} ({100 * (1 - np.exp(r['hulten'])):.1f})"
                      for r in P["rows"]))
    G = N.granular(seed=63 + seed)
    lab.row("GDP's swing from 12% firm shocks, 10,000 firms: equal, Zipf",
            f"{100 * G['rows'][-1]['equal']:.2f}%, {100 * G['rows'][-1]['zipf']:.2f}%")
    Q = N.quake(seed=63 + seed)
    lab.row("the quake: loss downstream at 1, 2, 3 steps; upstream; total against the hit firms alone",
            ", ".join(f"{100 * r['loss']:.1f}" for r in Q["rows"]["downstream"]) + "; " +
            ", ".join(f"{100 * r['loss']:.1f}" for r in Q["rows"]["upstream"]) +
            f"; {100 * Q['total_loss']:.1f}% against {100 * Q['direct_only']:.1f}%")
    O = N.oring(seed=63 + seed)
    lab.row("the O-ring: sorting's gain over random teams", f"{100 * O['gain']:.1f}%")
    C = N.contagion()
    thr = next(s for s, d in zip(C["shocks"], C["complete"]["defaults"]) if d == 10)
    lab.row("contagion: defaults at a loss of 5 (ring, complete); the complete network's breaking point",
            f"{C['ring']['defaults'][5]}, {C['complete']['defaults'][5]}; {thr:.0f}")
    D = N.diffusion(reps=150, seed=63 + seed)
    lab.row("diffusion after 8 rounds: most central, random, least central seeds",
            f"{100 * D['most central'][-1]:.0f}%, {100 * D['at random'][-1]:.0f}%, {100 * D['least central'][-1]:.0f}%")
    K = N.key_player()
    lab.row("the key player against the player with most links", f"player {K['key']} (removal costs "
            f"{100 * K['drop'][K['key']] / K['total']:.0f}%) against {K['most_links']} "
            f"({100 * K['drop'][K['most_links']] / K['total']:.0f}%)")
    F = N.formation(costs=[0.1, 0.4, 0.8, 1.1])
    lab.row("formation (links in the efficient network; star stable?) at c = 0.1, 0.4, 0.8, 1.1",
            ", ".join(f"{r['efficient_links']} ({'yes' if r['star_stable'] else 'no'})" for r in F["rows"]))
    Fr = N.fragility()
    lab.row("fragility: the cliff with 2, 3, 5 suppliers per input",
            ", ".join(f"{Fr[f'n_{n}']['cliff']:.2f}" for n in (2, 3, 5)))
    R = N.granular_residual(reps=200, seed=63 + seed)
    S = N.substitution_estimate(seed=63 + seed)
    lab.row("Dials: granular residual's median R-squared (planted share); elasticity estimate (planted)",
            f"{R['median']:.2f} ({R['truth']:.2f}); {S['estimate']:.3f} ({S['theta']:.2f})")
    f = data.fred("JPNPROINDMISMEI")
    v = np.array([float(x) for x in f["value"]])
    k = f["date"].index("2011-03-01")
    lab.row("Japan's industrial production, March 2011 against February", f"{100 * (v[k] / v[k - 1] - 1):+.1f}%")

    lab.note = ("Hulten's theorem says sales are enough for small shocks; everything after it in this lab is a reason "
                "they are not: unequal firms, lopsided networks, large shocks to essential inputs, specific links, "
                "concentrated debts.")

    fig, ax = labs.figure(2, size=(11, 4.4))
    Rs = N.gdp_response("energy", thetas=(0.15, 1.0, 1.5))
    for key, col in (("theta_0.15", labs.ORANGE), ("theta_1", "k"), ("theta_1.5", "tab:blue")):
        ax[0].plot(Rs["shocks"], Rs[key], color=col, label=key.replace("theta_", "elasticity "))
    ax[0].plot(Rs["shocks"], Rs["hulten"], "k--", lw=1, label="Hulten")
    ax[0].set(title="GDP's response to energy's productivity", xlabel="log change in energy's productivity",
              ylabel="log change in GDP")
    ax[0].legend(fontsize=8)
    for n_ in (2, 3, 5):
        ax[1].plot(Fr["r"], Fr[f"n_{n_}"]["rho"], label=f"{n_} suppliers")
    ax[1].set(title="fragile supply networks", xlabel="strength of a relationship", ylabel="share producing")
    ax[1].legend(fontsize=8)
    lab.fig = fig
    return lab

Now change it

  1. Make every input easy to substitute (N.which_failure(theta=1.5)). Which sector's failure now costs more or less than its sales predict?
  2. Give every firm more possible suppliers (N.quake(replace_specific=0.6)). How much of the Island's loss do the links still add?
  3. Cut the banks' cushion to zero (N.contagion(buffer=0.0)). Where does the complete network now fail?

Problems, with solutions

Try each problem before opening its solution.

1. Leontief: with input shares Omega and consumption shares beta, show that sales over GDP are lambda' = beta' (I - Omega)^(-1), and that the weights add to at least one, with equality only without intermediate inputs.

Solution

With zero profits a sector's costs equal its sales, so sector j spends Omega_ji S_j on sector i's output. Sector i's sales are what households buy plus what other sectors buy: S_i = beta_i Y + sum_j Omega_ji S_j, or S' = Y beta' + S' Omega. Dividing by GDP Y and solving, lambda' = beta' (I - Omega)^(-1) = beta' (I + Omega + Omega^2

  • ...). The weights add to lambda' 1 = 1 + beta' Omega 1 + beta' Omega^2 1 + ..., and every term after the first is non-negative; they are all zero only if no sector that households buy from (or that sells to one) buys intermediate inputs.

2. Hulten: in a competitive economy with Cobb-Douglas technologies, show that d log Y / d log A_i = lambda_i, whatever the network.

Solution

With the wage as numeraire, sector i's unit cost is log p_i = -log A_i + sum_j Omega_ij log p_j, so log p = -(I - Omega)^(-1) log A. With Cobb-Douglas consumption, real GDP (the real wage bill, labour fixed) is log Y = -beta' log p = beta' (I - Omega)^(-1) log A = lambda' log A. So the derivative with respect to log A_i is lambda_i exactly; the network enters only through lambda, that is through sales.

3. Granularity: with Zipf sizes s_i proportional to 1/i, show that the square root of the sum of squared shares falls like 1/log n, not 1/sqrt(n).

Solution

The shares are s_i = (1/i)/H_n with H_n = 1 + 1/2 + ... + 1/n, about ln n + 0.58. The sum of squares is (1 + 1/4 + 1/9 + ...)/H_n^2, and the numerator tends to pi^2/6, about 1.64. So the square root is about 1.28/ln n: it halves only when n is squared. With equal firms it is 1/sqrt(n), which halves when n is quadrupled.

4. Clearing: three banks in a ring each owe the next 10 and hold nothing else; show that every (p, p, p) with 0 <= p <= 10 clears, and say which one Eisenberg and Noe's algorithm picks, and why.

Solution

Bank i pays min(10, what it receives), and receives what bank i - 1 pays: p_i = min(10, p_(i-1)). Any equal vector with p between 0 and 10 satisfies all three equations, so there is a continuum of clearing vectors, from everyone defaulting completely to everyone paying in full. The algorithm starts from full payment and lowers payments only when a bank cannot pay, so it stops at once at (10, 10, 10): the greatest clearing vector, in which the circle of debts simply cancels. It matters because a supervisor who assumed the worst fixed point would see a crisis that netting the debts removes; a clearing house that nets multilateral positions delivers the greatest one.

5. Key player: for a star of one hub and k leaves with x = (I - delta G)^(-1) 1, compute the hub's effort and the loss from removing it.

Solution

By symmetry each leaf's effort is x_l = 1 + delta x_h and the hub's is x_h = 1 + delta k x_l. Substituting, x_h = (1 + delta k)/(1 - delta^2 k) and x_l = (1 + delta)/(1 - delta^2 k), which needs delta^2 k < 1. Total effort is x_h + k x_l = (1 + k + 2 delta k)/(1 - delta^2 k). Without the hub the leaves are isolated and each puts in 1, so the loss is (1 + k + 2 delta k)/(1 - delta^2 k) - k, which grows quickly as delta^2 k approaches one.

6. Jackson and Wolinsky: for n players, show that the star is efficient for delta - delta^2 < c < delta + (n - 2) delta^2 / 2, and pairwise stable only for c < delta.

Solution

Any network that connects everyone with fewer than n(n - 1)/2 links has some pairs at distance two or more; among connected networks with n - 1 links (the fewest), the star puts every pair within two steps, so its total, 2(n - 1)(delta - c) + (n - 1)(n - 2) delta^2, beats every other tree. Adding a link between two leaves raises the total by 2(delta - delta^2) - 2c, which is negative when c > delta - delta^2, so the star beats denser networks there, and the complete network wins below. The star beats the empty network when its total is positive, which with the formula above gives c < delta + (n - 2) delta^2 / 2. For stability: a leaf that cut its link would lose delta + (n - 2) delta^2 > c, so leaves keep their links; two leaves adding a link each gain delta - delta^2 < c, so they do not; and the hub, cutting a link, saves c and loses delta (the leaf is then isolated), so it keeps it only if c < delta. For delta < c < delta + (n - 2) delta^2 / 2 the efficient star is not stable.

Notes and sources

Sources

The studies the film states are listed with what each shows in dials.SHOWN[63]; the new Dials (how much of the cycle comes from firms' and sectors' own shocks; how easily firms swap inputs within a year) are in explainer/economics/dials.py, and the Called it? record of the strength of weak ties in explainer/economics/calls.py. The methods are stated from the works cited in the chapters (Leontief 1936, Domar 1961, Granovetter 1973, Lucas 1977, Hulten 1978, Kremer 1993, Manski 1993, Jackson and Wolinsky 1996, Eisenberg and Noe 2001, Ballester, Calvó-Armengol and Zenou 2006, Bramoullé, Djebbari and Fortin 2009, Gabaix 2011, Foerster, Sarte and Watson 2011, Acemoglu et al. 2012 and 2015, Antràs et al. 2012, Banerjee et al. 2013, Elliott, Golub and Jackson 2014, Barrot and Sauvagnat 2016, Atalay 2017, Oberfield 2018, Baqaee and Farhi 2019, Boehm, Flaaen and Pandalai-Nayar 2019, Acemoglu and Azar 2020, Carvalho, Nirei, Saito and Tahbaz-Salehi 2021, Elliott, Golub and Leduc 2022, Rajkumar et al. 2022) and computed here.

About this partfrom its README

Part 63 of a sixty-eight-part course in economics (see the series plan and the syllabus), the first of Act XII, The Frontier. It asks when a shock to one firm becomes a shock to everyone. Its answer: to a first approximation, when the firm or sector is large, because a sector matters by its sales (Hulten's theorem) and, with firms as unequal as real ones, their own shocks do not cancel out. Beyond that, when the shock is large and the input hard to replace, when the network is lopsided, and when links are specific or debts concentrated, a local shock travels along the links and grows. Dense links absorb small shocks and spread large ones.

It opens on 11 March 2011, when an earthquake and tsunami struck north-east Japan. Firms far from the coast, with no damage at all, stopped work for want of parts; Carvalho, Nirei, Saito and Tahbaz-Salehi traced the loss along supplier-customer links, upstream and downstream, to about half a point (0.47) of Japan's GDP growth in the year after. The Island's seventy-firm supply web shows the same in miniature. From there it covers:

  • Leontief's paths: the Island's eight-sector input-output table as a network; sales per dollar of GDP (Domar weights) as the sum over supply paths, adding to 1.90; services 0.64, retail 0.30, energy 0.25 (a fifth of it sold to households directly); upstreamness from retail's 1.1 steps to metals' 3.4;
  • Hulten's theorem: a small productivity shock moves GDP by the sector's sales share and nothing else; checked on the Island with Cobb-Douglas technologies (energy adds 14% of GDP as value added, sells 25%, and a 10% shock costs 2.5%);
  • Play it: which sector's failure costs most when inputs are hard to replace for a year? Services (30% of GDP, against Hulten's 27%); energy costs 15.4% against its sales' 11.8%; retail 14.2%; chips 5.9%;
  • why shocks do not wash out: with firm shocks of 12%, 10,000 equal firms give GDP a swing of 0.12%, 10,000 Zipf-sized firms 1.6%; Gabaix's granular hypothesis (the 100 largest American firms, about a third of the swings); a star of sectors against a ring (Acemoglu, Carvalho, Ozdaglar and Tahbaz-Salehi);
  • beyond Hulten: GDP's response to energy shocks of every size by the elasticity of substitution; with complements a 70-log-point loss costs 27 log points of GDP rather than 17.5, energy's sales share climbing from 0.25 to 0.60; the oil embargo of 1973; Baqaee and Farhi;
  • supply chains, measured: the Island's 3,000 firms, 5% of them losing 40% of output; direct customers lose 7.4%, suppliers 17%; 2.0% of sales lost at the hit firms, 7.6% with the links; specific inputs carry the loss (17% against 4.4% if every input could be replaced); Barrot and Sauvagnat; Boehm, Flaaen and Pandalai-Nayar; Thailand's floods and the chip shortage;
  • the O-ring (Kremer): one weak link costs two fifths of a team's output; sorting the best with the best adds 11%; wages convex in skill; the Challenger;
  • an intermission: Japan's industrial production month by month since 2000 (-15.8% in March 2011, the largest monthly fall in the window), with each quarter's growth as a tune;
  • financial networks: a four-bank clearing vector (Eisenberg and Noe); ten banks in a ring against a complete network, robust yet fragile (Acemoglu, Ozdaglar and Tahbaz-Salehi); Lehman and AIG, clearing houses (Elliott, Golub and Jackson);
  • the strength of weak ties: Granovetter's job-finders (17% saw the contact often, 56% occasionally, 28% rarely); two forces and an inverted U; Called it?: right (Rajkumar et al.'s LinkedIn experiments);
  • diffusion: seeding the Island's village of 200 households at the most central (86% informed after eight rounds), at random (63%) or at the least central (15%); microfinance in 43 villages of Karnataka (Banerjee, Chandrasekhar, Duflo and Jackson);
  • games on networks: the key player (Ballester, Calvó-Armengol and Zenou) is the clique member who bridges to the hub (50% of total effort) rather than the hub with most links (36%); the reflection problem and how networks identify peer effects (Manski; Bramoullé, Djebbari and Fortin);
  • network formation (Jackson and Wolinsky): the complete network, the star and the empty network by link cost; the efficient star is unstable when links cost more than delta;
  • the Dials (how much of the cycle comes from firms' own shocks, new; how easily firms swap inputs within a year, new), the jobs that use this economics, and the frontier: supply networks fragile by design (Elliott, Golub and Leduc), networks that rewire, resilience against efficiency.
What is computed and built

Everything plotted is computed by compute.py with Agora's network module (explainer.economics.agora.network); the narration states the cached numbers.

  • The Island's table. Eight sectors with planted input shares (rows buyers, columns suppliers; labour the rest) and consumption shares; Domar weights beta' (I - Omega)^(-1), their path-by-path partial sums, and upstreamness.
  • Hulten and the Play-it. Unit-cost prices with the wage as numeraire under CES technologies (elasticity theta between labour and every input, shares at the baseline), solved as a fixed point; real GDP as minus the log of the consumption price index. Hulten's check: Cobb-Douglas, a 10% fall in each sector's productivity. Play it: theta = 0.15, a fall of 0.5 log points (about two fifths). The response curves: energy's productivity from -0.7 to +0.3 log points for theta = 0.15, 0.5, 1 and 1.5.
  • Granularity. Independent firm shocks of 12%; equal firms against Zipf sizes (s_i proportional to 1/i), 10 to 10,000 firms; forty simulated years with 1,000 firms; stars and rings of 5 to 500 sectors, each buying half its costs from its supplier, equal consumption shares.
  • The quake. 3,000 firms in five tiers of 600; each above the first buys from three in the tier below with Dirichlet(2) cost weights, 40% of links specific; 5% of firms keep 60% of their output; a customer makes up 95% of a generic input's shortfall and 25% of a specific one's, and combines inputs with elasticity 0.2; suppliers sell what their customers buy. Comparisons: elasticity 1, and every input replaceable.
  • The O-ring. 400 workers with q from Beta(8, 1.5), clipped to [0.4, 0.999]; teams of four sorted against drawn at random; wages proportional to q^4.
  • Banks. The four-bank example; ten banks each owing 10, in a ring or spread evenly, outside assets 11, a loss at one bank from 0 to 20; the Eisenberg-Noe clearing vector by iteration from full payment.
  • Weak ties. The chance a contact knows of a job you do not, 0.8 e^(-2.5 s), and the chance they pass it on, 0.15 + 0.85 s, for tie strength s.
  • Diffusion. 200 households on a ring, each linked to its six nearest with 8% rewired, plus six households linked to 18 others; five seeds; each round each informed household tells each contact with chance 0.12; 300 runs a rule.
  • The key player. A hub with seven followers, a clique of five, one bridge; effort (I - 0.2 G)^(-1) 1.
  • Formation. Four players, delta = 0.6, every network enumerated for link costs 0.05 to 1.2; pairwise stability.
  • Fragility. Four essential inputs, 2, 3 or 5 potential suppliers of each; the largest fixed point of rho = (1 - (1 - r rho)^n)^m.
  • The Dials' Island rows. Gabaix's granular residual on 1,000 Zipf firms (firm shocks 10%, an aggregate shock of 2.4%, 40 years, 400 histories; planted share 0.34); the elasticity of substitution from thirty years of the Island's cost shares (productivity shocks of 5%, shares measured with 3% noise, pair fixed effects; planted 0.15).
  • The intermission. JPNPROINDMISMEI monthly, January 2000 to March 2024; each quarter's growth of the quarterly average as the tune.
Chapter notes
# Chapter What it does
0 A supplier's supplier The 2011 earthquake; the Island's supply web and a shock along its links; the question; objectives
1 Leontief's paths The input-output table as a network; Domar weights as sums over paths; upstreamness
2 Hulten's theorem Sales, not links or value added; checked on the Island; why
3 Play it: which failure costs most? Four sectors, inputs hard to replace; sales first, an upstream premium
4 Why shocks do not wash out Equal against Zipf-sized firms; Gabaix; a star against a ring
5 Beyond Hulten: large shocks Response curves by elasticity; the moving sales share; 1973
6 Supply chains, measured The Island's quake by distance; specific inputs; Japan, America, since
7 The O-ring One weak link; sorting; convex wages
— Intermission Japan's industrial production since 2000, as a line and a tune
8 Financial networks A clearing vector by hand; ring against complete; what regulators took from it
9 The strength of weak ties Granovetter's survey; two forces; Called it?
10 Diffusion: who to tell first A village seeded three ways; microfinance in Karnataka
11 Games on networks: the key player Bonacich effort; removing the bridge; the reflection problem
12 Network formation Efficient against pairwise stable networks by link cost
13 The Dials Firms' own shocks in the cycle (new); input substitution within a year (new)
14 In practice Supply-chain risk, systemic risk, seeding, planning; three cautions
15 Frontier Fragile by design; networks that rewire; resilience against efficiency
— Outro The answer; twelve lines; problems; reading; next, Part 64, Machines that Learn
Notes
  • python -m videos.economics.labs 63: Domar weights and paths; Hulten checked; the failure ranking with complements; granular volatility; the quake by distance; the O-ring; clearing and contagion; diffusion by seeding; the key player; network formation; fragility; the Dials' Island estimates; Japan's March 2011 on the FRED data.
  • The interactive (course site): network. The reader chooses which Island sector to hit, how hard, and how easily firms can substitute inputs, and compares the loss of GDP with Hulten's rule.

Companion material in this repository

The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
  1. Hook: the map of affected firms, by links; the question; objectives.
  2. Leontief again (Part 3): the inverse as a sum over paths; upstream and downstream.
  3. Hulten's theorem (1978): to first order, a sector's shock matters by its sales share and nothing else.
  4. Play it: a production network: which firm's failure costs the most?
  5. Why idiosyncratic shocks do not wash out: granular firms (Gabaix 2011) and unequal networks (Acemoglu, Carvalho, Ozdaglar and Tahbaz-Salehi 2012); the law of large numbers slowed.
  6. Beyond Hulten (Baqaee and Farhi 2019): complementarities make large shocks non-linear. Oil in 1973.
  7. Supply chains measured: the earthquake; input specificity (Barrot and Sauvagnat 2016); the pandemic.
  8. The O-ring (Kremer 1993): one weak link; why skills sort.
  9. Financial networks: clearing vectors (Eisenberg and Noe 2001); robust yet fragile (Acemoglu, Ozdaglar and Tahbaz-Salehi 2015; Elliott, Golub and Jackson 2014).
  10. Social networks: the strength of weak ties (Granovetter 1973), tested on twenty million people (Rajkumar et al. 2022).
  11. Diffusion: who to tell first; centrality and microfinance take-up in Indian villages (Banerjee et al. 2013).
  12. Games on networks: the key player (Ballester, Calvó-Armengol and Zenou 2006); peer effects and their identification.
  13. Network formation (Jackson and Wolinsky 1996): stable against efficient.
  14. Dials. 14. In practice: supply-chain risk, systemic-risk monitoring. 15. Frontier: endogenous production networks; resilience against efficiency (Part 66).

Agora: network: a production-network economy (linear and CES), a clearing system, diffusion and games on graphs; the Island's firms linked by an input–output table. Dials: the aggregate effect of firm-level shocks; the elasticity of substitution between inputs in the short run. Reading: Leontief 1936; Hulten 1978; Gabaix 2011; Acemoglu et al. 2012, 2015; Baqaee & Farhi 2019; Carvalho et al. 2021; Eisenberg & Noe 2001; Kremer 1993; Jackson, Social and Economic Networks; Carvalho & Tahbaz-Salehi 2019.

Build the film

python -m videos.economics.econ63.compute        # the part's numbers, into .cache/econ63
python tools/build.py econ63                  # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py econ63 Hook   # one chapter, silent, with a contact sheet

Scenes: videos/economics/econ63. Setup: see the course page. Source of these notes: the README and the scenes' narration.

Build it
python -m videos.economics.econ63.compute              # every number (under a minute), into .cache/econ63/
python tools/qa_scene.py econ63 Chains                 # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py econ63 -q l   # the whole part, silent preview
python tools/build.py econ63                           # 1080p30 with narration and the series' computed score
python -m videos.economics.labs 63                     # the lab

The data are Japan's industrial production from the OECD's Main Economic Indicators via FRED (JPNPROINDMISMEI), registered in SOURCES.md. Everything else is computed on the Island, or stated from the papers listed in dials.SHOWN[63].