Algorithm Search⌘K

Algorithmintro

Dutch auction

Also called descending price auction, descending clock auction.

The price starts high and falls step by step, and the first bidder to accept wins at the current price. It is strategically the same game as the first-price sealed-bid auction.

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, 1961

The Dutch auction sells one item by a price that falls in public. A clock starts at a high price and goes down step by step, and the first bidder who accepts the current price wins and pays it. Before the clock stops, a bidder learns nothing except that no one has accepted yet, so its plan is just a price at which to accept. That makes the Dutch auction strategically the same game as the first-price auction, where each bidder writes one sealed bid and the highest bid pays itself. It is the mirror of the English auction, whose price rises, and it has the same equilibrium as the first-price auction (equilibrium of the symmetric first-price auction).

In plain words

An auctioneer starts at a price that is too high for everyone and lowers it a little at a time. The first person who shouts "mine" buys the item at the price on the clock. If you wait, the price gets better for you, but someone else may shout first. So you must decide in advance the price at which you will shout, and nothing you see before that changes your mind, because all you see is that nobody has shouted. Choosing that price is the same problem as choosing a sealed bid in an auction where the highest bid wins and pays itself. So the two auctions give the same result.

The problem

One item is for sale to nn bidders with private values viv_i and quasilinear utility. The clock starts at a price TT above every value that matters and falls by a fixed decrement δ>0\delta > 0. The seller does not sell below a reserve rr. At each level the bidders may accept, and the auction stops at the first acceptance. In the model on this page, bidder ii acts by a stop price sis_i: it accepts at the first level pp with p≤sip \le s_i. The goal is to run the clock and find the winner and the price.

The algorithm

pp is the clock price, computed as T−kδT - k\delta at step kk.

  1. DUTCH(s_1, ..., s_n, T, δ, r)
  2. 1p ← T
  3. 2while p ≥ r:
  4. 3S ← {i : s_i ≥ p} ▷ the bidders who accept at this level
  5. 4if S is not empty: return min S, p ▷ the first to accept wins and pays p
  6. 5p ← p - δ ▷ computed as T - kδ after k steps
  7. 6return NIL, 0 ▷ the clock passed the reserve

If several bidders accept at the same level, line L4 gives the item to the smallest index. A real clock settles this by who pressed first. If a stop price is at least TT, that bidder accepts at once.

The output is the outcome of the first-price auction on the stop prices rounded down to the clock levels. So the price is at most the highest stop price and more than the highest stop price minus δ\delta.

Example

Three bidders have values (9,6,3)(9, 6, 3), drawn independently and uniformly from [0,12][0, 12]. In the symmetric equilibrium each bidder accepts at n−1nv=23v\frac{n-1}{n} v = \frac{2}{3} v, the first-price equilibrium bid, so the stop prices are (6,4,2)(6, 4, 2). The clock starts at T=12T = 12 with δ=1\delta = 1.

clock pp 12 11 10 9 8 7 6
bidders who accept none none none none none none 1

Bidder 1 stops the clock at 6 and pays 6, with utility 3. With stop prices (6.5,4,2)(6.5, 4, 2) the result is the same, because the clock has no level between 7 and 6. With a reserve of 7, the clock stops at 7 with no acceptance, and the item is not sold. With stop prices (6,6,2)(6, 6, 2) both bidders accept at 6 and bidder 1 wins the tie.

Correctness

The proof is in proofs/correctness.md. It shows two facts.

  • The outcome. For a clock level gg, si≥gs_i \ge g holds exactly when the rounded stop price ρ(si)\rho(s_i), the largest level at most sis_i, is at least gg. The clock goes down level by level and stops at the first level that some rounded stop price reaches, which is the largest rounded stop price. So DUTCH returns the first-price outcome on the rounded stop prices.
  • Strategic equivalence. A bidder's information while the clock runs is only the current level and the fact that no one has accepted. A plan is therefore fixed by the first level at which it accepts, which is a stop price. So the strategies, the outcomes and the payoffs of the Dutch auction are those of the first-price auction on the clock levels, and the two have the same Bayes-Nash equilibria.

The equivalence holds for any values, private or interdependent, because it uses only what the bidders can see (Milgrom and Weber 1982). This is a stronger link than the one between the English and Vickrey auctions, which needs private values.

Proof: The Dutch clock auction is the first-price auction on bids rounded down to the clock levelsfull

