Sub topic 6
Specialising according to comparative advantage
This chapter assumes you can compute an opportunity cost from an output table and can tell absolute advantage from comparative advantage. Both were covered in earlier chapters. Here we turn the comparison of opportunity costs into a rule for who should make what. We then check the rule against edge cases: more than two goods, unequal sized producers, and producers with identical cost ratios.
From comparison to assignment
Comparative advantage tells you who gives up less to make a good. Specialisation is the decision that follows: each party puts its time into the good where its opportunity cost is lowest and gets the other good by trading.
We use the same two producers throughout. Each has 10 worker-days. Output per worker-day:
| Producer | Wheat per day | Cloth per day |
|---|---|---|
| X | 10 | 5 |
| Y | 4 | 4 |
X is better at both goods, so X has the absolute advantage in both. That fact does not decide who specialises in what. The opportunity costs do.
output_per_day = {
"X": {"wheat": 10, "cloth": 5},
"Y": {"wheat": 4, "cloth": 4},
}
def opportunity_cost(producer, good, other):
"""Units of `other` given up to make one unit of `good`."""
o = output_per_day[producer]
return o[other] / o[good]
for good, other in [("wheat", "cloth"), ("cloth", "wheat")]:
costs = {p: opportunity_cost(p, good, other) for p in output_per_day}
best = min(costs, key=costs.get)
print(good, costs, "->", best)
# Output:
# wheat {'X': 0.5, 'Y': 1.0} -> X
# cloth {'X': 2.0, 'Y': 1.0} -> YThe rule is: each good should be made by the party with the lowest opportunity cost of making it. X gives up 0.5 cloth per wheat and Y gives up 1.0, so X makes wheat. Y gives up 1.0 wheat per cloth and X gives up 2.0, so Y makes cloth.
Why the assignment works
The argument is about swaps. Take one day of X's time away from cloth and put it into wheat. X loses 5 cloth and gains 10 wheat. Now take Y's time in the opposite direction, from wheat to cloth. Y loses 4 wheat and gains 4 cloth.
Combine the two moves so that the cloth cancels. X moves 4 days from cloth to wheat, losing 20 cloth and gaining 40 wheat. Y moves 5 days from wheat to cloth, losing 20 wheat and gaining 20 cloth. The world's cloth is unchanged, and the world's wheat rises by 40 − 20 = 20.
This is the whole mechanism. X can turn cloth into wheat at a rate of 2 wheat per cloth. Y can turn wheat into cloth at 1 cloth per wheat. Because X's conversion rate is better than Y's, moving production toward the low-cost producer yields more of at least one good without losing any of the other.
The reverse swap shows why the rule cannot be improved. If X made more cloth and Y more wheat, the same calculation gives a net loss of 20 wheat for the same cloth.
The worked assignment in numbers
Before trade, suppose X splits its 10 days as 6 on wheat and 4 on cloth, and Y splits 5 and 5. Each producer has to consume what it makes.
| Row | X | Y | World |
|---|---|---|---|
| Wheat before trade | 60 | 20 | 80 |
| Cloth before trade | 20 | 20 | 40 |
After specialisation, X puts all 10 days into wheat (100 wheat) and Y puts all 10 days into cloth (40 cloth).
| Row | X | Y | World |
|---|---|---|---|
| Wheat produced | 100 | 0 | 100 |
| Cloth produced | 0 | 40 | 40 |
The world has the same 40 cloth and 20 more wheat. The remaining question is how that extra wheat is divided, and that is settled by the price of trade. The code below uses a price of 1.5 wheat per cloth and has Y send 20 cloth to X.
days = 10
x = {"wheat": 10, "cloth": 5} # output per day
y = {"wheat": 4, "cloth": 4}
# Before trade: X uses 6 days on wheat and 4 on cloth; Y splits 5 and 5.
x_before = {"wheat": 6 * x["wheat"], "cloth": 4 * x["cloth"]} # 60 wheat, 20 cloth
y_before = {"wheat": 5 * y["wheat"], "cloth": 5 * y["cloth"]} # 20 wheat, 20 cloth
# Specialise: X makes only wheat, Y makes only cloth.
x_wheat = days * x["wheat"] # 100
y_cloth = days * y["cloth"] # 40
# Trade 20 cloth from Y to X at 1.5 wheat per cloth.
# That price lies between Y's cost (1.0 wheat) and X's cost (2.0 wheat).
price = 1.5
cloth_traded = 20
x_after = {"wheat": x_wheat - price * cloth_traded, "cloth": cloth_traded}
y_after = {"wheat": price * cloth_traded, "cloth": y_cloth - cloth_traded}
print("X before:", x_before, "after:", x_after)
print("Y before:", y_before, "after:", y_after)
# Output:
# X before: {'wheat': 60, 'cloth': 20} after: {'wheat': 70.0, 'cloth': 20}
# Y before: {'wheat': 20, 'cloth': 20} after: {'wheat': 30.0, 'cloth': 20}Each party ends with the same cloth as before and 10 more wheat. Neither gave anything up. Chapters later in this tutorial examine the price range and the division of gains. For now, note that the gains exist because of the assignment, and the price only decides who receives them.
Where the cost ratios come from
The assignment depends on the ratio of the two outputs, not on the level of either. Doubling every number in X's row changes X's absolute advantage but leaves X's opportunity costs unchanged. This is why a highly productive country or person is not automatically a candidate to make everything.
A quick way to see this is to express Y's productivity relative to X's.
| Good | Y's output as a share of X's |
|---|---|
| Wheat | 4 / 10 = 40% |
| Cloth | 4 / 5 = 80% |
Y is weak at both goods, but it is less weak at cloth. Y should make cloth. X is relatively strongest at wheat, so X should make wheat. The phrase to remember is "least bad" for the weaker party and "most good" for the stronger one.
More than two goods
Real economies make many goods, so the rule must still work when there are three or more. The extension is to rank goods by relative productivity. For two producers, compute the ratio of X's output to Y's output for each good. The goods with the highest ratios belong to X. The goods with the lowest ratios belong to Y.
Add tea to the example, with X making 6 and Y making 3 per day.
x = {"wheat": 10, "cloth": 5, "tea": 6}
y = {"wheat": 4, "cloth": 4, "tea": 3}
ratios = {good: x[good] / y[good] for good in x}
for good in sorted(ratios, key=ratios.get, reverse=True):
print(good, ratios[good])
# Output:
# wheat 2.5
# tea 2.0
# cloth 1.25X is 2.5 times as productive as Y at wheat, 2.0 times at tea, and only 1.25 times at cloth. The ordering is wheat, tea, cloth. X's comparative advantage is strongest in wheat and weakest in cloth.
The ranking tells you the order in which goods move from one producer to the other. It does not tell you where the dividing line falls. That depends on how much of each good the two parties want and how much each can supply. If the combined demand for wheat and tea is more than X can make, X makes wheat and some tea, and Y makes the rest of the tea and all the cloth. Only the good at the dividing line is made by both.
When specialisation is partial
In the example, both producers specialise completely. That is a consequence of two simplifying assumptions: the opportunity cost of each good is constant, and the market is large enough for each specialist to supply the whole world. Relaxing either one produces partial specialisation.
Unequal size
Suppose Y is tiny compared with X. Y can make only a small amount of cloth, far less than X wants. X must keep making some cloth itself. Then the price of cloth in terms of wheat is pinned at X's opportunity cost, 2.0 wheat per cloth, because X will not pay more than it costs to make cloth at home. Y receives almost all of the gains, and X receives almost none. X is still weakly better off, and its production pattern barely changes.
This is the case of a small economy trading with a large one. The small economy specialises completely and captures the gains. The large economy stays diversified and gains little.
Rising opportunity costs
Straight-line opportunity costs are a modelling convenience. In most real production, the more of a good you make, the more you give up for each extra unit. Land best suited to wheat is used first, and later wheat uses land better suited to cloth. The production possibilities frontier then curves outward, and the opportunity cost of wheat rises as output rises.
With a curved frontier, a producer stops specialising before reaching the extreme. It expands wheat output until its rising opportunity cost of wheat equals the price it can get in trade. Specialisation is then partial. The direction is the same as in the linear case, but the endpoint is interior.
| Assumption about opportunity cost | Pattern of specialisation |
|---|---|
| Constant, market large enough | Complete: each party makes only one good |
| Constant, one party too small to supply the market | The large party stays partly diversified |
| Rising with output | Partial for both parties, with a shift toward each one's stronger good |
Equal ratios: a case with no gains
If the opportunity costs are the same for both producers, there is nothing to exploit. Imagine X could make 10 wheat or 10 cloth per day and Y could make 4 wheat or 4 cloth per day. X is better at both goods, but both give up exactly 1 unit of one good for 1 of the other. Moving a day of X's time from cloth to wheat costs 10 cloth and yields 10 wheat. Moving a day of Y's time the other way yields 4 cloth for 4 wheat. The swaps cancel exactly, so no reallocation raises total output.
Absolute advantage on its own never creates a case for trade. Differences in opportunity cost do. In practice exact ties are rare. The more similar two producers are, the smaller the gains.
Common mistakes in applying the rule
- Choosing by absolute output. A producer that is best at everything is not automatically assigned everything. In the example, X is better at both goods, and yet X leaves cloth to Y.
- Dividing the wrong way round. Opportunity cost of wheat is cloth over wheat (5 / 10 for X), not wheat over cloth. Dividing the wrong way gives the cost of cloth and reverses the assignment. Always check by writing "to make 1 unit of this good, I give up ..." in words.
- Comparing costs measured in different goods. Compare X's cost of wheat with Y's cost of wheat, both in cloth. Do not compare X's cost of wheat in cloth with Y's cost of cloth in wheat.
- Forgetting that the price decides who gains. The assignment determines that gains exist. It does not determine who gets them. A price at either end of the range leaves one party no better off.
- Treating complete specialisation as required. It follows from the constant-cost assumption. Real producers often stay diversified.
Summary of the procedure
- Write down output per unit of input for each producer and each good.
- Compute each producer's opportunity cost of each good as a ratio.
- For each good, find the producer with the lowest opportunity cost.
- Assign that good to that producer.
- Check the result by recomputing total output of both goods before and after.
With more than two goods, replace step 3 with a ranking of relative productivity ratios.
Exercise
Producer A can make 6 loaves of bread or 3 jars of jam per hour. Producer B can make 2 loaves of bread or 2 jars of jam per hour. Who has the absolute advantage in each good, and who should specialise in which good?
Show answer
A has the absolute advantage in both goods (6 > 2 bread and 3 > 2 jam). A's opportunity cost of one loaf is 3/6 = 0.5 jam, and B's is 2/2 = 1.0 jam, so A should make bread. A's opportunity cost of one jar of jam is 6/3 = 2.0 loaves, and B's is 2/2 = 1.0 loaf, so B should make jam.
Exercise
Using the producers from the previous exercise, each works 8 hours and splits time equally (4 hours on each good) before trade. Compute the total bread and jam before trade and after complete specialisation (A on bread, B on jam). What is the change in world output?
Show answer
Before: A makes 4 × 6 = 24 bread and 4 × 3 = 12 jam. B makes 4 × 2 = 8 bread and 4 × 2 = 8 jam. World total: 32 bread and 20 jam. After: A makes 8 × 6 = 48 bread and B makes 8 × 2 = 16 jam. World total: 48 bread and 16 jam. Bread rises by 16 and jam falls by 4. Because the exchange rate between the goods is 1 jam per 1 loaf for B and 0.5 jam per loaf for A, 16 extra bread is worth more than 4 lost jam to anyone who values a jar of jam at less than 4 loaves, so the outcome is a gain. A more careful split (for example, A only partly on bread) can keep jam at 20 and still raise bread, as in the chapter example.
Exercise
Producer P makes 12 units of good M or 6 units of good N per day. Producer Q makes 6 units of M or 3 units of N per day. Is there a gain from specialisation? Explain.
Show answer
No. P's opportunity cost of one M is 6/12 = 0.5 N, and Q's is 3/6 = 0.5 N. The costs are identical, so shifting production between them never raises total output. P has the absolute advantage in both goods, but that is not enough to create gains.