learn-economics-with-phoebe / Foundations session 3 of 6
Learn Economics with Phoebe · Foundations session 3 of 6

Marginal thinking and opportunity cost

Foundations session 2 put a number on how buyers respond to a price. Tonight moves from the price to the decision behind it, and the decision is almost never "should we do this" but "should we do one more". One more unit, one more listing, one more hire, one more month of a product that has not paid back. The habit that answers those questions has three parts. Look at the next unit, not the average. Ignore what is already spent, because it is the same whichever way you go. And price every hour and every real by the best thing you could have done with it instead. The session closes on the reason those three habits matter more now than they did: a physical unit, a software copy and a prediction from a model have three different costs at the margin, and most pricing mistakes about AI come from using the wrong one.

🟢 Foundations Leaders, product and data teams, anyone who prices anything No code 45 min
0-3 · Welcome 3-18 · The margin, the fork, the next best use 18-40 · Build-along: three decisions at Beira Goods 40-45 · Q&A
Part 0

Where we start

Most business numbers are averages. Cost per unit, revenue per customer, hours per listing. Averages are fine for describing what happened and nearly useless for deciding what to do next, because nobody ever decides an average. They decide whether to make one more, keep one more, spend one more hour. The cost that matters for that decision is the cost of the next one, and the next one is often nothing like the average. A factory's thousandth unit is cheaper than its first; a support team's hundredth ticket of the day is dearer than its tenth; a software company's millionth copy costs almost nothing. Marginal thinking is the discipline of asking about the next one, and it turns out to be the same discipline that tells you when to walk away.

🎫 Clear all three quiz questions to stamp your passport Live = presented in the 45 minutes Self-study = the full depth, after class ★ Build-along = everyone works it through

★ What you walk out with tonight. The question that replaces "is this worth it" with "is one more worth it"; the test that shows why money already spent cannot change a decision; a way to price an hour by its next best use; the two-person, two-task rule that says who should do what even when one person is better at everything; and one sentence that separates a physical unit, a software copy and a prediction by what the next one costs. Plus three worked decisions at Beira Goods, a constructed seller, with every number invented and labelled.

Part 1 · covers decisions at the margin, sunk costs

The next unit, not the average

6 min live

A decision at the margin compares two things only: what the next unit will cost and what the next unit will earn. If the second is bigger, make it. If not, stop. Everything else, the money spent last year, the average cost across the whole run, the hours already sunk into the product page, is either the same on both paths or not about the next unit, and a number that is the same on both paths cannot tell you which path is better. That last point is the sunk cost rule, and it is the one people know and still break, because the pile behind them is large and visible and the next unit is small and abstract.

MONEY ALREADY SPENT DOES NOT GET A VOTE the fork compares only what lies ahead; the pile behind is the same on both paths already spent Beira, at the fork keep going stop KEEP THE PRODUCT LISTED costs ahead: next month's fee and the hours it takes earns ahead: the units it will sell, times the margin decide on these two lines only DELIST IT costs ahead: nothing more earns ahead: nothing more, and the hours go elsewhere the R$ already spent is identical on both paths Sunk means unrecoverable. It appears on both branches of the fork, so it cannot change which branch is better.
🔍 Click to zoom - the pile is real and it is behind the person; neither path can get it back, so neither path is charged for it
LiveMarginal cost, marginal revenue, and the one comparison that decides4 min▶

Marginal cost is what the next unit costs to make, ship or serve. Not the total divided by the count, which is the average, but the extra: total cost with the unit minus total cost without it. Marginal revenue is what the next unit brings in, which is the price if selling one more does not move the price, and less than the price if it does, because the price cut applies to every unit you were already selling. Foundations session 2 gave you the tool for that second case: on an elastic product the price cut needed to sell one more costs more on the old units than it earns on the new one.

The rule is one comparison. Make the next unit if its marginal revenue is above its marginal cost. Stop at the unit where they meet. Every unit before that point added to profit; every unit after it subtracts. A firm that stops earlier leaves money on the table; a firm that goes further pays for the privilege. Nothing in the rule mentions the average, and that is deliberate: the average cost of a run can be above the price while the next unit is still worth making, and it can be below the price while the next unit is a loss.