We use the pseudocode of the page, with stop prices s1,…,sns_1, \ldots, s_n, a start price TT, a decrement δ>0\delta > 0 and a reserve r≤Tr \le T. The clock levels are gk=T−kδg_k = T - k\delta for k=0,1,…k = 0, 1, \ldots, as long as gk≥rg_k \ge r. For a number ss, let ρ(s)=T\rho(s) = T if s≥Ts \ge T, and otherwise let ρ(s)\rho(s) be the largest level gkg_k with gk≤sg_k \le s (this can be below rr).

Claim 1 (the outcome). Let p∗=max⁡iρ(si)p^* = \max_i \rho(s_i). If p∗≥rp^* \ge r, DUTCH returns the smallest index ii with ρ(si)=p∗\rho(s_i) = p^*, at price p∗p^*. Otherwise it returns no winner. So DUTCH gives the outcome of the first-price auction with reserve rr on the bids ρ(s1),…,ρ(sn)\rho(s_1), \ldots, \rho(s_n).

Proof. For a level gkg_k and any ss, s≥gks \ge g_k if and only if ρ(s)≥gk\rho(s) \ge g_k: if s≥Ts \ge T, both sides hold, and otherwise ρ(s)\rho(s) is the largest level at most ss, so a level is at most ss exactly when it is at most ρ(s)\rho(s). Line L1 starts at g0g_0, and line L5 visits g1,g2,…g_1, g_2, \ldots in order while line L2 keeps the level at least rr. At level gkg_k, line L3 computes Sk={i:si≥gk}={i:ρ(si)≥gk}S_k = \{i : s_i \ge g_k\} = \{i : \rho(s_i) \ge g_k\}. The sets grow as kk grows, and SkS_k is empty exactly when gk>p∗g_k > p^*. If p∗≥rp^* \ge r, then p∗p^* is a level, the loop reaches it, all earlier sets are empty, and SS at p∗p^* is {i:ρ(si)=p∗}\{i : \rho(s_i) = p^*\} because no ρ(si)\rho(s_i) is larger. Line L4 returns its smallest index at price p∗p^*. If p∗<rp^* < r, every visited set is empty and line L6 returns no winner. The first-price rule with reserve rr on the bids ρ(si)\rho(s_i) picks the smallest index with the largest bid p∗p^* if p∗≥rp^* \ge r, at price p∗p^*, which is the same. □\square

In particular, if every stop price is a clock level at most TT, the Dutch auction and the first-price auction have the same outcome, and in general the Dutch price is at most the highest stop price and more than the highest stop price minus δ\delta (when that stop price is at most TT and the price is at least rr).

Claim 2 (strategic equivalence). Every strategy of a bidder in the Dutch auction gives the same outcome as a stop price. So the Dutch auction and the first-price auction on the clock levels have the same strategies and the same payoffs, and they have the same Bayes-Nash equilibria.

Proof. While the clock runs, a bidder sees only the current level and the fact that no one has accepted yet. When the clock stops, the auction is over. So a bidder's plan can depend only on the level: it is a rule "accept at level gkg_k if no one has accepted before". Such a rule is fixed by the first level at which it accepts, which is a stop price. Its outcome against any stop prices of the others is the first-price outcome of Claim 1. □\square

Cost. The loop visits the levels from TT down to max⁡(p∗,r)\max(p^*, r), that is k≤(T−max⁡(p∗,r))/δ+1k \le (T - \max(p^*, r))/\delta + 1 levels, and each visit scans the nn stop prices. The time is O(nk)O(nk) and the extra space is O(n)O(n) for the set SS.

Complexity

The clock visits at most k=⌊(T−max⁡(p∗,r))/δ⌋+1k = \lfloor (T - \max(p^*, r))/\delta \rfloor + 1 levels, where p∗p^* is the highest rounded stop price, and each visit scans the nn stop prices. So the time is O(nk)O(nk) and the extra space is O(n)O(n). As with the English auction, kk is the number of rounds and depends on TT and δ\delta. A simulation can find the result in O(n)O(n) time by rounding the largest stop price. In practice the clock moves fast and a lot is sold in seconds, which is why the form is used for large numbers of perishable lots.

Properties

  • Same as the first-price auction. The Dutch auction with a fine clock has the outcome of the first-price auction on the same bids, so it has the same equilibria, the same expected revenue and the same efficiency. In the symmetric independent private values model with uniform values, the expected revenue is (n−1)/(n+1)(n-1)/(n+1), up to the rounding of the clock.
  • Not DSIC. A bidder who accepts at its value gains nothing. The best stop price depends on the others.
  • Revenue equivalence. With symmetric, independent, risk-neutral bidders, the Dutch, first-price, English and Vickrey auctions earn the same expected revenue (revenue equivalence theorem).
  • One message. Only the winner sends a message, so the auction is fast and reveals only the winning price.
  • The clock lowers the price a little. With decrement δ\delta, the winner pays the largest level at most its stop price, so the seller loses less than δ\delta compared with the sealed first-price auction on the same bids.

