Auction mechanisms: same expected revenue, very different bidding
拍卖机制
Compare second-price and first-price auctions under stated independent-private-value assumptions, compute equilibrium bids, revenue means and variances exactly, check them by seeded simulation, and derive optimal reserve prices from virtual values.
auctionsPay your bid, or pay the next one?
A lab wants to sell one block of reserved compute time to one of several research groups. Each group knows what the block is worth to it; the lab does not. Two simple sealed-bid rules are on the table. In a first-price auction the highest bidder wins and pays its own bid. In a second-price (Vickrey) auction the highest bidder wins and pays the second-highest bid. The first sounds as if it should raise more money, because winners pay what they bid. But bidders know the rule too. In a first-price auction, bidding your true value guarantees zero gain, so everyone shades; in a second-price auction, the price does not depend on your own bid once you win, so shading only risks losing an item you wanted.
Which effect wins? Under a specific, stated model (independent private values, risk-neutral bidders, symmetric equilibrium play) the answer is a tie in expectation: both formats raise the same expected revenue. They still differ in how bidders must reason, in the spread of revenue, and in how they break when the model’s assumptions fail. Shoham and Leyton-Brown present auctions as the most famous application of mechanism design; this article treats single-item auctions, while the general machinery (revelation principle, VCG) is in mechanism design. Auctions chapter
The model, the two formats, and why expected revenue ties
Model. There are bidders. Bidder has a private value for the item, drawn independently from a commonly known distribution ; this is the independent private value (IPV) setting, appropriate when values reflect personal use rather than a common resale price. Utility is quasilinear: a winner who pays gets , a loser gets 0, and bidders are risk neutral unless stated otherwise. IPV setting Quasilinear bidder model
Second-price auction. Let be the highest competing bid. Bidder wins and pays if , otherwise gets nothing, so its utility is
Bidding attains , the best available, whatever is. Truthful bidding is therefore a dominant strategy, it never yields negative utility, and with truthful bids the item goes to the bidder who values it most. Roughgarden calls this combination (dominant-strategy incentive compatibility, welfare maximization and linear-time computation) what makes the Vickrey auction “awesome”; Shoham and Leyton-Brown note that the argument holds for any risk attitude because it never averages over outcomes. Claims 4.1–4.2, Theorem 5.1 Theorem 11.1.1 The second-price auction is the single-item case of VCG. Ascending (Japanese) auctions are equivalent to it under IPV, and proxy bidding on online auction sites behaves like it up to the bid increment. Second-price, Japanese and English auctions
First-price auction. There is no dominant strategy. Assume values are uniform on and the other bidders bid . A bidder with value who bids wins when every other value is below :
With the best response reproduces the same rule, so bidding is a symmetric Bayes–Nash equilibrium; Shoham and Leyton-Brown state it is the unique symmetric one. The Dutch (descending-clock) auction is strategically equivalent to the first-price auction. Proposition 11.1.2, Theorem 11.1.3
Revenue equivalence. Let be bidder ‘s probability of winning and its expected utility in equilibrium when its value is . Because a bidder of value could always imitate the equilibrium behavior of a different value, equilibrium requires , hence
Expected payment is . Two auctions that always give the item to the highest-value bidder have the same ; if the lowest type also gets zero utility in both, every type makes the same expected payment, so expected revenue is equal. This is the revenue equivalence theorem for risk-neutral bidders with IPV drawn from an atomless, strictly increasing . Theorem 11.1.4 The notes credit Vickrey (1961) with the uniform-distribution analysis and an early version of the result, and Myerson (1981) and Riley and Samuelson (1981) with the general form. History notes
For uniform values both formats raise in expectation. Their spreads differ. Second-price revenue is the second-highest of uniform values; first-price revenue is times the highest:
(We derived these from the Beta-distribution moments of order statistics: the second-highest of uniform values is Beta and the highest is Beta. The formulas are our own derivation, not taken from the cited pages, and the program checks them against simulation. The ratio of second-price to first-price variance is .) Shoham and Leyton-Brown make the qualitative point: second-price payments vary more because they depend on the two highest draws, so a risk-averse seller would prefer a first-price auction. Risk attitudes The first-price formula is smaller for every : the seller trades a random price for a deterministic function of the top value.
Revenue-optimal auctions. If the seller only wants revenue, it may refuse to sell at low prices. Roughgarden derives, for direct DSIC mechanisms with independent values from known distributions with densities , that expected revenue equals expected virtual welfare:
So revenue is maximized by giving the item to the bidder with the highest virtual value, provided it is positive. When the distributions are identical and regular (virtual value increasing), that is a second-price auction with reserve price . For uniform values and . Expected revenue equals expected virtual welfare; Bayesian optimal auctions With asymmetric distributions the optimal auction can sell to a bidder who did not bid highest, which sacrifices efficiency. Shoham and Leyton-Brown add that such auctions are rarely used because they are not “detail-free”: the seller must know the value distributions. They also report the Bulow–Klemperer result that, with symmetric IPV, one extra bidder is worth more to the seller than setting the optimal reserve. Section 11.1.8
Exact formulas and a seeded simulation
The program states its model in the first lines: risk-neutral bidders, IPV, values uniform on , truthful bids in the second-price auction and bids in the first-price auction. It computes exact means and variances with fractions.Fraction, checks them with 200,000 simulated auctions per (seeds fixed in the code), checks the first-price best response for one bidder on a grid of bids, computes the exact revenue of second-price auctions with reserve prices by integrating from to 1, and runs one non-equilibrium scenario.
"""Single-item auctions under a stated model: n risk-neutral bidders, independent private
values drawn uniformly from [0, 1], symmetric equilibrium bidding. Synthetic data only."""
import random
import statistics
from fractions import Fraction as F
def exact_moments(n):
"""Exact revenue mean/variance: second-price (truthful) and first-price ((n-1)/n * value)."""
spa_mean = F(n - 1, n + 1) # second-highest of n uniforms
spa_var = F(2 * (n - 1), (n + 1) ** 2 * (n + 2))
c = F(n - 1, n)
fpa_mean = c * F(n, n + 1) # shaded highest value
fpa_var = c * c * F(n, (n + 1) ** 2 * (n + 2))
return spa_mean, spa_var, fpa_mean, fpa_var
def reserve_revenue(n, r):
"""Expected revenue of a second-price auction with reserve r, via E[virtual value of winner].
For U[0,1], phi(v) = 2v - 1, so revenue = n * integral_r^1 (2v - 1) v^(n-1) dv."""
r = F(r)
return n * (F(2, n + 1) * (1 - r ** (n + 1)) - F(1, n) * (1 - r ** n))
def simulate(n, rounds, seed, shade=None, reserve=0.0):
rng = random.Random(seed)
spa, fpa = [], []
shade = (n - 1) / n if shade is None else shade
for _ in range(rounds):
v = sorted(rng.random() for _ in range(n))
top, second = v[-1], v[-2]
spa.append(max(second, reserve) if top >= reserve else 0.0)
fpa.append(shade * top)
return spa, fpa
def fpa_utility(value, bid, n):
"""Exact expected utility of one bidder bidding `bid` when the n-1 others bid (n-1)/n * value."""
c = F(n - 1, n)
win = min(F(1), bid / c) ** (n - 1)
return (value - bid) * win
for n in (2, 3, 5):
sm, sv, fm, fv = exact_moments(n)
spa, fpa = simulate(n, 200_000, seed=7 + n)
print(f'n={n}: exact mean revenue SPA={sm} FPA={fm}; exact variance SPA={sv} FPA={fv}')
print(f' simulated mean SPA={statistics.fmean(spa):.5f} FPA={statistics.fmean(fpa):.5f};'
f' variance SPA={statistics.pvariance(spa):.5f} FPA={statistics.pvariance(fpa):.5f}')
n, value = 3, F(3, 5)
grid = [F(k, 100) for k in range(0, 61)]
best = max(grid, key=lambda b: fpa_utility(value, b, n))
print(f'FPA best response, n={n}, value={value}: best bid on 0.01 grid = {best},'
f' utility {fpa_utility(value, best, n)}; equilibrium bid {F(n - 1, n) * value};'
f' truthful bid utility {fpa_utility(value, value, n)}')
print('Reserve prices with n=2:')
for r in (0, F(1, 4), F(1, 2), F(3, 4)):
print(f' reserve {r}: exact expected revenue {reserve_revenue(2, r)}')
spa_r, _ = simulate(2, 200_000, seed=99, reserve=0.5)
print(f' simulated with reserve 1/2: {statistics.fmean(spa_r):.5f}')
print(f' third bidder, no reserve: {reserve_revenue(3, 0)}'
f' vs two bidders with reserve 1/2: {reserve_revenue(2, F(1, 2))}')
_, wrong = simulate(4, 200_000, seed=21, shade=0.5)
print(f'n=4 if everyone bid half their value in FPA (not an equilibrium): mean revenue'
f' {statistics.fmean(wrong):.5f} vs equilibrium {exact_moments(4)[2]}')
Recorded output:
n=2: exact mean revenue SPA=1/3 FPA=1/3; exact variance SPA=1/18 FPA=1/72
simulated mean SPA=0.33300 FPA=0.33325; variance SPA=0.05560 FPA=0.01388
n=3: exact mean revenue SPA=1/2 FPA=1/2; exact variance SPA=1/20 FPA=1/60
simulated mean SPA=0.49952 FPA=0.49975; variance SPA=0.04985 FPA=0.01677
n=5: exact mean revenue SPA=2/3 FPA=2/3; exact variance SPA=2/63 FPA=4/315
simulated mean SPA=0.66698 FPA=0.66688; variance SPA=0.03177 FPA=0.01266
FPA best response, n=3, value=3/5: best bid on 0.01 grid = 2/5, utility 9/125; equilibrium bid 2/5; truthful bid utility 0
Reserve prices with n=2:
reserve 0: exact expected revenue 1/3
reserve 1/4: exact expected revenue 3/8
reserve 1/2: exact expected revenue 5/12
reserve 3/4: exact expected revenue 1/3
simulated with reserve 1/2: 0.41731
third bidder, no reserve: 1/2 vs two bidders with reserve 1/2: 5/12
n=4 if everyone bid half their value in FPA (not an equilibrium): mean revenue 0.40033 vs equilibrium 3/5
Equal means, unequal spreads. For , and the exact expected revenue is 1/3, 1/2 and 2/3 in both formats, and the simulated means agree to within about one standard error (for the standard error of a 200,000-round mean is about 0.0005). The variances differ by a factor of : 1/18 against 1/72 for two bidders, 1/20 against 1/60 for three.
Shading is a best response. A bidder with value 3/5 facing two opponents who bid maximizes its exact expected utility on a 0.01-spaced grid at a bid of 2/5, the equilibrium bid, with expected utility 9/125. Bidding its value would give utility 0. The grid search confirms the derivative calculation for one value; it does not prove uniqueness.
Reserve prices. With two bidders, a reserve of 1/4, 1/2 or 3/4 yields 3/8, 5/12 and 1/3. The optimum at 1/2 raises revenue from 1/3 to 5/12, matching Roughgarden’s worked figure, and simulation gives 0.41731. Too high a reserve gives back everything gained. Adding a third bidder with no reserve yields 1/2, more than 5/12: this instance agrees with the Bulow–Klemperer comparison reported by Shoham and Leyton-Brown. Reserve example Extra bidder vs reserve
Equivalence needs equilibrium. If four bidders in a first-price auction all bid half their value (the two-bidder equilibrium rule, not the four-bidder one), expected revenue falls to about 0.400 instead of 3/5. Revenue equivalence compares auctions at their equilibria; it does not say any bidding behavior gives the same revenue.
Each simulated auction sorts values, so the simulation costs for rounds; the exact formulas cost per . The program uses random.Random with fixed seeds and the standard library only.
Assumptions that change the answer
Every equality above depends on the model. With risk-averse bidders, first-price auctions raise more expected revenue than second-price auctions, because a risk-averse bidder prefers the certain margin of a slightly higher first-price bid. Risk attitudes If bidders’ values come from different distributions, the theorem as stated (a common distribution ) no longer applies, so equal revenue should not be assumed. With interdependent or common values (for example, resale value that every bidder estimates with noise) the IPV analysis does not apply; the book treats that case separately and this article does not.
Second-price auctions are dominant-strategy truthful only for single-item, private-value settings. Their dominant-strategy property says nothing about collusion among bidders, about a seller who submits shill bids to raise the second price, or about bidders who doubt that the seller will honestly reveal the second bid. English auctions add jump bidding, which makes them harder to analyze than the Japanese clock model. English vs Japanese auctions
The optimal reserve requires knowing . In practice is estimated from past bids, and an estimate that is too high loses sales, as the 3/4 reserve shows. Finally, everything here is synthetic: uniform values and 200,000 simulated draws show the formulas behaving as stated, not how real bidders behave.
Bids, prices and what the seller can expect
-
In a second-price auction your value is 70 and you believe the highest other bid is 60. Should you bid 65 to “save” money?
Answer: No. If you win, you pay the highest other bid, 60, whether you bid 65 or 70, so shading saves nothing when you win. It only adds a risk: if the highest other bid were actually 67, bidding 65 would lose an item you value at 70 and could have bought for 67.
-
Four bidders with uniform values bid in a first-price auction. What does a bidder with value 0.8 bid in the symmetric equilibrium, and what is the seller’s expected revenue?
Answer: It bids . Expected revenue is , the same as in a second-price auction with four bidders.
-
A seller reasons: “Both formats give the same expected revenue, so my revenue risk is the same.” Correct this using the program’s output.
Answer: The means are equal but the variances are not. For two bidders the second-price revenue variance is 1/18, four times the first-price variance 1/72. A risk-averse seller who cares about the spread may prefer the first-price format even under the same model, and the conclusion changes again if bidders are risk averse.
-
A cloud provider auctions spare GPU hours to many small customers with similar, independent needs and has years of bid data. A colleague proposes estimating the value distribution and setting the theoretically optimal reserve. What would you check, and what alternative would you consider?
Answer: Check that values are plausibly independent and private (not driven by a shared market price), that the fitted distribution is regular, and how sensitive revenue is to errors in the estimated reserve: in the program, moving the reserve from 1/2 to 3/4 drops revenue from 5/12 to 1/3. Consider attracting more bidders or using a simple, robust reserve instead, since the Bulow–Klemperer comparison suggests extra competition can be worth more than a fine-tuned reserve, and a detail-free rule is less exposed to estimation errors.
Further reading
Shoham and Leyton-Brown’s chapter 11 continues past single-item auctions to multiunit, position and combinatorial auctions, bidding languages and exchanges, and its notes point to Krishna’s textbook and Klemperer’s survey as fuller treatments; they also recommend Vickrey’s 1961 paper as still worth reading. Chapter 11 and notes Roughgarden’s lectures derive the Vickrey auction’s properties from scratch and the Myerson optimal auction through virtual values, with extensions to irregular distributions by “ironing”. Vickrey auction Revenue-maximizing auctions
When you compare auction formats, state the value model, the risk attitudes, the number of bidders and whether it is known, the equilibrium you assume, and report revenue distributions rather than only means.
Make a prediction, then check
Two risk-neutral bidders with uniform [0,1] values: what is the expected revenue of a second-price auction with reserve 1/2?
Learning objectives
- Under explicit IPV and risk-neutral assumptions, derive the dominant strategy of second-price auctions and the symmetric first-price equilibrium, and explain the conditions of revenue equivalence.
- Use virtual values to compute optimal reserves and their revenue, and compare revenue variance, extra bidders and the effect of model failures.
Prerequisites & connections
Explore related knowledge →References
- Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations — Revision 1.1 PDF, chapter 11 (auctions), scoped
Yoav Shoham; Kevin Leyton-Brown · 2010 - CS364A Lecture #2: Mechanism Design Basics — scoped lecture notes
Tim Roughgarden · 2013 - CS364A Lecture #5: Revenue-Maximizing Auctions — scoped lecture notes
Tim Roughgarden · 2013
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Claude · 2026-12-02 · Independent AI check (Claude subagent, not the author; not a human or expert review). Ran example.py with python3 and diffed against example.stdout.txt (identical); confirmed byte-identical python blocks and quoted numbers, including the standard-error statement. Re-derived analytically for IPV uniform[0,1] with n bidders: second-highest value ~ Beta(n-1,2) with variance 2(n-1)/((n+1)^2(n+2)); highest ~ Beta(n,1) with variance n/((n+1)^2(n+2)); first-price revenue variance ((n-1)/n)^2 times that, i.e. (n-1)^2/(n(n+1)^2(n+2)); ratio 2n/(n-1), giving 4, 3 and 5/2 for n=2,3,5. Re-derived reserve revenue 1/3 - 4r^3/3 + r^2 for n=2, giving 3/8, 5/12, 1/3 at r=1/4, 1/2, 3/4, and 1/2 for three bidders without reserve; the first-price best-response utility 9/125 and exercise answers. Re-read in Shoham and Leyton-Brown Revision 1.1 printed pages 335-341 (Theorem 11.1.1, proxy bidding and jump bids, Theorems 11.1.3-11.1.4, risk attitudes and Table 11.1), 344-345 (optimal auctions, detail-free, extra bidder) and the 11.5 notes on 380; re-read Roughgarden Lecture 2 pages 1-4 and Lecture 5 pages 1-8. Vickrey 1961, Myerson 1981 and Bulow-Klemperer 1996 are attributed only via the book's notes or Roughgarden's notes. Did not render the MDX.
- Revenue variance formulas for both formats were derived analytically, confirming the 2n/(n−1) ratio.
- Reserve revenues 3/8, 5/12, 1/3 and the three-bidder no-reserve revenue 1/2 were verified by hand.
- Vickrey 1961, Myerson 1981 and Bulow–Klemperer are attributed only via the book's notes or Roughgarden's notes; zh and en match section by section.
Source locations checked:
- Multiagent Systems: Algorithmic, Game-Theoretic, and Logical Foundations — Revision 1.1 PDF, chapter 11 (auctions), scoped · Printed pages 333–340, 343–345 and the first half of 380 of the Revision 1.1 PDF. Checked: IPV definition, Theorem 11.1.1 and case-analysis proof (risk-attitude independence), Japanese/English/proxy-bidding relations and jump bids, Dutch–first-price strategic equivalence, Proposition 11.1.2 derivation, Theorem 11.1.3 ((n−1)/n, unique symmetric), Theorem 11.1.4 conditions and envelope proof (11.3–11.9), order statistic (11.10), risk-averse bidders favor first-price revenue, optimal auction with virtual valuations and reserve, detail-free/Wilson doctrine, extra-bidder-beats-reserve claim, notes crediting Vickrey 1961, Myerson 1981, Riley–Samuelson 1981, Bulow–Klemperer 1996. Not read: 329–332, 341–342, after 345 (TOC only). Added by the independent check: top half of printed page 341 (Table 11.1; seller risk attitude and greater variation of second-price payments).
- CS364A Lecture #2: Mechanism Design Basics — scoped lecture notes · Pages 1–4 of the 7-page 2013-09-25 notes. Checked: quasilinear model, sealed-bid formats, first-price difficulty, Claims 4.1–4.2 and proofs (tie footnote), proxy bidding remark, Theorem 5.1 three properties. Not read: pages 5–7.
- CS364A Lecture #5: Revenue-Maximizing Auctions — scoped lecture notes · Pages 1–8 (to the start of section 3.2) of the 8-page 2013-10-07 notes. Checked: monopoly price 1/2 and revenue 1/4, two-bidder Vickrey revenue 1/3 and 5/12 with reserve 1/2, Steps 1–6 to Equation (6), virtual valuation 2v−1 for U[0,1], regularity, optimal auction = Vickrey with reserve φ^{-1}(0) for i.i.d. regular, ironing mentioned. Not read: exercises, references.
Related topics