Sub topic 5
The Decision Rule: Keep Going While MB Is at Least MC
This chapter assumes you can already tell marginal quantities from totals and averages. It also assumes you know what marginal benefit (MB) and marginal cost (MC) mean: the extra benefit and the extra cost of one more unit. Here they combine into one rule for choosing how much of something to do. The rule is simple, but it has a few precise conditions, and most mistakes come from missing one of them.
The rule
Take one more unit of an activity if its marginal benefit is at least its marginal cost. Stop when the next unit's marginal benefit falls below its marginal cost.
The unit can be an hour of study, a slice of pizza, a delivery truck, or a page of a report. The rule works the same way each time. You compare only the next unit's gain with the next unit's price. You do not compare totals, and you do not compare averages.
Why the rule works
Each unit you add changes your net benefit, which is total benefit minus total cost:
change in net benefit = MB of the next unit − MC of the next unit
If MB is greater than MC, the unit adds to your net benefit, so taking it makes you better off. If MB is less than MC, the unit subtracts from it, so skipping it leaves you better off. If the two are equal, the unit changes nothing, and you are indifferent.
Following this one step at a time, you add units while each one improves your position and stop when the next one would make it worse. For this to give the best total, MB must fall as you do more and MC must rise or stay flat. The next chapter explains why that pattern is common. This chapter takes it as given and returns to it under edge cases.
Both sides must be measured as opportunity costs and benefits, in the same units. If MB is in dollars, MC must be in dollars, including the value of what you give up, such as your time.
A worked example
Suppose a freelancer decides how many hours to take on this evening. Each hour of work pays 30 dollars, so MB is 30 for every hour. Each extra hour costs more than the last because it eats into time that is worth more as the night goes on. The freelancer values that lost leisure at these amounts:
| Hour | MB (pay) | MC (leisure given up) | MB − MC | Cumulative net benefit |
|---|---|---|---|---|
| 1 | 30 | 10 | +20 | 20 |
| 2 | 30 | 15 | +15 | 35 |
| 3 | 30 | 22 | +8 | 43 |
| 4 | 30 | 30 | 0 | 43 |
| 5 | 30 | 40 | −10 | 33 |
| 6 | 30 | 55 | −25 | 8 |
Apply the rule row by row. Hours 1 to 3 have MB above MC, so each one is worth taking. Hour 4 has MB equal to MC, so it adds nothing. Hours 5 and 6 have MB below MC, so each one reduces the total. The cumulative column confirms this: net benefit rises to 43 and then falls.
Notice what the rule did not need. It never required the cumulative column. The comparison of MB and MC for the next hour was enough.
Checking the rule in code
The following script applies the rule and then checks it against a brute-force search over every possible number of hours.
mb = [30, 30, 30, 30, 30, 30] # marginal benefit of hours 1..6
mc = [10, 15, 22, 30, 40, 55] # marginal cost of hours 1..6
# Marginal rule: keep adding hours while MB >= MC.
hours_rule = 0
for benefit, cost in zip(mb, mc):
if benefit >= cost:
hours_rule += 1
else:
break
# Brute force: net benefit for each possible number of hours (0..6).
net = [sum(mb[:h]) - sum(mc[:h]) for h in range(len(mb) + 1)]
best_net = max(net)
print("net benefit by hours:", net)
print("rule says", hours_rule, "hours, net benefit", net[hours_rule])
assert net[hours_rule] == best_netThe output shows net benefit of [0, 20, 35, 43, 43, 33, 8], and the rule picks 4 hours. The brute-force search finds a maximum of 43 at both 3 and 4 hours, so the rule reaches the best possible value.
The rule as a loop
The decision is a loop. You evaluate the next unit, take it if it passes the test, and repeat.
What to do at a tie
When MB equals MC, the unit neither helps nor hurts, so both choices give the same net benefit. In the table, 3 hours and 4 hours both yield 43. The "at least" wording in the rule is a convention that takes the extra unit at a tie.
In practice, a tie is rarely exact, and there are often reasons to break it. If measuring MB or MC involves guesswork, a unit at a tie is a coin flip, and you may prefer to stop and keep the effort or cash in reserve. State the convention you use and apply it consistently.
A second example with falling MB
In the freelancer example MB stayed flat and MC rose. Now reverse it. A shopper buys a drink at a fixed price of 20 dollars, and each additional drink is worth less to her than the last.
def best_quantity(mb, mc):
"""Return the number of units to take under the marginal rule."""
q = 0
for benefit, cost in zip(mb, mc):
if benefit >= cost:
q += 1
else:
break
return q
mb = [50, 42, 34, 26, 18, 10] # value of the 1st..6th unit to the buyer
mc = [20] * 6 # constant price per unit
q = best_quantity(mb, mc)
print(q) # 4The fourth unit is worth 26 and costs 20, so she buys it. The fifth is worth 18 and costs 20, so she stops. The result is 4 units, and the price never needed to change for the stopping point to appear. The falling MB did the work.
Edge cases and common errors
Comparing MB with average cost
The rule compares MB with marginal cost, not average cost. Suppose a firm's average cost per unit is 12, and it can sell one more unit for 10 that costs 7 to produce. A manager who compares 10 to 12 refuses the unit. The correct comparison is 10 to 7, which shows a gain of 3. Average cost includes spread-out fixed costs that do not change when you add one unit.
The reverse mistake also occurs. A unit with an MC above its average cost can look cheap because the average is low, yet it loses money at the margin.
Using totals instead of the next step
"I have spent 4 hours and earned 120 dollars, so I am ahead" is a statement about totals. It says nothing about whether hour 5 is worth working. Being ahead overall does not mean the next unit is worth taking, and being behind overall does not mean you should stop.
Mixing units or leaving out opportunity cost
If MB is measured in dollars and MC only counts cash, the comparison is biased. The freelancer's MC above was about leisure, not cash. Leaving it out would suggest working all six hours and ending with a net benefit of 8 instead of 43.
Non-monotone margins
The "stop at the first failure" loop is only correct when MB falls and MC rises, or at least when MB minus MC does not turn positive again after it turns negative. Consider a task with a large setup cost:
mb = [20, 20, 20, 20]
mc = [30, 5, 5, 5] # the first unit carries a one-time setup cost
# Naive stopping rule: quits at unit 1 because 20 < 30.
naive = 0
for benefit, cost in zip(mb, mc):
if benefit >= cost:
naive += 1
else:
break
net = [sum(mb[:q]) - sum(mc[:q]) for q in range(len(mb) + 1)]
print(naive, net) # 0 [0, -10, 5, 20, 35]
print(net.index(max(net))) # 4The naive loop stops at 0 units, but 4 units gives a net benefit of 35. When the first unit looks bad only because of a setup cost, treat the setup and the units together as one chunk and compare the whole chunk's benefit with its cost. A later chapter covers this under whole units and corner solutions.
Forgetting the zero option
The rule tells you how far to go once you start. You should also check that the full package, starting from zero, beats doing nothing. In the first example, the net benefit at the best quantity (43) is higher than at zero (0), so the answer holds. If it were not, you would choose zero.
Using the rule in practice
- Define the unit, such as an hour, an item, or a page.
- Write MB for the first few units, including intangible gains.
- Write MC for the same units, including the opportunity cost of your time and resources.
- Compare them unit by unit and stop where MB first falls below MC.
- Check that MB falls and MC rises, so stopping once is safe, and compare the result with doing nothing.
Exercise
A student can study for up to 5 hours. The marginal benefit of each hour, in points gained on a practice score, is 12, 9, 6, 3, 1. Each hour costs 4 points' worth of lost sleep and leisure. How many hours should the student study under the marginal rule, and what is the net benefit?
Show answer
Compare each hour's MB with 4. Hours 1 to 2 have MB of 12 and 9, which beat 4. Hour 3 has MB of 6, which beats 4. Hour 4 has MB of 3, which is below 4, so the student stops. The answer is 3 hours. Net benefit is (12 + 9 + 6) − (3 × 4) = 27 − 12 = 15 points.
Exercise
A café's average cost per coffee is 3 dollars. The marginal cost of one more coffee this hour is 1 dollar, and a customer will pay 2 dollars. A manager says "2 is less than 3, so we lose money, and we should refuse." Is the manager right? Name the error.
Show answer
The manager is wrong. The relevant comparison is MB (2) against MC (1), which gives a gain of 1 dollar, so the café should serve the coffee. The error is comparing marginal benefit with average cost instead of marginal cost. The average includes fixed costs that do not change with this one sale.