Variants and improvements

  • Many units. For a lot of several units, the winner at a level chooses how many units to buy at that price, and the clock goes on for the rest. Flower auctions work this way.
  • Restart with a reserve. If the clock passes the reserve without acceptance, the item is held back or offered again later.
  • Procurement. A rising clock with costs in place of values: the price offered for a contract rises until one supplier accepts. This is the same game as a first-price procurement auction.
  • Continuous time. With δ→0\delta \to 0 the Dutch auction is exactly the first-price auction.

When to use it

Use the Dutch auction to sell many lots quickly, one after another, with bidders who are present at the same time, as in the flower, fish and produce markets of the Netherlands and other countries. It reveals only the winning price, needs one message per lot and ends as soon as a bidder accepts. It is a poor choice when the bidders are not all present at the same moment, or when the seller wants the bidders to learn from each other, as in an English auction with common values.

Pitfalls

  • Dutch is not English. The English auction rises and has the outcome of the second-price auction with private values; the Dutch auction falls and has the outcome of the first-price auction. Their expected revenues are equal only under the conditions of revenue equivalence.
  • The name is used for another auction. In finance, a "Dutch auction" of shares often means a uniform-price auction, in which all winners pay the same clearing price. That is a different mechanism with different incentives.
  • Behaviour differs from theory. The strategic equivalence is a theorem, but people do not always bid the same way. Laboratory subjects earned the seller less in Dutch auctions than in sealed first-price auctions (Cox, Roberson and Smith 1982), while a field test with trading cards found the opposite (Lucking-Reiley 1999).
  • Rounding of the clock. A test that compares the Dutch and first-price auctions must round the bids down to the clock levels, or use bids on the levels. With floats, compute the level as T−kδT - k\delta and not by repeated subtraction.
  • Ties at a level. Two bidders can accept at the same level. The rule must say who wins, and a real system needs a fair way to decide who pressed first.

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.

dutch_auction.pyI0RawGitHub
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/dutch-auction/. The authors are listed in prov/6N55V9.jsonl.

from fractions import Fraction
from typing import Sequence, Union

Number = Union[int, Fraction, float]


def dutch_auction(
    stops: Sequence[Number], top: Number, delta: Number, reserve: Number = 0
) -> tuple[int | None, Number]:
    """Run a descending clock auction with a fixed decrement.

    The clock starts at top and falls by delta, and it never goes below the
    reserve. stops[i] is the price at which bidder i accepts: bidder i stops
    the clock at the first level p with stops[i] >= p. If several bidders
    accept at the same level, the smallest index wins. The winner pays the
    level. Return the 0-based winner and the price, or (None, 0) if the clock
    passes the reserve with no acceptance. The level is computed as
    top - k * delta, so floats do not accumulate rounding error.
    """
    if delta <= 0:
        raise ValueError("delta must be positive")
    k = 0
    price = top  # @line L1
    while price >= reserve:  # @line L2
        accepting = [i for i in range(len(stops)) if stops[i] >= price]  # @line L3
        if accepting:  # @line L4
            return accepting[0], price  # @line L4
        k += 1
        price = top - k * delta  # @line L5
    return None, 0  # @line L6
test_dutch_auction.py 87 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/dutch-auction/. The authors are listed in prov/6N55V9.jsonl.

import math
import random
from fractions import Fraction

import pytest

from dutch_auction import dutch_auction


def first_price(bids, reserve):
    """Reference first-price rule: highest bid at least the reserve, smallest index on ties."""
    eligible = [i for i in range(len(bids)) if bids[i] >= reserve]
    if not eligible:
        return None, 0
    best = max(bids[i] for i in eligible)
    return min(i for i in eligible if bids[i] == best), best


def round_to_clock(s, top, delta):
    """The largest clock level top - k delta (k >= 0) that is at most s."""
    if s >= top:
        return top
    return top - math.ceil((top - s) / delta) * delta


