Algorithm Search⌘K

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
Properties
comparison baseddeterministiciterative
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 nn bidders with private values viv_i and quasilinear utility. The seller runs a clock: the price starts at a reserve p0p_0 and rises by a fixed increment δ>0\delta > 0. 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 p0p_0. In the model on this page, each bidder ii acts by a threshold did_i, the highest price it accepts. The truthful threshold is di=vid_i = v_i. A bidder may also use any strategy that depends on what it has seen, and the analysis covers that too.

The algorithm

AA is the set of active bidders and pp is the clock price.

  1. CLOCK(d_1, ..., d_n, δ, p_0)
  2. 1A ← {i : d_i ≥ p_0}; p ← p_0
  3. 2if A is empty: return NIL, 0 ▷ no sale
  4. 3while |A| ≥ 2:
  5. 4A' ← {i in A : d_i ≥ p + δ} ▷ who accepts the next price
  6. 5if A' is empty: return min A, p ▷ all left at once: the tie rule
  7. 6A ← A'; p ← p + δ
  8. 7return 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 d(1)≥d(2)d_{(1)} \ge d_{(2)} be the two largest thresholds, and let gg be the largest clock price p0+kδp_0 + k\delta that is at most d(2)d_{(2)}. The clock stops at gg or at g+δg + \delta: at g+δg + \delta if the top bidder accepts it, and at gg with the tie rule otherwise. So the price is within δ\delta of d(2)d_{(2)}, which is the Vickrey price.

Example

Three bidders with values (10,7,3)(10, 7, 3) use the truthful thresholds, with δ=1\delta = 1 and p0=0p_0 = 0.

clock pp 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 δ=1/2\delta = 1/2 the price is 7.57.5. With values (7,7,3)(7, 7, 3), 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 7−11=−47 - 11 = -4.

The increment can help a bidder who leaves early. With values (10,9.5)(10, 9.5) and δ=1\delta = 1, 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 AkA_k the set of bidders whose threshold is at least p0+kδp_0 + k\delta, the loop keeps A=AkA = A_k at step kk. It stops at the last step aa with ∣Aa∣≥2|A_a| \ge 2, with the price g=p0+aδg = p_0 + a\delta or g+δg + \delta as described above.
  • Price and efficiency. With truthful thresholds, the price is within δ\delta of the second-highest value and at most the winner's value, and the winner's value is more than the highest value minus δ\delta.
  • 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 ii leaves, the run does not depend on ii's plan, so ii chooses only the price at which it leaves. There are three outcomes: lose, win a tie at the last price gg at which another bidder is active, or win alone at g+δg + \delta. The truthful threshold picks the best of these up to a loss of at most δ\delta, and it never gives a negative utility.

As δ→0\delta \to 0 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 d1,…,dnd_1, \ldots, d_n, increment δ>0\delta > 0 and start price p0p_0. Write gk=p0+kδg_k = p_0 + k\delta for the clock prices, and Ak={i:di≥gk}A_k = \{i : d_i \ge g_k\}.

Claim 1 (the outcome). If A0A_0 is empty, CLOCK returns no winner. If A0={j}A_0 = \{j\}, it returns jj at price p0p_0. Otherwise let aa be the largest kk with ∣Ak∣≥2|A_k| \ge 2. If Aa+1A_{a+1} is not empty, it has one element jj, and CLOCK returns jj at price ga+1g_{a+1}. If Aa+1A_{a+1} is empty, CLOCK returns the smallest index in AaA_a at price gag_a.

Proof. The sets AkA_k shrink as kk grows, and AkA_k is empty for large kk because the thresholds are finite, so aa exists when ∣A0∣≥2|A_0| \ge 2. Line L1 sets A=A0A = A_0 and p=g0p = g_0. We show by induction that before the kk-th test of line L3 (counting from 0), A=AkA = A_k and p=gkp = g_k, for each k≤a+1k \le a + 1 that the loop reaches. This holds for k=0k = 0. If k≤ak \le a, then ∣Ak∣≥2|A_k| \ge 2, so the loop runs, and line L4 computes {i∈Ak:di≥gk+1}=Ak+1\{i \in A_k : d_i \ge g_{k+1}\} = A_{k+1}. If k<ak < a, then ∣Ak+1∣≥2|A_{k+1}| \ge 2, so line L5 does not return and line L6 sets A=Ak+1A = A_{k+1} and p=gk+1p = g_{k+1}. If k=ak = a, then ∣Aa+1∣≤1|A_{a+1}| \le 1. If Aa+1A_{a+1} is empty, line L5 returns the smallest index of AaA_a at gag_a. Otherwise line L6 sets A=Aa+1A = A_{a+1}, a single bidder, and p=ga+1p = g_{a+1}, the loop stops, and line L7 returns that bidder at ga+1g_{a+1}. The cases with ∣A0∣≤1|A_0| \le 1 are lines L2 and L7 directly. □\square

