Sub topic 12
Comparative advantage from opportunity costs
This chapter assumes you can read a PPF, know that opportunity cost means the best alternative given up, and can compute a slope. Here you will use opportunity costs to decide which country should produce which good. The answer comes from comparing costs, not from comparing who is more productive.
Two ways to compare producers
Suppose two countries, A and B, each use all their resources on wheat or cloth.
| Country | Maximum wheat | Maximum cloth |
|---|---|---|
| A | 60 | 30 |
| B | 20 | 20 |
Country A can produce more of both goods than B. That is an absolute advantage: the ability to produce more of a good with the same resources. A has it in wheat (60 against 20) and in cloth (30 against 20).
A comparative advantage is the ability to produce a good at a lower opportunity cost than another producer. Opportunity cost depends on what else the resources could make, so it can differ between countries even when one country is better at everything.
The two ideas answer different questions. Absolute advantage asks who needs fewer resources per unit. Comparative advantage asks who gives up less of the other good. Trade decisions depend on the second question.
Computing opportunity cost from the frontier
If a country's PPF is a straight line, the opportunity cost of one good is the ratio of the two intercepts. Moving from all cloth to all wheat gives up the maximum cloth to gain the maximum wheat, so:
- Opportunity cost of 1 wheat, in cloth = maximum cloth ÷ maximum wheat.
- Opportunity cost of 1 cloth, in wheat = maximum wheat ÷ maximum cloth.
For the table above:
- A: 1 wheat costs 30 ÷ 60 = 0.5 cloth. 1 cloth costs 60 ÷ 30 = 2 wheat.
- B: 1 wheat costs 20 ÷ 20 = 1 cloth. 1 cloth costs 20 ÷ 20 = 1 wheat.
The two costs for one country are reciprocals. A gives up 0.5 cloth per wheat, so it gives up 1 ÷ 0.5 = 2 wheat per cloth. This reciprocity is why, with two goods, one country always has the advantage in one good and the other country in the other (unless the costs are identical).
Compare the wheat costs: A pays 0.5 cloth and B pays 1 cloth. A has the lower cost, so A has the comparative advantage in wheat. Compare the cloth costs: A pays 2 wheat and B pays 1 wheat. B has the lower cost, so B has the comparative advantage in cloth. A is better at both goods in absolute terms, yet B still has a comparative advantage in cloth.
def opportunity_costs(max_wheat, max_cloth):
"""Return (cost of 1 wheat in cloth, cost of 1 cloth in wheat)."""
return max_cloth / max_wheat, max_wheat / max_cloth
def comparative_advantage(country_1, country_2):
"""Each country is (name, max_wheat, max_cloth). Prints who should make what."""
n1, w1, c1 = country_1
n2, w2, c2 = country_2
wheat_cost_1, cloth_cost_1 = opportunity_costs(w1, c1)
wheat_cost_2, cloth_cost_2 = opportunity_costs(w2, c2)
print(f"{n1}: 1 wheat = {wheat_cost_1} cloth, 1 cloth = {cloth_cost_1} wheat")
print(f"{n2}: 1 wheat = {wheat_cost_2} cloth, 1 cloth = {cloth_cost_2} wheat")
if wheat_cost_1 == wheat_cost_2:
print("Equal opportunity costs: no comparative advantage, no gains from specialising.")
elif wheat_cost_1 < wheat_cost_2:
print(f"{n1} has the comparative advantage in wheat; {n2} in cloth.")
else:
print(f"{n2} has the comparative advantage in wheat; {n1} in cloth.")
comparative_advantage(("A", 60, 30), ("B", 20, 20))Running this prints A's costs as 0.5 and 2.0, B's costs as 1.0 and 1.0, and then reports that A has the comparative advantage in wheat and B in cloth.
The check on the wheat cost is enough. Because the cloth costs are the reciprocals of the wheat costs, the country with the lower wheat cost always has the higher cloth cost.
A procedure you can repeat
Why specialising pays: a worked case
Assume that before trade each country produces at the midpoint of its straight frontier.
- A makes 30 wheat and 15 cloth.
- B makes 10 wheat and 10 cloth.
- World output is 40 wheat and 25 cloth.
Now let A produce 10 more wheat, and let B stop producing wheat.
- A moves along its frontier from 30 to 40 wheat. At 0.5 cloth per wheat, it gives up 5 cloth and ends at 40 wheat and 10 cloth.
- B moves from 10 wheat to 0. At 1 cloth per wheat, it gains 10 cloth and ends at 0 wheat and 20 cloth.
- World output is 40 wheat and 30 cloth.
The world has the same wheat and 5 more cloth. The extra cloth appears because the 10 wheat now come from the country that gives up less cloth to make them. A gives up 5 cloth for the 10 wheat that B used to make at a cost of 10 cloth.
def cloth_given_wheat(wheat, max_wheat, max_cloth):
return max_cloth * (1 - wheat / max_wheat)
before = (30 + 10, cloth_given_wheat(30, 60, 30) + cloth_given_wheat(10, 20, 20))
after = (40 + 0, cloth_given_wheat(40, 60, 30) + cloth_given_wheat(0, 20, 20))
print("before trade:", before)
print("after specialising:", after)The output is before trade: (40, 25.0) and after specialising: (40, 30.0).
The chapter on gains from trade shows how the two countries split this extra output through the price at which they exchange. For now, note that both can gain only if the price of 1 wheat lies between the two opportunity costs, here between 0.5 and 1 cloth. At a price of 0.75 cloth, A earns more cloth per wheat than it gives up making it, and B pays less cloth per wheat than it gives up making its own.
Edge cases and common errors
Confusing absolute and comparative advantage. A producer that is best at everything still gains from trade. The country with the absolute advantage in both goods, here A, should specialise in the good where its advantage is larger, which is wheat (3 times B's output, against 1.5 times for cloth). A producer that is worse at everything still has a comparative advantage in something.
Comparing the wrong ratio. Opportunity cost is a ratio of outputs, not a difference. Compare "cloth given up per wheat" for both countries, using the same direction for both. Mixing A's cloth-per-wheat with B's wheat-per-cloth gives a meaningless comparison.
Equal costs. If two countries have the same opportunity costs, neither has a comparative advantage and specialising creates no extra output. This happens with proportional frontiers, such as A at 40 wheat or 20 cloth and B at 20 wheat or 10 cloth. Both pay 0.5 cloth per wheat.
Treating the cost as fixed on a bowed frontier. The calculation above uses intercept ratios, which is only correct for a straight-line PPF. On a bowed-out frontier, opportunity cost changes with the output mix. You then compare the slopes at the points where each country currently produces. A country's comparative advantage in wheat is therefore relative to where it starts. As a country specialises and its wheat cost rises, the gap can close, and it will usually stop short of complete specialisation.
More than two goods or countries. With many goods, rank them by each country's opportunity cost relative to others. Each country exports the goods where its cost is relatively lowest. A good is not assigned to one country forever, because costs change with technology and resources.
Assuming the numbers are permanent. The frontier assumes fixed resources and technology. If the economy grows or technology shifts, the intercepts change, and so can the comparative advantage.
Summary of the method
- Find each country's maximum output of both goods.
- Compute the opportunity cost of one good as the other good's maximum divided by the first good's maximum.
- Compare the same good's cost across countries. The lower cost marks the comparative advantage.
- Check the reciprocal. The other country has the advantage in the other good, unless the costs are equal.
- If the frontiers are bowed, repeat the comparison with slopes at the relevant points.
Exercise
Country P can produce at most 24 fish or 12 rice. Country Q can produce at most 10 fish or 10 rice. Both have straight-line frontiers. (a) Find each country's opportunity cost of 1 fish and of 1 rice. (b) Which country has the comparative advantage in each good? (c) Which country has the absolute advantage?
Show answer
(a) P: 1 fish costs 12 ÷ 24 = 0.5 rice, and 1 rice costs 24 ÷ 12 = 2 fish. Q: 1 fish costs 10 ÷ 10 = 1 rice, and 1 rice costs 1 fish. (b) P has the lower opportunity cost of fish (0.5 rice against 1 rice), so P has the comparative advantage in fish. Q has the lower opportunity cost of rice (1 fish against 2 fish), so Q has the comparative advantage in rice. (c) P can produce more of both goods (24 against 10 fish, 12 against 10 rice), so P has the absolute advantage in both. Q still gains by specialising in rice.
Exercise
Country M can produce at most 40 wheat or 20 cloth. Country N can produce at most 20 wheat or 10 cloth. Does either country have a comparative advantage? What does that imply for specialising?
Show answer
M's cost of 1 wheat is 20 ÷ 40 = 0.5 cloth. N's cost of 1 wheat is 10 ÷ 20 = 0.5 cloth. The costs are equal, so neither country has a comparative advantage. Moving production between them does not increase total output, so specialising creates no gain from the production side. M still has an absolute advantage in both goods.