def test_example() -> None:
    # Values (10, 7, 3), equilibrium-like stops (6, 4, 2), clock from 12 down by 1.
    assert dutch_auction([6, 4, 2], 12, 1) == (0, 6)
    assert dutch_auction([Fraction(13, 2), 4, 2], 12, 1) == (0, 6)
    assert dutch_auction([6, 4, 2], 12, 1, reserve=7) == (None, 0)
    assert dutch_auction([6, 6, 2], 12, 1) == (0, 6)
    assert dutch_auction([2, 6, 6], 12, 1) == (1, 6)


def test_edges() -> None:
    assert dutch_auction([], 10, 1) == (None, 0)
    assert dutch_auction([20, 3], 10, 1) == (0, 10)
    assert dutch_auction([3, 20], 10, 1) == (1, 10)
    assert dutch_auction([0], 10, 1) == (0, 0)
    assert dutch_auction([Fraction(1, 2)], 10, 1, reserve=1) == (None, 0)
    with pytest.raises(ValueError):
        dutch_auction([1], 10, 0)


def test_equals_first_price_on_rounded_bids() -> None:
    rng = random.Random(1)
    for _ in range(2000):
        n = rng.randrange(0, 6)
        delta = Fraction(rng.randrange(1, 5), 2)
        top = Fraction(rng.randrange(8, 16))
        reserve = Fraction(rng.randrange(0, 4))
        stops = [Fraction(rng.randrange(0, 40), 3) for _ in range(n)]
        rounded = [round_to_clock(s, top, delta) for s in stops]
        assert dutch_auction(stops, top, delta, reserve) == first_price(rounded, reserve)


def test_equals_first_price_on_clock_bids() -> None:
    rng = random.Random(2)
    for _ in range(1000):
        bids = [Fraction(rng.randrange(0, 21), 4) for _ in range(rng.randrange(1, 6))]
        assert dutch_auction(bids, 5, Fraction(1, 4)) == first_price(bids, 0)


def test_price_is_within_delta_of_highest_stop() -> None:
    rng = random.Random(3)
    for _ in range(1000):
        stops = [Fraction(rng.randrange(0, 100), 9) for _ in range(rng.randrange(1, 6))]
        w, p = dutch_auction(stops, 12, Fraction(1, 3))
        assert max(stops) - Fraction(1, 3) < p <= max(stops)
        assert stops[w] >= p


def test_revenue_uniform() -> None:
    # Equilibrium stops (n - 1) v / n with uniform values; the price is within
    # delta = 0.01 below the first-price price, whose mean is (n - 1)/(n + 1).
    rng = random.Random(4)
    for n in (2, 3):
        trials, total = 5000, 0.0
        for _ in range(trials):
            stops = [(n - 1) * rng.random() / n for _ in range(n)]
            _, p = dutch_auction(stops, 1.0, 0.01)
            total += p
        # Hoeffding with 5000 prices in [0, 1]: deviation above 0.03 has probability below 0.001.
        assert abs(total / trials - (n - 1) / (n + 1)) < 0.03 + 0.01

History

Descending clock auctions are used in the Netherlands for flowers, fruit and vegetables, and in many fish markets, and the name comes from the Dutch flower auctions. Vickrey (1961) noted that the Dutch auction and the first-price sealed-bid auction are strategically the same, and used this to analyse both at once. Milgrom and Weber (1982) showed that the equivalence holds with any values, while the equivalence of the English and second-price auctions needs private values. Experiments then tested whether real bidders treat the two forms the same, with mixed results.

References

  1. William Vickrey, Counterspeculation, auctions, and competitive sealed tenders, Journal of Finance 16(1) (1961), 8-37, the descending auction and its equivalence with the first-price sealed-bid auction
  2. Vijay Krishna, Auction Theory, 2nd edition, Academic Press, 2010, Chapter 1 (the common auction forms and the strategic equivalence of the Dutch and first-price auctions) and Chapter 2, Section 2.3 (the first-price equilibrium, which is also the Dutch equilibrium)
  3. Paul R. Milgrom and Robert J. Weber, A theory of auctions and competitive bidding, Econometrica 50(5) (1982), 1089-1122, the strategic equivalence of the Dutch and first-price auctions, which holds also with interdependent values
  4. David Lucking-Reiley, Using field experiments to test equivalence between auction formats, magic on the Internet, American Economic Review 89(5) (1999), 1063-1080, a field test in which Dutch auctions of trading cards earned more than first-price sealed-bid auctions of the same cards
  5. James C. Cox, Bruce Roberson and Vernon L. Smith, Theory and behavior of single object auctions, in Vernon L. Smith (ed.), Research in Experimental Economics, Volume 2, JAI Press, 1982, 1-43, laboratory tests in which Dutch auctions earned less than first-price sealed-bid auctions

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