Where the average misleads. A product with a large up-front cost and a small per-unit cost has an average that falls with every unit sold. Early on the average is far above the price and a leader reading only averages will call the product a loser. At the margin it was a winner from the first sale, because each sale earned more than it cost to make. The opposite trap is a product whose average is fine but whose next unit is dear, because the team is at capacity and the next order needs overtime, a new courier contract, or a second shift. The average says yes; the margin says the next order is the one that loses money.

Self-studyWhy sunk costs feel like they should count, and the two honest exceptions3 min▶

Money already spent is unrecoverable on every path, which is exactly why it cannot rank the paths. The reason people count it anyway is that it feels like a debt the product owes them, and stopping feels like admitting the debt will never be paid. It will never be paid either way. Keeping the product running does not recover the listing fees or the photographer's invoice; it only adds next month's costs to the pile. The test that clears the fog is to write both paths on one page with only the costs and earnings that lie ahead, as the figure does. If the pile appears on both, it cancels, and what remains is the decision.

Two things that look like sunk costs are not. A recoverable asset is not sunk: stock that can be returned, a licence that can be resold, a deposit that comes back. Its resale value is a real earning on the "stop" path and belongs in the comparison. Information already bought is not sunk in the useful sense: three months of sales data cost money to collect, and that money is gone, but the data itself changes what you expect the next month to earn. Use what the spend taught you; ignore what it cost.

Real world

One real Olist product, read at the margin. The most-sold eligible product on the marketplace used throughout these sessions held a price of R$ 75 through 2017 and cut it to R$ 69.90 in January 2018, and its units went from 45 to 121 that month. Multiply price by units and revenue roughly went from 3,400 to 8,500 reais, simple arithmetic on those two months. Was the cut a good decision? Revenue cannot say. Seventy-six extra units had to be bought, packed and shipped, and whether the margin on 121 units at 69.90 beat the margin on 45 at 75 depends on the marginal cost of a unit, which the dataset does not hold. It is the most common gap in a pricing review: a revenue line that went up, a cost of the next unit nobody wrote down, and a decision judged on the half of the picture that happened to be in the table.

Part 2 · covers opportunity cost, comparative advantage

The next best use of the hour

5 min live

The true cost of doing anything is the best thing you did not do instead. An hour spent writing a product listing is an hour not spent answering support tickets; a real spent on stock is a real not spent on advertising. That is opportunity cost, and it is the reason a "free" thing is never free and a cheap thing can be dear. It also leads to a result that surprises everyone the first time: two people should split their work by what each gives up, not by who is faster, and that holds even when one of them is faster at everything.

TWO PEOPLE, TWO TASKS, ONE HOUR EACH Beira Goods, constructed: Ana is faster at both tasks, and it still pays to split them LISTINGS / HOUR TICKETS / HOUR ONE LISTING COSTS ONE TICKET COSTS Ana 4 8 2 tickets 0.5 listing Ana is faster at both. Bruno still has the lower cost on tickets. Bruno 1 4 4 tickets 0.25 listing SPLIT BY THE LOWER COST, NOT BY WHO IS FASTER Ana lists, Bruno answers tickets: the pair gets more of both done than any other split Constructed rates. The rule survives any numbers: compare what each person gives up, never how fast each is.
🔍 Click to zoom - the amber cells are the two lowest opportunity costs, and they belong to different people even though one person is faster at both jobs
LiveOpportunity cost, and the two-person rule that follows from it3 min▶

Opportunity cost is the value of the next best alternative you gave up. It is the honest price of an hour, a real, a server, a desk, and it is nearly always higher than the price on the invoice, because the invoice records what you paid and not what you could have done with it. A meeting with eight people has an invoice cost of zero and an opportunity cost of eight hours of whatever those people would otherwise have done. That is why "it is free" is a claim about the invoice and never about the cost.

Comparative advantage is what opportunity cost says about who should do what. In the figure, Ana writes 4 listings an hour or answers 8 tickets; Bruno writes 1 or answers 4. Ana is better at both, which is called an absolute advantage, and it tempts a manager to give Ana everything. But look at what each gives up. When Ana writes a listing she gives up 2 tickets; when Bruno writes one he gives up 4. Ana's listings are cheaper in tickets, so Ana should list. When Ana answers a ticket she gives up half a listing; when Bruno answers one he gives up a quarter. Bruno's tickets are cheaper in listings, so Bruno should answer. Split that way, the two of them together produce more of both than under any other split, and Bruno has a job even though Ana is faster at it.

