Economics at the Platforms
What do the economists inside technology companies do?
On New Year's Eve 2014 a fault switches off a ride-hailing app's surge pricing in New York for twenty-six minutes, and about a quarter of requests are completed, against nearly all after a sold-out concert with surge working. The Island's app has its own New Year's Eve: with surge off about 27% of requests are filled at the peak, with it on all of them. A platform is a designed market; the viewer sets the commission in a two-sided market (30% earns the platform the most, while riders and drivers lose far more than it gains). Surge as market clearing and the consumer surplus its random prices reveal; ranking and the value of position; ratings that pile up at 100% and the effective percent positive; quality-scored ad auctions and reserves; an ad dashboard that reports +1,238% where the truth is -64%, eBay's experiment and Lewis and Rao's arithmetic. After an intermission of online sales' share of American retail, experiments at scale (peeking, CUPED), interference and switchbacks, uplift and the surrogate index, the value of flexible work and the law, what free search is worth, two new Dials, economists in tech, Google's advice on measuring advertising's return, and markets of agents.
What you need. Part 15: public goods; Part 16: auctions and reserves; Part 17: market design; Part 43: demand estimation; Part 44: two-sided platforms; Part 45: fairness; Part 60: pricing and interference; Statistics, Built: experiments, sequential tests and heterogeneous effects.
- Hook
- New Year's Eve, and the surge that failed
- Ideas, models and mathematics
- marketplace design, search and ranking, reputation, surge pricing, ad auctions in practice, experiments with interference, causal machine learning in production, the gig economy, data and attention
- Agora gains
- a two-sided marketplace
- Play it
- set the commission
What you will be able to do
Principles and the major
- Explain how surge pricing clears a market, and who gains and loses.
- Explain why a platform's best commission differs from the one that maximizes total surplus.
- Explain why ratings inflate and how a reputation system can be redesigned.
Graduate
- Price a quality-scored generalized second-price auction.
- Show why attributed and regression returns on advertising overstate the truth, and design the experiment that measures it.
- Show how peeking inflates false positives and how a pre-period covariate reduces variance.
Research
- Show how interference biases an A/B test in a two-sided market, and compare switchback and cluster designs.
- Target a treatment by estimated effects, and estimate a long-term effect with a surrogate index.
Practice
- Design the experiment for a platform change, with its guardrails, and say what could bias it.
Contents
Each chapter has a home level. Choose a track to see what to read and watch: Principles and the major 28 min · Graduate 38 min · Research 45 min · Practice 36 min.
- 0Twenty-six minutesPrinciples and the major3 min
- 1A platform is a designed marketPrinciples and the major2 min
- 2Play it: set the commissionPrinciples and the major3 min
- 3Surge pricingPrinciples and the major3 min
- 4Search and rankingPrinciples and the major3 min
- 5ReputationPrinciples and the major2 min
- 6Ad auctions in practicePractice3 min
- 7Does advertising work?Principles and the major5 min
- Intermission: shopping moves online, 1999-2026Principles and the major
- 8Experiments at scalePractice3 min
- 9When units interfereResearch2 min
- 10Causal machine learning in productionResearch3 min
- 11The gig economyPrinciples and the major3 min
- 12Data, attention and free goodsPrinciples and the major2 min
- 13The Dials: surge elasticities and the return on search adsGraduate2 min
- 14In practice: economists in techPractice2 min
- 15Frontier: markets of agentsResearch2 min
- Recap, problems, and the road aheadAll tracks2 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.
Twenty-six minutesPrinciples and the major3 min
New Year's Eve, 2014, in New York: one of the busiest nights of the year for a ride-hailing app. When requests outrun the drivers on the road, the app raises the fare, the surge, until the two match. That night a fault switched surge pricing off for twenty-six minutes. Fares stayed at the normal price. Requests piled up, drivers did not come, and riders opening the app saw no cars. During the outage only about a quarter of requests were completed. After a sold-out concert at Madison Square Garden, with surge working, nearly every request had been met. The comparison comes from a case study by the company's own economists, which is itself part of this part's story: firms now employ economists to design their markets, run their experiments and measure what their prices do.
The Island has a ride-hailing app too, and a New Year's Eve. At the normal fare, requests spike at midnight to more than five times the usual rate. With surge off, the drivers on the road stay at their usual number, and everything above that line goes unfilled: at the peak, about 27 percent of requests are completed. With surge on, the fare rises, to 2.8 times normal at the peak. Some riders wait, walk or share instead, while more drivers come out, a few minutes later. Every request that is made is filled. Who gains and who loses is the subject of chapter three; here, the point is what a price does when it is allowed to move.
The question: what do the economists inside technology companies do? They help set a platform's prices, fees and rules. They study what ranking, ratings and ad auctions do to the market. They ask whether advertising pays, and how anyone could know. They design experiments in markets where every buyer shares the same drivers or rooms. And they ask what a free service is worth to the people who use it.
Economics, Built. Part sixty-one: economics at the platforms. Part sixty set one firm's prices. This part runs a marketplace. By the end you will know how a platform is designed, from its commission and surge pricing to its ranking and ratings; how ad auctions work in practice, and why the return on advertising is so hard to measure; how experiments are run at scale, and what goes wrong when units interfere; how machine learning is used to target and to forecast long-term effects; and what flexible work and free services are worth to the people who use them.
What it does: New Year's Eve 2014; the Island's night with surge off and on; the question; objectives
1A platform is a designed marketPrinciples and the major2 min
A market left alone has prices that nobody sets, and information that is wherever it happens to be. A platform is a market that somebody owns and designs. On one side, riders, buyers, people searching; on the other, drivers, sellers, advertisers; between them, the platform, which every transaction passes through. It sets prices: the fare, the commission it keeps, the surge. Part forty-four showed why a platform may charge one side little or nothing and the other side most: what matters is the structure of prices across the two sides, not only their level. It decides who is matched with whom, Part seventeen's question, now run by an algorithm millions of times a day. It decides what each side sees: the order of the search results, the ratings, even whether a driver sees where a rider is going before accepting. And it writes the rules: who may join, what may be promised, what gets you thrown off.
Inside a platform, the economist works with three tools. Theory: a model of both sides of the market, to say which way a fee or a rule should move, and what the second side will do when the first one changes. Measurement: demand and supply estimated from the platform's own records, the methods of Part forty-three with far more data. And experiments, thousands of them, randomized by user, by hour or by city. Which gives the economist inside one advantage no academic has: the platform can change the market it is studying, and watch what happens.
What it does: Prices, matching, information, rules; theory, measurement, experiments
2Play it: set the commissionPrinciples and the major3 min
Your turn. You run the Island's ride-hailing app, and you choose one number: the commission, the share of each fare the platform keeps. The fare is twenty dollars a trip, and here it is fixed. Drivers drive when their pay for an hour beats their other work, about twenty dollars an hour; riders ride when the wait is short, and the wait grows as drivers get busy. So the commission works through both sides: a higher commission means lower pay per trip, fewer drivers, longer waits, and fewer riders. Ten percent, twenty, thirty, or forty-five: which earns the platform the most?
Here is each commission's equilibrium, where the drivers who choose to drive and the riders who choose to ride are consistent with each other's choices. At ten percent, 176 trips an hour, but the platform keeps only 352 dollars. At twenty, 562. At thirty, 622, the most of the four, from 104 trips. At forty-five percent the take falls back, to 479: drivers' pay is so low that only 47 drive, waits stretch to 6 minutes, and riders give up. So C. The platform's best commission on a fine grid is 29 percent. Below it, trips are many but too little is kept from each; above it, there are too few drivers and too long a wait.
Now look at everyone, not just the platform. Riders' surplus, in dollars an hour, drivers' surplus, and the platform's take, peaking at 29 percent. Moving from ten percent to thirty, the platform gains 270 dollars an hour, and riders and drivers together lose 1,270. The loss is so much larger because of a cross-side effect: each driver who stops driving lengthens every rider's wait, and the commission, chosen for the platform's take alone, ignores it. This is Part forty-four's two-sided market with numbers in it. What keeps commissions down in practice is competition: between platforms, and from drivers and riders who keep two apps on their phones.
What it does: Four commissions in a two-sided market; the platform's best against everyone's
3Surge pricingPrinciples and the major3 min
Surge pricing is the oldest idea in this series: a price that clears the market. Take the Island's peak minute. Riders' requests fall as the fare rises, and the number of drivers on the road rises with it. At the normal fare, 340 requests meet 70 drivers, and the shortage is rationed by luck and by waiting. The fare that clears the market is 2.1 times normal. At that fare there are 121 rides a minute, not 70: more rides, not fewer, because the higher fare brings out drivers who would otherwise have stayed at home. The app's own multiplier runs above the static answer for the first minutes of a spike, because drivers take time to arrive; surge is a price that has to anticipate its own supply.
Surge also does something for the economist: it varies the price, many times a day, for reasons riders cannot see. Here are the Island's riders who opened the app when the surge happened to be at each level, and the share who booked. Those points trace out the demand curve. The area under it, above the fare, is what riders would have paid and did not have to: consumer surplus. On the Island it comes to 1.42 dollars for every dollar spent. Cohen, Hahn, Hall, Levitt and Metcalfe did this with almost fifty million sessions in four American cities in 2015. They found demand inelastic, with elasticities mostly between minus 0.4 and minus 0.6, and about a dollar sixty of consumer surplus for every dollar spent. Their variation came from the surge algorithm's rounding: sessions just above and just below a threshold saw different prices for the same conditions, a regression discontinuity. Two of the authors worked for the company, which supplied the data; the design is what makes the number worth taking seriously.
So who gains? Riders who would pay more get a car; drivers earn more on the busiest nights; riders who would not pay the higher fare are priced out, where without surge they would have waited, mostly in vain. And yet surge is widely hated. A price that jumps when you most need the service feels like exploitation; Part forty-five's fairness norms are real constraints on what firms can charge. In July 2014 the company agreed with New York's attorney general that in emergencies, from storms to power failures, fares would be capped at the range of the previous sixty days, leaving out the three highest days. And surge cannot conjure drivers who are too far away to arrive in time: in the first minutes of a spike, a higher fare only decides which riders get the cars already on the road.
What it does: Market clearing at the peak; consumer surplus from random surge levels; the emergency cap
4Search and rankingPrinciples and the major3 min
Every marketplace is also a search engine, and its first design decision is the order of the results. Here are the Island marketplace's logged clicks on each position of a results page. The top result gets 5.1 times as many clicks as the fifth. But that mixes two things: the top result is at the top, and it is also the result the algorithm thought most relevant. What the platform needs to know is the effect of position alone: the chance that a shopper looks at each slot at all. On the Island, position alone gives the top slot 3.3 times the fifth's attention; the rest of the logged gap is relevance. Platforms learn this by randomizing the order for a small share of searches. Raluca Ursu did it with a travel site's hotel rankings, randomized: position changed which hotels people looked at, and much less which they booked once they had looked.
Now sell the top of the page. Here is the page in order of relevance, the best the shopper could see. A seller whose listing is sixth by relevance pays for the top slot, and the two listings swap. Shoppers now look first at a worse match: clicks per search fall from 2.05 to 1.84, and the relevance of what they click falls from 0.597 to 0.538. The platform earns the ad's price, and pays for it in its shoppers' attention and trust. How many sponsored slots, and how far up, is a trade-off the platform's economists measure with experiments, because the cost shows up only slowly, in shoppers who come back less.
And when the platform that ranks also sells? It can put its own products first. That was Part forty-four's worry about vertical integration; here it becomes a question of measurement. In 2017 the European Commission fined Google two point four two billion euros for favouring its own comparison shopping service in its search results, a decision the EU's Court of Justice upheld in 2024. The economist's job in such a case is to measure how much of the ranking is relevance and how much is ownership, and what shoppers lose by it. And the remedy has a problem of its own: a rule against favouring yourself needs a definition of the neutral ranking, and there is no such thing, since every ranking is a choice about what shoppers should see first.
What it does: Position against relevance; a sponsored top slot; self-preferencing
5ReputationPrinciples and the major2 min
Ratings let strangers trust each other, and they have a famous problem: almost everyone is excellent. The Island's marketplace has two thousand sellers, each delivering a good transaction between eighty and ninety-nine percent of the time. Happy buyers leave a positive rating sixty percent of the time; unhappy ones mostly say nothing, and complain only five percent of the time. So the score the platform displays, positive ratings over all ratings, piles up at the top: a median of 99.1 percent, with 84 percent of sellers at ninety-eight or more. Chris Nosko and Steven Tadelis proposed counting the silence: positive ratings over all transactions, the effective percent positive. It spreads the sellers out. And it tracks their true quality better, a correlation of 0.68 against 0.51. On eBay they found the displayed score had a median of one hundred percent and a mean of 99.3, while the effective score had a median of 67 percent. Their argument: a bad transaction hurts not only the seller but the platform, because a buyer who had one is less likely to come back at all.
What can a platform do? First see why ratings inflate: unhappy buyers stay silent, a bad review invites a bad one back, and raters feel sorry for the person they are rating. In 2014 Airbnb ran an experiment that hid each review until both guest and host had written theirs, so neither could retaliate. Andrey Fradkin, Elena Grewal and David Holtz found fewer retaliating and reciprocating reviews, slightly lower ratings, and more reviews written; the design was then given to everyone. Second, count what is unsaid: silence, returns, complaints and whether a buyer ever comes back. Underneath is Part fifteen's logic: a rating is a public good. Each rater helps strangers, not themselves, so ratings are undersupplied and shaded, and the platform, which gains from trust, has to supply the system that produces it.
What it does: Percent positive against effective percent positive; simultaneous reviews
6Ad auctions in practicePractice3 min
Part sixteen built the generalized second-price auction for search ads. Here is the piece it left for the practitioners: quality. Four advertisers bid for three slots. Ranked by bid alone, A, the highest bidder, takes the top slot. But A's ad is a poor match for the search: searchers click it half as often as an average ad. Its quality score is a half. Rank by bid times quality instead, the expected payment per search, and B takes the top slot, A drops to second. Each advertiser pays the least it could have bid and kept its slot: the next advertiser's score divided by its own quality. A, with the worse ad, pays more per click than B. Searchers click more, 0.46 times a search against 0.40, and the platform earns more too, 1.005 dollars a search against 0.970: quality scores align the platform's revenue with its users' interest. A reserve price of a dollar fifty lifts the last slot's price and the revenue to 1.020, Part sixteen's Myerson reserve at work.
The design keeps changing. In 2008 Yahoo! let Michael Ostrovsky and Michael Schwarz set reserve prices by Myerson's rule on hundreds of thousands of keywords, with others held back as controls. Revenue rose on busy keywords and fell on rare ones, where reserves drove bidders away: a few percent overall, which at that scale is a great deal of money. That dial returns at the end of this part. In 2019 Google moved its display-ad exchange to first-price auctions; bidders spread across many exchanges were already shading their bids, and the second price had lost its simplicity. Today most advertisers do not bid at all: they give the platform a budget and a target cost, and its algorithm bids for them, so the bidders in the auction are the platform's own software, a design problem Part sixteen's theory is still catching up with. The economist's work is to set reserves, quality formulas and formats, and to test each change on a slice of the traffic before it goes everywhere.
What it does: Quality scores; reserves; first price; auto-bidding
7Does advertising work?Principles and the major5 min
The Island's marketplace buys ads on a search engine, and its dashboard says they pay twelve times over. Here is the truth the Island knows. 40 percent of the people searching for it are regulars, who buy thirty percent of the time, ad or no ad. The rest buy two percent of the time, and seeing the ad raises that by three tenths of a point. When the ad is there, half of all searchers click it, at fifty cents a click; when it is not, they click the free link just below. The dashboard counts every sale that came through an ad click, about 67 per thousand searchers, most of them regulars. The ads caused 1.8. So the dashboard reports a return of 1,238 percent. A regression of sales on ad spending across regions and weeks does no better: 2,607 percent, because spending rises with searches, and searches rise with the people who were going to buy anyway. The true return is minus 64 percent: every dollar of ads brings back 0.36.
How would the marketplace find out? By switching the ads off. In a random 30 percent of its 210 regions, the ads stop for eight weeks. Compare the change in sales per searcher where the ads stopped with the change where they kept running: a difference in differences. Each dot is one run of that experiment, with the Island's ordinary noise in weekly sales. They scatter, by about 32 points either way, around the truth, minus 64 percent. The experiment is noisy, but it is centred on the right answer; the dashboard and the regression were precise, and wrong by a factor of thirty or more.
The Island's numbers were planted to echo a real experiment. eBay's economists Thomas Blake and Chris Nosko, with Steven Tadelis, persuaded the company to switch its search ads off. First the ads on searches for eBay itself: when they stopped, ninety-nine and a half percent of the clicks still arrived, through the free link underneath. Then all other keywords, switched off for sixty days in regions holding thirty percent of eBay's American traffic. The estimated return was minus sixty-three percent, with a confidence interval from minus a hundred and twenty-four to minus three. The same data, analysed the usual way, with a regression of sales on ad spending, gave returns of over fourteen hundred percent. The ads did move new and occasional buyers; but the frequent buyers, who made most of the sales the ads were credited with, would have bought anyway.
Why don't firms just run the experiment? Because the arithmetic is brutal. Randall Lewis and Justin Rao called it the unfavourable economics of measuring the returns to advertising. Suppose a campaign spends ten cents a person, and returns twenty-five percent: twelve and a half cents of extra sales per person. But what one person spends is wildly variable: here an average of seven dollars, with a standard deviation of seventy-five. The effect is 0.17 percent of one person's noise. To detect that the campaign does anything at all takes 5.7 million people in each arm. To tell a twenty-five percent return from breaking even takes 141 million. Only the largest advertisers, on the largest platforms, can learn whether their advertising pays; everyone else is guessing, and the dashboards guess high.
Called it? Blake, Nosko and Tadelis quoted the advice Google gave its advertisers: determining your return can be a very straightforward process. Take the revenue from sales made via your ads, subtract their cost, and divide by the cost. eBay's experiment found that the same calculation, which gave thousands of percent, missed the sign: the true return on non-brand ads was negative. The verdict: wrong. The sales that come through an ad are not the sales the ad causes. That sentence is most of what economists brought to advertising.
What it does: Attribution, regression and experiment; eBay; Lewis and Rao; Called it?
Intermission: shopping moves online, 1999-2026Principles and the major
This chapter has no narration to read.
8Experiments at scalePractice3 min
Large platforms run thousands of experiments a year, and the first thing that goes wrong is impatience. Here are A/A tests on the Island: both arms see exactly the same page, two thousand users a day each, so there is nothing to find. The grey band is where the difference is not significant at five percent. Read each test once, at the end of thirty days, and 5 percent cross the line, as they should. But a dashboard that updates every morning invites a peek, and a test stopped at the first significant day declares a winner 27 percent of the time. Red lines are the tests that would have shipped a change that does nothing. The fixes are old: decide the length in advance, or use tests whose error rate holds at every look, the sequential methods of Statistics, Built.
The second problem is noise, and the cheapest fix is information the platform already has. What a user spends during a test is predictable from what the same user spent before it. Subtract the part of the difference that the pre-period predicts, and the estimate keeps its centre but loses much of its noise. Microsoft's experimenters called this CUPED; it is the regression adjustment of Part four and of Statistics, Built, applied at scale. Across a thousand Island tests of twenty thousand users, the plain difference in means spreads like the grey curve; adjusted, like the pink one. The variance falls to 0.54 of the plain estimator's; theory says one minus the squared correlation, 0.51. The same precision with about half the users: for a platform, that means twice as many experiments a year.
Experimentation platforms grow habits. Check the split: if the arms are not the sizes the design promised, something in the pipeline broke, and every number from the test is suspect. Watch the guardrails: every test also tracks what it must not hurt, like page speed, complaints and cancellations. Expect novelty: a new design draws clicks because it is new, and an effect measured in a week can fade, or grow, over months, which is chapter ten's problem. And distrust the spectacular: a large, surprising win is more often a bug than a breakthrough. Ron Kohavi, who led experimentation at Microsoft, made that a rule, under the name of Twyman's law.
What it does: Peeking; CUPED; the habits of an experimentation platform
9When units interfereResearch2 min
Part sixty's hotel rooms come back as drivers. The Island tests a twenty percent discount for riders. In each city, about 170 drivers an hour serve riders of whom 150 want a ride at the normal fare; the discount raises that to 210, more than there are drivers. Design one, the ordinary A/B test: in every city and every hour, half the riders get the discount. But the discounted riders request more, and the drivers they take are drivers the other riders would have had. The control group is not what the world would look like without the discount; it is worse. Design two, the switchback: whole city-hours get the discount or not, at random, so within any hour everyone shares the same treatment. Design three: whole cities, for the whole test.
Here is what each design reports, averaged over four hundred runs, against the truth: the extra rides per hundred riders if everyone got the discount. The A/B test by user says 18.0 more rides per hundred riders, 2.7 times the truth, because most of the discounted riders' extra rides were taken from the control riders, not created. The switchback finds 6.7, give or take 0.7, and the city test 6.8, give or take 4.5: centred on the truth, 6.7, but noisier, since twenty cities are only twenty units. That is the trade: a clean comparison costs units. Switchbacks have their own catch: hours must be long enough for drivers to settle, or one hour's discount leaks into the next through where the drivers are. Platforms now also randomize both sides at once, riders and drivers or buyers and listings separately, and compare the four cells to see the interference itself: two-sided randomization, studied by Ramesh Johari and colleagues and by Patrick Bajari and colleagues at Amazon.
What it does: By user, switchback and city designs with shared drivers
10Causal machine learning in productionResearch3 min
Experiments say what a change does on average. The next question is for whom. The Island's marketplace has a coupon for 30 percent of its fifty thousand customers. It raises most customers' chance of buying a little, but for 15 percent it only costs money: they would have bought anyway. The usual targeting rule sends coupons to the customers most likely to buy. Here that yields -0.7 purchases per hundred coupons, worse than sending them at random, +6.1, because the likeliest buyers are exactly the ones who need no coupon. Target by the effect instead, estimated from an experiment by an uplift model, and the coupons yield +12.2, close to the +12.9 a planner who knew everyone's true effect would get. This is where machine learning met causal inference in industry: causal forests and their relatives estimate how an effect varies, the methods Susan Athey and Guido Imbens brought from statistics into economics.
How is such a model judged? Not by how well it predicts purchases, but by what its ranking is worth. Give coupons in order of estimated effect, and add up the extra purchases. Against it, the same number given at random. The curve rises steeply, flattens, and turns down at the end, where the coupons go to the customers they harm. The area between the two curves, measured on customers held out of the training, is the model's score: the economics of targeting, put in a single number.
The hardest question is the long run. Experiments last weeks; the decisions are about years. The Island tests a month-long discount. Orders in the first month rise by 41 percent: a triumph, if the test stops there. But some customers learn to wait for the next discount, and their visits in the second month fall. The year's orders actually fall, by 3.1 percent. Susan Athey, Raj Chetty, Guido Imbens and Hyunseung Kang proposed the surrogate index: in last year's data, learn how the year's orders depend on the first two months' behaviour, then apply that relation to the experiment's two arms after eight weeks. The index predicts -3.4 percent, close to the truth of -3.1, ten months early. It works only if the short-run measures carry the whole effect of the treatment on the long run; a discount that also changed something the surrogates miss would fool it.
What it does: Uplift targeting; the gains curve; the surrogate index
11The gig economyPrinciples and the major3 min
Ride-hailing drivers choose their own hours, minute by minute. What is that worth to them? Take one Island driver. Each bar is what it would take to get them on the road in that hour: low when the children are at school, high at dinner time, different every day. The app pays twenty dollars an hour. A flexible driver drives exactly the green hours, when the pay beats the alternative, and earns the gap. A taxi company would offer a fixed eight-hour shift instead: the best block of eight hours, taken whole, bad hours included, or not at all. Across five thousand Island drivers, the surplus from driving is 54 dollars a day with flexible hours and 16 with shifts. Flexibility is worth 3.3 times what the shift leaves, and only 44 percent of these drivers would take a shift at all.
The platform's own data show what drivers do. M. Keith Chen, Judith Chevalier, Peter Rossi and Emily Oehlsen used drivers' hour-by-hour choices to recover their reservation wages, as the Island does. They found that drivers earn more than twice the surplus they would in less flexible arrangements. Most drive part time, around other work and family, and their hours move with the pay. Cody Cook, Rebecca Diamond, Jonathan Hall, John List and Paul Oyer found that among over a million drivers men earned about seven percent more an hour, on a platform whose pay formula never looks at gender. The gap came from experience, from where and when they drove, and from driving faster. What flexibility costs is everything a job usually carries: pay for waiting, sick pay, a pension. The risk sits with the driver.
And then there is the law. Is a driver an employee? In 2019 California passed a law whose test would treat most such workers as employees. In 2020 its voters passed Proposition twenty-two, exempting app-based drivers, with an earnings floor and some benefits instead. In 2021 Britain's Supreme Court ruled that Uber's drivers are workers, entitled to the minimum wage and holiday pay. The economist's question is the trade the chapter has measured: what employment's protections cost in flexibility, and who ends up paying, riders through fares, drivers through fewer hours, or the platform through its margin.
What it does: The value of flexible hours; drivers' data; the law
12Data, attention and free goodsPrinciples and the major2 min
A search engine charges its users nothing, so it adds nothing to their measured spending, and almost nothing to GDP. What is it worth? Ask what it would take to give it up. Four thousand Island users are each offered a random sum to go without search for a year, and the offer is real: accept it and the search is switched off. The share who accept rises with the offer. Fit a logit in the log of the offer, and half accept at 14,171 dollars: the median user values free search at about that much a year. The value the Island planted was 15,000.
Erik Brynjolfsson, Avinash Collis and Felix Eggers asked Americans this question at scale. The median user would give up search engines for a year only for about seventeen and a half thousand dollars, email for about eight thousand four hundred, and digital maps for about three thousand six hundred. To give up Facebook for a month, the median was about forty-eight dollars. None of this value appears in GDP, which measures what is paid, so Brynjolfsson and his colleagues propose measuring the welfare from free goods alongside it.
Free is not quite free. The user pays with attention and data, which the platform sells to advertisers: Part forty-four's two-sided market, with the user's information as an input. How much do people mind? Susan Athey, Christian Catalini and Catherine Tucker found that students who said they cared about privacy still handed over their friends' email addresses for a free pizza: stated preferences and choices part company, as they did in Part sixty's surveys. What data is worth to the platform is how much better it targets; to the user, the risk of what it reveals; the two are rarely measured together. And the rules, consent, limits on tracking, the right to take your data elsewhere, each change what this market can price.
What it does: A willingness-to-accept survey; what free goods are worth; privacy
13The Dials: surge elasticities and the return on search adsGraduate2 min
This part opens two Dials and returns to a third. The first: how much riders' bookings fall when the fare rises. Cohen and his co-authors, over the whole sample: minus 0.55. In Los Angeles, minus 0.33, on weekend days minus 0.66, on weekdays outside the rush hours minus 0.46. The Island's riders, minus 0.59, planted to sit inside that range. The status: it depends on the setting, but every estimate is well below one in size. Demand for a ride on a busy night is inelastic, which is why surge clears the market mainly by bringing out drivers, and why riders keep so much surplus.
The second: the return on search advertising, in extra revenue per dollar, less the dollar. eBay's experiment: minus 0.63, with an interval that stays below zero. The same data without the experiment: plus 16.3. The Island's experiment and its regression repeat the pattern, by construction: the truth was planted below zero. The status is contested, and for an unusual reason. The two kinds of estimate do not merely differ in size; they differ in sign. Ads that reach new customers can pay; ads shown to people already on their way to buy cannot, and only an experiment tells the two apart.
And the Dial from Part sixteen returns, with chapter six's auctions behind it: what a reserve price adds to an ad auction's revenue. Ostrovsky and Schwarz's experiment at Yahoo!, at fixed search volumes: plus 2.7 percent overall, minus 2.2 percent on keywords searched fewer than ten times a day, and plus 3.3 percent on the busy ones. The theory's reserve raises revenue where bidders were many, and cost it where they were few, by driving some of them away: a lesson the static theory, which holds the bidders fixed, does not teach.
What it does: Rides' elasticity to surge (new); the return on search ads (new); reserves (Part 16's)
14In practice: economists in techPractice2 min
Over the past two decades technology companies have become large employers of PhD economists. Susan Athey and Michael Luca, both of whom have done the work, describe what they do. Market design: the prices, fees, auctions, matching and ranking rules of chapters two to six. Measurement: experiments and their pitfalls, and demand and supply estimated from the platform's own records. Forecasting and planning: how many drivers next Friday, what a change will do before it ships. And policy: what an antitrust remedy, a privacy rule or a labour law will do to both sides of the market.
What does an economist add to a room of engineers and data scientists, who can all run a regression? Three questions, asked of every number. Is it caused, or only correlated? The advertising dashboard of chapter seven was precise and wrong. What does the other side of the market do? The commission worked through drivers' waits, and the A/B test of chapter nine counted rides stolen from the control group. And whose welfare is it? The platform's take, the riders' surplus and the drivers' are different numbers, and so is the value of a service nobody pays for. Engineers are superb at optimizing a metric. The economist's job is to ask whether it is the right one.
What it does: The roles; three questions for every number
15Frontier: markets of agentsResearch2 min
The frontier is a marketplace where software shops and sells on people's behalf. Suppose prices for the same thing spread from ten dollars to twenty. A person checks a couple of sellers and pays, on average, 13.33. An agent that checks twenty pays 10.48. But that holds the sellers still, and they would not stay still. When searching is free, the spread of prices that made it worth searching shrinks, as the economics of search predicts; the gains go to buyers through competition, not through bargains. And the sellers will have agents too, setting prices by algorithms that, as Part sixty showed, can learn not to compete. Who wins a market of agents depends on the rules the platform writes for them.
What remains open? Recommendation and welfare. A feed tuned for engagement is not a feed tuned for well-being. Hunt Allcott, Luca Braghieri, Sarah Eichmeyer and Matthew Gentzkow paid people to deactivate Facebook for four weeks before the 2018 American elections: they spent the time offline and with friends, reported somewhat higher well-being, and followed the news less. Platforms for agents: who pays the commission, and what does a ranking mean, when the buyer is a program? Experiments among agents: when every user's agent reacts to every test, chapter nine's interference is everywhere. And the hardest of all, which runs through the whole part: platforms measure what users do, and the economist's question is whether they are better off.
What it does: Search by agents; recommendation and welfare; open questions
Recap, problems, and the road aheadAll tracks2 min
So: what do the economists inside technology companies do? They design markets that a company owns: the commission, the surge, the ranking, the ratings, the ad auction. They measure what those choices do, mostly by experiment, and they catch the ways experiments mislead: peeking, interference, effects that change with time. And they ask the questions engineers do not: is it caused, what does the other side do, and whose welfare is it?
Part sixty-one in twelve lines. A price that moves clears the market on the busiest night. The platform's best commission is not the market's. Surge's random prices reveal riders' surplus. Position has value of its own, apart from relevance. Ratings inflate; count the silence. Quality scores align revenue with relevance. The sales that come through an ad are not the sales it causes. Peeking manufactures winners. Shared drivers inflate an A/B test. Target the effect, not the outcome. The short run can point the wrong way. And flexibility has a value that a job's protections must be weighed against.
The problems: the surge that clears the market; consumer surplus under an exponential demand curve; a quality-scored auction; an A/B test with shared drivers; the variance that CUPED removes; and a starred problem on the platform's commission. Full solutions are in the part's notes.
The reading: Kohavi, Tang and Xu on online experiments; Evans and Schmalensee on multisided platforms. Then the papers, from Rochet and Tirole's two-sided markets to Bajari and his colleagues on experiments in marketplaces.
Next time, from the platform's market to the firm's own workings. Near Mumbai, economists offered free management consulting to a randomly chosen group of large textile plants: clean floors, recorded defects, stock that is counted. Practices that had been free to adopt all along. Management, personnel economics, executive pay, governance. Part sixty-two: inside the firm.
Where it goes next. Part 62 goes inside the firm: management practices, personnel economics, executive pay and governance.
Key results
The part's results in one place, for revision.
Try it
Lab 61 · The platform
Run the Island's ride-hailing app and marketplace: set the surge and the commission, sell its ads, test its changes, and check each answer against the truth the Island knows.
python -m videos.economics.labs 61
needs numpy, scipy, matplotlib · download lab61.py ·
source on GitHubNew Year's Eve: requests completed at the peak, surge off and on; the peak multiplier 27%, 100%; 2.76x
surge's surplus: consumer surplus per dollar; the elasticity at the normal fare $1.42; -0.59
the commission: the platform's best; its take at 10% and 30% ($ an hour) 29%; $352, $622
riders' and drivers' surplus at 10% and 30% ($ an hour) $2,849, $1,579
ranking: attention, top slot over fifth; clicks per search, organic and with a sponsored top slot 3.34; 2.05, 1.84
reputation: median percent positive; correlation with quality, percent positive and effective 99.1%; 0.51, 0.68
ad auction: revenue per search, ranked by bid and by bid x quality $0.970, $1.005
search ads: the dashboard's return, a regression's, the experiment's, the truth 1,238%, 2,609%, -64%, -64%
A/A tests 'significant': read once at the end, read every day 5.2%, 27.4%
CUPED: variance ratio, against 1 - rho^2 0.57, 0.51
a rider discount: by user, switchback, by city, the truth (rides per 100 riders) 18.0, 6.6, 6.9, 6.7
coupons: extra purchases per 100, to the likeliest buyers, at random, by estimated effect -0.7, +6.1, +12.2
a discount: first month, the surrogate index, the year's truth +41%, -3.4%, -3.1%
drivers' surplus a day: flexible hours, a fixed shift $54, $16
free search: the median value from a willingness-to-accept survey (planted $15,000) $14,171
online sales, share of American retail: first and latest quarters 0.6% (1999-10), 17.9% (2026-07)
A platform is a market with an owner: every number above is a choice of that owner, and every measurement of it is only as good as the comparison behind it.
The code (93 lines; it asserts its own result)
"""Lab 61: the platform: surge pricing on a busy night, the commission in a two-sided market, ranking and
reputation, quality-scored ad auctions, what search ads return, experiments with peeking, variance reduction and
interference, uplift and the surrogate index, flexible work, and what a free service is worth."""
import numpy as np
from videos.coursekit import labs
from explainer.economics import data
from explainer.economics.agora import platform as PL
TITLE = "The platform"
GOAL = ("Run the Island's ride-hailing app and marketplace: set the surge and the commission, sell its ads, test its "
"changes, and check each answer against the truth the Island knows.")
TASKS = [
"Make drivers slower to respond to the surge (PL.surge_night(True, {'lag': 15})). What happens to the completion "
"rate and the peak multiplier?",
"Raise drivers' outside wage to $25 (PL.commission(params={'w0': 25.0})). How does the platform's best commission "
"move, and why?",
"Make regulars a smaller share of searchers (PL.search_ads(frequent=0.1, reps=50)). What happens to the gap "
"between the dashboard's return and the truth?",
]
def run(seed=0):
lab = labs.Lab()
on, off = PL.surge_night(True), PL.surge_night(False)
lab.row("New Year's Eve: requests completed at the peak, surge off and on; the peak multiplier",
f"{100 * off['rate_peak']:.0f}%, {100 * on['rate_peak']:.0f}%; {max(on['m']):.2f}x")
S = PL.surge_surplus(seed=61 + seed)
lab.row("surge's surplus: consumer surplus per dollar; the elasticity at the normal fare",
f"${S['cs_per_dollar']:.2f}; {S['elasticity_at_base']:.2f}")
C = PL.commission()
i10, i30 = C["c"].index(0.1), C["c"].index(0.3)
lab.row("the commission: the platform's best; its take at 10% and 30% ($ an hour)",
f"{100 * C['best_c']:.0f}%; ${C['platform'][i10]:.0f}, ${C['platform'][i30]:.0f}")
both = [C["rider_cs"][i] + C["driver_surplus"][i] for i in (i10, i30)]
lab.row("riders' and drivers' surplus at 10% and 30% ($ an hour)", f"${both[0]:,.0f}, ${both[1]:,.0f}")
Rk = PL.ranking()
lab.row("ranking: attention, top slot over fifth; clicks per search, organic and with a sponsored top slot",
f"{Rk['top_vs_fifth']:.2f}; {Rk['total']:.2f}, {Rk['total_sponsored']:.2f}")
Rp = PL.reputation(seed=61 + seed)
lab.row("reputation: median percent positive; correlation with quality, percent positive and effective",
f"{100 * Rp['pp_median']:.1f}%; {Rp['corr_pp']:.2f}, {Rp['corr_epp']:.2f}")
G = PL.gsp()
lab.row("ad auction: revenue per search, ranked by bid and by bid x quality",
f"${G['bid only']['revenue']:.3f}, ${G['quality']['revenue']:.3f}")
A = PL.search_ads(reps=60, seed=61 + seed)
assert A["experiment_roi"] - 3 * A["experiment_sd"] / np.sqrt(60) < A["true_roi"] # the experiment is centred
lab.row("search ads: the dashboard's return, a regression's, the experiment's, the truth",
f"{100 * A['attributed_roi']:,.0f}%, {100 * A['ols_roi']:,.0f}%, {100 * A['experiment_roi']:.0f}%, "
f"{100 * A['true_roi']:.0f}%")
Pk = PL.peeking(reps=1000, seed=61 + seed)
lab.row("A/A tests 'significant': read once at the end, read every day", f"{100 * Pk['last']:.1f}%, "
f"{100 * Pk['ever']:.1f}%")
Cu = PL.cuped(reps=300, seed=61 + seed)
lab.row("CUPED: variance ratio, against 1 - rho^2", f"{Cu['ratio']:.2f}, {Cu['predicted']:.2f}")
Sw = PL.switchback(reps=100, seed=61 + seed)
lab.row("a rider discount: by user, switchback, by city, the truth (rides per 100 riders)",
f"{100 * Sw['user']:.1f}, {100 * Sw['switchback']:.1f}, {100 * Sw['city']:.1f}, {100 * Sw['truth']:.1f}")
U = PL.uplift(seed=61 + seed)
lab.row("coupons: extra purchases per 100, to the likeliest buyers, at random, by estimated effect",
", ".join(f"{100 * U['gains'][k]:+.1f}" for k in ("likeliest buyers", "at random", "estimated effect")))
L = PL.long_term(seed=61 + seed)
lab.row("a discount: first month, the surrogate index, the year's truth",
f"{100 * L['short']:+.0f}%, {100 * L['surrogate']:+.1f}%, {100 * L['truth']:+.1f}%")
F = PL.flexibility(seed=61 + seed)
lab.row("drivers' surplus a day: flexible hours, a fixed shift", f"${F['flex']:.0f}, ${F['fixed']:.0f}")
W = PL.wta_survey(seed=61 + seed)
lab.row("free search: the median value from a willingness-to-accept survey (planted $15,000)",
f"${W['median_hat']:,.0f}")
e = data.fred("ECOMPCTSA")
lab.row("online sales, share of American retail: first and latest quarters",
f"{e['value'][0]:.1f}% ({e['date'][0][:7]}), {e['value'][-1]:.1f}% ({e['date'][-1][:7]})")
lab.note = ("A platform is a market with an owner: every number above is a choice of that owner, and every "
"measurement of it is only as good as the comparison behind it.")
fig, ax = labs.figure(2, size=(11, 4.4))
cs = np.array(C["c"]) * 100
ax[0].plot(cs, C["platform"], color=labs.ORANGE, label="platform")
ax[0].plot(cs, C["rider_cs"], color="tab:blue", label="riders")
ax[0].plot(cs, C["driver_surplus"], color="tab:olive", label="drivers")
ax[0].axvline(100 * C["best_c"], color="k", lw=1, ls="--")
ax[0].set(title="the commission", xlabel="commission, %", ylabel="$ an hour")
ax[0].legend(frameon=False)
ax[1].plot(on["t"], on["requests"], label="requests, surge on")
ax[1].plot(off["t"], off["demand"], ls="--", label="requests, surge off")
ax[1].plot(on["t"], on["drivers"], label="drivers, surge on")
ax[1].plot(off["t"], off["drivers"], label="drivers, surge off")
ax[1].set(title="New Year's Eve on the Island", xlabel="minutes after 11 pm", ylabel="a minute")
ax[1].legend(frameon=False, fontsize=8)
lab.fig = fig
return lab
Now change it
- Make drivers slower to respond to the surge (PL.surge_night(True, {'lag': 15})). What happens to the completion rate and the peak multiplier?
- Raise drivers' outside wage to $25 (PL.commission(params={'w0': 25.0})). How does the platform's best commission move, and why?
- Make regulars a smaller share of searchers (PL.search_ads(frequent=0.1, reps=50)). What happens to the gap between the dashboard's return and the truth?
Problems, with solutions
Try each problem before opening its solution.
1. Surge: with requests 340 e^(-0.9 (m - 1)) and drivers 70 + 45 (m - 1) at multiplier m, find the clearing multiplier, and show that rides rise when the fare does.
Solution
Solve 340 e^(-0.9 (m - 1)) = 70 + 45 (m - 1). The left side falls and the right rises in m, so there is one root; numerically m is about 2.14, where both sides are about 121. At m = 1 only 70 rides happen (all the drivers there are), so rides rise from 70 to 121 a minute: the higher fare rations requests and brings out drivers.
2. Surplus: if a rider books with probability e^(-p/mu), show that consumer surplus per trip is mu, and find surplus per dollar at mu = 25, p = 15.
Solution
Booking with probability e^(-p/mu) means values are exponential with mean mu. Given that a rider books, the value exceeds the fare by an exponential amount with the same mean (the exponential has no memory), so surplus per trip is mu = $25. Per dollar of fare it is mu/p = 25/15, about 1.67. The Island's 1.42 averages over sessions at higher surge, where the fare is larger and the ratio smaller.
3. Quality scores: bids 4, 3, 2.5, 1 and qualities 0.5, 1, 0.7, 0.9 for three slots: rank by bid x quality and find each winner's price per click.
Solution
Scores are 2.0, 3.0, 1.75 and 0.9, so the order is B, A, C, and D gets nothing. Each pays the least bid that keeps its rank: the next score over its own quality. B pays 2.0/1 = $2.00; A pays 1.75/0.5 = $3.50; C pays 0.9/0.7, about $1.29. A, the highest bidder with the worst ad, ranks second and pays the most per click.
4. Interference: 300 riders, 170 drivers; riders want a ride with probability 0.5, 0.7 with a discount. Half get it: what does the A/B test estimate, and what is the true effect?
Solution
With half discounted, about 105 + 75 = 180 riders want a ride and 170 drivers serve a random 170/180 of them, so the treated ride at 0.7 x 0.944 = 0.661 and the controls at 0.5 x 0.944 = 0.472: the test estimates about +0.19 rides per rider. The true effect compares everyone discounted (210 want, 170 ride: 0.567 per rider) with nobody (150 want, all ride: 0.5): about +0.067. The test is nearly three times the truth, because the treated riders' extra rides come mostly from the controls.
5. CUPED: show that subtracting theta (X_B - X_A) with theta = Cov(X, Y)/Var(X) cuts the variance of the difference by the factor 1 - rho^2.
Solution
Work with Y - theta X for each user. Its variance is Var(Y) - 2 theta Cov(X, Y) + theta^2 Var(X), which is smallest at theta = Cov(X, Y)/Var(X), where it equals Var(Y) (1 - rho^2). The difference in means of the adjusted outcome has the same factor, and since X is measured before randomization, the mean of X_B - X_A is zero: the adjustment removes noise without moving the estimate's centre.
6. The commission: the platform maximizes c F T(c) for fare F and trips T(c). Show that at its best commission d ln T/d ln c = -1, and explain why drivers' waits enter T'(c).
Solution
The first-order condition is F T(c) + c F T'(c) = 0, that is c T'(c)/T(c) = -1: the elasticity of trips with respect to the commission is -1 at the optimum, the monopolist's rule with the commission as the price. T'(c) is the full equilibrium response: a higher commission lowers pay per trip, fewer drivers drive, utilization and waits rise, and fewer riders ride, which lowers trips per driver again. The feedback through waits makes trips more responsive than the drivers' decision alone, and it is why the platform's best commission (29% on the Island) costs riders and drivers far more than it earns.
Notes and sources
Sources
The studies the film states are listed with what each shows in dials.SHOWN[61]; the new Dials (the elasticity of rides
to the surge price, and the return on search advertising) and the returning reserve-price Dial are in
explainer/economics/dials.py, and the Called it? record of Google's advice on measuring AdWords returns in
explainer/economics/calls.py. The methods are stated from the works cited in the chapters (Rochet and Tirole 2003,
Edelman, Ostrovsky and Schwarz 2007, Varian 2007, Ostrovsky and Schwarz 2009, Deng, Xu, Kohavi and Walker 2013, Blake,
Nosko and Tadelis 2015, Hall, Kendrick and Nosko 2015, Lewis and Rao 2015, Nosko and Tadelis 2015, Cohen et al. 2016,
Einav, Farronato and Levin 2016, Tadelis 2016, Athey, Catalini and Tucker 2017, Ursu 2018, Athey and Luca 2019, Athey,
Chetty, Imbens and Kang 2019, Brynjolfsson, Collis and Eggers 2019, Chen et al. 2019, Allcott et al. 2020, Kohavi, Tang
and Xu 2020, Cook et al. 2021, Fradkin, Grewal and Holtz 2021, Bajari et al. 2023) and computed here.
About this partfrom its README
Part 61 of a sixty-eight-part course in economics (see the series plan and the syllabus), the fifth of Act XI, Economics at Work. It asks what the economists inside technology companies do. Its answer: they design markets that a company owns (the commission, the surge, the ranking, the ratings, the ad auction); they measure what those choices do, mostly by experiment, and catch the ways experiments mislead (peeking, interference, effects that change with time); and they ask the questions engineers do not: is it caused, what does the other side do, and whose welfare is it?
It opens on New Year's Eve 2014 in New York, when a fault switched off a ride-hailing app's surge pricing for twenty-six minutes: about a quarter of requests were completed, against nearly all of them after a sold-out concert at Madison Square Garden with surge working (a case study by the company's own economists). The Island's app has its own New Year's Eve. From there it covers:
- the Island's night: requests spike at midnight to more than five times the usual rate; with surge off, about 27% of requests are filled at the peak; with it on, the fare rises to 2.8 times normal, fewer riders request, more drivers come out a few minutes later, and every request is filled;
- a platform as a designed market (Parts 17 and 44): prices, matching, information and rules; theory, measurement and experiments (Athey and Luca 2019);
- Play it: the commission in a two-sided market with a $20 fare (10%: $352 an hour for the platform; 20%: $562; 30%: $622; 45%: $479); the platform's best is 29%, and moving from 10% to 30% gains it $270 an hour while riders and drivers lose $1,270, because each driver who leaves lengthens every rider's wait;
- surge pricing as market clearing (at the peak minute, 340 requests and 70 drivers at the normal fare; the clearing fare is 2.1 times normal, with 121 rides a minute); consumer surplus from random surge levels ($1.42 per dollar on the Island; about $1.60 for UberX in Cohen, Hahn, Hall, Levitt and Metcalfe 2016, with elasticities mostly between -0.4 and -0.6); the 2014 emergency cap agreed with New York's attorney general;
- search and ranking: position alone gives the top slot 3.3 times the fifth's attention; a sponsored listing in the top slot cuts clicks per search from 2.05 to 1.84; Ursu's randomized rankings; the Google Shopping decision (2017, upheld in 2024);
- reputation: percent positive has a median of 99.1% on the Island (84% of sellers at 98% or more), the effective percent positive spreads sellers out and tracks quality better (correlation 0.68 against 0.51); Nosko and Tadelis on eBay; Airbnb's simultaneous reviews (Fradkin, Grewal and Holtz);
- ad auctions in practice: quality scores (revenue $1.005 a search against $0.970 by bid alone, with more clicks); a reserve; Yahoo!'s reserve-price experiment; the move to first price; auto-bidding;
- does advertising work? On the Island the dashboard reports a return of +1,238%, a regression +2,607%, the truth is -64%, and an experiment switching ads off in 30% of 210 regions recovers it (spread about 32 points); eBay's experiment (-63%, interval -124% to -3%, against over 1,400% without it); Lewis and Rao's arithmetic (5.7 million people an arm to detect a campaign at all, 141 million to tell a 25% return from zero); Called it?: Google's advice on measuring AdWords returns (wrong);
- an intermission: online sales' share of American retail, quarterly since 1999 (0.6% to 17.9%), as a line and a tune;
- experiments at scale: A/A tests read every day declare a winner 27% of the time against 5% read once; CUPED cuts the variance to 0.54 of the plain estimator's (theory 0.51); the habits of an experimentation platform;
- interference: a rider discount with shared drivers; an A/B test by user finds +18.0 rides per 100 riders, the truth is +6.7, a switchback +6.7 and a test by city +6.8 (noisier); two-sided randomization;
- causal machine learning: coupons to the likeliest buyers yield -0.7 purchases per 100, at random +6.1, by estimated effect +12.2 (truth +12.9); the gains curve; a discount that raises the first month's orders by 41% and lowers the year's by 3.1%, which the surrogate index (Athey, Chetty, Imbens and Kang) predicts after eight weeks (-3.4%);
- the gig economy: flexible hours worth 3.3 times a fixed shift's surplus on the Island ($54 against $16 a day); Chen, Chevalier, Rossi and Oehlsen; Cook and coauthors' 7% gender gap among a million drivers; AB5, Proposition 22 and Uber v Aslam;
- data, attention and free goods: a willingness-to-accept survey puts the median value of free search at $14,171 (planted $15,000); Brynjolfsson, Collis and Eggers ($17,530 a year for search engines, $8,414 for email, $3,648 for maps); the privacy paradox;
- the Dials (the elasticity of rides to the surge price, new; the return on search advertising, new; what a reserve price adds, Part 16's), economists in tech, and the frontier: markets of agents, recommendation and welfare.
What is computed and built
Everything plotted is computed by compute.py with Agora's platform module (explainer.economics.agora.platform);
the narration states the cached numbers.
- The night. Requests a minute 60, plus 280 decaying from midnight with a 40-minute time constant; requests fall as e^(-0.9 (m - 1)) with the multiplier m; drivers 70 + 45 (m - 1), responding with a six-minute lag; with surge, m solves requests = drivers each minute (capped at 4).
- Surge's surplus. 200,000 sessions at surge levels 1 to 2.5 times a $15 fare; a rider books with probability e^(-fare/25); the demand curve fitted by least squares on log booking rates.
- The commission. 1,000 riders an hour ride with logit probability in 3.5 - 0.08 fare - 0.8 wait; the wait is 2 + 3 u/(1 - u) minutes at utilization u = trips/(2 drivers); 2,000 potential drivers drive with logit probability in (hourly earnings - 20)/2; each commission's equilibrium by nested root-finding; surplus by logit inclusive values.
- Ranking. Ten listings with relevance drawn from a Beta(2, 3); attention k^(-0.75) at position k; clicks are attention times relevance; the sponsored listing is the sixth by relevance.
- Reputation. 2,000 sellers good 80% to 99% of the time, 200 sales each; happy buyers rate positively 60% of the time, unhappy ones negatively 5%.
- Ad auctions. Bids 4, 3, 2.5 and 1; qualities 0.5, 1, 0.7 and 0.9; three slots with click rates 30%, 18% and 10% times quality; prices are the next score over the winner's quality, and at least the reserve.
- Search ads. 210 regions, 16 weeks; 40% of searchers are regulars who buy 30% of the time; the rest buy 2% of the time, 2.3% after seeing the ad; half of searchers click an ad when shown, at 50 cents; each searcher spends $50 with log-normal noise (s.d. 0.15) by region and week; ads off in a random 30% of regions for the last eight weeks; 200 runs.
- Experiments. A/A tests of a 5% conversion rate, 2,000 users a day an arm for 30 days, 2,000 runs; CUPED with a pre-period correlation of 0.7, 20,000 users a test, 1,000 runs.
- Interference. 20 cities with sizes and drivers per rider varying by city, 48 hours, 300 riders a city-hour wanting a ride with probability 0.5 (0.7 with the discount), drivers Poisson with mean 170 times the city's factors, and rides shared at random among those who want one; 400 runs of each design.
- Uplift and surrogates. 50,000 customers with effects 0.06 (1 - x), x standard normal, estimated with noise (s.d. 0.03); a coupon budget of 30%. The discount: first-month orders and second-month sessions Poisson, with the year's orders Poisson in 0.5 + 1.2 orders + 0.6 sessions; the index fitted on 40,000 untreated customers.
- Flexibility. 5,000 drivers with reservation wages normal around a personal level (mean $25, s.d. $6) with hourly shocks (s.d. $9); pay $20 an hour; the best eight-hour shift or none.
- Free search. 4,000 respondents with log-normal values (median $15,000, log-s.d. 1.3) offered sums from $100 to $1,000,000 at random on a log scale; a logit of acceptance on the log of the offer.
Chapter notes
| # | Chapter | What it does |
|---|---|---|
| 0 | Twenty-six minutes | New Year's Eve 2014; the Island's night with surge off and on; the question; objectives |
| 1 | A platform is a designed market | Prices, matching, information, rules; theory, measurement, experiments |
| 2 | Play it: set the commission | Four commissions in a two-sided market; the platform's best against everyone's |
| 3 | Surge pricing | Market clearing at the peak; consumer surplus from random surge levels; the emergency cap |
| 4 | Search and ranking | Position against relevance; a sponsored top slot; self-preferencing |
| 5 | Reputation | Percent positive against effective percent positive; simultaneous reviews |
| 6 | Ad auctions in practice | Quality scores; reserves; first price; auto-bidding |
| 7 | Does advertising work? | Attribution, regression and experiment; eBay; Lewis and Rao; Called it? |
| — | Intermission | Online sales' share of American retail since 1999, as a line and a tune |
| 8 | Experiments at scale | Peeking; CUPED; the habits of an experimentation platform |
| 9 | When units interfere | By user, switchback and city designs with shared drivers |
| 10 | Causal machine learning in production | Uplift targeting; the gains curve; the surrogate index |
| 11 | The gig economy | The value of flexible hours; drivers' data; the law |
| 12 | Data, attention and free goods | A willingness-to-accept survey; what free goods are worth; privacy |
| 13 | The Dials | Rides' elasticity to surge (new); the return on search ads (new); reserves (Part 16's) |
| 14 | In practice: economists in tech | The roles; three questions for every number |
| 15 | Frontier: markets of agents | Search by agents; recommendation and welfare; open questions |
| — | Outro | The answer; twelve lines; problems; reading; next, Part 62, Inside the Firm |
Notes
python -m videos.economics.labs 61: the night with surge off and on; surge's surplus; the commission; ranking and reputation; the ad auction; search ads by attribution, regression and experiment; peeking and CUPED; interference; uplift and the surrogate index; flexibility; free search; online sales on FRED data.- The interactive (course site): platform. The reader sets the commission, the fare and drivers' outside wage, and watches trips, waits, the platform's take and both sides' surplus move.
Companion material in this repository
The syllabus's plan for this partfrom SYLLABUS.md, the plan of record
- Hook: the twenty-six minutes; the question; objectives.
- A platform as a designed market (Parts 17, 44): who it matches, what it prices, what it hides.
- Play it: set the commission and watch both sides.
- Surge pricing as market clearing; the consumer surplus under Uber's demand curve (Cohen et al. 2016); what drivers do.
- Search and ranking: position effects; what a sponsored slot is worth; steering.
- Reputation: why almost every rating is five stars; redesigns that restore information.
- Ad auctions in practice (Part 16): quality scores, reserves, the move to first price, auto-bidding.
- Does advertising work? The eBay search experiment (Blake, Nosko and Tadelis 2015); why it is so hard to measure (Lewis and Rao 2015).
- Experiments at scale: A/B tests, peeking, variance reduction (Statistics, Built 13, 58).
- When units interfere: marketplace experiments, switchbacks, two-sided randomization (Statistics, Built 64); bias on the Island's marketplace, with the truth known.
- Causal machine learning in production: uplift, heterogeneous effects, long-term outcomes from surrogates.
- The gig economy: flexibility valued (Chen et al. 2019); earnings; classification.
- Data, attention and privacy: what a user's data is worth; the welfare of free goods (Brynjolfsson, Collis and Eggers 2019).
- Dials. 14. In practice: the roles (Athey and Luca 2019). 15. Frontier: marketplaces with AI agents on both sides; recommendation and welfare.
Agora: platform: a two-sided marketplace with search, ranking, ratings, surge pricing and an ad auction; an
experimentation layer that can randomize by user, by time or by market.
Dials: the return on search advertising; the elasticity of rides to the surge multiplier.
Called it? the pre-experiment belief in paid-search returns at eBay.
Reading: Athey & Luca 2019; Varian 2007, 2014; Cohen et al. 2016; Blake, Nosko & Tadelis 2015; Lewis & Rao
2015; Kohavi, Tang & Xu; Bajari et al. 2023 on marketplace experiments; Tadelis 2016 on reputation; Einav,
Farronato & Levin 2016.
Build the film
python -m videos.economics.econ61.compute # the part's numbers, into .cache/econ61
python tools/build.py econ61 # render and assemble the film
EXPLAINER_TTS=silent python tools/qa_scene.py econ61 Hook # one chapter, silent, with a contact sheet
Scenes: videos/economics/econ61. Setup: see the course page. Source of these notes: the README and the scenes' narration.
Build it
python -m videos.economics.econ61.compute # every number (under a minute), into .cache/econ61/
python tools/qa_scene.py econ61 PlayIt # one chapter, silent, at 480p, with a contact sheet
EXPLAINER_TTS=silent python tools/build.py econ61 -q l # the whole part, silent preview
python tools/build.py econ61 # 1080p30 with narration and the series' computed score
python -m videos.economics.labs 61 # the lab
The data are FRED's e-commerce share of retail sales (ECOMPCTSA, from the Census Bureau), registered in
SOURCES.md. Everything else is computed on the Island, or stated from
the papers listed in dials.SHOWN[61].