General Market Scoring Rule Duality and the Quadratic Market Scoring Rule (QSR) #
This module formalizes two results from [PennockSami2007, §26.4.1, pp. 663–664] and [Han03]:
General equivalence between cost-function market makers and sequential shared proper scoring rules: given any proper scoring rule
Son a domainP ⊆ probSimplex Ω, its Fenchel-conjugate cost functionmsrCost S P q = sSup { r ⬝ᵥ q - S.expectedScore r r | r ∈ P }evaluates exactly tocon every share vector of the formq ω = S.score p ω + c(p ∈ P), satisfiesq ω - msrCost S P q = S.score p ω, obeys the first-order subgradient (no-arbitrage) inequality, and yields pointwise and sequential trading payoffs identical to Hanson's sequential shared scoring rulemsrStepPayoff S/msrTotalPayoff S.Hanson's Quadratic Market Scoring Rule (QSR) [PennockSami2007, §26.4.1, p. 664]: the cost function
qsrCost b q = (∑ j, q j) / |Ω| + (∑ j, q j ^ 2) / (4 * b) - (∑ j, q j) ^ 2 / (4 * b * |Ω|) - b / |Ω|has gradient
qsrPrice b q ω = 1 / |Ω| + q ω / (2 * b) - (∑ j, q j) / (2 * b * |Ω|), global convexity (via an exact squared-Euclidean Bregman divergence identity), exact equivalence with theb-scaled quadratic market scoring rule((quadraticScore Ω).affine b 0)(coinciding onqsrValidDomain bwithmsrCost), and tight worst-case market-maker lossb * (1 - 1 / |Ω|). Unlike LMSR, QSR enforces finite per-security buy limits: every valid share vector satisfiesq k - q j ≤ 2 * b, from zero shares at most2 * bunits of any single security can be bought, and once any outcome reaches price0(in particular, once any security hits its upper limitqsrPrice b q k = 1when3 ≤ |Ω|), no positive single-security purchase of another security remains in the valid simplex domain [PennockSami2007, §26.4.1, p. 664].
Main definitions #
Cslib.GameTheory.PredictionMarket.costMarketPayoff: net trader payoff(q₂ ω - q₁ ω) - (C q₂ - C q₁)for an arbitrary cost-function market makerC.Cslib.GameTheory.PredictionMarket.msrCost: Fenchel-conjugate cost function associated with a scoring ruleSon a domainP ⊆ probSimplex Ω.Cslib.GameTheory.PredictionMarket.qsrCost: quadratic market scoring rule cost function [PennockSami2007, §26.4.1, p. 664].Cslib.GameTheory.PredictionMarket.qsrPrice: instantaneous linear QSR price vector.Cslib.GameTheory.PredictionMarket.qsrValidDomain: share vectorsqwhose instantaneous QSR prices lie inprobSimplex Ω.
Main results #
Cslib.GameTheory.PredictionMarket.msrCost_score_add_const,Cslib.GameTheory.PredictionMarket.costMarketPayoff_msrCost_eq_msrStepPayoff,Cslib.GameTheory.PredictionMarket.exists_shares_costMarketPayoff_msrCost_eq,Cslib.GameTheory.PredictionMarket.msrCost_subgradient_le: general equivalence between cost-function trading and sequential shared proper scoring rules [PennockSami2007, §26.4.1, p. 664; Hanson2003].Cslib.GameTheory.PredictionMarket.hasFDerivAt_qsrCost,Cslib.GameTheory.PredictionMarket.hasDerivAt_qsrCost_update,Cslib.GameTheory.PredictionMarket.qsrCost_bregmanDivergence_eq,Cslib.GameTheory.PredictionMarket.convexOn_qsrCost: gradient, squared-Euclidean Bregman identity, and global convexity ofqsrCost b.Cslib.GameTheory.PredictionMarket.sub_qsrCost_eq_mul_quadraticScore,Cslib.GameTheory.PredictionMarket.qsrTraderPayoff_eq_msrStepPayoff,Cslib.GameTheory.PredictionMarket.exists_shares_qsrTraderPayoff_eq_msrStepPayoff,Cslib.GameTheory.PredictionMarket.qsrCost_eq_msrCost: equivalence of QSR cost-function trading with the quadratic market scoring rule [PennockSami2007, §26.4.1, p. 664].Cslib.GameTheory.PredictionMarket.qsrTraderPayoff_zero_le,Cslib.GameTheory.PredictionMarket.exists_qsrTraderPayoff_zero_eq: tight worst-case QSR market-maker lossb * (1 - 1 / |Ω|)starting from zero shares.Cslib.GameTheory.PredictionMarket.qsrValidDomain_sub_le,Cslib.GameTheory.PredictionMarket.qsrValidDomain_single_iff,Cslib.GameTheory.PredictionMarket.not_mem_qsrValidDomain_add_single_of_price_eq_zero,Cslib.GameTheory.PredictionMarket.not_mem_qsrValidDomain_add_single_of_price_eq_one: finite purchase bounds and upper-limit buy-blocking for QSR [PennockSami2007, §26.4.1, p. 664].
References #
Net payoff (q₂ ω - q₁ ω) - (C q₂ - C q₁) to a trader moving a cost-function market maker C
from share vector q₁ to q₂ when outcome ω realizes (equally the market maker's net loss on
that trade) [PennockSami2007, §26.4.1, p. 663].
Path independence of any cost-function market maker: cumulative net payoff across any sequence
of share updates qs 0, …, qs T depends only on the endpoints qs 0 and qs T.
The Fenchel-conjugate cost function associated with a scoring rule S on a domain
P ⊆ probSimplex Ω: C(q) = sup_{r ∈ P} (r ⬝ᵥ q - S.expectedScore r r)
[Hanson2003; PennockSami2007, §26.4.1, p. 664].
For any proper scoring rule S on P ⊆ probSimplex Ω, the dual cost function evaluates
exactly to c on every shifted score vector ω ↦ S.score p ω + c (p ∈ P).
Subgradient (no-arbitrage) inequality for msrCost S P at every realized share vector
q₁ = S.score p₁ + c₁.
General single-step cost-function / MSR equivalence [PennockSami2007, §26.4.1, p. 664;
Hanson2003]: for any proper scoring rule S on P ⊆ probSimplex Ω, moving msrCost S P between
share vectors S.score p₁ + c₁ and S.score p₂ + c₂ yields net payoff identically equal to
msrStepPayoff S p₁ p₂ ω.
Hanson's Quadratic Market Scoring Rule (QSR) cost function with liquidity parameter b:
C(q) = (∑ j, q j) / |Ω| + (∑ j, q j ^ 2) / (4 * b) - (∑ j, q j) ^ 2 / (4 * b * |Ω|) - b / |Ω|
[PennockSami2007, §26.4.1, p. 664].
A share vector q lies in qsrValidDomain b if and only if every instantaneous QSR price is
nonnegative.
At zero shares, QSR prices are uniform over Ω.
Zero shares lie in the valid QSR domain whenever b ≠ 0.
At zero shares, the QSR cost equals -b / |Ω|.
Gradient, Bregman identity, and global convexity of QSR #
Coordinate partial derivative of qsrCost b: ∂C / ∂q_ω = qsrPrice b q ω
[PennockSami2007, §26.4.1, p. 664].
Exact Bregman divergence identity for QSR (original mathematical companion): the Bregman
divergence bregmanDivergence (qsrCost b) (qsrPrice b) q₂ q₁ equals b times the squared
Euclidean distance between the induced QSR price vectors qsrPrice b q₂ and qsrPrice b q₁.
Global convexity of qsrCost b on ℝ^Ω (original mathematical companion deduced from
qsrCost_subgradient_le and convexOn_of_forall_add_le).
Equivalence with the quadratic market scoring rule and worst-case loss #
Single-step QSR / MSR equivalence [PennockSami2007, §26.4.1, p. 664]: the net payoff of
moving qsrCost b from q₁ to q₂ equals the payoff of updating the b-scaled quadratic market
scoring rule from qsrPrice b q₁ to qsrPrice b q₂.
Sequential QSR / MSR equivalence [PennockSami2007, §26.4.1, p. 664]: across any finite
sequence of share updates qs 0, …, qs T, cumulative QSR trading payoffs equal cumulative
quadratic MSR payoffs.
On qsrValidDomain b, the explicit quadratic cost function qsrCost b q coincides identically
with the Fenchel-conjugate cost function msrCost ((quadraticScore Ω).affine b 0) (probSimplex Ω)
[PennockSami2007, §26.4.1, p. 664].
Worst-case QSR market-maker loss bound [PennockSami2007, §26.4.1, p. 664]: starting from
zero shares (q₀ = 0, uniform initial prices), for every valid final share vector
q ∈ qsrValidDomain b and every outcome ω, the market maker loses at most
b * (1 - 1 / |Ω|).
Tightness of the QSR worst-case loss bound: for every outcome ω, the bound
b * (1 - 1 / |Ω|) is attained with equality by a valid share vector q ∈ qsrValidDomain b.
Finite purchase bounds and buy-limit saturation (§26.4.1, p. 664) #
Bounded share spread in QSR [PennockSami2007, §26.4.1, p. 664]: for any valid QSR share
vector q ∈ qsrValidDomain b (0 < b), no outcome can exceed any other outcome's share count by
more than 2 * b.
Exact single-security purchase limit from zero shares [PennockSami2007, §26.4.1, p. 664]:
when 2 ≤ |Ω| and 0 < b, buying δ shares of a single outcome ω starting from q = 0
remains in qsrValidDomain b if and only if -2 * b / (|Ω| - 1) ≤ δ ≤ 2 * b.
Upper-limit buy-blocking in QSR [PennockSami2007, §26.4.1, p. 664]: whenever any outcome
j has reached zero price qsrPrice b q j = 0, buying any positive quantity δ > 0 of any other
outcome i ≠ j pushes outcome j's price strictly below zero and exits qsrValidDomain b.
Complete buy freeze at an upper limit for |Ω| ≥ 3 [PennockSami2007, §26.4.1, p. 664]:
once any security k reaches price 1 (so every other security has price 0), the QSR market
maker cannot accept a positive single-security purchase of any security i : Ω.