The rule generalises far past two people. It is why a country that is worse at making everything still exports something, why a platform does the storefront and the seller does the sourcing, and why a senior engineer who is faster at writing tests than the junior should still not be the one writing them. The question is never "who is best at this"; it is "who gives up the least to do this".

Self-studyDiminishing returns, and why the fourth hire earns less than the first3 min▶

Add one more unit of an input while holding the others fixed and, past some point, each added unit produces less than the one before. One more packer in a warehouse of fixed size adds a lot of throughput; the tenth adds a little; the twentieth gets in the way. That is diminishing marginal returns, and it is the reason marginal cost eventually rises: once the cheap capacity is used, the next unit needs the expensive input, the overtime hour, the rented van. It is a statement about the short run, when something is fixed. Given time to add warehouse as well as packers, the constraint moves.

The data habit it gives you: when a team says "we doubled the ad budget and got 40 percent more sales" the interesting number is not the 40, it is the shape. Was the first half of the budget earning far more per real than the second half? A spend that has hit diminishing returns has a marginal return below its average return, and a report that quotes only the average will keep recommending the next increase long after the next increase stopped paying. Any number in this paragraph is illustrative; the shape is the point.

Real world

Beira Goods, a constructed seller, and the hours nobody prices. Beira has 40 products and two people. Ana writes four listings an hour or clears eight support tickets; Bruno writes one or clears four. For a year Ana did both, because she was better at both, and Bruno was given "whatever is left". Priced by opportunity cost, every ticket Ana answered cost Beira half a listing, and every listing Bruno wrote cost four tickets. The fix took no hiring and no tool: swap so that each does the task that costs them least. Ana and Bruno are invented; the rates are invented; the reason the swap works is the same reason a marketplace does storefronts and leaves sourcing to sellers.

Part 3 · covers fixed vs marginal cost, information goods

Three things, three marginal costs

4 min live

A fixed cost is paid once, whether you make one unit or a million: the factory, the codebase, the trained model. A marginal cost is paid again for every unit. Most of the economics of the last thirty years comes from one observation about that split, made by Shapiro and Varian in 1998 and reported here from the publisher's record: an information good is expensive to make the first time and nearly free to copy, so its marginal cost is close to zero, and a price that tracks marginal cost tracks zero. A prediction from a model breaks that story in one specific way, and the break is the whole economics of AI in a sentence.

WHAT THE NEXT UNIT COSTS, FOR THREE KINDS OF THING one fixed cost up front for all three; the line after it is what differs COST OF THE NEXT UNIT UNITS MADE 0 fixed cost paid once rises near capacity not zero a physical unit the item, the box, the delivery an inference small, real, per token a software copy near zero (Shapiro and Varian, reported) Fixed cost looks alike for all three: a factory, a codebase, a trained model. They part at the next unit.
🔍 Click to zoom - the amber line is the new case: not the physical unit's real cost, not the copy's near-zero, but a meter that runs every time
LiveFixed, marginal, and the economics of a prediction in words4 min▶

A physical unit has a marginal cost that is real and visible: the item from the supplier, the packaging, the courier, the commission. It is roughly flat while there is spare capacity and rises when there is not. Pricing it is Foundations session 2's job: the price sits above the marginal cost by an amount the elasticity decides.

A software copy has a marginal cost close to zero. The first copy cost the whole development budget; the millionth costs a few seconds of bandwidth. Shapiro and Varian's argument, as reported, is that this is why information goods are priced by what they are worth to the buyer and not by what they cost to make, and why the same product gets sold in versions at different prices to different buyers. Deep-dive session 3 takes that apart. Tonight the point is only the shape: a fixed cost that is enormous, a marginal cost that is nearly nothing, and an average cost that falls forever.