Claim 2 (price and efficiency). Let ∣A0∣≥2|A_0| \ge 2, and let d(1)≥d(2)d_{(1)} \ge d_{(2)} be the two largest thresholds. Then gag_a is the largest clock price at most d(2)d_{(2)}, the price pp is gag_a or ga+1g_{a+1}, ∣p−d(2)∣<δ|p - d_{(2)}| < \delta, p≤dwp \le d_w for the winner ww, and dw>d(1)−δd_w > d_{(1)} - \delta.

Proof. ∣Ak∣≥2|A_k| \ge 2 if and only if gk≤d(2)g_k \le d_{(2)}, which gives the first statement, and ga≤d(2)<ga+1g_a \le d_{(2)} < g_{a+1}. Both possible prices are within δ\delta of d(2)d_{(2)}, strictly. The winner is in AaA_a or Aa+1A_{a+1} at the price it pays, so p≤dwp \le d_w. If the winner pays ga+1g_{a+1}, it is the bidder with d(1)d_{(1)}. If it pays gag_a, then Aa+1A_{a+1} is empty, so d(1)<ga+1=ga+δ≤dw+δd_{(1)} < g_{a+1} = g_a + \delta \le d_w + \delta. □\square

With truthful thresholds di=vid_i = v_i, Claim 2 says that the winner never pays more than its value, that the price is within δ\delta of the second-highest value, and that the winner's value is within δ\delta of the highest value.

Claim 3 (truthful dropping is dominant up to δ\delta). Fix bidder ii with value vi≥p0v_i \ge p_0, 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 ii with the threshold di=vid_i = v_i is at least 0, and at least the utility of any other strategy of ii minus δ\delta. If ii never wins a tie, the loss is less than δ\delta.

Proof. Consider the run in which ii never leaves. It fixes, for each clock price, which of the others stay. Let gag_a be the last clock price at which at least one other bidder is active (if no other bidder is active at p0p_0, then ii wins at p0p_0 with any threshold at least p0p_0, which gives vi−p0≥0v_i - p_0 \ge 0 with the truthful threshold, and the claim holds). A strategy of ii is the same as the price at which ii leaves, because up to that moment the run is the same as the run in which ii never leaves: the others see the same history. So bidder ii has three possible outcomes.

  • It leaves before gag_a: at the step where it leaves, another bidder is still active at gag_a, so ii loses, with utility 0.
  • It accepts gag_a but not ga+1g_{a+1}: then all active bidders leave at once after gag_a, and the tie rule decides. Bidder ii either wins at gag_a or loses. The tie outcome depends only on the indices, the same for every threshold in [ga,ga+1)[g_a, g_{a+1}).
  • It accepts ga+1g_{a+1}: then ii is alone and wins at ga+1g_{a+1}.

Now compare with the truthful threshold viv_i.

  • If vi≥ga+1v_i \ge g_{a+1}, truthful bidding wins at ga+1g_{a+1} with utility vi−ga+1≥0v_i - g_{a+1} \ge 0. The best other outcome is a won tie at gag_a, worth vi−ga=(vi−ga+1)+δv_i - g_a = (v_i - g_{a+1}) + \delta. The loss is at most δ\delta, and it is 0 if ii never wins a tie.
  • If ga≤vi<ga+1g_a \le v_i < g_{a+1}, truthful bidding gets the tie outcome: vi−ga≥0v_i - g_a \ge 0 or 00. Winning at ga+1g_{a+1} gives vi−ga+1<0v_i - g_{a+1} < 0. So the loss is at most vi−ga<δv_i - g_a < \delta.
  • If vi<gav_i < g_a, truthful bidding loses with 0, and every winning outcome has a price at least ga>vig_a > v_i. The loss is 0.

In each case the truthful utility is at least 0 and the loss is at most δ\delta, strictly less if ii loses ties. □\square

Cost. By Claim 1 the loop runs at most a+1a + 1 times, where a=⌊(d(2)−p0)/δ⌋a = \lfloor (d_{(2)} - p_0)/\delta \rfloor, and each pass scans the active set in O(n)O(n). The time is O(nk)O(n k) with k=a+2k = a + 2 clock steps, and the extra space is O(n)O(n) for the active set.

Complexity

The loop runs k≤⌊(d(2)−p0)/δ⌋+1k \le \lfloor (d_{(2)} - p_0)/\delta \rfloor + 1 times, and each pass scans the active set, so the time is O(nk)O(nk) and the extra space is O(n)O(n). The number of steps kk depends on the values and the increment, not only on nn: halving δ\delta doubles the number of steps. In a real auction a step is a round of communication, so kk is the measure that matters. A computer simulation can jump the clock: sort the thresholds, or find the two largest in O(n)O(n), 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 δ\delta 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 δ\delta. The winner's value is within δ\delta 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 δ\delta. 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 δ\delta 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 p0p_0 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.

english_auction.pyI0RawGitHub
# 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

  1. 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
  2. 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
  3. 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)
  4. 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
  5. 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
  6. 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.

LadderLevelWhat the next level needs
Human proofH1 sketch
  • a full proof of time.worst
  • a full proof of space.extra
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
Code (python)I0 not checked yet
  • the tests did not run in this build
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW2 basic
  • a scene preset for the example