Trade I: Comparative Advantage
Why do countries trade, and who wins and loses when they do?
The part opens on Stanislaw Ulam's challenge to Paul Samuelson, to name one proposition in the social sciences that is both true and not trivial, and Samuelson's answer: comparative advantage. The viewer decides who should make what when one island is worse at everything; then Ricardo's four numbers with the world price and the wage band, the chain of goods and the Dornbusch-Fischer-Samuelson continuum, and a test: Japan's opening in 1859, with Bernhofen and Brown's tables. Heckscher and Ohlin's factor proportions are drawn in the Lerner diagram with their four theorems, Stolper and Samuelson's losers inside each country, and Leontief's paradox and Trefler's missing trade, recomputed from his data. After an intermission of America's tariff since 1929 come specific factors, a tariff's triangles and the optimal tariff, protection for sale, the tariff war and the trade agreements that escape it, and compensation, with its is/ought step; a new dial, the Fact of two-way trade, Heckscher and Ohlin's prediction for America as Called it?, and a frontier of Ricardo tested in the fields.
What you need. Part 2: supply, demand and surplus; Part 8: production and cost functions, Shephard's lemma; Part 9: general equilibrium; Part 11: the prisoner's dilemma and best responses; Part 18: compensation tests and welfare. Chapter 5 uses Cobb-Douglas unit costs and a linear system in logs; chapter 7 a factor-content regression; chapter 11 best responses found numerically.
- Hook
- Ulam's challenge to Samuelson
- Ideas, models and mathematics
- Ricardo's model, a continuum of goods, Heckscher–Ohlin and its four theorems, the Leontief paradox, who loses from trade, tariffs and quotas, the optimal tariff, protection for sale, Japan's opening as a test
- Agora gains
- a Ricardian and a factor-proportions world
- Play it
- who should make what?
What you will be able to do
Principles and the major
- Find comparative advantage from four numbers, the range of trade prices, and the gains for both countries.
- State the Heckscher-Ohlin and Stolper-Samuelson theorems, and say who gains and loses from trade inside a country.
- Measure a tariff's effects on consumers, producers and revenue, and explain why protection is common.
Graduate
- Solve the Dornbusch-Fischer-Samuelson continuum and its comparative statics.
- Derive factor price equalization and the magnification effect from zero-profit conditions.
- Compute the optimal tariff and the Nash tariffs of a tariff war.
Research
- Run and interpret tests of comparative advantage: Bernhofen and Brown's inner product and Trefler's factor-content statistics.
- Explain the Arkolakis-Costinot-Rodriguez-Clare formula and how Costinot and Donaldson test Ricardo.
Practice
- Read a tariff schedule, a trade-remedy case and an estimate of the gains from a trade agreement.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Principles and the major 38 min · Graduate 39 min · Research 43 min · Practice 39 min.
- 0True and not trivialPrinciples and the major3 min
- 1Play it: four numbersPrinciples and the major3 min
- 2Ricardo's four numbersPrinciples and the major3 min
- 3Many goods: the chain and the continuumPrinciples and the major3 min
- 4A test: Japan opensPrinciples and the major3 min
- 5Factor proportionsPrinciples and the major3 min
- 6Stolper and Samuelson: losers insidePrinciples and the major2 min
- 7Leontief's paradox and the missing tradeResearch3 min
- Intermission: America's tariff since 1929Principles and the major
- 8Specific factors: who loses firstPrinciples and the major2 min
- 9Tariffs and quotasPrinciples and the major3 min
- 10Protection for salePrinciples and the major3 min
- 11Trade agreements: escaping a dilemmaPrinciples and the major3 min
- 12CompensationPrinciples and the major2 min
- 13The Dials: the gains from tradePrinciples and the major2 min
- 14In practice: trade ministries and customsPractice1 min
- 15Frontier: testing Ricardo in the fieldsResearch2 min
- 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.
True and not trivialPrinciples and the major3 min
The mathematician Stanislaw Ulam was one of the inventors of the Monte Carlo method. One day he put a challenge to his friend Paul Samuelson, who would become the first American to win the Nobel prize in economics. Name me one proposition in all of the social sciences, he said, which is both true and not trivial. Samuelson had no answer that day.
Years later, as Samuelson told it, he had his answer: David Ricardo's theory of comparative advantage. That it is logically true, he said, need not be argued before a mathematician. That it is not trivial is attested by the thousands of important and intelligent men who have never been able to grasp the doctrine for themselves, or to believe it after it was explained to them. This part is about that idea, what it gets right and what it leaves out: above all, that trade makes a country richer without making everyone in it richer.
And it matters more than ever. Here is trade, exports plus imports, as a share of output in eighteen rich economies since 1870. In the median economy it was 33 percent in 1870 and 42 percent by 1913, the first globalization. Then two wars and a depression: by 1932 it was down to 25 percent. It took until the 1970s to recover, and by 2019 it was 60 percent. America, a continent that trades mostly with itself, went from 5 percent in 1932 to 26 percent.
This part's question: why do countries trade, and who wins and loses when they do? Why does a country that is worse at making everything still have something to sell? What do a country's endowments, its labour, capital and land, decide about what it trades? And who loses, why do the losers so often win in politics, and could the winners pay them?
Economics, Built. Part thirty-five: trade, and comparative advantage. Here is the plan. A game with four numbers, then Ricardo's own, then many goods, and a test: Japan, opened to trade under American naval pressure in the 1850s. A second theory, in which what a country has decides what it sells, its theorems about who loses, and the paradox and the puzzle that its tests turned up. Who loses first, and what a tariff does. Why protection is for sale, why countries sign trade agreements, and whether the winners can pay the losers. And a new dial: how much a country gains from trade.
What it does: Ulam's challenge and Samuelson's answer; trade since 1870; the question; objectives
1Play it: four numbersPrinciples and the major3 min
Your turn. The Island and its neighbour, the Archipelago, make two things: fish and cloth. Here are the hours of work each needs for one unit. The Island needs three hours to land a fish and six to weave a bolt of cloth. The Archipelago, with better boats and better looms, needs one hour for a fish and four for a bolt. The Archipelago is better at both. The Island has twice as many hours of work to offer each week, and people in both spend half their income on fish and half on cloth.
If they trade, who should make what? Should the Archipelago make both, since it is better at both? Should the Island make the cloth and the Archipelago the fish? Or the other way round? Pause, and choose.
The answer is B, and the reason is in what each good costs in terms of the other. On the Island, the six hours that weave a bolt of cloth could land two fish; so a bolt costs two fish. In the Archipelago, four hours of weaving could land four fish: a bolt costs four. Cloth is relatively cheap on the Island. That is its comparative advantage, even though it is worse at weaving in absolute terms. Here is what each can make alone: its production frontier, and the white dot, what it consumes with half its income on each good. Now let them trade at a price between the two costs, 3 fish a bolt, which is where the market settles. The Island weaves only cloth and sells half of it for fish; the Archipelago fishes only, and buys cloth. Each can now reach the dashed line, beyond its own frontier. The Island consumes the same cloth and half as much fish again; the Archipelago the same fish and a third more cloth: gains of 22 and 15 percent, for both, from the same hours of work.
One more number. After trade an Islander earns half a fish an hour, and an Archipelagan 1 fish: the Island's wage is half the Archipelago's, because its workers are less productive. So both sides have a fear. In the Archipelago people say they cannot compete with the Island's cheap labour. On the Island people say they cannot compete with the Archipelago's better boats and looms. Both are wrong. Wages follow productivity, trade follows comparative cost, and the gains go to both.
What it does: The Island and the Archipelago; opportunity costs; frontiers and the gains; wages
2Ricardo's four numbersPrinciples and the major3 min
In 1817 David Ricardo, a stockbroker who had made a fortune and turned to economics, put the idea in four numbers. England needs the labour of a hundred men for a year to make a certain quantity of cloth, and a hundred and twenty to make a quantity of wine. Portugal needs ninety and eighty. Portugal is better at both. Yet in England a unit of wine costs the labour of one point two units of cloth, and in Portugal under nine tenths. Wine is relatively cheap in Portugal and cloth in England, and that, Ricardo argued, decides the trade.
Let them trade. The world's supply of wine relative to cloth is a staircase. At any price below Portugal's own cost, under nine tenths of a unit of cloth, nobody makes wine. At Portugal's cost, Portugal will make any amount. Between the two costs, Portugal makes only wine and England only cloth, and at England's cost England starts making wine too. The world's demand slopes down. If England has a quarter more workers than Portugal, the two meet at a price of one unit of cloth for a unit of wine, between the two costs, and each country makes only its cheaper good. Now England gets a unit of wine for the labour of a hundred men instead of a hundred and twenty, and Portugal gets cloth for eighty instead of ninety. Both save labour. In consumption, England gains 6 percent and Portugal 10.
What do workers earn? Portugal's wage must be higher than England's, since its workers are more productive at both; but not too much higher. If it were less than a hundred over ninety times England's, Portugal could undersell England's cloth too. If it were more than a hundred and twenty over eighty, England could undersell Portugal's wine. In between, where demand puts it, here at 1.25, each country sells what it is relatively good at. A country with low productivity competes through low wages; a country with high productivity can afford high ones. Ricardo's insight is that it is relative, not absolute, cost that decides who sells what.
What it does: England and Portugal; the world supply staircase; the gains; the wage band
3Many goods: the chain and the continuumPrinciples and the major3 min
With two goods the answer is a comparison. With many it is a chain. Rank the goods by how much more productive the Island is than the Archipelago at each, its relative edge. Now draw the Island's wage relative to the Archipelago's. The Island makes every good whose edge is larger than its relative wage, and buys the rest. Where the line falls depends on wages, and wages depend on demand: if the line were too high, the Island would sell too little and its wage would fall.
In 1977 Rudiger Dornbusch, Stanley Fischer and Paul Samuelson took the chain to its limit: a continuum of goods, lined up from the Island's strongest to its weakest. The teal curve is the Island's edge along the line, falling. The gold curve is demand: if the Island makes every good up to some point, the relative wage at which its exports pay for its imports. The more goods it makes, the more the world spends on them, and the higher that wage. They cross at a relative wage of 0.78, with the Island making 28 percent of the goods. Two curves, and the whole pattern of trade and wages follows.
The model earns its keep in experiments. Let the Archipelago's workforce grow by half. Its demand for the Island's goods rises, and the gold curve shifts up. The Island's relative wage rises, from 0.78 to 0.90, and it gives up its marginal industries to the Archipelago: it makes 23 percent of goods instead of 28. Losing industries and gaining income at the same time is what the theory predicts. Now add the cost of shipping: suppose 15 percent of a cargo is lost on the way. A good is exported only if the edge beats the wage by enough to pay for the trip, so the edge curve splits in two, and between them lies a band of goods, 11 percent here, that each country makes for itself: haircuts, houses, most services.
What it does: The chain; the continuum; growth abroad; shipping costs and non-traded goods
4A test: Japan opensPrinciples and the major3 min
Comparative advantage is hard to test, because it is about prices a country would have had without trade, and almost no country is ever seen without trade. Japan is the exception. From 1639 it allowed almost no foreign trade. In 1853 Commodore Matthew Perry's American warships arrived, and the treaties that followed opened its ports in July 1859, with tariffs capped at low rates. Daniel Bernhofen and John Brown saw a natural experiment: prices from the last years of isolation, 1851 to 1853, are recorded, and the opening was sudden, nearly complete, and not Japan's choice.
What did Japan trade? It exported silk, silkworm eggs and tea: those three were four fifths of its exports. It imported woollens, cotton cloth and yarn, sugar and rice: the products of Lancashire's mills and of tropical plantations. And prices moved as the theory says they should when a country joins the world market: those of its exports, silk above all, rose, some almost doubling relative to other prices; those of its imports fell.
Now the test. The theory makes a sharp prediction: value a country's net exports at the prices it had before trade, and the total must be negative, since it sells what was cheap at home and buys what was dear. Here are Japan's exports in each year from 1868 to 1875, valued at the prices of 1851 to 1853, and its imports at the same prices: at the old prices, its exports are worth less than its imports. The total is negative in all 8 years: in 1875, minus 8.1 million ryo. A two hundred year old theory, tested against a natural experiment, and it passes.
How much did Japan gain? In a second paper Bernhofen and Brown put an upper bound on the static gain: no more than 8 or 9 percent of GDP. The reverse experiment gives a similar number. In December 1807 President Jefferson banned American ships from foreign trade, an embargo that lasted until March 1809. Douglas Irwin estimates its cost at about 5 percent of national income. Real, but not enormous. The gains from comparative advantage are triangles: they depend on how much a country trades and how different its prices were. Part thirty-six adds gains that are not triangles: from scale, variety and the best firms growing.
What it does: The treaty ports; the composition of trade; the inner product; the size of the gains
5Factor proportionsPrinciples and the major3 min
Ricardo explains trade by differences in technology. In 1919 the Swedish economist Eli Heckscher, and in 1933 his student Bertil Ohlin, offered a second reason, which needs no difference in technology at all. Give every country the same ways of making things, and let them differ only in what they have. The Island has many workers and little capital; the Archipelago has fewer workers and much more capital. And the two goods use them in different proportions: weaving cloth takes mostly labour, building machines mostly capital.
The model has a picture, drawn by Abba Lerner as a student in 1933. The pink curve is every mix of labour and capital that makes one dollar's worth of cloth at world prices. The blue curve, one dollar's worth of machines: it lies up and to the left, because machines need more capital. If both are made, each must cost exactly a dollar to make, so a single line of inputs costing one dollar must touch both curves. That line fixes the wage and the rent. The prices of goods determine the prices of the factors, whatever a country's endowments, which is the first surprising result. The two dashed rays are the proportions each good uses; a country with endowments between them makes both goods.
Now let the two trade. Alone, the Island, short of capital, finds machines dear: 1.42 bolts of cloth each. The Archipelago, rich in capital, pays 0.82. With trade one price settles between them, 1.04, and the Island sells 42 bolts of cloth for 41 machines. That is the Heckscher-Ohlin theorem: a country exports the good that uses its abundant factor intensively. And something stranger happens. Labour on the Island, cheap before trade, gets dearer; capital gets cheaper; and the wage and the rent end up exactly the same in both places, though not one worker or machine has crossed the sea. Trading goods is a way of trading the labour and capital inside them.
Four theorems come out of this picture. Heckscher and Ohlin's, about the pattern of trade. Factor price equalization, the one we just saw. Stolper and Samuelson's, about who gains, which is the next chapter. And Rybczynski's: at fixed prices, more capital raises the output of machines by more than its own growth and lowers the output of cloth. Give the Archipelago ten percent more capital and it makes 13 percent more machines and 34 percent less cloth. Growth can make an economy more specialized, not less.
What it does: Heckscher and Ohlin; the Lerner diagram; trade and factor price equalization; four theorems
6Stolper and Samuelson: losers insidePrinciples and the major2 min
In 1941 Wolfgang Stolper and Paul Samuelson asked who gains from trade inside a country. Hold the price of machines fixed and raise the price of cloth, the labour-intensive good. The wage rises, and the rent on capital falls. It has to: both goods must still just cover their costs, and cloth's costs are mostly wages, so for cloth to earn exactly its higher price while machines earn the same old one, labour must get more and capital less.
The effect is magnified. Raise the price of cloth by ten percent, leaving machines alone. The wage rises by 18 percent, more than either price, and the rent falls by 7 percent. So workers can buy more of both goods, and capital owners less of both, whatever they like to consume. There is no ambiguity about who wins.
Now open the two economies to each other. On the Island, where labour is abundant, trade raises the price of cloth, its export: workers gain and capital owners lose. In the Archipelago it is the other way round: its workers lose to the Island's competition and its capital owners gain. That is the theorem's political content: trade makes a country richer and, in this model, makes its scarce factor poorer, unambiguously. Surveys in rich countries, where less-skilled labour is the scarce factor, find what the theorem suggests: less-skilled workers are more likely to favour limits on imports than skilled ones.
What it does: Factor prices against goods prices; the magnification effect; who gains from opening
7Leontief's paradox and the missing tradeResearch3 min
The first serious test of Heckscher and Ohlin came in 1953, from Wassily Leontief, who had built the input-output table of Part three. He asked how much capital and labour it would take to make a million dollars of America's exports, counting everything that goes into them, and a million dollars of the goods America imported, if America had to make them itself. Per worker-year, the exports needed about fourteen thousand dollars of capital; the import replacements about eighteen thousand. The richest country in capital in the world, in 1947, was exporting labour-intensive goods and importing capital-intensive ones. The opposite of the theory.
The paradox drew answers for decades. American workers were more skilled than most; count their skill as a kind of capital, and the exports look intensive in it. Many imports were raw materials that need land, mines or climate America lacked. Leontief's own answer was that American workers were so productive that, counted in efficiency units, labour was America's abundant factor. And in 1980 Edward Leamer showed that with unbalanced trade, as America's was in 1947, Leontief's comparison is the wrong test; the right one, comparing what the country produces with what it consumes, shows America abundant in capital after all.
The modern test uses every factor and every country at once. In 1995 Daniel Trefler took thirty-three countries and nine factors, kinds of labour, capital and land, in 1983. For each, the theory predicts how much of the factor a country's trade should carry, from how much of it the country has compared with its share of world spending. If the theory held, every point would sit on the dashed line. Instead, recomputed here from Trefler's own data, the measured content has the right sign 50 percent of the time, no better than a coin. And the points lie almost flat: the measured factor content has about 38 times less variance than the prediction. Trefler called it the case of the missing trade. His remedy, and Donald Davis and David Weinstein's after him, was to let technology differ across countries, as Ricardo had, and to let people prefer goods made at home. With both, the theory fits far better. Ricardo and Heckscher and Ohlin are not rivals: real trade needs both.
What it does: Leontief's table; four answers; Trefler's test recomputed
Intermission: America's tariff since 1929Principles and the major
This chapter has no narration to read.
8Specific factors: who loses firstPrinciples and the major2 min
Heckscher and Ohlin's world is a long run, in which capital moves freely between industries. Tomorrow, a loom cannot plough a field. The specific-factors model, set out by Ronald Jones and Paul Samuelson in 1971, takes that seriously: labour moves, but capital is stuck in manufacturing and land in farming. The gold curve is what a worker adds in the factories, with workers counted from the left; the brown curve what a worker adds on the farms, counted from the right. Workers move until the two are equal, and that sets the wage. Now the price of food rises 10 percent. The farm curve shifts up, workers move to the farms, and the wage rises, but only 5 percent, less than the price of food. Landowners gain 15 percent; the owners of factories lose 5. And workers? Better off in manufactures, worse off in food: it depends on what they eat.
This is why trade politics looks the way it does. The losers from imports are few and concentrated: the owners and workers of one industry, often in one region. A tariff on cloth is worth a great deal to each weaver and each mill owner. It costs each shopper a little, perhaps too little to notice. Mancur Olson explained in 1965 why that matters: small groups with large stakes organize, lobby and vote on the issue; large groups with small stakes do not. So trade policy tends to be made by and for the specific factors, which is the starting point of chapter ten.
What it does: The labour diagram; who loses first; concentrated losers and diffuse winners
9Tariffs and quotasPrinciples and the major3 min
Now the tool most often used to change trade: the tariff. Here is the Island's market for cloth: demand in white, the Island's own weavers' supply in gold. At the world price of 4, Islanders buy 60 bolts a week and weave 20; the other 40 are imported. A tariff of 1 raises the price at home to 5. Islanders buy less, weave more, and imports halve. Shoppers lose 55: everything between the two prices, left of demand. Weavers gain 25 of it, the gold area. The treasury collects 20, the blue rectangle. And the two red triangles, 10 in all, go to no one: cloth woven at home at more than it costs abroad, and cloth not bought that was worth more to buyers than it cost the world. A small country that taxes imports makes itself poorer.
A quota does the same to prices with a different owner. Limit imports to 20 bolts and the price rises to 5, as with the tariff. But the blue rectangle is no longer tax revenue. It goes to whoever holds the right to import, and if that is foreign exporters, the Island loses it too. From 1981 Japan's car makers agreed to limit their exports to America, at America's request. American buyers paid more for Japanese cars, and much of the difference went to the Japanese firms.
There is one case in which a tariff can pay. Suppose the Island is large, a big enough buyer that when it buys less, the world price falls. Then part of the tariff is paid by foreigners: the Archipelago's weavers now receive 3.75 a bolt instead of 4. The green curve is the Island's gain. A small tariff helps; the best one is 0.75, about 20 percent, equal to one over the elasticity of the Archipelago's export supply, as Charles Bickerdike showed in 1906. Beyond it, the triangles win again. But every unit of that gain is a loss to the neighbour, who can play the same game. Which is the subject of chapter eleven.
What it does: The triangles; a quota's rent; the large country's optimal tariff
10Protection for salePrinciples and the major3 min
If tariffs usually make a country poorer, why are there so many? History offers a clue. After 1815 Britain's Corn Laws kept out foreign grain, raising rents for the landowners who sat in Parliament, as specific factors predict. They were repealed in 1846, after a long campaign by manufacturers who wanted cheaper bread for their workers, and cheaper workers. In 1930 the United States passed the Smoot-Hawley tariff, which raised duties on thousands of goods as Congress traded votes among industries. In both, protection followed the interests that were organized, not the interest of the country.
Smoot-Hawley's reputation is worse than its arithmetic, but the arithmetic is bad enough. The average duty on America's dutiable imports rose from 40 percent in 1929 to 59 percent in 1932. Douglas Irwin has shown that much of the rise came not from the law but from deflation: many duties were so many cents a pound, and as prices fell they became a larger share of the price. Other countries retaliated, and here is the result: trade, white for the median rich economy and blue for America, fell much further than output in the early 1930s. Tariffs did not cause the Depression, but they deepened the collapse of trade. By 1948, after a decade of agreements, America's average was 14 percent.
In 1994 Gene Grossman and Elhanan Helpman turned this into a theory: protection for sale. Industries that organize offer politicians contributions in exchange for tariffs; the government weighs the contributions against the welfare of voters. The result is a formula for every industry's tariff. Organized industries get protection, more where their output is large relative to imports, so the stakes are big, and where imports respond little to price, so the triangles are small. Unorganized industries get nothing, here even a tiny subsidy to imports. How much depends on how much the government cares about welfare. If welfare counts 50 times as much as a dollar of contributions, the highest tariff on the Island is 7 percent; if only five times as much, 167 percent. Penny Goldberg and Giovanni Maggi fitted the model to American tariffs in 1983. The pattern fit, and the weight on welfare came out between 50 and 88 times that on contributions: protection is for sale, but not cheaply.
What it does: The Corn Laws and Smoot-Hawley; the collapse of trade; Grossman and Helpman
11Trade agreements: escaping a dilemmaPrinciples and the major3 min
The large-country tariff makes trade policy a game. Two large economies, the Island and the Archipelago, each choose free trade or the tariff that is best for itself. The numbers are each country's gain over free trade, computed from Agora's model. If the Island taxes and the Archipelago does not, the Island gains 46 and the Archipelago loses 81. The reverse, in the other corner. So whatever the other does, each does better with a tariff, and both end up taxing, each 35 worse off than under free trade. It is the prisoner's dilemma of Part eleven, and the 1930s played it.
The same game as a picture. The teal line is the Island's best tariff for each tariff the Archipelago might set; the gold line, the Archipelago's. In this model the lines are straight: each country's best tariff does not depend on the other's at all, so taxing is a dominant strategy. They cross at 0.83 each, the equilibrium of a trade war, where neither wants to change. Both would be better off at the corner, with no tariffs, but neither will move there alone, because each tariff's gain comes out of the other's pocket.
Kyle Bagwell and Robert Staiger argued in 1999 that this is what trade agreements are for. In 1947 twenty-three countries signed the General Agreement on Tariffs and Trade, binding their tariffs and cutting them, round after round. Its rule of reciprocity means each country gives up its terms-of-trade gain at the same time as the others give up theirs. Its rule of the most favoured nation, one tariff for every member, stops two countries from striking deals that push the cost onto a third. In 1995 the World Trade Organization added a court for disputes, and permission to retaliate when a ruling is ignored. The game has not gone away. America's average tariff on goods was 2.6 percent in 2024 and 8.0 percent in 2025, the largest rise in a single year since this series begins, in 1929. Part sixty-six returns to it.
What it does: The tariff war as a dilemma; best responses; the GATT and the WTO
12CompensationPrinciples and the major2 min
Go back to the specific-factors Island and open it to the world, so that imported food is twenty percent cheaper. In real terms, landowners lose about a fifth of their income. Factory owners gain about a quarter, and workers a little. Add it up in money: the winners gain 9.2, the losers lose 7.4. The difference, 1.8, is the Island's gain from trade, and it is positive, as it must be: the economy can now consume a bundle it could not make. So the winners could compensate the losers in full and still be better off. In 1939 Nicholas Kaldor and John Hicks proposed that test as the meaning of an efficient change.
But could is not would. What economics shows is that opening to trade raises total income, so the winners could compensate the losers and still be ahead. The step to saying the Island should open needs a value judgment: either that a gain that could be shared is enough, whether or not it is; or that the losers will in fact be compensated; or that their loss weighs no more than someone else's gain. Part eighteen showed that economics cannot make that choice for us. It can tell us whether compensation happens.
America has tried. In 1962, in the same law that launched a round of tariff cuts, Congress created trade adjustment assistance: retraining, relocation allowances and longer unemployment benefits for workers who lose their jobs to imports. It has always been small, and many eligible workers never apply. Where it reaches people it seems to work: Benjamin Hyman, comparing workers whose cases happened to go to stricter or more lenient investigators, found that approved workers earned about 50,000 dollars more over the next 10 years. But the biggest trade shock of recent times, the surge of imports from China after 2000, fell on particular towns, and most of its losers were never compensated. That is where Part thirty-six begins.
What it does: Winners and losers when the Island opens; is and ought; trade adjustment assistance
13The Dials: the gains from tradePrinciples and the major2 min
How large are the gains from trade for a country today? In 2012 Costas Arkolakis, Arnaud Costinot and Andres Rodriguez-Clare showed that in a whole family of models, the answer needs only two numbers. The share of spending that goes on goods made at home, and the trade elasticity, how strongly trade responds to its costs, which gravity studies put between five and ten. For America in 2025, imports were 14 percent of GDP, so roughly 0.86 of spending stayed at home. Moving to autarky would cost between 1.5 and 2.9 percent of real income. This is rough, since GDP is not total spending; the authors' own figure, from a domestic share of 0.93, was 0.7 to 1.4 percent.
That opens a new dial: the gains from trade. Japan's opening in 1859, by Bernhofen and Brown's upper bound: eight or nine percent of GDP. America's embargo of 1807, by Irwin's estimate: about five percent. America around 2000, by the formula: under one and a half percent. And this part's rough update for today. The status: depends on the setting. Static gains from comparative advantage are a few percent of income; the models of Part thirty-six, with many sectors, intermediate goods and firms that differ, raise them.
One of the series' facts begins here, as a puzzle. Rich countries mostly trade similar goods with each other. In 2025 America exported 713 billion dollars of capital goods and imported 1133 billion; the Grubel-Lloyd index of two-way trade is 0.77. In 1967, two years after its auto pact with Canada, its car trade scored 0.93. Nothing in this part explains that: Ricardo and Heckscher and Ohlin predict trade in different goods, between countries that differ. Agora's column is empty until Part thirty-six.
What it does: The gains-from-trade formula; the new dial; the Fact of two-way trade
14In practice: trade ministries and customsPractice1 min
Who does this for a living? Trade ministries employ negotiators and the economists who model what each concession is worth, sector by sector, with the computable models of Part thirty-six. Customs services classify every import into one of thousands of tariff lines, value it, and decide where it was made, which under a trade agreement can decide the duty. Agencies like America's International Trade Commission judge anti-dumping and safeguard cases, which turn on whether imports have injured a domestic industry. And at the World Trade Organization and in the law firms around it, economists estimate what trade would have been without a disputed measure.
Called it? Heckscher and Ohlin's theory, read for the United States after 1945, said that the country best endowed with capital should export capital-intensive goods. Leontief's table found the reverse. Leamer later showed that the table was the wrong test, and by the right one America was rich in capital after all; but Trefler found the theory's predicted trade in factors far larger than the real thing. The verdict: partly right. The theory's logic survives, but it predicts trade well only once Ricardo's differences in technology are added back.
What it does: Trade ministries, customs, trade remedies; Called it? on Heckscher and Ohlin
15Frontier: testing Ricardo in the fieldsResearch2 min
Ricardo's theory is about productivity in goods a country does not make, which is why it is hard to test. You see how good Portugal is at wine, but not how good it would be at cloth if it tried. In agriculture, Arnaud Costinot and Dave Donaldson found a way round it. Agronomists at the Food and Agriculture Organization model how much of each crop any plot of land could yield, given its soil and climate, whether or not the crop is grown there: 17 crops, 1.6 million plots, 55 countries. Feed those productivities into a Ricardian model, predict what each country should grow, and compare with what it does grow: the slope is 0.21, far from one but clearly positive. Comparative advantage, measured where it can be, has real explanatory power.
The open questions. In 2002 Jonathan Eaton and Samuel Kortum turned Ricardo into a model of many countries, each drawing its productivity in each good at random; it is the engine of Part thirty-six. How large the gains are once there are many sectors and goods traded as inputs. How fast comparative advantage changes, and whether policy can change it, the question of industrial policy in Part sixty-six. Who inside a country gains, and how long adjustment takes. And trade in services and in tasks, which the old theories were not built for.
What it does: Costinot and Donaldson; Eaton and Kortum; open questions
Recap, problems, and the road aheadAll tracks3 min
So: why do countries trade, and who wins and loses when they do? Because relative costs differ, through technology and through what countries have, trade lets each buy what is dear to make at home, and the country as a whole gains. But not everyone in it. The owners of the factors that imports use intensively, and of those stuck in industries that compete with imports, lose. Because they are few and concentrated, they often win the politics. The winners could compensate them, and rarely do.
Part thirty-five in twelve lines. Trade in rich economies is twice the share of output it was in the 1930s. A country worse at everything still gains from trade, and so does its partner. Ricardo's four numbers say why: relative costs, not absolute ones, decide who sells what, and wages follow productivity. With many goods, growth abroad raises wages at home while moving industries away. Japan's opening passes the theory's test. With equal technologies, endowments decide trade, and trade in goods equalizes the prices of factors. Stolper and Samuelson show that a country's scarce factor loses. Leontief's paradox and Trefler's missing trade show that technology differences are needed too. In the short run, the factors stuck in an industry gain or lose most. A small country's tariff makes it poorer; a large one's makes its neighbour poorer. So countries fall into trade wars, and sign agreements to escape them. And the gains from trade are real, a few percent of income.
The problems. Comparative advantage with four numbers, and a large country that gains nothing; Ricardo's wage band; the continuum model; the magnification effect; the triangles of a tariff; the optimal tariff; and a starred proof of the factor-content prediction that Trefler tested. Full solutions are in the part's notes.
The reading: Krugman, Obstfeld and Melitz for the undergraduate course; Feenstra's Advanced International Trade for the graduate one; Douglas Irwin's history of American trade policy; and Costinot and Rodriguez-Clare's chapter, which puts numbers on the theories. Then the papers, from Ricardo to Costinot and Donaldson.
This part asked why countries trade. The next asks what they trade, and with whom. On the twenty-sixth of April 1956 a converted tanker, the Ideal X, left Newark for Houston with fifty-eight truck trailers on its deck. Its owner, Malcom McLean, a trucker, had seen how slow and costly it was to load a ship by hand. The box he put to sea changed what it costs to move a thing across the world. Part thirty-six: scale, firms and gravity. Why is most trade between similar countries, and what did a generation of imports from China do?
Where it goes next. Part 36 explains two-way trade with scale and firms, measures the trade elasticity with gravity, and follows the China shock's losers; Part 37 asks where economic activity locates; Part 66 returns to tariffs, trade wars and industrial policy.
Key results
The part's results in one place, for revision.
Try it
Lab 35 · Comparative advantage: who trades what, and who gains
Solve Ricardo's model and find the world price and the wage band; move the continuum with growth and shipping costs; run Bernhofen and Brown's test; solve the Heckscher-Ohlin world and its theorems; recompute Trefler's missing trade; follow a price change through specific factors; price a tariff, a quota and the optimal tariff; and play the tariff war.
python -m videos.economics.labs 35
needs numpy, scipy, matplotlib · download lab35.py ·
source on GitHubthe Island and the Archipelago: world price (fish per bolt); gains 3.00; 22.5%, 15.5%
Ricardo: price of wine in cloth; Portugal's wage over England's (band 1.11 to 1.50) 1.000; 1.250
continuum: relative wage and share of goods; after the Archipelago grows; non-traded with shipping 0.778, 0.280; 0.896, 0.230; 0.110
Japan: the inner product at 1851-53 prices, 1868-75 (millions of ryo) -0.18, -2.47, -6.31, -4.17, -4.28, -6.31, -5.11, -8.06
Heckscher-Ohlin: world price of machines; the Island's net exports of cloth and machines 1.043; 42.4, -40.6
Stolper-Samuelson (cloth +10%): wage, rent; Rybczynski (capital +10%): cloth, machines +18.2%, -6.9%; -34.2%, +13.1%
Leontief's ratio of capital per worker, imports to exports 1.300
Trefler's data: sign test; variance ratio; rank correlation 0.498; 0.0266; 0.129
specific factors (food +10%): wage, capital, land +5.1%, -4.9%, +15.1%
a small tariff: consumers, producers, revenue, deadweight -55, +25, +20, -10
the large country's optimal tariff: specific; ad valorem; 1/elasticity 0.750; 0.200; 0.200
protection for sale (a = 50): highest organized tariff; lowest unorganized 6.7%, -0.45%
the tariff war: Nash tariff; payoffs (free, tariff) and (tariff, tariff) against free trade 0.833; -0.810, -0.347
gains from trade (ACR, lambda 0.93): eps 5 and 10 1.44%, 0.72%
Relative, not absolute, costs decide who sells what, and both sides gain; endowments decide trade too, and inside each country the scarce or stuck factor loses. The tests pass where they can be run (Japan) and the factor-content prediction needs technology differences to fit. A small country's tariff costs it two triangles; a large one gains at its neighbour's expense, which is why agreements exist.
The code (127 lines; it asserts its own result)
"""Lab 35: comparative advantage: Ricardo's world and the Island's, the chain and the Dornbusch-Fischer-Samuelson
continuum, Bernhofen and Brown's test on Japan, the Heckscher-Ohlin world with Stolper-Samuelson and Rybczynski,
Trefler's factor-content statistics from his data, specific factors, tariffs and the optimal tariff, protection for
sale, a tariff war, and the gains-from-trade formula of Arkolakis, Costinot and Rodriguez-Clare."""
import numpy as np
from videos.coursekit import labs
from explainer.economics import data
from explainer.economics.agora import trade
from explainer.economics.data import tables
from explainer.economics.island import truths
TITLE = "Comparative advantage: who trades what, and who gains"
GOAL = ("Solve Ricardo's model and find the world price and the wage band; move the continuum with growth and "
"shipping costs; run Bernhofen and Brown's test; solve the Heckscher-Ohlin world and its theorems; recompute "
"Trefler's missing trade; follow a price change through specific factors; price a tariff, a quota and the "
"optimal tariff; and play the tariff war.")
TASKS = [
"Ricardo: give Portugal twice England's workers instead of 0.8 times. What is the world price, and who gains?",
"Continuum: make shipping lose a third of every cargo (g = 0.67). What share of goods is no longer traded?",
"Trefler: drop the two land factors (cropland and pasture). Does the sign test improve?",
]
def run(seed=0):
lab = labs.Lab()
T = truths(35)
P = T["playit"]
R = trade.ricardo_trade(P["island"], P["arch"], P["L_island"], P["L_arch"], P["beta"])
lab.row("the Island and the Archipelago: world price (fish per bolt); gains", f"{R['p']:.2f}; "
f"{100 * R['H']['gain']:.1f}%, {100 * R['F']['gain']:.1f}%")
assert R["pH"] < R["p"] < R["pF"] and R["H"]["gain"] > 0 and R["F"]["gain"] > 0
Ri = tables.RICARDO_1817.data
aE, aP = (Ri["England"]["cloth"], Ri["England"]["wine"]), (Ri["Portugal"]["cloth"], Ri["Portugal"]["wine"])
RR = trade.ricardo_trade(aE, aP, T["ricardo"]["L_england"], T["ricardo"]["L_portugal"])
wp = RR["wage_ratio"] # Portugal's wage over England's (Portugal exports wine, good 2)
lab.row("Ricardo: price of wine in cloth; Portugal's wage over England's (band 1.11 to 1.50)",
f"{RR['p']:.3f}; {wp:.3f}")
assert 100 / 90 <= wp <= 120 / 80
D = T["dfs"]
z = (np.arange(D["n"]) + 0.5) / D["n"]
A = D["level"] * np.exp(D["k"] * (1 - 2 * z))
f0, f1 = trade.dfs(A, L=D["L"], Lf=D["Lf"]), trade.dfs(A, L=D["L"], Lf=D["Lf"] * D["growth"])
fs = trade.dfs(A, L=D["L"], Lf=D["Lf"], g=D["g"])
lab.row("continuum: relative wage and share of goods; after the Archipelago grows; non-traded with shipping",
f"{f0['omega']:.3f}, {f0['share_home']:.3f}; {f1['omega']:.3f}, {f1['share_home']:.3f}; "
f"{fs['nontraded'].mean():.3f}")
assert f1["omega"] > f0["omega"] and f1["share_home"] < f0["share_home"]
B = tables.BERNHOFEN_BROWN_2004.data
lab.row("Japan: the inner product at 1851-53 prices, 1868-75 (millions of ryo)",
", ".join(f"{v:.2f}" for v in B["total"]))
assert all(v < 0 for v in B["total"])
H = T["ho"]
W = trade.ho_world(H["alphas"], {"island": H["island"], "arch": H["arch"]}, H["beta"])
ss = trade.stolper_samuelson(H["alphas"], (1.0, W["p"]), 0.10, 0)
ry = trade.rybczynski(H["alphas"], (1.0, W["p"]), *H["arch"], 0.10)
lab.row("Heckscher-Ohlin: world price of machines; the Island's net exports of cloth and machines",
f"{W['p']:.3f}; {W['island']['X'][0]:.1f}, {W['island']['X'][1]:.1f}")
lab.row("Stolper-Samuelson (cloth +10%): wage, rent; Rybczynski (capital +10%): cloth, machines",
f"{100 * ss['dw']:+.1f}%, {100 * ss['dr']:+.1f}%; {100 * ry['dQ'][0]:+.1f}%, {100 * ry['dQ'][1]:+.1f}%")
assert W["island"]["X"][0] > 0 > W["island"]["X"][1] and ss["dw"] > 0.10 > 0 > ss["dr"]
F = trade.factor_content(data.trefler())
Lt = trade.leontief_ratio(tables.LEONTIEF_1953.data["exports"], tables.LEONTIEF_1953.data["imports"])
lab.row("Leontief's ratio of capital per worker, imports to exports", f"{Lt['ratio']:.3f}")
lab.row("Trefler's data: sign test; variance ratio; rank correlation",
f"{F['sign_test']:.3f}; {F['variance_ratio']:.4f}; {F['rank']:.3f}")
assert 0.45 < F["sign_test"] < 0.55 and F["variance_ratio"] < 0.05
S = T["specific"]
c = trade.specific_change(S["pM"], S["pA"], S["dpA"], L=S["L"], K=S["K"], T=S["T"], theta=S["theta"])
lab.row("specific factors (food +10%): wage, capital, land", f"{100 * c['dw']:+.1f}%, {100 * c['drK']:+.1f}%, "
f"{100 * c['drT']:+.1f}%")
assert 0 < c["dw"] < S["dpA"] < c["drT"] and c["drK"] < 0
t = T["tariff"]
sm = trade.tariff_small(t["a"], t["b"], t["c"], t["d"], t["pw"], t["t"])
op = trade.optimal_tariff(t["a"], t["b"], t["c"], t["d"], t["e"], t["f"])
lab.row("a small tariff: consumers, producers, revenue, deadweight", f"{-sm['cs_loss']:.0f}, +{sm['ps_gain']:.0f}, "
f"+{sm['revenue']:.0f}, {-(sm['dwl_production'] + sm['dwl_consumption']):.0f}")
lab.row("the large country's optimal tariff: specific; ad valorem; 1/elasticity", f"{op['t']:.3f}; "
f"{op['ad_valorem']:.3f}; {op['inverse_elasticity']:.3f}")
assert abs(op["ad_valorem"] - op["inverse_elasticity"]) < 1e-3
G = T["gh"]
rng = np.random.default_rng(G["seed"] + seed)
zz, ee = rng.uniform(0.5, 6.0, G["n"]), rng.uniform(1.0, 3.0, G["n"])
tt = trade.protection_for_sale(zz, ee, G["organized"], G["a"], G["alpha_L"])
lab.row("protection for sale (a = 50): highest organized tariff; lowest unorganized",
f"{100 * tt[np.array(G['organized']) == 1].max():.1f}%, "
f"{100 * tt[np.array(G['organized']) == 0].min():.2f}%")
Wr = trade.tariff_war(**T["war"])
pay = Wr["payoffs"]
lab.row("the tariff war: Nash tariff; payoffs (free, tariff) and (tariff, tariff) against free trade",
f"{Wr['nash']:.3f}; {pay[('free', 'tariff')][0]:+.3f}, {pay[('tariff', 'tariff')][0]:+.3f}")
assert pay[("tariff", "free")][0] > 0 > pay[("tariff", "tariff")][0]
A_ = tables.ACR_2012.data
lab.row("gains from trade (ACR, lambda 0.93): eps 5 and 10", f"{100 * trade.acr_gains(A_['lambda'], 5):.2f}%, "
f"{100 * trade.acr_gains(A_['lambda'], 10):.2f}%")
lab.note = ("Relative, not absolute, costs decide who sells what, and both sides gain; endowments decide trade "
"too, and inside each country the scarce or stuck factor loses. The tests pass where they can be run "
"(Japan) and the factor-content prediction needs technology differences to fit. A small country's "
"tariff costs it two triangles; a large one gains at its neighbour's expense, which is why agreements "
"exist.")
fig, ax = labs.figure(2, size=(11, 4.4))
ax[0].plot(z, A, color=labs.BLUE, label="A(z): the Island's edge")
ax[0].plot(z, trade.dfs_demand(z, D["L"], D["Lf"]), color=labs.ORANGE, label="B(z)")
ax[0].plot(z, trade.dfs_demand(z, D["L"], D["Lf"] * D["growth"]), color=labs.ORANGE, ls="--",
label="B(z), the Archipelago grown")
ax[0].set(ylim=(0, 2), title="The continuum of goods", xlabel="goods, z", ylabel="relative wage")
ax[0].legend()
ax[1].scatter(F["predicted"], F["measured"], s=6, color=labs.BLUE)
ax[1].plot([-8, 8], [-8, 8], color="grey", ls="--")
ax[1].set(xlim=(-8, 8), ylim=(-8, 8), title="Trefler's missing trade", xlabel="predicted factor content",
ylabel="measured")
lab.fig = fig
return lab
Now change it
- Ricardo: give Portugal twice England's workers instead of 0.8 times. What is the world price, and who gains?
- Continuum: make shipping lose a third of every cargo (g = 0.67). What share of goods is no longer traded?
- Trefler: drop the two land factors (cropland and pasture). Does the sign test improve?
Problems, with solutions
Try each problem before opening its solution.
1. Ricardo: Home needs 1 hour for a fish and 2 for a bolt of cloth; Foreign 3 and 4. Who has the comparative advantage in cloth, and between which prices can they trade?
Solution
A bolt costs Home 2 fish (2 hours could land 2 fish) and Foreign 4/3 of a fish. Foreign has the comparative advantage in cloth though it is worse at both; Home in fish. Trade can happen at any price between 4/3 and 2 fish a bolt; outside that range one country would want to make both goods.
2. The same, with 1,200 hours each and half of spending on each good: find the world price, and show that Home gains nothing.
Solution
Fully specialized, Home lands 1,200 fish and Foreign weaves 300 bolts; with equal spending shares the price would be 1,200/300 = 4 fish a bolt, above Home's own cost of 2. So Home also weaves, and the price is Home's autarky price, 2: Home's options are unchanged and it gains nothing, while Foreign, trading at a price far from its own, takes all the gain (22.5% here). A large country trading with a small one may gain little.
3. Wages: with Ricardo's numbers, show that Portugal's wage relative to England's lies between 10/9 and 3/2.
Solution
With wages w_P and w_E, cloth costs 100 w_E in England and 90 w_P in Portugal; England makes cloth only if 100 w_E ≤ 90 w_P, so w_P/w_E ≥ 10/9. Wine costs 120 w_E and 80 w_P; Portugal makes wine only if 80 w_P ≤ 120 w_E, so w_P/w_E ≤ 3/2. Demand picks the point in between: 1.25 in this part's world.
4. Continuum: with equal spending shares, show that ω = z̄/(1 − z̄) · L/L, and that a larger L* raises ω and lowers z̄.*
Solution
Home makes goods [0, z̄], so the world spends a share z̄ of its income on them: wL = z̄(wL + wL). Rearranged, w/w* = z̄/(1 − z̄) · L*/L, the rising B curve. A larger L* shifts B up; since A(z) falls, they now cross at a higher ω and a lower z̄: Home's wage rises and it makes fewer goods.
5. Stolper-Samuelson: with labour shares 0.7 and 0.3, show that a 10% rise in cloth's price raises the wage 17.5% and lowers the rent 7.5%, to first order.
Solution
Zero profits in proportional changes: p̂₁ = 0.7ŵ + 0.3r̂ and p̂₂ = 0.3ŵ + 0.7r̂. With p̂₂ = 0, r̂ = −(3/7)ŵ, so p̂₁ = (0.7 − 0.9/7)ŵ = (4/7)ŵ and ŵ = 1.75 p̂₁ = 17.5%, r̂ = −0.75 p̂₁ = −7.5%. (Exactly, in logs, the wage rises 18.2% and the rent falls 6.9%, as the chapter shows.)
6. Tariff: D = 100 − 10p, S = 10p − 20, world price 4, tariff 1. Find the consumers' loss, the producers' gain, the revenue and the deadweight loss.
Solution
At 4: demand 60, supply 20, imports 40. At 5: demand 50, supply 30, imports 20. Consumers lose the area between the prices under demand, (60 + 50)/2 = 55; producers gain (20 + 30)/2 = 25; revenue is 1 × 20 = 20; the deadweight loss is 55 − 25 − 20 = 10, two triangles of 5.
7. Optimal tariff: import demand M = 120 − 20p, foreign supply X* = 40p* − 120. Find the best tariff, and check that t/p* = 1/ε*.
Solution
With p = p* + t, clearing gives 120 − 20(p* + t) = 40p* − 120, so p* = 4 − t/3 and imports M = 40 − 40t/3. Welfare relative to free trade, measuring the home market's surplus loss and the revenue, is maximized at t = 0.75: then p* = 3.75, imports 30, and the foreign supply elasticity is ε* = 40 × 3.75/30 = 5, so t/p* = 0.2 = 1/ε*.
8. \(\bigstar\) Show that identical technologies, equal factor prices and identical homothetic tastes imply F_c = V_c − s_c V_w.
Solution
With identical technologies and equal factor prices, every country uses the same matrix A of factor requirements per unit of output. Full employment gives A Q_c = V_c. Identical homothetic tastes at common prices make every country's consumption a fraction of world consumption, C_c = s_c C_w, where s_c is its share of world spending, and the world consumes what it produces, C_w = Q_w. The factor content of net exports is then F_c = A(Q_c − C_c) = V_c − s_c A Q_w = V_c − s_c V_w. Trefler's test compares both sides.
Notes and sources
Sources
The studies the film states are listed with what each shows in dials.SHOWN[35]; the gains from trade are a dial
(explainer/economics/dials.py); Heckscher and Ohlin's prediction for America is a Called it? entry
(explainer/economics/calls.py). The Macrohistory Database (release 6) and FRED's series were retrieved on
2026-11-20, and Trefler's data file from NBER on the same day. Bernhofen and Brown's tables were transcribed from the
published article; Samuelson's words are given as several sources reproduce them, since his 1969 lecture itself was
not read; Japan's opening (Perry's arrival in 1853, the treaty ports in July 1859) is as the article describes it; the
Ideal X's voyage of 26 April 1956 with fifty-eight trailers was checked against several accounts, which agree.
About this partfrom its README
Part 35 of a sixty-eight-part course in economics (see the series plan and the syllabus), the second of Act VII, The World Economy. It asks why countries trade, and who wins and loses when they do. Its answer: relative costs differ, through technology and through what countries have, so trade lets each buy what is dear to make at home, and the country as a whole gains. But not everyone in it: the owners of the factors that imports use intensively, and of those stuck in industries that compete with imports, lose. Because they are few and concentrated, they often win the politics. The winners could compensate them, and rarely do.
It opens on Stanislaw Ulam's challenge to Paul Samuelson, to name one proposition in the social sciences that is both true and not trivial, and Samuelson's answer, as he told it in 1969: Ricardo's comparative advantage. From there it covers:
- trade, exports plus imports, in eighteen rich economies since 1870: 33% of GDP in the median economy in 1870, 42% in 1913, 25% in 1932 and 60% in 2019;
- a game: the Island needs 3 hours for a fish and 6 for a bolt of cloth, the Archipelago 1 and 4; who should make what? The Island weaves, and at 3 fish a bolt both gain (22% and 15%); its wage is half the Archipelago's;
- Ricardo's four numbers (England 100 and 120, Portugal 90 and 80): the world supply staircase, a price of one cloth for a wine, gains for both, and Portugal's wage 1.25 times England's, inside the band from 10/9 to 3/2;
- the chain of comparative advantage and the Dornbusch-Fischer-Samuelson continuum: when the Archipelago grows by half, the Island's relative wage rises from 0.78 to 0.90 while it gives up industries; shipping costs leave 11% of goods untraded;
- Japan's opening in 1859, with Bernhofen and Brown's tables: silk, silkworm eggs and tea were four fifths of its exports; its trade valued at the prices of 1851-53 is negative in all eight years from 1868 to 1875, as the theory requires; the gains were at most 8 to 9% of GDP, and America's embargo of 1807-09 cost about 5%;
- Heckscher and Ohlin's factor proportions in the Lerner diagram, on the Island (labour-abundant) and the Archipelago (capital-abundant): each exports the good that uses its abundant factor, and factor prices equalize; Rybczynski's magnification (10% more capital, 13% more machines and 34% less cloth);
- Stolper and Samuelson: a 10% rise in the price of cloth raises the wage 18% and lowers the rent 7%; opening to trade, each country's scarce factor loses;
- Leontief's paradox ($13,991 of capital per worker-year in exports against $18,184 in import replacements, 1947), four answers including Leamer's, and Trefler's missing trade, recomputed from his data: the measured factor content of trade has the predicted sign 50% of the time and about a thirty-eighth of the predicted variance;
- an intermission without narration: America's customs duties as a share of its goods imports since 1929, as a tune;
- specific factors: a 10% rise in the price of food raises land rents 15%, the wage 5% and lowers the return to capital 5%; Olson's logic of concentrated losers and diffuse winners;
- a tariff's triangles on the Island's cloth market, a quota and its rent, and the large country's optimal tariff (20%, the inverse of the foreign supply elasticity);
- protection for sale: the Corn Laws, Smoot-Hawley (40% to 59% on dutiable imports, much of it from deflation) and the collapse of trade; Grossman and Helpman's formula on ten industries, and Goldberg and Maggi's estimate;
- a tariff war as a prisoner's dilemma, with best responses; the GATT, reciprocity, most-favoured-nation treatment and the WTO; America's average tariff on goods, 2.6% in 2024 and 8.0% in 2025;
- compensation: when food falls 20%, landowners lose a fifth and factory owners gain a quarter, and the winners could pay the losers and still be ahead; the is/ought step; trade adjustment assistance and Hyman's estimate;
- a new dial, the gains from trade; the Fact that rich countries mostly trade similar goods (America's two-way trade in capital goods, 0.77 on the Grubel-Lloyd index); Called it? on Heckscher and Ohlin's prediction for America (partly right); a frontier chapter on Costinot and Donaldson's test and Eaton and Kortum's model.
What is computed and built
Everything plotted is computed by compute.py from Agora's trade (explainer.economics.agora.trade) with the
Island's Part 35 truths, or from the Data Room; the narration states the cached numbers.
- Openness. (exports + imports) / GDP from the Macrohistory Database, each in national currency; the median of the economies with data in each year (at least ten), and the United States.
- Ricardo. Two goods, labour only, Cobb-Douglas demand with half of spending on each good. The world relative supply is a step function; with full specialization the price is (1 − β)/β times the ratio of world outputs, clamped to the two autarky prices (and a country whose autarky price it is makes both goods).
- The continuum. 200 goods with the Island's productivity edge A(z) = 0.4 exp(1.5(1 − 2z)), equal spending shares, the Archipelago's labour twice the Island's; the relative wage balances trade. With iceberg costs (85% of a cargo arrives) the Island exports z with ω ≤ 0.85 A(z), the Archipelago z with ω ≥ A(z)/0.85.
- Japan. Bernhofen and Brown's table 2, rows summed; their table 1 for the composition.
- Heckscher-Ohlin. Cobb-Douglas technologies with labour shares 0.7 (cloth) and 0.3 (machines); zero profits give log-linear equations for the wage and the rent; outputs from full employment; the world price by root-finding on world relative demand. The Island has 120 workers and 50 units of capital, the Archipelago 80 and 130.
- Trefler. For each factor f and country c, the predicted factor content is V_fc − s_c V_fw, with s_c = (Y − B)/ (Y_w − B_w); both measured and predicted are divided by σ_f √s_c, as in the paper, and pooled.
- Specific factors. 100 workers; capital 100 in manufacturing and land 100 in farming; Cobb-Douglas with labour share 0.5 in both; the wage equalizes the values of the marginal products.
- Tariffs. The Island's cloth market D = 100 − 10p, S = 10p − 20 at a world price of 4; as a large country, the Archipelago's export supply X* = 40p* − 120.
- Protection for sale. Ten industries with output/imports drawn between 0.5 and 6 and import elasticities between 1 and 3 (seed 35), four organized, 5% of the population organized, weights on welfare of 50 and 5.
- The tariff war. Two mirror-image economies, each importing one good: demand 10 − p in both, supply 0.5p at the importer and 2p at the exporter; best responses by bounded optimization, the Nash tariff by iteration.
- The dial. 1 − λ^{1/ε} with λ = 1 − (imports of goods and services)/GDP for 2025 and ε = 5 and 10.
- The Fact. The Grubel-Lloyd index 1 − |X − M|/(X + M) for three end-use categories (NIPA table 4.2.5).
- The intermission. Customs duties (NIPA) over imports of goods, annual, 1929-2025.
Chapter notes
| # | Chapter | What it does |
|---|---|---|
| 0 | True and not trivial | Ulam's challenge and Samuelson's answer; trade since 1870; the question; objectives |
| 1 | Play it: four numbers | The Island and the Archipelago; opportunity costs; frontiers and the gains; wages |
| 2 | Ricardo's four numbers | England and Portugal; the world supply staircase; the gains; the wage band |
| 3 | Many goods | The chain; the continuum; growth abroad; shipping costs and non-traded goods |
| 4 | A test: Japan opens | The treaty ports; the composition of trade; the inner product; the size of the gains |
| 5 | Factor proportions | Heckscher and Ohlin; the Lerner diagram; trade and factor price equalization; four theorems |
| 6 | Stolper and Samuelson | Factor prices against goods prices; the magnification effect; who gains from opening |
| 7 | Leontief's paradox and the missing trade | Leontief's table; four answers; Trefler's test recomputed |
| — | Intermission | America's average tariff on goods since 1929, as a tune |
| 8 | Specific factors | The labour diagram; who loses first; concentrated losers and diffuse winners |
| 9 | Tariffs and quotas | The triangles; a quota's rent; the large country's optimal tariff |
| 10 | Protection for sale | The Corn Laws and Smoot-Hawley; the collapse of trade; Grossman and Helpman |
| 11 | Trade agreements | The tariff war as a dilemma; best responses; the GATT and the WTO |
| 12 | Compensation | Winners and losers when the Island opens; is and ought; trade adjustment assistance |
| 13 | The Dials | The gains-from-trade formula; the new dial; the Fact of two-way trade |
| 14 | In practice | Trade ministries, customs, trade remedies; Called it? on Heckscher and Ohlin |
| 15 | Frontier | Costinot and Donaldson; Eaton and Kortum; open questions |
| — | Outro | The answer; twelve lines; problems; reading; next, Part 36, Trade II: Scale, Firms and Gravity |
Notes
python -m videos.economics.labs 35: Ricardo's world and the Island's, the continuum with growth and shipping costs, Bernhofen and Brown's test, the Heckscher-Ohlin world with Stolper-Samuelson and Rybczynski, Trefler's statistics from his data, specific factors, tariffs and the optimal tariff, protection for sale, the tariff war, and the gains-from-trade formula.- The interactive (course site): four numbers. The reader sets the hours each island needs for each good and the size of each, and sees who makes what, the world price, and each island's gain.
Companion material in this repository
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: the challenge; the question; objectives.
- Play it: two countries, two goods, four numbers. One country is worse at both: who should make what?
- Ricardo (1817): the four numbers; relative prices; the gains for both.
- Many goods: the chain of comparative advantage; a continuum (Dornbusch, Fischer and Samuelson 1977).
- A test: Japan forced open in 1859 (Bernhofen and Brown 2004, 2005): the pattern and the size of the gain.
- Factor proportions: Heckscher and Ohlin; the four theorems in the Lerner diagram.
- Stolper and Samuelson (1941): trade has losers inside each country, by factor.
- Leontief's paradox (1953) and the tests since (Trefler 1995: the case of the missing trade).
- Specific factors: who loses in the short run; why losers are concentrated and gainers diffuse.
- Tariffs and quotas in partial equilibrium: the two triangles; the large-country optimal tariff.
- The political economy: protection for sale (Grossman and Helpman 1994); Smoot–Hawley; the Corn Laws.
- Trade agreements as an escape from a prisoner's dilemma (Bagwell and Staiger 1999); the GATT and WTO.
- Compensation: the theory and the record of trade adjustment assistance.
- Dials. 14. In practice: trade ministries, customs analysis. 15. Frontier: testing Ricardo with agricultural potential (Costinot and Donaldson 2012).
Agora: trade (I): Ricardian models with two, many and a continuum of goods; a 2×2×2 Heckscher–Ohlin world;
tariff analysis. The two islands trade.
Dials: the gains from trade for one opened economy. Facts: rich countries trade similar goods with each
other (the puzzle Part 36 answers).
Called it? Heckscher–Ohlin's prediction for US trade against Leontief's table.
Reading: Ricardo 1817 ch 7; Stolper & Samuelson 1941; Leontief 1953; Dornbusch, Fischer & Samuelson 1977;
Bernhofen & Brown 2005; Grossman & Helpman 1994; Krugman, Obstfeld & Melitz chs 2–6, 9–10; Feenstra chs 1–3.
Build the film
python -m videos.economics.econ35.compute # the part's numbers, into .cache/econ35
python tools/build.py econ35 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py econ35 Hook # one chapter, silent, with a contact sheet
Scenes: videos/economics/econ35. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
python -m videos.economics.econ35.compute # every number (a few seconds), into .cache/econ35/
python tools/qa_scene.py econ35 Tariff # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py econ35 -q l # the whole part, silent preview
python tools/build.py econ35 # 1080p30 with narration and the series' computed score
python -m videos.economics.labs 35 # the lab
The data are in explainer/economics/data/, registered in
SOURCES.md: the Jordà-Schularick-Taylor Macrohistory Database
(release 6, CC BY-NC-SA 4.0) for exports, imports and GDP since 1870; from FRED, the BEA's customs duties, imports of
goods, imports and GDP, and exports and imports by end use; Trefler's 1983 factor-content data (NBER); and the tables
transcribed in tables.py from Ricardo, Bernhofen and Brown, Irwin, Leontief, Trefler, Goldberg and Maggi,
Arkolakis, Costinot and Rodríguez-Clare, Costinot and Donaldson, and the record of trade adjustment assistance.