A prediction from a model sits between the two, and the position matters. Training the model is a fixed cost, like writing the software. But each answer the model gives is not a copy; it is a computation, metered per token in and per token out, and it costs something every single time. Small, but not zero, and multiplied by every request. That means the average cost of an inference does not fall to nothing the way a software copy's does; it falls towards the per-token floor and stops. Every decision about whether to build, rent or switch off a model comes down to that floor times the volume against the fixed cost, and deep-dive session 4 puts dated list prices on it. No price is quoted here on purpose: the shape is the lesson, and the numbers move.

Self-studyEconomies of scale, and Coase on why a firm exists at all3 min▶

Economies of scale are what a large fixed cost does to the average: the more units it is spread across, the lower the cost per unit, until the marginal cost stops falling and takes over. They are the reason big producers can undercut small ones and the reason a market with a large fixed cost tends towards a few big players. They are also the reason "our cost per unit fell 30 percent" can be entirely a statement about volume and not at all a statement about efficiency; an illustrative figure, and a common confusion.

Coase, in "The Nature of the Firm", Economica 4(16) 386-405, 1937, asked a question that sounds naive and is not: if markets coordinate so well, why do firms exist? Why not hire every hour and buy every part on the open market? His answer is that using a market has costs of its own, finding a counterparty, agreeing a price, writing and enforcing a contract, and a firm exists wherever doing the thing inside, by instruction, is cheaper than buying it outside, by contract. The boundary of the firm sits where those two costs meet. It is opportunity cost applied to organisation: every task is either coordinated by a price or by a manager, and the cheaper coordinator wins. Deep-dive session 9 uses exactly that line to decide whether to build, buy or rent a data platform.

Real world

A marketplace is a Coase boundary drawn 3,095 times. The Olist data used throughout these sessions holds 3,095 sellers and 96,096 customers, counts from the RFM course that shares the dataset. Every one of those sellers made the same decision: rather than build a storefront, a checkout, a payment rail and a delivery contract, they rented all of it from a platform and kept sourcing and pricing inside. The platform does the tasks where its opportunity cost is lowest, the seller does the rest, and the commission is the price of the boundary. Nothing about the split is fixed. When a seller's volume makes the commission dearer than running their own shop, the boundary moves, and that is the whole of Coase in one marketplace.

Build-along

Three decisions at Beira Goods, on paper

★ 22 min · everyone works it through

No code tonight. Beira Goods is a constructed seller with 40 products and two people, and every number below is invented and labelled so. Three decisions, each worked with the tonight's tools: whether to make one more of an item, whether to keep a product that cost a lot to list, and where Ana's and Bruno's hours are best spent. Then the same three for one thing you own. Work alongside; the blanks are yours.

ONE MORE UNIT SHIPPED VS ONE MORE PREDICTION, AT BEIRA GOODS (CONSTRUCTED) every real below is invented; the shape of each column is not ONE MORE UNIT SHIPPED the item from the supplier: R$ 38 packaging: R$ 3 delivery: R$ 14 commission: R$ 7 R$ 62 per extra unit invented a real thing ONE MORE PREDICTION a per-token cost, small and real no box, no courier, no stock never zero: each call is metered no figure here; deep-dive session 4 prices it with dated list prices a meter SAME RULE FOR BOTH: make one more only if the next one earns more than the next one costs Every real is invented. The shape is not: the unit's cost is a stack of real things, the prediction's is a meter.
🔍 Click to zoom - one column is a stack you can point at, the other is a meter you can only read; the decision rule is identical for both

Decision 1 · One more of an item. Beira's best-selling towel set sells at R$ 89 (invented). The next unit costs R$ 62 to buy, pack, ship and pay commission on, as the figure stacks it. Beira's average cost per unit, including a share of the rent and the photographer, comes out at R$ 95 (invented). Should Beira make one more? Fill in the margin, then do the same for one item you sell.

★ Decision 1 · one more unit (Beira, invented)price of the next unit: R$ 89 marginal cost of the next unit: R$ 62 (item 38 + packaging 3 + delivery 14 + commission 7) average cost per unit: R$ 95 (includes rent and photos already paid) next unit earns minus next unit costs: 89 - 62 = +27 make it the average says: 89 - 95 = -6 the average is not about the next unit Yours: price ______ marginal cost ______ (do NOT add the fixed costs) verdict ______

