Complexity of Combinatorial Market Makers
|
|
|
- Gervais Quinn
- 10 years ago
- Views:
Transcription
1 Complexity of Combinatorial Market Makers iling Chen ahoo! Research 111 W. 40th St., 17th Floor New ork, N Lance Fortnow EECS Department Northwestern University 2133 Sheridan Road Evanston, IL Nicolas Lambert Department of Computer Science Stanford University Stanford, CA David M. ennock ahoo! Research 111 W. 40th St., 17th Floor New ork, N Jennifer Wortman Department of Computer and Information Science University of ennsylvania hiladelphia, A ABSTRACT We analyze the computational complexity of market maker pricing algorithms for combinatorial prediction markets. We focus on Hanson s popular logarithmic market scoring rule market maker (LMSR). Our goal is to implicitly maintain correct LMSR prices across an exponentially large outcome space. We examine both permutation combinatorics, where outcomes are permutations of objects, and Boolean combinatorics, where outcomes are combinations of binary events. We look at three restrictive languages that limit what traders can bet on. Even with severely limited languages, we find that LMSR pricing is #-hard, even when the same language admits polynomial-time matching without the market maker. We then propose an approximation technique for pricing permutation markets based on an algorithm for online permutation learning. The connections we draw between LMSR pricing and the literature on online learning with expert advice may be of independent interest. Categories and Subject Descriptors J.4 [Computer Applications]: Social and Behavioral Sciences Economics General Terms Economics, Theory Keywords rediction markets, logarithmic market scoring rule market makers, online learning with expert advice art of this work was done while L. Fortnow, N. Lambert and J. Wortman were visiting ahoo! Research, New ork. ermission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. To copy otherwise, to republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. EC 08, July 8 12, 2008, Chicago, Illinois, USA. Copyright 2008 ACM /08/07...$ INTRODUCTION One way to elicit information is to ask people to bet on it. A prediction market is a common forum where people bet with each other or with a market maker [9, 10, 23, 20, 21]. A typical binary prediction market allows bets along one dimension, for example either for or against Hillary Clinton to win the 2008 US residential election. Thousands of such one- or small-dimensional markets exist today, each operating independently. For example, at the racetrack, betting on a horse to win does not directly impact the odds for that horse to finish among the top two, as logically it should, because the two bet types are handled separately. A combinatorial prediction market is a central clearinghouse for handling logically-related bets defined on a combinatorial space. For example, the outcome space might be all n! possible permutations of n horses in a horse race, while bets are properties of permutations such as horse A finishes 3rd or horse A beats horse B. Alternately, the outcome space might be all 2 50 possible state-by-state results for the 2008 US residential election, while bets are Boolean statements such as Democrat wins in Ohio and Florida but not in Texas. Low liquidity marginalizes the value of prediction markets, and combinatorics only exacerbates the problem by dividing traders attention among an exponential number of outcomes. A combinatorial matching market the combinatorial generalization of a standard double auction may simply fail to find any trades [11, 4, 5]. In contrast, an automated market maker is always willing to trade on every bet at some price. A combinatorial market maker implicitly or explicitly maintains prices across all (exponentially many) outcomes, thus allowing any trader at any time to place any bet, if transacted at the market maker s quoted price. Hanson s [13, 14] logarithmic market scoring rule market maker (LMSR) is becoming the de facto standard market maker for prediction markets. LMSR has a number of desirable properties, including bounded loss that grows logarithmically in the number of outcomes, infinite liquidity, and modularity that respects some independence relationships. LMSR is used by a number of companies, including Microsoft, inklingmarkets.com, thewsx.com, and yoonew.com,
2 and is the subject of a number of research studies [7, 15, 8]. In this paper, we analyze the computational complexity of LMSR in several combinatorial betting scenarios. We examine both permutation combinatorics and Boolean combinatorics. We show that both computing instantaneous prices and computing payments of transactions are #-hard in all cases we examine, even when we restrict participants to very simplistic and limited types of bets. For example, in the horse race analogy, if participants can place bets only of the form horse A finishes in position N, then pricing these bets properly according to LMSR is #-hard, even though matching up bets of the exact same form (with no market maker) can be done in polynomial time [4]. On a more positive note, we examine an approximation algorithm for LMSR pricing in permutation markets that makes use of powerful techniques from the literature on online learning with expert advice [3, 19, 12]. We briefly review this online learning setting, and examine the striking parallels that exist between the specific form of standard LMSR prices and the expert weights employed by the Weighted Majority algorithm [19]. We then show how a recent extension of Weighted Majority to permutation learning [16] can be transformed into an approximation algorithm for pricing in permutation markets in which the market maker is guaranteed to have bounded loss. 2. RELATED WORK Fortnow et al. [11] study the computational complexity of finding acceptable trades among a set of bids in a Boolean combinatorial market. In their setting, the center is an auctioneer who takes no risk, only matching together willing traders. They study a call market setting in which bids are collected together and processed once en masse. They show that the auctioneer matching problem is co-n-complete when orders are divisible and Σ p 2-complete when orders are indivisible, but identify a tractable special case in which participants are restricted to bet on disjunctions of positive events or single negative events. Chen et al. [4] analyze the the auctioneer matching problem for betting on permutations, examining two bidding languages. Subset bets are bets of the form candidate i finishes in positions x, y, or z or candidate i, j, or k finishes in position x. air bets are of the form candidate i beats candidate j. They give a polynomial-time algorithm for matching divisible subset bets, but show that matching pair bets is N-hard. Hanson highlights the use of LMSR for Boolean combinatorial markets, noting that the subsidy required to run a combinatorial market on 2 n outcomes is no greater than that required to run n independent one-dimensional markets [13, 14]. Hanson discusses the computational difficulty of maintaining LMSR prices on a combinatorial space, and proposes some solutions, including running market makers on overlapping subsets of events, allowing traders to synchronize the markets via arbitrage. The work closest to our own is that of Chen, Goel, and ennock [6], who study a special case of Boolean combinatorics in which participants bet on how far a team will advance in a single elimination tournament, for example a sports playoff like the NCAA college basketball tournament. They provide a polynomial-time algorithm for LMSR pricing in this setting based on a Bayesian network representation of prices. They also show that LMSR pricing is N-hard for a very general bidding language. They suggest an approximation scheme based on Monte Carlo simulation or importance sampling. We believe ours are the first non-trivial hardness results and worst-case bounded approximation scheme for LMSR pricing. 3. BACKGROUND 3.1 Logarithmic Market Scoring Rules roposed by Hanson [13, 14], a logarithmic market scoring rule is an automated market maker mechanism that always maintains a consistent probability distribution over an outcome space Ω reflecting the market s estimate of the likelihood of each outcome. A generic LMSR offers a security corresponding to each possible outcome ω. The security associated to outcome ω pays off $1 if the outcome ω happens, and $0 otherwise. Let q = (q ω) ω Ω indicate the number of outstanding shares for all securities. The LMSR market maker starts the market with some initial shares of securities, q 0, which may be 0. The market keeps track of the outstanding shares of securities q at all times, and maintains a cost function C(q) = b log X ω Ω e qω/b, (1) and an instantaneous price function for each security p ω(q) = e qω/b τ Ω eqτ /b, (2) where b is a positive parameter related to the depth of the market. The cost function captures the total money wagered in the market, and C(q 0 ) reflects the market maker s maximum subsidy to the market. The instantaneous price function p ω(q) gives the current cost of buying an infinitely small quantity of the security for outcome ω, and is the partial derivative of the cost function, i.e. p ω(q) = C(q)/ q ω. We use p = (p ω(q)) ω Ω to denote the price vector. Traders buy and sell securities through the market maker. If a trader wishes to change the number of outstanding shares from q to q, the cost of the transaction that the trader pays is C( q) C(q), which equals the integral of the price functions following any path from q to q. When the outcome space is large, it is often natural to offer only compound securities on sets of outcomes. A compound security S pays $1 if one of the outcomes in the set S Ω occurs and $0 otherwise. Such a security is the combination of all securities ω S. Buying or selling q shares of the compound security S is equivalent to buying or selling q shares of each security ω S. Let Θ denote the set of all allowable compound securities. Denote the outstanding shares of all compound securities as Q = (q S) S Θ. The cost function can be written as C(Q) = b log X ω Ω = b log X ω Ω e S Θ:ω S q S /b S Θ:ω S e q S /b. (3) The instantaneous price of a compound security S is computed as the sum of the instantaneous prices of the securities
3 that compose the compound security S, p S(Q) = = = ω S eqω/b /b eqτ τ Ω ω S e S Θ:ω S q S /b τ Ω e S Θ:τ S q S /b ω S τ Ω QS Θ:ω S e q S /b. (4) QS Θ:τ S e q S /b Logarithmic market scoring rules are so named because they are based on logarithmic scoring rules. A logarithmic scoring rule is a set of reward functions {s ω(r) = a ω + b log(r ω) : ω Ω}, where r = (r ω) ω Ω is a probability distribution over Ω, and a ω is a free parameter. An agent who reports r is rewarded s ω(r) if outcome ω happens. Logarithmic scoring rules are proper in the sense that when facing them a risk-neutral agent will truthfully report his subjective probability distribution to maximize his expected reward. A LMSR market can be viewed as a sequential version of logarithmic scoring rule, because by changing market prices from p to p a trader s net profit is s ω( p) s ω(p) when outcome ω happens. At any time, a trader in a LMSR market is essentially facing a logarithmic scoring rule. LMSR markets have many desirable properties. They offer consistent pricing for combinatorial events. As market maker mechanisms, they provide infinite liquidity by allowing trades at any time. Although the market maker subsidizes the market, he is guaranteed a worst-case loss no greater than C(q 0 ), which is b log n if Ω = n and the market starts with 0 share of every security. In addition, it is a dominant strategy for a myopic risk-neutral trader to reveal his probability distribution truthfully since he faces a proper scoring rule. Even for forward-looking traders, truthful reporting is an equilibrium strategy when traders private information is independent conditional on the true outcome [7]. 3.2 Complexity of Counting The well-known class N contains questions that ask whether a search problem has a solution, such as whether a graph is 3-colorable. The class # consists of functions that count the number of solutions of N search questions, such as the number of 3-colorings of a graph. A function g is #-hard if, for every function f in #, it is possible to compute f in polynomial time given an oracle for g. Clearly oracle access to such a function g could additionally be used to solve any N problem, but in fact one can solve much harder problems too. Toda [24] showed that every language in the polynomial-time hierarchy can be solved efficiently with access to a #-hard function. To show a function g is a #-hard function, it is sufficient to show that a function f reduces to g where f was previously known to be #-hard. In this paper we use the following #-hard functions to reduce from: ermanent: The permanent of an n-by-n matrix A = (a i,j) is defined as perm(a) = X σ Ω n a i,σ(i), (5) i=1 where Ω is the set of all permutations over {1, 2,..., n}. Computing the permanent of a matrix A containing only 0-1 entries is #-hard [25]. #2-SAT: Counting the number of satisfying assignments of a formula given in conjunctive normal form with each clause having two literals is #-hard [26]. Counting Linear Extensions: Counting the number of total orders that extend a partial order given by a directed graph is #-hard [2]. #-hardness is the best we can achieve since all the functions in this paper can themselves be reduced to some other # function. 4. LMSR FOR ERMUTATION BETTING In this section we consider a particular type of market combinatorics in which the final outcome is a ranking over n competing candidates. Let the set of candidates be N n = {1,..., n}, which is also used to represent the set of positions. In the setting, Ω is the set of all permutations over N n. An outcome σ Ω is interpreted as the scenario in which each candidate i ends up in position σ(i). Chen et al. [4] propose two betting languages, subset betting and pair betting, for this type of combinatorics and analyze the complexity of the auctioneer s order matching problem for each. In what follows we address the complexity of operating an LMSR market for both betting languages. 4.1 Subset Betting As in Chen et al. [4], participants in a LMSR market for subset betting may trade two types of compound securities: (1) a security of the form i Φ where Φ N n is a subset of positions; and (2) a security Ψ j where Ψ N n is a subset of candidates. The security i Φ pays off $1 if candidate i stands at a position that is an element of Φ and $0 otherwise. Similarly, the security Ψ j pays off $1 if any of the candidates in Ψ finishes at position j and $0 otherwise. For example, in a horse race, participants can trade securities of the form horse A will come in the second, fourth, or fifth place, or either horse B or horse C will come in the third place. Note that owning one share of i Φ is equivalent to owning one share of i j for every j Φ, and similarly owning one share of Ψ j is equivalent to owing one share of i j for every i Ψ. We therefore restrict our attention to a simplified market where securities traded are of the form i j. We show that even in this simplified market it is #-hard for the market maker to provide the instantaneous security prices, evaluate the cost function, or calculate payments for transactions, which implies that the running an LMSR market for the more general case of subset betting is also #-hard. Traders can trade securities i j for all i N n and j N n with the market maker. Let q i,j be the total number of outstanding shares for security i j in the market. Let Q = (q i,j) i Nn,j Nn denote the outstanding shares for all securities. The market maker keeps track of Q at all times. From Equation 4, the instantaneous price of security i j is p i,j(q) = Q n σ Ω:σ(i)=j k=1 eq k,σ(k) /b τ Ω Q n k=1 eq k,τ(k) /b, (6)
4 and from Equation 3, the cost function for subset betting is C(Q) = b log X n e q k,σ(k) /b. (7) σ Ω k=1 We will show that computing instantaneous prices, the cost function, and/or payments of transactions for a subset betting market is #-hard by a reduction from the problem of computing the permanent of a (0,1)-matrix. Theorem 1. It is #-hard to compute instantaneous prices in a LMSR market for subset betting. Additionally, it is #-hard to compute the value of the cost function. roof. We show that if we could compute the instantaneous prices or the value of the cost function for subset betting for any quantities of shares purchased, then we could compute the permanent of any (0, 1)-matrix in polynomial time. Let n be the number of candidates, A = (a i,j) be any n- by-n (0,1)-matrix, and N = n! + 1. Note that Q n i=1 a i,σ(i) is either 0 or 1. From Equation 5, perm(a) n! and hence perm(a) mod N = perm(a). We show how to compute perm(a) mod N from prices in subset betting markets in which q i,j shares of i j have been purchased, where q i,j is defined by ( b ln N if a i,j = 0, q i,j = (8) b ln(n + 1) if a i,j = 1 for any i N n and any j N n. Let B = (b i,j) be a n-by-n matrix containing entries of the form b i,j = e q i,j /b. Note that b i,j = N if a i,j = 0 and b i,j = N + 1 if a i,j = 1. Thus, perm(a) mod N = perm(b) mod N. Thus, from Equation 6, the price for i j in the market is Q n σ Ω:σ(i)=j k=1 p i,j(q) = b k,σ(k) Q n τ Ω k=1 b k,τ(k) Q = bi,j σ Ω:σ(i)=j k i b k,σ(k) Q n τ Ω k=1 b k,τ(k) bi,j perm(mi,j) = perm(b) where M i,j is the matrix obtained from B by removing the ith row and jth column. Thus the ability to efficiently compute prices gives us the ability to efficiently compute perm(m i,j)/perm(b). It remains to show that we can use this ability to compute perm(b). We do so by telescoping a sequence of prices. Let B i be the matrix B with the first i rows and columns removed. From above, we have perm(b 1)/perm(B) = p 1,1(Q)/b 1,1. Define Q m to be the (n m)-by-(n m) matrix (q i,j) i>m,j>m, that is, the matrix of quantities of securities (q i,j) with the first k rows and columns removed. In a market with only n m candidates, applying the same technique to the matrix Q m, we can obtain perm(b m+1)/perm(b m) from market prices for m = 1,..., (n 2). Thus by computing n 1 prices, we can compute «««perm(b1) perm(b2) perm(bn 1) perm(b) perm(b 1) perm(b n 2) «perm(bn 1) =. perm(b) Since B n 1 only has one element, we thus can compute perm(b) from market prices. Consequently, perm(b) mod N gives perm(a). Therefore, given a n-by-n (0, 1)-matrix A, we can compute the permanent of A in polynomial time using prices in n 1 subset betting markets wherein an appropriate quantity of securities have been purchased. Additionally, note that C(Q) = b log X n b k,σ(k) = b log perm(b). σ Ω k=1 Thus if we can compute C(Q), we can also compute perm(a). As computing the permanent of a (0, 1)-matrix is #hard, both computing market prices and computing the cost function in a subset betting market are #-hard. Corollary 2. Computing the payment of a transaction in a LMSR for subset betting is #-hard. roof. Suppose the market maker starts the market with 0 share of every security. Denote Q 0 as the initial quantities of all securities. If the market maker can compute C( Q) C(Q) for any quantities Q and Q, it can compute C(Q) C(Q 0 ) for any Q. As C(Q 0 ) = b log n!, the market maker is able to compute C(Q). According to Theorem 1, computing the payment of a transaction is #-hard. 4.2 air Betting In contrast to subset betting, where traders bet on absolute positions for a candidate, pair betting allows traders to bet on the relative position of a candidate with respect to another. More specifically, traders buy and sell securities of the form i > j, where i and j are candidates. The security pays off $1 if candidate i ranks higher than candidate j (i.e., σ(i) < σ(j) where σ is the final ranking of candidates) and $0 otherwise. For example, traders may bet on events of the form horse A beats horse B, or candidate C receives more votes than candidate D. As for subset betting, the current state of the market is determined by the total number of outstanding shares for all securities. Let q i,j denote the number of outstanding shares for i > j. Applying Equations 3 and 4 to the present context, we find that the instantaneous price of the security i, j is given by p i,j(q) = σ Ω:σ(i)<σ(j) τ Ω Qi,j :σ(i )<σ(j ) eq i,j /b Qi,j :τ(i )<τ(j ) eq i,j /b, (9) and the cost function for pair betting is C(Q) = b log X σ Ω e q i,j /b. (10) i,j:σ(i)<σ(j) We will show that computing prices, the value of the cost function, and/or payments of transactions for pair betting is #-hard via a reduction from the problem of computing the number of linear extensions to any partial ordering. Theorem 3. It is #-hard to compute instantaneous prices in a LMSR market for pair betting. Additionally, it is #-hard to compute the value of the cost function. roof. Let be a partial order over {1,..., n}. Recall that a linear (or total) order T is a linear extension of
5 if whenever x y in it also holds that x y in T. We denote by N ( ) the number of linear extensions of. Recall that (i, j) is a covering pair of if i j in and there does not exist l i, j such that i l j. Let {(i 1, j 1), (i 2, j 2),..., (i k, j k )} be a set of covering pairs of. Note that covering pairs of a partially ordered set with n elements can be easily obtained in polynomial time, and that their number is less than n 2. We will show that we can design a sequence of trades that, given a list of covering pairs for, provide N ( ) through a simple function of market prices. We consider a pair betting market over n candidates. We construct a sequence of k trading periods, and denote by qi,j t and p t i,j respectively the outstanding quantity of security i > j and its instantaneous price at the end of period t. At the beginning of the market, qi,j 0 = 0 for any i and j. At each period t, 0 < t k, b ln n! shares of security i t > j t are purchased. Let X N t(i, j) = e qt i,j /b, and σ Ω:σ(i)<σ(j) i,j :σ(i )<σ(j ) D t = X σ Ω i,j :σ(i )<σ(j ) e qt i,j /b. Note that according to Equation 9, p t i t,j t = N t(i t, j t)/d t. For the first period, as only the security i 1 > j 1 is purchased, we get D 1 = X σ Ω:σ(i 1 )<σ(j 1 ) n! + X σ:σ(i 1 )>σ(j 1 ) 1 = (n!)2 + n! 2 We now show that D k can be calculated inductively from D 1 using successive prices given by the market. During period t, b ln n! shares of i t > j t are purchased. Note also that the securities purchased are different at each period, so that q s i t,j t = 0 if s < t and q s i t,j t = b ln n! if s t. We have Hence, N t(i t, j t) = N t 1(i t, j t)e b ln(n!)/b = n!n t 1(i t, j t). and therefore, p t i t,j t Nt(it, jt)/dt p t 1 = = n!dt 1, i t,j t N t 1(i t, j t)/d t 1 D t D k = (n!) k 1 k l=2! p l 1 i l,j l D p l 1. i l,j l So D k can be computed in polynomial time in n given the prices. Alternately, since the cost function at the end of period k can be written as C(Q) = b log D k, D k can also be computed efficiently from the cost function in period k. We finally show that given D k, we can compute N ( ) in polynomial time. Note that at the end of the k trading periods, the securities purchased correspond to the covering pairs of, such that e qk i,j /b = n! if (i, j) is a covering pair of and e qk i,j /b = 1 otherwise. Consequently, for a permutation σ that satisfies the partial order, meaning that σ(i) σ(j) whenever i j in, we have e qk i,j /b = (n!) k. i,j :σ(i )<σ(j ). On the other hand, if a permutation σ does not satisfy, it does not satisfy at least one covering pair, meaning that there is a covering pair of, (i, j), such that σ(i) > σ(j), so that e qk i,j /b (n!) k 1. i,j :σ(i )<σ(j ) Since the total number of permutations is n!, the total sum of all terms in the sum D k corresponding to permutations that do not satisfy the partial ordering is less than or equal to n!(n!) k 1 = (n!) k, and is strictly less than (n!) k unless the number of linear extensions is 0, while the total sum of all the terms corresponding to permutations that do satisfy is N ( )(n!) k. Thus N ( ) = D k /(n!) k. We know that computing the number of linear extensions of a partial ordering is #-hard. Therefore, both computing the prices and computing the value of the cost function in pair betting are #-hard. Corollary 4. Computing the payment of a transaction in a LMSR for pair betting is #-hard. The proof is nearly identical to the proof of Corollary LMSR FOR BOOLEAN BETTING We now examine an alternate type of market combinatorics in which the final outcome is a conjunction of event outcomes. Formally, let A be event space, consisting of N individual events A 1,, A N, which may or may not be mutually independent. We define the state space Ω be the set of all possible joint outcomes for the N events, so that its size is Ω = 2 N. A Boolean betting market allows traders to bet on Boolean formulas of these events and their negations. A security φ pays off $1 if the Boolean formula φ is satisfied by the final outcome and $0 otherwise. For example, a security A 1 A 2 pays off $1 if and only if at least one of events A 1 and A 2 occurs, while a security A 1 A 3 A 5 pays off $1 if and only if the events A 1 and A 3 both occur and the event A 5 does not. Following the notational conventions of Fortnow et al. [11], we use ω φ to mean that the outcome ω satisfies the Boolean formula φ. Similarly, ω φ implies that the outcome ω does not satisfy φ. In this section, we focus our attention to LMSR markets for a very simple Boolean betting language, Boolean formulas of two events. We show that even when bets are only allowed to be placed on disjunctions or conjunctions of two events, it is still #-hard to calculate the prices, the value of the cost function, and payments of transactions in a Boolean betting market operated by a LMSR market maker. Let X be the set containing all elements of A and their negations. In other words, each event outcome X i X is either A j or A j for some A j A. We begin by considering the scenario in which traders may only trade securities X i X j corresponding to disjunctions of any two event outcomes. Let q i,j be the total number of shares purchased by all traders for the security X i X j, which pays off $1 in the event of any outcome ω such that ω (X i X j) and $0 otherwise. From Equation 4, we can calculate the instantaneous price for the security X i X j for any two event
6 outcomes X i, X j X as p i,j(q) = ω Ω:ω (X i X j ) Q1 i <j 2N:ω (X i X j ) eq i,j /b τ Ω Q1 i <j 2N:τ (X i X j ) eq i,j /b. (11) Note that if X i = X j, p i,j(q) is always $1 regardless of how many shares of other securities have been purchased. According to Equation 3, the cost function is C(Q) = b log X e q i,j /b. (12) ω Ω 1 i<j 2N:ω (X i X j ) Theorem 5 shows that computing prices and the value of the cost function in such a market is #-hard, via a reduction from the #2-SAT problem. 1 Theorem 5. It is #-hard to compute instantaneous prices in a LMSR market for Boolean betting when bets are restricted to disjunctions of two event outcomes. Additionally, it is #-hard to compute the value of the cost function in this setting. roof. Suppose we are given a 2-CNF (Conjunctive Normal Form) formula (X i1 X j1 ) (X i2 X j2 ) (X ik X jk ) (13) with k clauses, where each clause is a disjunction of two literals (i.e. events and their negations). Assume any redundant terms have been removed. The structure of the proof is similar to that of the pair betting case. We consider a Boolean betting markets with N events, and show how to construct a sequence of trades that provides, through prices or the value of the cost function, the number of satisfiable assignments for the 2-CNF formula. We create k trading periods. At period t, a quantity b ln(2 N ) of the security X it X jt is purchased. We denote by p t i,j and qi,j t respectively the price and outstanding quantities of the security X i X j at the end of period t. Suppose the market starts with 0 share of every security. Note that qi s t,j t = 0 if s < t and qi s t,j t = b ln(2 N ) if s t. Let X N t(i, j) = e qt i,j /b, and ω Ω:ω (X i X j ) 1 i <j 2N:ω (X i X j ) D t = X ω Ω 1 i <j 2N:ω (X i X j ) e qt i,j /b. Thus, p t i,j = N t(i t, j t)/d t. Since only one security X i1 X j1 has been purchased in period 1, we get X X D 1 = 2 N + 1 ω Ω:ω (X i1 X j1 ) = 3 2 2N N 2. ω Ω:ω (X i1 X j1 ) We then show that D k can be calculated inductively from D 1. As the only security purchased in period t is (X it X jt ) in quantity b ln(2 N ), we obtain N t(i t, j t) = N t 1(i t, j t)e b ln(2n )/b = N t 1(i t, j t)2 N. 1 This can also be proved via a reduction from counting linear extensions using a similar technique to the proof of Theorem 3, but the reduction to #2-SAT is more natural. Therefore, and we get p t i t,j t Nt(it, jt)/dt p t 1 = = 2N D t 1, i t,j t N t 1(i t, j t)/d t 1 D t D k = (2 N ) k 1 k l=2! p l 1 i l,j l D p l 1. i l,j l In addition, since the cost function at the end of period k can be expressed as C(Q) = b log D k, D k can also be computed efficiently from the cost function in period k. We now show that we can deduce from D k the number of satisfiable assignments for the 2-CNF formula (Equation 13). Indeed, each term in the sum X ω Ω 1 i <j 2N:ω (X i X j ) e qk i,j /b that corresponds to an outcome ω that satisfies the formula is exactly 2 kn, as exactly k terms in the product are 2 N and the rest is 1. On the contrary, each term in the sum that corresponds to an outcome ω that does not satisfy the 2-CNF formula will be at most 2 (k 1)N since at most k 1 terms in the product will be 2 N and the rest will be 1. Since the total number of outcomes is 2 N, the total sum of all terms corresponding to outcomes that do not satisfy Equation 13 is less than or equal to 2 N (2 (k 1)N ) = 2 kn, and is strictly less than 2 kn unless the number of satisfying assignments is 0. Thus the number of satisfying assignments is D kn k /2. We know that computing the number of satisfiable assignments of a 2-CNF formula is #-hard. We have shown how to compute it in polynomial time using prices or the value of the cost function in a Boolean betting market of N events. Therefore, both computing prices and computing the value of the cost function in a Boolean betting market is #-hard. Corollary 6. Computing the payment of a transaction in a LMSR for Boolean betting is #-hard when traders can only bet on disjunctions of two events. The proof is nearly identical to the proof of Corollary 2. If we impose that participants in a Boolean betting market may only trade securities corresponding to conjunctions of any two event outcomes, A i A j, the following Corollary gives the corresponding complexity results. Corollary 7. It is #-hard to compute instantaneous prices in a LMSR market for Boolean betting when bets are restricted to conjunctions of two event outcomes. Additionally, it is #-hard to compute the value of the cost function in this setting, and #-hard to compute the payment for a transaction. roof. Buying q shares of security A i A j is equivalent to selling q shares of A i A j. Thus if we can operate a Boolean betting market for securities of the type A i A j in polynomial time, we can also operate a Boolean betting market for securities of the type A i A j in polynomial time. The result then follows from Theorem 5 and Corollary 6.
7 6. AN AROXIMATION ALGORITHM FOR SUBSET BETTING There is an interesting relationship between logarithmic market scoring rule market makers and a common class of algorithms for online learning in an experts setting. In this section, we elaborate on this connection, and show how results from the online learning community can be used to prove new results about an approximation algorithm for subset betting. 6.1 The Experts Setting We begin by describing the standard model of online learning with expert advice [19, 12, 27]. In this model, at each time t {1,, T }, each expert i {1,, n} receives a loss l i,t [0, 1]. The cumulative loss of expert i at time T is L i,t = T t=1 li,t. No statistical assumptions are made about these losses, and in general, algorithms are expected to perform well even if the sequence of losses is chosen by an adversary. An algorithm A maintains a current weight w i,t for each expert i, where n i=1 wi,t = 1. These weights can be viewed as distributions over the experts. The algorithm then receives its own instantaneous loss l A,t = n i=1 wi,tli,t, which may be interpreted as the expected loss of the algorithm when choosing an expert according to the current distribution. The cumulative loss of A up to time T is then defined in the natural way as L A,T = T t=1 la,t = T n wi,tli,t. A common goal in such online learning settings is to minimize an algorithm s regret. Here the regret is defined as the difference between the cumulative loss of the algorithm and the cumulative loss of an algorithm that would have chosen the best expert in hindsight by setting his weight to 1 throughout all the periods. Formally, the regret is given by L A,T min i {1,,n} L i,t. Many algorithms that have been analyzed in the online experts setting are based on exponential weight updates. These exponential updates allow the algorithm to quickly transfer weight to an expert that is outperforming the others. For example, in the Weighted Majority algorithm of Littlestone and Warmuth [19], the weight on each expert i is defined as w i,t = w i,t 1e ηl i,t n j=1 wj,t 1e ηl j,t = e ηl i,t n j=1 e ηl j,t, (14) where η is the learning rate, a small positive parameter that controls the magnitude of the updates. The following theorem gives a bound on the regret of Weighted Majority. For a proof of this result and a nice overview of learning with expert advice, see, for example, Cesa-Bianchi and Lugosi [3]. Theorem 8. Let A be the Weighted Majority algorithm with parameter η. After a sequence of T trials, L A,T min i {1,,n} Li,T ηt + ln(n) η 6.2 Relationship to LMSR Markets There is a manifest similarity between the expert weights utilized by Weighted Majority and the prices in an LMSR market; simply compare the form of Equation 14 with the form of Equation 2. One might ask if the results from the experts setting can be applied to the analysis of prediction markets. Our answer is yes. For example, it is possible to. use Theorem 8 to rediscover the well-known bound of b ln(n) for the loss of an LMSR market maker with n outcomes. Let ɛ be a limit on the number of shares that a trader may purchase or sell at each time step; in other words, if a trader would like to purchase or sell q shares, this purchase must be broken down into q/ɛ separate purchases of ɛ or less shares. Note that the total number of time steps T needed to execute such a sequence of purchases and sales is proportional to 1/ɛ. We will construct a sequence of loss functions in a setting with n experts to induce a sequence of weight matrices that correspond to the price matrices of the LMSR market. At each time step t, let p i,t [0, 1] be the instantaneous price of security i at the end of period t, and let q i,t [ ɛ, ɛ] be the number of shares of security i purchased during period t. Let Q i,t be the total number of shares of security i that have been purchased up to time t. Define the instantaneous loss of each expert as l i,t = (2ɛ q i,t)/(ηb). First notice that this loss is always in [0, 1] as long as η 2ɛ/b. From Equations 2 and 14, at each time t, p i,t = = e Q i,t/b = e 2ɛt/b ηl i,t n j=1 eq j,t/b n j=1 e2ɛt/b ηl j,t e ηl i,t n j=1 e ηl j,t = wi,t. Applying Theorem 8, and rearranging terms, we find that max i {1,,n} t=1 TX TX nx q i,t p i,tq i,t η 2 T b + b ln(n). The first term of the left-hand side is the maximum payment that the market maker needs to make, while the second terms of the left-hand side captures the total money the market maker has received. The right hand side is clearly minimized when η is set as small as possible. Setting η = 2ɛ/b gives us max i {1,,n} t=1 TX TX nx q i,t p i,tq i,t 4ɛ 2 T b + b ln(n). Since T = O(1/ɛ), the term 4ɛ 2 T b goes to 0 as ɛ becomes very small. Thus in the limit as ɛ approaches 0, we get the well-known result that the worst-case loss of the market maker is bounded by b ln(n). 6.3 Considering ermutations Recently Helmbold and Warmuth [16] have shown that many results from the standard experts setting can be extended to a setting in which, instead of competing with the best expert, the goal is to compete with the best permutation over n items. Here each permutation suffers a loss at each time step, and the goal of the algorithm is to maintain a weighting over permutations such that the cumulative regret to the best permutation is small. It is infeasible to treat each permutation as an expert and run a standard algorithm since this would require updating n! weights at each time step. Instead, they show that when the loss has a certain structure (in particular, when the loss of a permutation is the sum of the losses of each of the n mappings), an alternate algorithm can be used that requires tracking only n 2 weights in the form of an n n doubly stochastic matrix. Formally, let W t be a doubly stochastic matrix of weights maintained by the algorithm A at time t. Here W t i,j is the
8 weight corresponding to the probability associated with item i being mapped into position j. Let L t [0, 1] n n be the loss matrix at time t. The instantaneous loss of a permutation σ at time t is l σ,t = n i=1 Lt i,σ(i). The instantaneous loss of A is l A,t = n n i=1 j=1 W i,jl t t i,j, the matrix dot product between W t and L t. Notice that l A,t is equivalent to the expectation over permutations σ drawn according to W t of l σ,t. The goal of the algorithm is to minimize the cumulative regret to the best permutation, L A,T min σ Ω L σ,t where the cumulative loss is defined as before. Helmbold and Warmuth go on to present an algorithm called ermelearn that updates the weight matrix in two steps. First, it creates a temporary matrix W, such that for every i and j, W i,j = Wi,je t ηlt i,j. It then obtains W t+1 i,j by repeatedly rescaling the rows and columns of W until the matrix is doubly stochastic. Alternately rescaling rows and columns of a matrix M in this way is known as Sinkhorn balancing [22]. Normalizing the rows of a matrix is equivalent to pre-multiplying by a diagonal matrix, while normalizing the columns is equivalent to post-multiplying by a diagonal matrix. Sinkhorn [22] shows that this procedure converges to a unique doubly stochastic matrix of the form RMC where R and C are diagonal matrices if M is a positive matrix. Although there are cases in which Sinkhorn balancing does not converge in finite time, many results show that the number of Sinkhorn iterations needed to scale a matrix so that row and column sums are 1 ± ɛ is polynomial in 1/ɛ [1, 17, 18]. The following theorem [16] bounds the cumulative loss of the ermelearn in terms of the cumulative loss of the best permutation. Theorem 9. (Helmbold and Warmuth [16]) Let A be the ermelearn algorithm with parameter η. After a sequence of T trials, L A,T n ln(n) + η minσ Ω Lσ,T 1 e η. 6.4 Approximating Subset Betting Using the ermelearn algorithm, it is simple to approximate prices for subset betting in polynomial time. We start with a n n price matrix 1 in which all entries are 1/n. As before, traders may purchase securities of the form i Φ that pay off $1 if and only if horse or candidate i finishes in a position j Φ, or securities of the form Ψ j that pay off $1 if and only if a horse or candidate i Ψ finishes in position j. As in Section 6.2, each time a trader purchases or sells q shares, the purchase or sale is broken up into q/ɛ purchases or sales of ɛ shares or less, where ɛ > 0 is a small constant. 2 Thus we can treat the sequence of purchases as a sequence of T purchases of ɛ or less shares, where T = O(1/ɛ). Let q t i,j be the number of shares of securities i Φ with j Φ or Ψ j with i Ψ purchased at time t; then q t i,j [ ɛ, ɛ] for all i and j. The price matrix is updated in two steps. First, a temporary matrix is created where for every i and j, 2 We remark that dividing purchases in this way has the negative effect of creating a polynomial time dependence on the quantity of shares purchased. However, this is not a problem if the quantity of shares bought or sold in each trade is bounded to start, which is a reasonable assumption. The additional time required is then linear only in 1/ɛ. i,j = t i,je qt i,j /b where b > 0 is a parameter playing a similar role to b in Equation 2. Next, is Sinkhorn balanced to the desired precision, yielding an (approximately) doubly stochastic matrix t+1. The following lemma shows that updating the price matrix in this way results in a price matrix that is equivalent to the weight matrix of ermelearn with particular loss functions. Lemma 10. The sequence of price matrices obtained by the approximation algorithm for subset betting on a sequence of purchases q t [ ɛ, ɛ] n n is equivalent to the sequence of weight matrices obtained by running ermelearn(η) on a sequence of losses L t with L t i,j = 2ɛ qt i,j ηb for all i and j, for any η 2ɛ/b. roof. First note that for any η 2ɛ/b, L t i,j [0, 1] for all t, i, and j, so the loss matrix is valid for ermelearn. 1 and W 1 both contain all entries of 1/n. Assume that t = W t. When updating weights for time t + 1, for all i and j, i,j = t i,je qt i,j /b = W t i,je qt i,j /b = e 2ɛ/b W t i,je 2ɛ/b+qt i,j /b = e 2ɛ/b W t i,je ηlt i,j = e 2ɛ/b W i,j. Since the matrix W is a constant multiple of, the Sinkhorn balancing step will produce the same matrices. Using this lemma, we can show that the difference between the amount of money that the market maker must distribute to traders in the worst case (i.e. when the true outcome is the outcome that pays off the most) and the amount of money collected by the market is bounded. We will see in the corollary below that as ɛ approaches 0, the worst case loss of the market maker approaches bn ln(n), regardless of the number of shares purchased. Unfortunately, if ɛ > 0, this bound can grow arbitrarily large. Theorem 11. For any sequence of valid subset betting purchases q t where qi,j t [ ɛ, ɛ] for all t, i, and j, let 1,, T be the price matrices obtained by running the subset betting approximation algorithm. Then max σ S n TX nx TX nx nx q t i,σ(i) j=1 2ɛ/b n ln(n) + 1 e 2ɛ/b t i,jq t i,j 2ɛ/b 1 e 2ɛ/b 1 «2ɛnT. roof. By Theorem 9 and Lemma 10, after rearranging terms, we have that for any η 2ɛ/b, 2ɛnT TX nx nx j=1 η 1 e η t i,j «bn ln n + 2ɛnT max σ S n TX nx q t i,σ(i)!.
9 Thus we have η max 1 e η σ S n TX nx TX nx nx q t i,σ(i) η bn ln(n) + 1 e η j=1 η 1 e η 1 t i,jq t i,j «2ɛnT. Notice that η/(1 e η ) is an increasing function in η, and goes to 1 in the limit as η goes to 0. Thus the right hand side of this equation decreases as η decreases to 0. Setting η = 2ɛ/b yields the result. Notice that the number of steps T scales inversely with ɛ since each lump purchase of q shares must be broken into q/ɛ individual purchases. Thus in the limit as ɛ approaches 0, the loss of the market maker is bounded by bn ln(n). Corollary 12. For any sequence of valid subset betting purchases broken into T (= O(1/ɛ)) small purchases such that qi,j t [ ɛ, ɛ] for all t, i, and j, let 1,, T be the price matrices obtained by running the Subset Betting Approximation Algorithm. In the limit as ɛ approaches 0, max σ S n TX nx TX nx nx q t i,σ(i) i,jq t i,j t bn ln(n). j=1 This bound is comparable to worst-case loss bounds achieved using alternate methods for operating LMSRs on permutations. A single LMSR operated on the entire outcome space has a guaranteed worst-case loss of b ln(n!), but is, of course, intractable to operate. A set of n LMSRs operated as n separate markets, one for each position, would also have a total worst-case loss bn ln(n), but could not guarantee consistent prices. In the limit, our approximation algorithm achieves the same worst-case loss guarantee as if we were operating n separate markets, but prices remain consistent at all times. 7. CONCLUSIONS We investigate the computational complexity for logarithmic market scoring rule (LMSR) market makers to operate combinatorial betting markets. We examine two specific market combinatorics, permutations and Boolean combinations. In a permutation betting market, the state space is the set of rankings of n competing candidates and is of size of n!. In a Boolean betting market, the state space is the set of Boolean combinations of N event outcomes and is of size 2 N. Since allowing participants to bet on individual states is both intractable and unnatural, we allow participants to trade securities that correspond to simple properties of the final state. For permutation betting, we consider subset betting, which allows traders to bet on a set of positions that a candidate will stand at or a set of traders who will stand at a particular position, and pair betting, which allows traders to wager on the relative ranking of two candidates. For Boolean betting, we consider the situation where traders bet on conjunctions or disjunctions of two events. In all cases, we prove that it is #-hard to compute the instantaneous prices as well as payments of transactions in a LMSR market. Our results on subset betting in LMSR contrast with those of Chen et al. [4] who show that subset betting is tractable when the market is operated by a central auctioneer who performs riskless order matching. Our results on Boolean betting contrast with those of Chen, Goel, and ennock [6] who consider betting on single-elimination tournaments a special form of Boolean combinations and show that such a market with LMSR may be operated in polynomial time. This raises interesting questions on the connection between the complexity of auctioneers and the complexity of market makers, and on the complexity of other combinatorial betting scenarios. We also show that there is an interesting relationship between LMSR market makers and a common class of expert learning algorithms. This allows us to design an approximation algorithm for pricing subset betting in an LMSR. We prove that in the limit the worst-case loss of an LMSR market maker that uses our algorithm remains bounded. In the future we plan to further investigate the connection between online learning in expert settings and information markets with automated market makers. 8. ACKNOWLEDGMENTS The authors are grateful to Sampath Kannan for useful discussions and advice on how to approach the pair betting problem, to Manfred Warmuth for sharing extended details of his work on learning permutations, and to Sharad Goel for insightful discussions. 9. REFERENCES [1] H. Balakrishnan, I. Hwang, and C. Tomlin. olynomial approximation algorithms for belief matrix maintenance in identity management. In 43rd IEEE Conference on Decision and Control, pages , [2] G. Brightwell and. Winkler. Counting linear extensions is #-complete. In ACM Symposium on Theory of Computing, [3] N. Cesa-Bianchi and G. Lugosi. rediction, learning, and games. Cambridge University ress, [4]. Chen, L. Fortnow, E. V. Nikolova, and D. M. ennock. Betting on permutations. In ACM Conference on Electronic Commerce, [5]. Chen, L. Fortnow, E. V. Nikolova, and D. M. ennock. Combinatorial betting. ACM SIGecom Exchanges, 7(1): , [6]. Chen, S. Goel, and D. M. ennock. ricing combinatorial markets for tournaments. In ACM Symposium on Theory of Computing, To appear. [7]. Chen, D. M. Reeves, D. M. ennock, R. D. Hanson, L. Fortnow, and R. Gonen. Bluffing and strategic reticence in prediction markets. In Workshop on Internet and Network Economics, [8] iling Chen and David M. ennock. A utility framework for bounded-loss market makers. In roceedings of the 23rd Conference on Uncertainty in Artificial Intelligence, pages 49 56, [9] R. Forsythe, F. Nelson, G. Neumann, and J. Wright. Anatomy of an experimental political stock market. The American Economic Review, 82(5): , [10] R. Forsythe, T. Rietz, and T. Ross. Wishes, expectations, and actions: A survey on price formation in election stock markets. Journal of Economic Behavior and Organization, 39:83 110, 1999.
10 [11] L. Fortnow, J. Kilian, D. M. ennock, and M. Wellman. Betting boolean-style: A framework for trading securities based on logical formulas. Decision Support Systems, 39(1):87 104, [12]. Freund and R. Schapire. A decision-theoretic generalization of on-line learning and an application to boosting. Journal of Computer and System Sciences, 55(1): , [13] R. D. Hanson. Combinatorial information market design. Information Systems Frontiers, (1): , [14] R. D. Hanson. Logarithmic market scoring rules for modular combinatorial information aggregation. Journal of rediction Markets, [15] R. D. Hanson, J. Ledyard, and T. Ishikida. An experimental test of combinatorial information markets. Journal of Economic Behavior and Organization, To appear. [16] D. Helmbold and M. Warmuth. Learning permutations with exponential weights. In 20th Annual Conference on Learning Theory, pages , [17] Bahman Kalantari and Leonid Khachiyan. On the complexity of nonnegative-matrix scaling. Linear Algebra and its applications, (240):87 103, [18] Nathan Linial, Alex Samorodnitsky, and Avi Wigderson. A deterministic strongly polynomial algorithm for matrix scaling and approximate permanents. Combinatorica, 20(4): , [19] N. Littlestone and M. Warmuth. The weighted majority algorithm. Information and Computation, 108(2): , [20] R. Nelson and D. Bessler. Subjective probabilities and scoring rules: Experimental evidence. American Journal of Agricultural Economics, 71(2): , [21] K. Oliven and T. Rietz. Suckers are born, but markets are made: Individual rationality, arbitrage, and market efficiency on an electronic futures market. Management Science, 50(3): , [22] R. Sinkhorn. A relationship between arbitrary positive matrices and doubly stochastic matrices. The Annals of Mathematical Statistics, 35(2): , [23] R. Thaler and W. Ziemba. Anomalies: arimutuel betting markets: Racetracks and lotteries. Journal of Economic erspectives, 2(2): , [24] S. Toda. is as hard as the polynomial-time hierarchy. SIAM Journal on Computing, 20(5): , [25] L. Valiant. The complexity of computing the permanent. Theoretical Computer Science, 8: , [26] L. Valiant. The complexity of enumeration and reliability problems. SIAM Journal of Computing, 8(3): , [27] V. Vovk. A game of prediction with expert advice. Journal of Computer and System Sciences, 56: , 1998.
2. LOGARITHMIC MARKET SCORING RULE MARKET MAKER (LMSR)
Combinatorial rediction Markets for Event Hierarchies Mingyu Guo Duke University Department of Computer Science Durham, NC, USA [email protected] David M. ennock Yahoo! Research 111 W. 40th St. 17th Floor
Prediction Markets. 1 Introduction. 1.1 What is a Prediction Market? Algorithms Seminar 12.02.2014
Algorithms Seminar 12.02.2014 Tawatchai Siripanya Prediction Markets Wolfgang Mulzer, Yannik Stein 1 Introduction 1.1 What is a Prediction Market? Prediction markets are defined as analytical markets that
Introduction to Online Learning Theory
Introduction to Online Learning Theory Wojciech Kot lowski Institute of Computing Science, Poznań University of Technology IDSS, 04.06.2013 1 / 53 Outline 1 Example: Online (Stochastic) Gradient Descent
Notes from Week 1: Algorithms for sequential prediction
CS 683 Learning, Games, and Electronic Markets Spring 2007 Notes from Week 1: Algorithms for sequential prediction Instructor: Robert Kleinberg 22-26 Jan 2007 1 Introduction In this course we will be looking
P versus NP, and More
1 P versus NP, and More Great Ideas in Theoretical Computer Science Saarland University, Summer 2014 If you have tried to solve a crossword puzzle, you know that it is much harder to solve it than to verify
An Optimization-Based Framework for Automated Market-Making
An Optimization-Based Framework for Automated Market-Making Jacob Abernethy EECS Department UC Berkeley [email protected] Yiling Chen School of Engineering and Applied Sciences Harvard University [email protected]
Generating models of a matched formula with a polynomial delay
Generating models of a matched formula with a polynomial delay Petr Savicky Institute of Computer Science, Academy of Sciences of Czech Republic, Pod Vodárenskou Věží 2, 182 07 Praha 8, Czech Republic
Adaptive Online Gradient Descent
Adaptive Online Gradient Descent Peter L Bartlett Division of Computer Science Department of Statistics UC Berkeley Berkeley, CA 94709 bartlett@csberkeleyedu Elad Hazan IBM Almaden Research Center 650
1 Introduction. 2 Prediction with Expert Advice. Online Learning 9.520 Lecture 09
1 Introduction Most of the course is concerned with the batch learning problem. In this lecture, however, we look at a different model, called online. Let us first compare and contrast the two. In batch
The Multiplicative Weights Update method
Chapter 2 The Multiplicative Weights Update method The Multiplicative Weights method is a simple idea which has been repeatedly discovered in fields as diverse as Machine Learning, Optimization, and Game
U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009. Notes on Algebra
U.C. Berkeley CS276: Cryptography Handout 0.1 Luca Trevisan January, 2009 Notes on Algebra These notes contain as little theory as possible, and most results are stated without proof. Any introductory
Week 1: Introduction to Online Learning
Week 1: Introduction to Online Learning 1 Introduction This is written based on Prediction, Learning, and Games (ISBN: 2184189 / -21-8418-9 Cesa-Bianchi, Nicolo; Lugosi, Gabor 1.1 A Gentle Start Consider
Mathematics Course 111: Algebra I Part IV: Vector Spaces
Mathematics Course 111: Algebra I Part IV: Vector Spaces D. R. Wilkins Academic Year 1996-7 9 Vector Spaces A vector space over some field K is an algebraic structure consisting of a set V on which are
1 Portfolio Selection
COS 5: Theoretical Machine Learning Lecturer: Rob Schapire Lecture # Scribe: Nadia Heninger April 8, 008 Portfolio Selection Last time we discussed our model of the stock market N stocks start on day with
Online and Offline Selling in Limit Order Markets
Online and Offline Selling in Limit Order Markets Kevin L. Chang 1 and Aaron Johnson 2 1 Yahoo Inc. [email protected] 2 Yale University [email protected] Abstract. Completely automated electronic
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS 1. SYSTEMS OF EQUATIONS AND MATRICES 1.1. Representation of a linear system. The general system of m equations in n unknowns can be written a 11 x 1 + a 12 x 2 +
Lecture 15 An Arithmetic Circuit Lowerbound and Flows in Graphs
CSE599s: Extremal Combinatorics November 21, 2011 Lecture 15 An Arithmetic Circuit Lowerbound and Flows in Graphs Lecturer: Anup Rao 1 An Arithmetic Circuit Lower Bound An arithmetic circuit is just like
THE FUNDAMENTAL THEOREM OF ARBITRAGE PRICING
THE FUNDAMENTAL THEOREM OF ARBITRAGE PRICING 1. Introduction The Black-Scholes theory, which is the main subject of this course and its sequel, is based on the Efficient Market Hypothesis, that arbitrages
CSC2420 Fall 2012: Algorithm Design, Analysis and Theory
CSC2420 Fall 2012: Algorithm Design, Analysis and Theory Allan Borodin November 15, 2012; Lecture 10 1 / 27 Randomized online bipartite matching and the adwords problem. We briefly return to online algorithms
Continued Fractions and the Euclidean Algorithm
Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction
OHJ-2306 Introduction to Theoretical Computer Science, Fall 2012 8.11.2012
276 The P vs. NP problem is a major unsolved problem in computer science It is one of the seven Millennium Prize Problems selected by the Clay Mathematics Institute to carry a $ 1,000,000 prize for the
Solution of Linear Systems
Chapter 3 Solution of Linear Systems In this chapter we study algorithms for possibly the most commonly occurring problem in scientific computing, the solution of linear systems of equations. We start
Similarity and Diagonalization. Similar Matrices
MATH022 Linear Algebra Brief lecture notes 48 Similarity and Diagonalization Similar Matrices Let A and B be n n matrices. We say that A is similar to B if there is an invertible n n matrix P such that
NP-Completeness and Cook s Theorem
NP-Completeness and Cook s Theorem Lecture notes for COM3412 Logic and Computation 15th January 2002 1 NP decision problems The decision problem D L for a formal language L Σ is the computational task:
The Advantages and Disadvantages of Online Linear Optimization
LINEAR PROGRAMMING WITH ONLINE LEARNING TATSIANA LEVINA, YURI LEVIN, JEFF MCGILL, AND MIKHAIL NEDIAK SCHOOL OF BUSINESS, QUEEN S UNIVERSITY, 143 UNION ST., KINGSTON, ON, K7L 3N6, CANADA E-MAIL:{TLEVIN,YLEVIN,JMCGILL,MNEDIAK}@BUSINESS.QUEENSU.CA
Lecture 7: NP-Complete Problems
IAS/PCMI Summer Session 2000 Clay Mathematics Undergraduate Program Basic Course on Computational Complexity Lecture 7: NP-Complete Problems David Mix Barrington and Alexis Maciel July 25, 2000 1. Circuit
9.2 Summation Notation
9. Summation Notation 66 9. Summation Notation In the previous section, we introduced sequences and now we shall present notation and theorems concerning the sum of terms of a sequence. We begin with a
Discuss the size of the instance for the minimum spanning tree problem.
3.1 Algorithm complexity The algorithms A, B are given. The former has complexity O(n 2 ), the latter O(2 n ), where n is the size of the instance. Let n A 0 be the size of the largest instance that can
Exponential time algorithms for graph coloring
Exponential time algorithms for graph coloring Uriel Feige Lecture notes, March 14, 2011 1 Introduction Let [n] denote the set {1,..., k}. A k-labeling of vertices of a graph G(V, E) is a function V [k].
Why? A central concept in Computer Science. Algorithms are ubiquitous.
Analysis of Algorithms: A Brief Introduction Why? A central concept in Computer Science. Algorithms are ubiquitous. Using the Internet (sending email, transferring files, use of search engines, online
a 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.
Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS
MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS Systems of Equations and Matrices Representation of a linear system The general system of m equations in n unknowns can be written a x + a 2 x 2 + + a n x n b a
CMSC 858T: Randomized Algorithms Spring 2003 Handout 8: The Local Lemma
CMSC 858T: Randomized Algorithms Spring 2003 Handout 8: The Local Lemma Please Note: The references at the end are given for extra reading if you are interested in exploring these ideas further. You are
Racetrack Betting and Consensus of Subjective Probabilities
Racetrack Betting and Consensus of Subective Probabilities Lawrence D. Brown 1 and Yi Lin 2 University of Pennsylvania and University of Wisconsin, Madison Abstract In this paper we consider the dynamic
Monte Carlo Methods in Finance
Author: Yiyang Yang Advisor: Pr. Xiaolin Li, Pr. Zari Rachev Department of Applied Mathematics and Statistics State University of New York at Stony Brook October 2, 2012 Outline Introduction 1 Introduction
arxiv:1112.0829v1 [math.pr] 5 Dec 2011
How Not to Win a Million Dollars: A Counterexample to a Conjecture of L. Breiman Thomas P. Hayes arxiv:1112.0829v1 [math.pr] 5 Dec 2011 Abstract Consider a gambling game in which we are allowed to repeatedly
I. GROUPS: BASIC DEFINITIONS AND EXAMPLES
I GROUPS: BASIC DEFINITIONS AND EXAMPLES Definition 1: An operation on a set G is a function : G G G Definition 2: A group is a set G which is equipped with an operation and a special element e G, called
Compression algorithm for Bayesian network modeling of binary systems
Compression algorithm for Bayesian network modeling of binary systems I. Tien & A. Der Kiureghian University of California, Berkeley ABSTRACT: A Bayesian network (BN) is a useful tool for analyzing the
Lecture 3: Finding integer solutions to systems of linear equations
Lecture 3: Finding integer solutions to systems of linear equations Algorithmic Number Theory (Fall 2014) Rutgers University Swastik Kopparty Scribe: Abhishek Bhrushundi 1 Overview The goal of this lecture
Discrete Optimization
Discrete Optimization [Chen, Batson, Dang: Applied integer Programming] Chapter 3 and 4.1-4.3 by Johan Högdahl and Victoria Svedberg Seminar 2, 2015-03-31 Todays presentation Chapter 3 Transforms using
Compact Representations and Approximations for Compuation in Games
Compact Representations and Approximations for Compuation in Games Kevin Swersky April 23, 2008 Abstract Compact representations have recently been developed as a way of both encoding the strategic interactions
Scheduling Real-time Tasks: Algorithms and Complexity
Scheduling Real-time Tasks: Algorithms and Complexity Sanjoy Baruah The University of North Carolina at Chapel Hill Email: [email protected] Joël Goossens Université Libre de Bruxelles Email: [email protected]
The Characteristic Polynomial
Physics 116A Winter 2011 The Characteristic Polynomial 1 Coefficients of the characteristic polynomial Consider the eigenvalue problem for an n n matrix A, A v = λ v, v 0 (1) The solution to this problem
Foundations of Machine Learning On-Line Learning. Mehryar Mohri Courant Institute and Google Research [email protected]
Foundations of Machine Learning On-Line Learning Mehryar Mohri Courant Institute and Google Research [email protected] Motivation PAC learning: distribution fixed over time (training and test). IID assumption.
The van Hoeij Algorithm for Factoring Polynomials
The van Hoeij Algorithm for Factoring Polynomials Jürgen Klüners Abstract In this survey we report about a new algorithm for factoring polynomials due to Mark van Hoeij. The main idea is that the combinatorial
COUNTING INDEPENDENT SETS IN SOME CLASSES OF (ALMOST) REGULAR GRAPHS
COUNTING INDEPENDENT SETS IN SOME CLASSES OF (ALMOST) REGULAR GRAPHS Alexander Burstein Department of Mathematics Howard University Washington, DC 259, USA [email protected] Sergey Kitaev Mathematics
The Ideal Class Group
Chapter 5 The Ideal Class Group We will use Minkowski theory, which belongs to the general area of geometry of numbers, to gain insight into the ideal class group of a number field. We have already mentioned
Introduction to NP-Completeness Written and copyright c by Jie Wang 1
91.502 Foundations of Comuter Science 1 Introduction to Written and coyright c by Jie Wang 1 We use time-bounded (deterministic and nondeterministic) Turing machines to study comutational comlexity of
DATA ANALYSIS II. Matrix Algorithms
DATA ANALYSIS II Matrix Algorithms Similarity Matrix Given a dataset D = {x i }, i=1,..,n consisting of n points in R d, let A denote the n n symmetric similarity matrix between the points, given as where
3. Linear Programming and Polyhedral Combinatorics
Massachusetts Institute of Technology Handout 6 18.433: Combinatorial Optimization February 20th, 2009 Michel X. Goemans 3. Linear Programming and Polyhedral Combinatorics Summary of what was seen in the
Notes on Determinant
ENGG2012B Advanced Engineering Mathematics Notes on Determinant Lecturer: Kenneth Shum Lecture 9-18/02/2013 The determinant of a system of linear equations determines whether the solution is unique, without
Linear Codes. Chapter 3. 3.1 Basics
Chapter 3 Linear Codes In order to define codes that we can encode and decode efficiently, we add more structure to the codespace. We shall be mainly interested in linear codes. A linear code of length
On the Relationship between Classes P and NP
Journal of Computer Science 8 (7): 1036-1040, 2012 ISSN 1549-3636 2012 Science Publications On the Relationship between Classes P and NP Anatoly D. Plotnikov Department of Computer Systems and Networks,
Lecture 2: Universality
CS 710: Complexity Theory 1/21/2010 Lecture 2: Universality Instructor: Dieter van Melkebeek Scribe: Tyson Williams In this lecture, we introduce the notion of a universal machine, develop efficient universal
The Trip Scheduling Problem
The Trip Scheduling Problem Claudia Archetti Department of Quantitative Methods, University of Brescia Contrada Santa Chiara 50, 25122 Brescia, Italy Martin Savelsbergh School of Industrial and Systems
Manipulability of the Price Mechanism for Data Centers
Manipulability of the Price Mechanism for Data Centers Greg Bodwin 1, Eric Friedman 2,3,4, and Scott Shenker 3,4 1 Department of Computer Science, Tufts University, Medford, Massachusetts 02155 2 School
Primality - Factorization
Primality - Factorization Christophe Ritzenthaler November 9, 2009 1 Prime and factorization Definition 1.1. An integer p > 1 is called a prime number (nombre premier) if it has only 1 and p as divisors.
Equilibrium computation: Part 1
Equilibrium computation: Part 1 Nicola Gatti 1 Troels Bjerre Sorensen 2 1 Politecnico di Milano, Italy 2 Duke University, USA Nicola Gatti and Troels Bjerre Sørensen ( Politecnico di Milano, Italy, Equilibrium
ON THE COMPLEXITY OF THE GAME OF SET. {kamalika,pbg,dratajcz,hoeteck}@cs.berkeley.edu
ON THE COMPLEXITY OF THE GAME OF SET KAMALIKA CHAUDHURI, BRIGHTEN GODFREY, DAVID RATAJCZAK, AND HOETECK WEE {kamalika,pbg,dratajcz,hoeteck}@cs.berkeley.edu ABSTRACT. Set R is a card game played with a
4 Learning, Regret minimization, and Equilibria
4 Learning, Regret minimization, and Equilibria A. Blum and Y. Mansour Abstract Many situations involve repeatedly making decisions in an uncertain environment: for instance, deciding what route to drive
ECON 459 Game Theory. Lecture Notes Auctions. Luca Anderlini Spring 2015
ECON 459 Game Theory Lecture Notes Auctions Luca Anderlini Spring 2015 These notes have been used before. If you can still spot any errors or have any suggestions for improvement, please let me know. 1
The Online Set Cover Problem
The Online Set Cover Problem Noga Alon Baruch Awerbuch Yossi Azar Niv Buchbinder Joseph Seffi Naor ABSTRACT Let X = {, 2,..., n} be a ground set of n elements, and let S be a family of subsets of X, S
A Working Knowledge of Computational Complexity for an Optimizer
A Working Knowledge of Computational Complexity for an Optimizer ORF 363/COS 323 Instructor: Amir Ali Ahmadi TAs: Y. Chen, G. Hall, J. Ye Fall 2014 1 Why computational complexity? What is computational
OPRE 6201 : 2. Simplex Method
OPRE 6201 : 2. Simplex Method 1 The Graphical Method: An Example Consider the following linear program: Max 4x 1 +3x 2 Subject to: 2x 1 +3x 2 6 (1) 3x 1 +2x 2 3 (2) 2x 2 5 (3) 2x 1 +x 2 4 (4) x 1, x 2
CONTRIBUTIONS TO ZERO SUM PROBLEMS
CONTRIBUTIONS TO ZERO SUM PROBLEMS S. D. ADHIKARI, Y. G. CHEN, J. B. FRIEDLANDER, S. V. KONYAGIN AND F. PAPPALARDI Abstract. A prototype of zero sum theorems, the well known theorem of Erdős, Ginzburg
1 Sets and Set Notation.
LINEAR ALGEBRA MATH 27.6 SPRING 23 (COHEN) LECTURE NOTES Sets and Set Notation. Definition (Naive Definition of a Set). A set is any collection of objects, called the elements of that set. We will most
Bounded-width QBF is PSPACE-complete
Bounded-width QBF is PSPACE-complete Albert Atserias 1 and Sergi Oliva 2 1 Universitat Politècnica de Catalunya Barcelona, Spain [email protected] 2 Universitat Politècnica de Catalunya Barcelona, Spain
THE SCHEDULING OF MAINTENANCE SERVICE
THE SCHEDULING OF MAINTENANCE SERVICE Shoshana Anily Celia A. Glass Refael Hassin Abstract We study a discrete problem of scheduling activities of several types under the constraint that at most a single
Online Algorithms: Learning & Optimization with No Regret.
Online Algorithms: Learning & Optimization with No Regret. Daniel Golovin 1 The Setup Optimization: Model the problem (objective, constraints) Pick best decision from a feasible set. Learning: Model the
Matrix Algebra. Some Basic Matrix Laws. Before reading the text or the following notes glance at the following list of basic matrix algebra laws.
Matrix Algebra A. Doerr Before reading the text or the following notes glance at the following list of basic matrix algebra laws. Some Basic Matrix Laws Assume the orders of the matrices are such that
An example of a computable
An example of a computable absolutely normal number Verónica Becher Santiago Figueira Abstract The first example of an absolutely normal number was given by Sierpinski in 96, twenty years before the concept
Notes on Factoring. MA 206 Kurt Bryan
The General Approach Notes on Factoring MA 26 Kurt Bryan Suppose I hand you n, a 2 digit integer and tell you that n is composite, with smallest prime factor around 5 digits. Finding a nontrivial factor
TD(0) Leads to Better Policies than Approximate Value Iteration
TD(0) Leads to Better Policies than Approximate Value Iteration Benjamin Van Roy Management Science and Engineering and Electrical Engineering Stanford University Stanford, CA 94305 [email protected] Abstract
Bayesian Statistics: Indian Buffet Process
Bayesian Statistics: Indian Buffet Process Ilker Yildirim Department of Brain and Cognitive Sciences University of Rochester Rochester, NY 14627 August 2012 Reference: Most of the material in this note
Applied Algorithm Design Lecture 5
Applied Algorithm Design Lecture 5 Pietro Michiardi Eurecom Pietro Michiardi (Eurecom) Applied Algorithm Design Lecture 5 1 / 86 Approximation Algorithms Pietro Michiardi (Eurecom) Applied Algorithm Design
The Classes P and NP
The Classes P and NP We now shift gears slightly and restrict our attention to the examination of two families of problems which are very important to computer scientists. These families constitute the
Offline sorting buffers on Line
Offline sorting buffers on Line Rohit Khandekar 1 and Vinayaka Pandit 2 1 University of Waterloo, ON, Canada. email: [email protected] 2 IBM India Research Lab, New Delhi. email: [email protected]
On Adaboost and Optimal Betting Strategies
On Adaboost and Optimal Betting Strategies Pasquale Malacaria School of Electronic Engineering and Computer Science Queen Mary, University of London Email: [email protected] Fabrizio Smeraldi School of
HOMEWORK 5 SOLUTIONS. n!f n (1) lim. ln x n! + xn x. 1 = G n 1 (x). (2) k + 1 n. (n 1)!
Math 7 Fall 205 HOMEWORK 5 SOLUTIONS Problem. 2008 B2 Let F 0 x = ln x. For n 0 and x > 0, let F n+ x = 0 F ntdt. Evaluate n!f n lim n ln n. By directly computing F n x for small n s, we obtain the following
Integer Factorization using the Quadratic Sieve
Integer Factorization using the Quadratic Sieve Chad Seibert* Division of Science and Mathematics University of Minnesota, Morris Morris, MN 56567 [email protected] March 16, 2011 Abstract We give
17.6.1 Introduction to Auction Design
CS787: Advanced Algorithms Topic: Sponsored Search Auction Design Presenter(s): Nilay, Srikrishna, Taedong 17.6.1 Introduction to Auction Design The Internet, which started of as a research project in
Sudoku as a SAT Problem
Sudoku as a SAT Problem Inês Lynce IST/INESC-ID, Technical University of Lisbon, Portugal [email protected] Joël Ouaknine Oxford University Computing Laboratory, UK [email protected] Abstract Sudoku
CPC/CPA Hybrid Bidding in a Second Price Auction
CPC/CPA Hybrid Bidding in a Second Price Auction Benjamin Edelman Hoan Soo Lee Working Paper 09-074 Copyright 2008 by Benjamin Edelman and Hoan Soo Lee Working papers are in draft form. This working paper
Using Generalized Forecasts for Online Currency Conversion
Using Generalized Forecasts for Online Currency Conversion Kazuo Iwama and Kouki Yonezawa School of Informatics Kyoto University Kyoto 606-8501, Japan {iwama,yonezawa}@kuis.kyoto-u.ac.jp Abstract. El-Yaniv
Breaking Generalized Diffie-Hellman Modulo a Composite is no Easier than Factoring
Breaking Generalized Diffie-Hellman Modulo a Composite is no Easier than Factoring Eli Biham Dan Boneh Omer Reingold Abstract The Diffie-Hellman key-exchange protocol may naturally be extended to k > 2
Ideal Class Group and Units
Chapter 4 Ideal Class Group and Units We are now interested in understanding two aspects of ring of integers of number fields: how principal they are (that is, what is the proportion of principal ideals
The Patent-Pending Technology Behind Crowdpark s Social Betting Engine
[email protected] Dynamic Betting The Patent-Pending Technology Behind Crowdpark s Social Betting Engine [email protected] 2 Executive Summary Dynamic betting is a new way to bet invented by Crowdpark.
1 Introduction. Linear Programming. Questions. A general optimization problem is of the form: choose x to. max f(x) subject to x S. where.
Introduction Linear Programming Neil Laws TT 00 A general optimization problem is of the form: choose x to maximise f(x) subject to x S where x = (x,..., x n ) T, f : R n R is the objective function, S
Gambling and Data Compression
Gambling and Data Compression Gambling. Horse Race Definition The wealth relative S(X) = b(x)o(x) is the factor by which the gambler s wealth grows if horse X wins the race, where b(x) is the fraction
Direct Methods for Solving Linear Systems. Matrix Factorization
Direct Methods for Solving Linear Systems Matrix Factorization Numerical Analysis (9th Edition) R L Burden & J D Faires Beamer Presentation Slides prepared by John Carroll Dublin City University c 2011
NOTES ON LINEAR TRANSFORMATIONS
NOTES ON LINEAR TRANSFORMATIONS Definition 1. Let V and W be vector spaces. A function T : V W is a linear transformation from V to W if the following two properties hold. i T v + v = T v + T v for all
4: SINGLE-PERIOD MARKET MODELS
4: SINGLE-PERIOD MARKET MODELS Ben Goldys and Marek Rutkowski School of Mathematics and Statistics University of Sydney Semester 2, 2015 B. Goldys and M. Rutkowski (USydney) Slides 4: Single-Period Market
