Algorithmintro
English auction
Also called ascending price auction, open outcry auction, ascending clock auction.
The price rises step by step while bidders drop out, and the last bidder left wins at the current price. With private values, staying in until the price reaches one's value is dominant.
- Time
- O(n k) worst
- Space
- O(n) extra
- Where
- k = the number of clock steps; n = the number of bidders
- Model
- Word RAM
- Properties
- comparison baseddeterministiciterative
- Evidence
- Proof sketchCode in 1 languages
- Origin
- William Vickrey, Paul Milgrom, Robert J. Weber, 1961
The English auction sells one item by a price that rises in public. The bidders who still want the item at the current price stay in, the others drop out, and the last bidder left wins at the price where the second-to-last one dropped out. With private values, a bidder's best plan is to stay in until the price reaches its value, so the English auction has the same outcome as the Vickrey auction, the sealed-bid auction in which the winner pays the second-highest bid. It is the mirror of the Dutch auction, whose price falls. With interdependent values the two ascending and sealed forms differ, because the drop-out prices reveal information (linkage principle).
In plain words
An auctioneer calls a low price and raises it a little at a time. Everyone who still wants the item at the called price keeps a hand up. When a hand goes down, it stays down. When only one hand is left, that person buys the item at the last price called. Your best plan is simple: keep your hand up while the price is below what the item is worth to you, and drop it when the price passes that worth. Dropping early can lose you a good deal, and staying longer can make you pay too much. The winner pays about what the second most eager person was willing to pay, as in the sealed second-price auction.
The problem
One item is for sale to bidders with private values and quasilinear utility. The seller runs a clock: the price starts at a reserve and rises by a fixed increment . At each price every active bidder says whether it stays in, and a bidder who leaves cannot return. The auction must stop with one winner and a price, or with no sale if no bidder accepts . In the model on this page, each bidder acts by a threshold , the highest price it accepts. The truthful threshold is . A bidder may also use any strategy that depends on what it has seen, and the analysis covers that too.
The algorithm
is the set of active bidders and is the clock price.
CLOCK(d_1, ..., d_n, δ, p_0)- 1
A ← {i : d_i ≥ p_0}; p ← p_0 - 2
if A is empty: return NIL, 0 ▷ no sale - 3
while |A| ≥ 2: - 4
A' ← {i in A : d_i ≥ p + δ} ▷ who accepts the next price - 5
if A' is empty: return min A, p ▷ all left at once: the tie rule - 6
A ← A'; p ← p + δ - 7
return the bidder in A, p
Line L5 handles the case where all remaining bidders leave at the same step. The item then goes to the smallest index among them, at the last price they all accepted. Real auctions handle this case by the order in which the bids were called.
Let be the two largest thresholds, and let be the largest clock price that is at most . The clock stops at or at : at if the top bidder accepts it, and at with the tie rule otherwise. So the price is within of , which is the Vickrey price.
Example
Three bidders with values use the truthful thresholds, with and .
| clock | next price | who accepts it | active after the step |
|---|---|---|---|
| 0 | 1 | 1, 2, 3 | {1, 2, 3} |
| 3 | 4 | 1, 2 | {1, 2} |
| 7 | 8 | 1 | {1} |
Bidder 1 wins at 8, one increment above the Vickrey price 7. With the price is . With values , bidders 1 and 2 both leave after 7, and the tie rule gives the item to bidder 1 at 7.
Other strategies do not help bidder 2, of value 7. With threshold 9 it stays to 9, and bidder 1 wins at 10: bidder 2 only raised the price for bidder 1. With threshold 11 it wins at 11 and has utility .
The increment can help a bidder who leaves early. With values and , truthful bidding gives bidder 1 the item at 10, with utility 0. If bidder 1 leaves after 9, both bidders leave at the same step, bidder 1 wins the tie at 9, and its utility is 1. The gain is exactly one increment, the most that a deviation can gain.
Correctness
The proof is in proofs/correctness.md. It shows three facts.
- The outcome. With the set of bidders whose threshold is at least , the loop keeps at step . It stops at the last step with , with the price or as described above.
- Price and efficiency. With truthful thresholds, the price is within of the second-highest value and at most the winner's value, and the winner's value is more than the highest value minus .
- Truthful dropping is dominant up to one increment. Fix any strategies of the others, which may depend on the price and on who has left. Up to the moment bidder leaves, the run does not depend on 's plan, so chooses only the price at which it leaves. There are three outcomes: lose, win a tie at the last price at which another bidder is active, or win alone at . The truthful threshold picks the best of these up to a loss of at most , and it never gives a negative utility.
As the price tends to the second-highest value and the gain from any deviation tends to 0, which is the Vickrey auction with its exact dominance.
Proof: The English clock auction stops within one increment of the second-highest threshold, and dropping out at one's value is dominant up to one incrementfull
We use the pseudocode of the page, with thresholds , increment and start price . Write for the clock prices, and .
Claim 1 (the outcome). If is empty, CLOCK returns no winner. If , it returns at price . Otherwise let be the largest with . If is not empty, it has one element , and CLOCK returns at price . If is empty, CLOCK returns the smallest index in at price .
Proof. The sets shrink as grows, and is empty for large because the thresholds are finite, so exists when . Line L1 sets and . We show by induction that before the -th test of line L3 (counting from 0), and , for each that the loop reaches. This holds for . If , then , so the loop runs, and line L4 computes . If , then , so line L5 does not return and line L6 sets and . If , then . If is empty, line L5 returns the smallest index of at . Otherwise line L6 sets , a single bidder, and , the loop stops, and line L7 returns that bidder at . The cases with are lines L2 and L7 directly.
Claim 2 (price and efficiency). Let , and let be the two largest thresholds. Then is the largest clock price at most , the price is or , , for the winner , and .
Proof. if and only if , which gives the first statement, and . Both possible prices are within of , strictly. The winner is in or at the price it pays, so . If the winner pays , it is the bidder with . If it pays , then is empty, so .
With truthful thresholds , Claim 2 says that the winner never pays more than its value, that the price is within of the second-highest value, and that the winner's value is within of the highest value.
Claim 3 (truthful dropping is dominant up to ). Fix bidder with value , and fix any strategies of the other bidders. A strategy of a bidder may depend on everything it has seen: the price and who has left. Then the utility of with the threshold is at least 0, and at least the utility of any other strategy of minus . If never wins a tie, the loss is less than .
Proof. Consider the run in which never leaves. It fixes, for each clock price, which of the others stay. Let be the last clock price at which at least one other bidder is active (if no other bidder is active at , then wins at with any threshold at least , which gives with the truthful threshold, and the claim holds). A strategy of is the same as the price at which leaves, because up to that moment the run is the same as the run in which never leaves: the others see the same history. So bidder has three possible outcomes.
- It leaves before : at the step where it leaves, another bidder is still active at , so loses, with utility 0.
- It accepts but not : then all active bidders leave at once after , and the tie rule decides. Bidder either wins at or loses. The tie outcome depends only on the indices, the same for every threshold in .
- It accepts : then is alone and wins at .
Now compare with the truthful threshold .
- If , truthful bidding wins at with utility . The best other outcome is a won tie at , worth . The loss is at most , and it is 0 if never wins a tie.
- If , truthful bidding gets the tie outcome: or . Winning at gives . So the loss is at most .
- If , truthful bidding loses with 0, and every winning outcome has a price at least . The loss is 0.
In each case the truthful utility is at least 0 and the loss is at most , strictly less if loses ties.
Cost. By Claim 1 the loop runs at most times, where , and each pass scans the active set in . The time is with clock steps, and the extra space is for the active set.
Complexity
The loop runs times, and each pass scans the active set, so the time is and the extra space is . The number of steps depends on the values and the increment, not only on : halving doubles the number of steps. In a real auction a step is a round of communication, so is the measure that matters. A computer simulation can jump the clock: sort the thresholds, or find the two largest in , and compute the stopping price from the closed form above.
Properties
- Dominance with private values. Staying in up to one's value is weakly dominant in the continuous clock, and dominant up to with an increment. This needs no prior, and it holds against any strategies of the others.
- Obviously strategy-proof. At every point where the bidder must act, the worst outcome of staying in (when the price is below its value) is at least as good as the best outcome of leaving. A bidder does not need to reason about the others to see this. The sealed second-price auction lacks this property, and in experiments bidders play the dominant strategy more often in the clock form (Li 2017).
- Efficient up to . The winner's value is within of the highest value.
- Privacy of the winner. The auction stops near the second-highest value, so the winner never reveals its own value.
- Revenue. In the independent private values model the expected revenue is that of the Vickrey auction, up to . With affiliated values the English auction earns at least as much as the second-price auction, because the prices at which the others leave tell the remaining bidders about the value (linkage principle).
Variants and improvements
- Open outcry. Bidders call out their own bids, and each new bid must beat the last one by a minimum increment. Bidders can jump bid, raising the price by more than the increment to signal strength. With private values the outcome is still close to the second-highest value.
- Japanese button auction. The clock form above, with all bidders' exits visible. This is the model of Milgrom and Weber (1982) and of most theory.
- Proxy bidding. Online auctions ask each bidder for a maximum, and a program raises its bid by one increment when it is outbid. The result is a second-price rule with an increment. With a fixed end time, bidders often bid only in the last seconds (Roth and Ockenfels 2002).
- Many items. The simultaneous ascending auction runs one clock per item at the same time, and it is used for spectrum licenses. The Demange-Gale-Sotomayor auction and the Kelso-Crawford process raise prices on over-demanded items and reach a Walrasian equilibrium. The clinching auction of Ausubel (2004) sells many identical units by one clock and gives the Vickrey outcome.
- Task allocation. Robot teams use auctions of the same shape to assign tasks, with costs in place of values (market-based task allocation).
When to use it
Use the English auction when the bidders should see clearly that honest bidding is safe, when the item's value depends on information that other bidders have, or when the seller wants a transparent price that all bidders observe. Art and antiques houses, livestock markets and spectrum sales use ascending forms. It is a poor choice when the bidders cannot meet at one time, when the number of steps is too costly, or when the bidders can use the open bids to collude or to punish a rival.
Pitfalls
- The increment is a source of error. The price is the second value plus up to one increment, and a bidder can gain up to one increment by an early exit that wins a tie. Choose small compared with the spread of values.
- Ties at the end. If all remaining bidders leave at the same step, the rule must say who wins and at which price. Line L5 sells at the last accepted price to the smallest index. A rule that sells at the next price can charge a bidder more than its threshold.
- Collusion is easier in public. Bidders see each other's exits, so a ring can detect and punish a bidder who breaks an agreement.
- Equivalence with the Vickrey auction needs private values. With common values, a bidder learns from the exits of the others, and its best exit price depends on that history. Then the English and second-price auctions differ in equilibrium and in revenue.
- Reserve. Without a reserve, a single bidder wins at the start price. The start price acts as the seller's reserve.
Implementations
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/english-auction/. The authors are listed in prov/6F235Y.jsonl.
from fractions import Fraction
from typing import Sequence, Union
Number = Union[int, Fraction, float]
def english_auction(
thresholds: Sequence[Number], delta: Number, start: Number = 0
) -> tuple[int | None, Number]:
"""Run an ascending clock auction with a fixed increment.
thresholds[i] is the highest price at which bidder i stays in. The clock
starts at start (the reserve) and rises by delta. At each step the active
bidders whose threshold is at least the next price stay in. When one
bidder is left it wins at the current price. When all remaining bidders
leave at the same step, the smallest index among them wins at the price
they last accepted. Return the 0-based winner and the price, or (None, 0)
if no threshold reaches start.
"""
if delta <= 0:
raise ValueError("delta must be positive")
active = [i for i in range(len(thresholds)) if thresholds[i] >= start] # @line L1
price = start # @line L1
if not active: # @line L2
return None, 0 # @line L2
while len(active) >= 2: # @line L3
staying = [i for i in active if thresholds[i] >= price + delta] # @line L4
if not staying: # @line L5
return active[0], price # @line L5
active = staying # @line L6
price = price + delta # @line L6
return active[0], price # @line L7
def utility(value: Number, thresholds: Sequence[Number], i: int, delta: Number, start: Number = 0) -> Number:
"""Quasilinear utility of bidder i with the given value under these thresholds."""
winner, price = english_auction(thresholds, delta, start)
if winner != i:
return 0
return value - price
test_english_auction.py 98 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/english-auction/. The authors are listed in prov/6F235Y.jsonl.
import itertools
import random
from fractions import Fraction
import pytest
from english_auction import english_auction, utility
def reference(d, delta, start=0):
"""Closed form: the clock stops at the last grid price the second threshold accepts."""
eligible = [i for i in range(len(d)) if d[i] >= start]
if not eligible:
return None, 0
if len(eligible) == 1:
return eligible[0], start
top = sorted((d[i] for i in eligible), reverse=True)
g = start + ((top[1] - start) // delta) * delta
if top[0] >= g + delta:
return d.index(top[0]), g + delta
return min(i for i in eligible if d[i] >= g), g
def test_example() -> None:
assert english_auction([10, 7, 3], 1) == (0, 8)
assert english_auction([10, 7, 3], Fraction(1, 2)) == (0, Fraction(15, 2))
assert english_auction([10, 7, 3], 1, start=8) == (0, 8)
assert english_auction([10, 7, 3], 1, start=11) == (None, 0)
def test_edges() -> None:
assert english_auction([], 1) == (None, 0)
assert english_auction([5], 1) == (0, 0)
assert english_auction([5], 1, start=2) == (0, 2)
assert english_auction([7, 7, 3], 1) == (0, 7)
assert english_auction([3, 7, 7], 1) == (1, 7)
assert english_auction([7, Fraction(15, 2), 3], 1) == (0, 7)
with pytest.raises(ValueError):
english_auction([1, 2], 0)
def test_against_closed_form() -> None:
rng = random.Random(1)
for _ in range(2000):
n = rng.randrange(0, 6)
d = [Fraction(rng.randrange(0, 25), 2) for _ in range(n)]
delta = Fraction(rng.randrange(1, 7), 2)
start = Fraction(rng.randrange(0, 6), 2)
assert english_auction(d, delta, start) == reference(d, delta, start)
def test_close_to_vickrey() -> None:
rng = random.Random(2)
for _ in range(1000):
n = rng.randrange(2, 6)
v = [Fraction(rng.randrange(0, 100), 7) for _ in range(n)]
delta = Fraction(rng.randrange(1, 10), 3)
w, p = english_auction(v, delta)
second = sorted(v, reverse=True)[1]
assert abs(p - second) <= delta
assert v[w] >= max(v) - delta
assert p <= v[w]
def test_truthful_threshold_is_delta_dominant() -> None:
delta = 1
grid = [Fraction(k, 2) for k in range(0, 11)]
for start in (0, 2):
for others in itertools.product(grid, repeat=2):
for i in range(3):
for value in grid:
def u(d):
th = list(others[:i]) + [d] + list(others[i:])
return utility(value, th, i, delta, start)
u_true = u(value)
assert u_true >= 0
best = max(u(d) for d in grid)
assert u_true >= best - delta
if i == 2:
# with the last index, ties are always lost, and the gain is below delta
assert u_true > best - delta or best == u_true
def test_revenue_uniform() -> None:
# The price is within 0.05 of the second-highest value, whose mean is 1/3.
# With 5000 trials and prices in [0, 1.05], Hoeffding gives deviation above 0.03
# with probability at most 2 exp(-2 * 5000 * 0.03^2 / 1.05^2) < 0.001.
rng = random.Random(3)
trials = 5000
total = 0.0
for _ in range(trials):
_, p = english_auction([rng.random(), rng.random()], 0.05)
total += p
assert abs(total / trials - 1 / 3) < 0.05 + 0.03
History
Ascending auctions are very old. The Romans sold goods by open ascending bids, and the London auction houses founded in the eighteenth century use the same form. Vickrey (1961) was the first to analyse it as a game and showed that with private values it has the same outcome as his second-price sealed-bid auction. Milgrom and Weber (1982) wrote the clock form, in which each bidder presses a button while it stays in and all exits are seen, and proved that with affiliated values the English auction earns at least as much as the second-price auction. Ascending clock auctions for many items became the standard design for spectrum sales from 1994 on.
References
- William Vickrey, Counterspeculation, auctions, and competitive sealed tenders, Journal of Finance 16(1) (1961), 8-37, the equivalence of the English auction and the second-price sealed-bid auction with private values
- Paul R. Milgrom and Robert J. Weber, A theory of auctions and competitive bidding, Econometrica 50(5) (1982), 1089-1122, the English auction as a clock auction in which bidders press a button while they stay in and see who leaves, its symmetric equilibrium with affiliated signals, and the result that it earns at least as much as the second-price auction
- Vijay Krishna, Auction Theory, 2nd edition, Academic Press, 2010, Chapter 1 (the common auction forms) and Chapter 6, Section 6.3 (English auctions with interdependent values) and Section 6.5.1 (English versus second-price auctions)
- Shengwu Li, Obviously strategy-proof mechanisms, American Economic Review 107(11) (2017), 3257-3287, the ascending clock auction is obviously strategy-proof and the second-price sealed-bid auction is not, with laboratory evidence that subjects play the dominant strategy more often in the clock form
- Alvin E. Roth and Axel Ockenfels, Last-minute bidding and the rules for ending second-price auctions, evidence from eBay and Amazon auctions on the Internet, American Economic Review 92(4) (2002), 1093-1103, proxy bidding in online auctions, which turns the open auction into a second-price rule, and late bidding under a fixed end time
- Lawrence M. Ausubel, An efficient ascending-bid auction for multiple objects, American Economic Review 94(5) (2004), 1452-1475, the clinching auction, an ascending clock auction for many identical units that gives the Vickrey outcome
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 6F235Y Edit this page History Report an error Markdown