Decision 2 · Keep a product that cost a lot to list. Beira spent R$ 4,000 (invented) on photography, copy and a launch discount for a lamp that now sells three units a month at R$ 12 margin each, against a R$ 50 monthly listing fee (all invented). The R$ 4,000 is gone on both paths. Write the two paths with only what lies ahead, and then decide.

★ Decision 2 · the fork (Beira, invented)already spent (sunk): R$ 4,000 appears on BOTH paths, so it cancels keep listed, per month: earns 3 x 12 = R$ 36 costs R$ 50 fee net -14 per month delist, per month: earns 0 costs 0 net 0 verdict: delist, unless something ahead changes (a price rise, a fee cut, a bundle) the R$ 4,000 did not vote. What it TAUGHT (three units a month at this price) did. Yours: sunk ______ keep: earns ______ costs ______ stop: earns ______ costs ______ verdict ______

Decision 3 · Where the hours go. Ana writes 4 listings or clears 8 tickets an hour; Bruno writes 1 or clears 4 (invented). Beira needs both listings and tickets done. Work out what each gives up for each task, circle the lower cost in each column, and assign. Then do it for two people on your own team with two tasks they both do.

★ Decision 3 · two people, two tasks (Beira, invented) listings/hr tickets/hr one listing costs one ticket costs Ana 4 8 2 tickets 0.5 listing Bruno 1 4 4 tickets 0.25 listing lower cost of a listing: Ana (2 < 4) so Ana lists lower cost of a ticket: Bruno (0.25 < 0.5) so Bruno answers tickets Ana is faster at BOTH. She still should not do both. Yours: person A ____ rate task 1 ____ rate task 2 ____ person B ____ rate task 1 ____ rate task 2 ____ A gives up ____ per task 1, ____ per task 2 B gives up ____ per task 1, ____ per task 2 assignment: ______________________

Decision 4 · The same three for a prediction. Beira is thinking of paying a model to draft every product description and to answer the simple tickets. Write the three marginal costs side by side in words, with no prices: what the next unit shipped costs, what the next copy of a description costs once written, and what the next model call costs. Then say which of the three rules from tonight applies to each.

★ Decision 4 · three marginal costs in words (no prices)the next unit shipped: a stack of real things (item, box, courier, commission) the next copy of a description: near zero once it is written the next model call: small, real, metered per token in and out; never zero rule for the unit: make one more if the next one earns more than R$ 62 rule for the copy: price by what it is worth to the buyer, not by the copy cost rule for the call: the meter times the volume, against what the answer is worth each time what is fixed and paid once: the model's training (not Beira's cost; Beira rents) what Beira pays every time: the meter

Decision 5 · The sentence for a leader. One sentence per decision, in the shape that survives a hard question: the next unit's cost, the next unit's earning, what was left out and why. Practise it out loud for Decision 2, where the pile is largest and the temptation strongest.

★ Decision 5 · the sentence"Ahead of us, the lamp earns 36 a month and costs 50, so it loses 14 a month for as long as we keep it. The 4,000 we spent is gone whichever way we go, so it does not enter the comparison. What that spend taught us, three units a month at this price, is why the forecast ahead is 36 and not more." Now yours, for the decision you brought: next unit costs ______ earns ______ left out ______ because ______

Decision 6 · What the data cannot tell you. Every one of Beira's numbers was handed to you. In a real catalogue the marginal cost of a unit is usually not in any table: the supplier's invoice is in one system, the courier's in another, the commission in a third, and the hours nowhere. Write, for one thing you sell, which of the four stack items you could find tonight and which you could not. The gap is the first thing to fix before any pricing decision.

★ Decision 6 · where the marginal cost livesitem cost: [ have it ] [ could find it ] [ nobody records it ] packaging: [ have it ] [ could find it ] [ nobody records it ] delivery: [ have it ] [ could find it ] [ nobody records it ] commission/fees: [ have it ] [ could find it ] [ nobody records it ] hours per unit: [ have it ] [ could find it ] [ nobody records it ] "We can price at the margin for ____ of our products. For the rest, any margin we quote is an average wearing a costume."

Keep the three questions as your standing rule. What does the next one cost? What is on both paths and therefore cancels? What is the best thing I could do with this hour or this real instead? Any decision that arrives with an average, a pile of past spend, or the word "free" in it has skipped at least one of the three.

Homework

Before Foundations session 4

30 min
  1. Find one decision your team made on an average and rewrite it at the margin: what did the next unit cost and earn? If the verdict flips, write down why the average pointed the wrong way.
  2. Find one product, project or tool that is kept because of what it already cost. Draw the fork on one page with only what lies ahead on each branch. Say which branch wins and what the sunk spend taught you that still counts.
  3. Take two people who both do two tasks and write the four rates and the four opportunity costs. Circle the lower cost in each column. If the assignment you get is not the one you have, write the sentence that explains the swap without the word "better".
  4. Bring one purchase where you could not see the quality before you paid: a dataset, a tool, a contractor, a used car. Foundations session 4 is about what happens to a market when one side knows more than the other, and why the good sellers leave first.
Check yourself

Three questions

Clear all three and Foundations session 3 gets stamped in your passport.

1 · Beira Goods (constructed) spent R$ 4,000 listing a lamp that now earns R$ 36 a month in margin against a R$ 50 monthly fee. What should Beira do, and why?

Sunk means unrecoverable on every path, so it cancels out of the comparison. Only what lies ahead ranks the branches, and ahead the lamp loses money each month. What the spend taught, three units a month at this price, is the one part of it that still counts.

2 · Ana writes 4 listings an hour or clears 8 tickets; Bruno writes 1 or clears 4 (constructed). Who should answer tickets, and why?

Comparative advantage is about what each person gives up, never who is faster. Ana has the absolute advantage in both tasks and the comparative advantage in listings only; Bruno's tickets are cheaper in listings forgone, so the pair produces more of both when Bruno answers them.

3 · Which statement about marginal cost is correct?

The three shapes are the whole of Part 3. Shapiro and Varian's near-zero copy cost, as reported, is why information goods are priced by value; inference breaks that story because each answer is a computation with a per-token cost. Deep-dive session 4 puts dated prices on it.

Sources covered

What this session teaches, and where it came from

✓Decisions at the margin, marginal cost and revenue, sunk costs, the forkStandard economics, no single source; taught with the two-path test and the two honest exceptions (recoverable assets, information already bought)
✓Opportunity cost, absolute vs comparative advantage, two people two tasksStandard economics, no single source; Ana and Bruno's rates are constructed and the page says so
✓Fixed vs marginal cost; information goods at near-zero marginal costShapiro and Varian 1998, Information Rules, Harvard Business School Press; reported from the publisher's record, the chapter text was not opened
✓The three marginal costs: a physical unit, a software copy, an inferenceTaught as a shape in words; no token price, no GPU price on the page; deep-dive session 4 carries the dated list prices
✓The headline Olist product: R$ 75 through 2017, R$ 69.90 from January 2018, units 45 to 121Computed from the Brazilian E-Commerce Public Dataset by Olist (Kaggle, CC BY-NC-SA 4.0); the revenue figures are arithmetic on those two months; the marginal cost is not in the data and the page says so
✓Why firms exist: transaction costs decide the boundaryCoase 1937, "The Nature of the Firm", Economica 4(16) 386-405; the argument is summarised; the Olist counts of 3,095 sellers and 96,096 customers are the RFM course's, from the same dataset
◐Diminishing returns, economies of scaleNamed in self-study with their direction; the percentages in those paragraphs are illustrative and labelled so
◐Beira GoodsConstructed seller; every Beira number is invented and the page says so

Every fact on this page, and its verification tier, is recorded in the course's source map.

Foundations session 3 cheat sheet · pin this

The next one, not the averageMake one more if it earns more than it costs. The average is about the past run, not the next unit.
Sunk costs do not voteUnrecoverable on every path, so they cancel. Use what the spend taught; ignore what it cost.
Opportunity cost is the real priceThe best thing you did not do with the hour or the real. "Free" is about the invoice, never the cost.
Split by what each gives upComparative advantage, not speed. The faster person at everything still hands one task over.
Three marginal costsPhysical: a real stack. Software copy: near zero. Inference: small, real, metered, never zero.
The firm ends where the market is cheaperCoase: coordinate by instruction inside, by price outside. The boundary moves when the costs do.