IA168 Algorithmic Game Theory Tomáš Brázdil 1 Organization of This Course Sources: ▶ Lectures (slides, notes) ▶ based on several sources ▶ slides are prepared for lectures, some stuff on greenboard (⇒ attend the lectures) ▶ Books: ▶ Nisan/Roughgarden/Tardos/Vazirani, Algorithmic Game Theory, Cambridge University, 2007. Available online for free: http://www.cambridge.org/journals/nisan/downloads/Nisan_Non-printable.pdf ▶ Tadelis, Game Theory: An Introduction, Princeton University Press, 2013 (I use various resources, so please, attend the lectures) 2 Evaluation ▶ Oral exam ▶ Homework ▶ 3 homework assignments ▶ (possibly a computer implementation of a strategy) 3 Notable features of the course ▶ No computer games course! ▶ Very demanding! ▶ Mathematical! An unusual exam system! You can repeat the oral exam as many times as needed (only the best grade goes into IS). An example of an instruction email (from another course with the same system): It is typically not sufficient to devote a single afternoon to the preparation for the exam. You have to know _everything_ (which means every single thing) starting with the slide 42 and ending with the slide 245 with notable exceptions of slides: 121 - 123, 137 - 140, 165, 167. Proofs presented on the whiteboard are also mandatory. 4 Most importantly, The previous slide is not a joke! 5 What is Algorithmic Game Theory? First, what is the game theory? According to the Oxford dictionary it is "the branch of mathematics concerned with the analysis of strategies for dealing with competitive situations where the outcome of a participants choice of action depends critically on the actions of other participants" According to Myerson it is "the study of mathematical models of conflict and cooperation between intelligent rational decision-makers" What does the "algorithmic" mean? ▶ It means that we are "concerned with the computational questions that arise in game theory, and that enlighten game theory. In particular, questions about finding efficient algorithms to ‘solve games. Let’s have a look at some examples .... 6 Prisoner’s Dilemma ▶ Two suspects of a serious crime are arrested and imprisoned. ▶ Police has enough evidence of only petty theft, and to nail the suspects for the serious crime they need testimony from at least one of them. ▶ The suspects are interrogated separately without any possibility of communication. ▶ Each of the suspects is offered a deal: If he confesses (C) to the crime, he is free to go. The alternative is not to confess, that is remain silent (S). Sentence depends on the behavior of both suspects. The problem: What would the suspects do? 7 Prisoner’s Dilemma – Solution(?) C S C −5, −5 0, −20 S −20, 0 −1, −1 Rational "row" suspect (or his adviser) may reason as follows: ▶ If my colleague chooses C, then playing C gives me −5 and playing S gives −20. ▶ If my colleague chooses S, then playing C gives me 0 and playing S gives −1. In both cases C is clearly better (it strictly dominates the other strategy). If the other suspect’s reasoning is the same, both choose C and get 5 years sentence. Where is the dilemma? There is a solution (S, S) which is better for both players but needs some “central” authority to control the players. Are there always “dominant” strategies? 8 Nash equilibria – Battle of Sexes ▶ A couple agreed to meet this evening, but cannot recall if they will be attending the opera or a football match. ▶ One of them wants to go to the football game. The other one to the opera. Both would prefer to go to the same place rather than different ones. If they cannot communicate, where should they go? 9 Nash equilibria – Battle of Sexes Battle of Sexes can be modeled as a game of two players (the couple) with the following payoffs: O F O 2, 1 0, 0 F 0, 0 1, 2 Apparently, no strategy of any player is dominant. A “solution”? Note that whenever both players play O, then neither of them wants to unilaterally deviate from his strategy! (O, O) is an example of a Nash equilibrium (as is (F, F)) 10 Mixed Equilibria – Rock-Paper-Scissors R P S R 0, 0 −1, 1 1, −1 P 1, −1 0, 0 −1, 1 S −1, 1 1, −1 0, 0 ▶ This is an example of zero-sum games: whatever one of the players wins, the other one looses. ▶ What is an optimal behavior here? Is there a Nash equilibrium? Use mixed strategies: Each player plays each pure strategy with probability 1/3. The expected payoff of each player is 0 (even if one of the players changes his strategy, he still gets 0!). 11 Philosophical Issues in Games 12 Dynamic Games So far we have seen games in strategic form that are unable to capture games that unfold over time (such as chess). For such purpose we need to use extensive form games: P1 P2 (1, 2) C (1, −1) D (0, 2) E A P2 (2, 2) F (1, 3) G B How to "solve" such games? What is their relationship to the strategic form games? 13 Chance and Imperfect Information Some decisions in the game tree may be by chance and controlled by neither player (e.g. Poker, Backgammon, etc.) Sometimes a player may not be able to distinguish between several “positions” because he does not know all the information in them (Think a card game with opponent’s cards hidden). F G D 1 2 F G E1 2 A H I J B P1 P1 Nature P2 (a, b) (c, d) (e, f) (g, h) (i, j) (k, ℓ) (m, n) Again, how to solve such games? 14 Games of Incomplete Information In all previous games the players knew all details of the game they played, and this fact was a “common knowledge”. This is not always the case. Example: Sealed Bid Auction ▶ Two bidders are trying to purchase the same item. ▶ The bidders simultaneously submit bids b1 and b2 and the item is sold to the highest bidder at his bid price (first price auction) ▶ The payoff of the player 1 (and similarly for player 2) is calculated by u1(b1, b2) =    v1 − b1 b1 > b2 1 2 (v1 − b1) b1 = b2 0 b1 < b2 Here v1 is the private value that player 1 assigns to the item and so the player 2 does not know u1. How to deal with such a game? Assume the “worst” private value? What if we have a partial knowledge about the private values? 15 Inefficiency of Equilibria In Prisoner’s Dilemma, the selfish behavior of suspects (the Nash equilibrium) results in somewhat worse than ideal situation. C S C −5, −5 0, −20 S −20, 0 −1, −1 Defining a welfare function W which to every pair of strategies assigns the sum of payoffs, we get W(C, C) = −10 but W(S, S) = −2. The ratio W(C,C) W(S,S) = 5 measures the inefficiency of "selfish-behavior" (C, C) w.r.t. the optimal “centralized” solution. Price of Anarchy is the maximum ratio between values of equilibria and the value of an optimal solution. 16 Inefficiency of Equilibria – Selfish Routing Consider a transportation system where many agents are trying to get from some initial location to a destination. Consider the welfare to be the average time for an agent to reach the destination. There are two versions: ▶ “Centralized”: A central authority tells each agent where to go. ▶ “Decentralized”: Each agent selfishly minimizes his travel time. Price of Anarchy measure the ratio between average travel time in these two cases. Problem: Bound the price of anarchy over all routing games? 17 Games in Computer Science Game theory is a core foundation of mathematical economics. But what does it have to do with CS? ▶ Games in AI: modeling of “rational” agents and their interactions. ▶ Games in machine learning: Generative adversarial networks, reinforcement learning ▶ Games in Algorithms: several game theoretic problems have a very interesting algorithmic status and are solved by interesting algorithms ▶ Games in modeling and analysis of reactive systems: program inputs viewed “adversarially”, bisimulation games, etc. ▶ Games in computational complexity: Many complexity classes are definable in terms of games: PSPACE, polynomial hierarchy, etc. ▶ Games in Logic: modal and temporal logics, Ehrenfeucht-Fraisse games, etc. 18 Games in Computer Science Games, the Internet and E-commerce: An extremely active research area at the intersection of CS and Economics Basic idea: “The internet is a HUGE experiment in interaction between agents (both human and automated)” How do we set up the rules of this game to harness “socially optimal” results? 19 Summary and Brief Overview This is a theoretical course aimed at some fundamental results of game theory, often related to computer science ▶ We start with strategic form games (such as the Prisoner’s dilemma), investigate several solution concepts (dominance, equilibria) and related algorithms. ▶ Then we consider repeated games which allow players to learn from history and/or to react to deviations of the other players. ▶ Subsequently, we move on to incomplete information games and auctions. ▶ Finally, we consider (in)efficiency of equilibria (such as the Price of Anarchy) and its properties on important classes of routing and network formation games. ▶ Remaining time will be devoted to selected topics from extensive form games, games on graphs etc. 20 Static Games of Complete Information Strategic-Form Games Solution concepts 21 Static Games of Complete Information – Intuition Proceed in two steps: 1. Players simultaneously and independently choose their strategies. This means that players play without observing strategies chosen by other players. 2. Conditional on the players’ strategies, payoffs are distributed to all players. Complete information means that the following is common knowledge among players: ▶ all possible strategies of all players, ▶ what payoff is assigned to each combination of strategies. Definition 1 A fact E is a common knowledge among players {1, . . . , n} if for every sequence i1, . . . , ik ∈ {1, . . . , n} we have that i1 knows that i2 knows that ... ik−1 knows that ik knows E. The goal of each player is to maximize his payoff (and this fact is a common knowledge). 22 Strategic-Form Games To formally represent static games of complete information we define strategic-form games. Definition 2 A game in strategic-form (or normal-form) is an ordered triple G = (N, (Si)i∈N , (ui)i∈N), in which: ▶ N = {1, 2, . . . , n} is a finite set of players. ▶ Si is a set of (pure) strategies of player i, for every i ∈ N. A strategy profile is a vector of strategies of all players (s1, . . . , sn) ∈ S1 × · · · × Sn. We denote the set of all strategy profiles by S = S1 × · · · × Sn. ▶ ui : S → R is a function associating each strategy profile s = (s1, . . . , sn) ∈ S with the payoff ui(s) to player i, for every player i ∈ N. Definition 3 A zero-sum game G is one in which for all s = (s1, . . . , sn) ∈ S we have u1(s) + u2(s) + · · · + un(s) = 0. 23 Example: Prisoner’s Dilemma ▶ N = {1, 2} ▶ S1 = S2 = {S, C} ▶ u1, u2 are defined as follows: ▶ u1(C, C) = −5, u1(C, S) = 0, u1(S, C) = −20, u1(S, S) = −1 ▶ u2(C, C) = −5, u2(C, S) = −20, u2(S, C) = 0, u2(S, S) = −1 (Is it zero sum?) We usually write payoffs in the following form: C S C −5, −5 0, −20 S −20, 0 −1, −1 or as two matrices: C S C −5 0 S −20 −1 C S C −5 −20 S 0 −1 24 Example: Cournot Duopoly ▶ Two identical firms, players 1 and 2, produce some good. Denote by q1 and q2 quantities produced by firms 1 and 2, resp. ▶ The total quantity of products in the market is q1 + q2. ▶ The price of each item is κ − q1 − q2 (here κ is a positive constant) ▶ Firms 1 and 2 have per item production costs c1 and c2, resp. Question: How these firms are going to behave? We may model the situation using a strategic-form game. Strategic-form game model (N, (Si)i∈N , (ui)i∈N) ▶ N = {1, 2} ▶ Si = [0, ∞) ▶ u1(q1, q2) = q1(κ − q1 − q2) − q1c1 u2(q1, q2) = q2(κ − q1 − q2) − q2c2 25 Solution Concepts A solution concept is a method of analyzing games with the objective of restricting the set of all possible outcomes to those that are more reasonable than others. We will use term equilibrium for any one of the strategy profiles that emerges as one of the solution concepts’ predictions. (I follow the approach of Steven Tadelis here, it is not completely standard) Example 4 Nash equilibrium is a solution concept. That is, we “solve” games by finding Nash equilibria and declare them to be reasonable outcomes. 26 Assumptions Throughout the lecture we assume that: 1. Players are rational: a rational player is one who chooses his strategy to maximize his payoff. 2. Players are intelligent: An intelligent player knows everything about the game (actions and payoffs) and can make any inferences about the situation that we can make. 3. Common knowledge: The fact that players are rational and intelligent is a common knowledge among them. 4. Self-enforcement: Any prediction (or equilibrium) of a solution concept must be self-enforcing. Here 4. implies non-cooperative game theory: Each player is in control of his actions, and he will stick to an action only if he finds it to be in his best interest. 27 Evaluating Solution Concepts In order to evaluate our theory as a methodological tool we use the following criteria: 1. Existence (i.e., how often does it apply?): Solution concept should apply to a wide variety of games. E.g. We shall see that mixed Nash equilibria exist in all two player finite strategic-form games. 2. Uniqueness (How much does it restrict behavior?): We demand our solution concept to restrict the behavior as much as possible. E.g. So called strictly dominant strategy equilibria are always unique as opposed to Nash eq. 28 Solution Concepts – Pure Strategies We will consider the following solution concepts: ▶ strict dominant strategy equilibrium ▶ iterated elimination of strictly dominated strategies (IESDS) ▶ rationalizability ▶ Nash equilibria For now, let us concentrate on pure strategies only! I.e., no mixed strategies are allowed. We will generalize to mixed setting later. 29 Notation ▶ Let N = {1, . . . , n} be a finite set and for each i ∈ N let Xi be a set. Let X := ∏ i∈N Xi = {(x1, . . . , xn) | xj ∈ Xj, j ∈ N}. ▶ For i ∈ N we define X−i := ∏ j i Xj, i.e., X−i = {(x1, . . . , xi−1, xi+1, . . . , xn) | xj ∈ Xj, ∀j i} ▶ An element of X−i will be denoted by x−i = (x1, . . . , xi−1, xi+1, . . . , xn) We slightly abuse notation and write (xi, x−i) to denote (x1, . . . , xi, . . . , xn) ∈ X. 30 Strict Dominance in Pure Strategies Definition 5 Let si, s′ i ∈ Si be strategies of player i. Then s′ i is strictly dominated by si (write si ≻ s′ i ) if for any possible combination of the other players’ strategies, s−i ∈ S−i, we have ui(si, s−i) > ui(s′ i , s−i) for all s−i ∈ S−i Is there a strictly dominated strategy in the Prisoner’s dilemma? C S C −5, −5 0, −20 S −20, 0 −1, −1 Claim 1 An intelligent and rational player will never play a strictly dominated strategy. Clearly, intelligence implies that the player should recognize dominated strategies, rationality implies that the player will avoid playing them. 31 Strictly Dominant Strategy Equilibrium in Pure Str. Definition 6 si ∈ Si is strictly dominant if every other pure strategy of player i is strictly dominated by si. Observe that every player has at most one strictly dominant strategy, and that strictly dominant strategies do not have to exist. Claim 2 Any rational player will play the strictly dominant strategy (if it exists). Definition 7 A strategy profile s ∈ S is a strictly dominant strategy equilibrium if si ∈ Si is strictly dominant for all i ∈ N. Corollary 8 If the strictly dominant strategy equilibrium exists, it is unique and rational players will play it. 32 Examples In the Prisoner’s dilemma: C S C −5, −5 0, −20 S −20, 0 −1, −1 (C, C) is the strictly dominant strategy equilibrium. In the Battle of Sexes: O F O 2, 1 0, 0 F 0, 0 1, 2 no strictly dominant strategies exist. 33 Indiana Jones and the Last Crusade (Taken from Dixit & Nalebuff’s "The Art of Strategy" and a lecture of Robert Marks) Indiana Jones, his father, and the Nazis have all converged at the site of the Holy Grail. The two Joneses refuse to help the Nazis reach the last step. So the Nazis shoot Indianas dad. Only the healing power of the Holy Grail can save the senior Dr. Jones from his mortal wound. Suitably motivated, Indiana leads the way to the Holy Grail. But there is one final challenge. He must choose between literally scores of chalices, only one of which is the cup of Christ. While the right cup brings eternal life, the wrong choice is fatal. The Nazi leader impatiently chooses a beautiful gold chalice, drinks the holy water, and dies from the sudden death that follows from the wrong choice. Indiana picks a wooden chalice, the cup of a carpenter. Exclaiming "Theres only one way to find out" he dips the chalice into the font and drinks what he hopes is the cup of life. Upon discovering that he has chosen wisely, Indiana brings the cup to his father and the water heals the mortal wound. 34 Indiana Jones and the Last Crusade (cont.) Indy Goofed ▶ Although this scene adds excitement, it is somewhat embarrassing that such a distinguished professor as Dr. Indiana Jones would overlook his dominant strategy. ▶ He should have given the water to his father without testing it first. ▶ If Indiana has chosen the right cup, his father is still saved. ▶ If Indiana has chosen the wrong cup, then his father dies but Indiana is spared. ▶ Testing the cup before giving it to his father doesnt help, since if Indiana has made the wrong choice, there is no second chance – Indiana dies from the water and his father dies from the wound. 35 Iterated Strict Dominance in Pure Strategies We know that no rational player ever plays strictly dominated strategies. As each player knows that each player is rational, each player knows that his opponents will not play strictly dominated strategies and thus all opponents know that effectively they are facing a "smaller" game. As rationality is a common knowledge, everyone knows that everyone knows that the game is effectively smaller. Thus everyone knows, that nobody will play strictly dominated strategies in the smaller game (and such strategies may indeed exist). Because it is a common knowledge that all players will perform this kind of reasoning again, the process can continue until no more strictly dominated strategies can be eliminated. 36 IESDS The previous reasoning yields the Iterated Elimination of Strictly Dominated Strategies (IESDS): Define a sequence D0 i , D1 i , D2 i , . . . of strategy sets of player i. (Denote by Gk DS the game obtained from G by restricting to Dk i , i ∈ N.) 1. Initialize k = 0 and D0 i = Si for each i ∈ N. 2. For all players i ∈ N: Let Dk+1 i be the set of all pure strategies of Dk i that are not strictly dominated in Gk DS . 3. Let k := k + 1 and go to 2. We say that si ∈ Si survives IESDS if si ∈ Dk i for all k = 0, 1, 2, . . . Definition 9 A strategy profile s = (s1, . . . , sn) ∈ S is an IESDS equilibrium if each si survives IESDS. A game is IESDS solvable if it has a unique IESDS equilibrium. Remark: If all Si are finite, then in 2. we may remove only some of the strictly dominated strategies (not necessarily all). The result is not affected by the order of elimination since strictly dominated strategies remain strictly dominated even after removing some other strictly dominated strategies. 37 IESDS Examples In the Prisoner’s dilemma: C S C −5, −5 0, −20 S −20, 0 −1, −1 (C, C) is the only one surviving the first round of IESDS. In the Battle of Sexes: O F O 2, 1 0, 0 F 0, 0 1, 2 all strategies survive all rounds (i.e. IESDS ≡ anything may happen, sorry) 38 A Bit More Interesting Example L C R L 4, 3 5, 1 6, 2 C 2, 1 8, 4 3, 6 R 3, 0 9, 6 2, 8 IESDS on greenboard! 39 Political Science Example: Median Voter Theorem Hotelling (1929) and Downs (1957) ▶ N = {1, 2} ▶ Si = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10} (political and ideological spectrum) ▶ 10 voters belong to each position (Here 10 means ten percent in the real-world) ▶ Voters vote for the closest candidate. If there is a tie, then 1 2 got to each candidate ▶ Payoff: The number of voters for the candidate, each candidate (selfishly) strives to maximize this number 40 Political Science Example: Median Voter Theorem ▶ 1 and 10 are the (only) strictly dominated strategies ⇒ D1 1 = D1 2 = {2, . . . , 9} ▶ in G1 DS , 2 and 9 are the (only) strictly dominated strategies ⇒ D2 1 = D2 2 = {3, . . . , 8} ▶ . . . ▶ only 5, 6 survive IESDS 41 Belief & Best Response IESDS eliminated apparently unreasonable behavior (leaving "reasonable" behavior implicitly untouched). What if we rather want to actively preserve reasonable behavior? What is reasonable? .... what we believe is reasonable :-). Intuition: ▶ Imagine that your colleague did something stupid ▶ What would you ask him? Usually something like "What were you thinking?" ▶ The colleague may respond with a reasonable description of his belief in which his action was (one of) the best he could do (You may of course question reasonableness of the belief) Let us formalize this type of reasoning .... 42 Belief & Best Response Definition 10 A belief of player i is a pure strategy profile s−i ∈ S−i of his opponents. Definition 11 A strategy si ∈ Si of player i is a best response to a belief s−i ∈ S−i if ui(si, s−i) ≥ ui(s′ i , s−i) for all s′ i ∈ Si Claim 3 A rational player who believes that his opponents will play s−i ∈ S−i always chooses a best response to s−i ∈ S−i. Definition 12 A strategy si ∈ Si is never best response if it is not a best response to any belief s−i ∈ S−i. A rational player never plays any strategy that is never best response. 43 Best Response vs Strict Dominance Proposition 1 If si is strictly dominated for player i, then it is never best response. The opposite does not have to be true in pure strategies: X Y A 1, 1 1, 1 B 2, 1 0, 1 C 0, 1 2, 1 Here A is never best response but is strictly dominated neither by B, nor by C. 44 Elimination of Stupid Strategies = Rationalizability Using similar iterated reasoning as for IESDS, strategies that are never best response can be iteratively eliminated. Define a sequence R0 i , R1 i , R2 i , . . . of strategy sets of player i. (Denote by Gk Rat the game obtained from G by restricting to Rk i , i ∈ N.) 1. Initialize k = 0 and R0 i = Si for each i ∈ N. 2. For all players i ∈ N: Let Rk+1 i be the set of all strategies of Rk i that are best responses to some beliefs in Gk Rat . 3. Let k := k + 1 and go to 2. We say that si ∈ Si is rationalizable if si ∈ Rk i for all k = 0, 1, 2, . . . Definition 13 A strategy profile s = (s1, . . . , sn) ∈ S is a rationalizable equilibrium if each si is rationalizable. We say that a game is solvable by rationalizability if it has a unique rationalizable equilibrium. (Warning: For some reasons, rationalizable strategies are almost always defined using mixed strategies!) 45 Rationalizability Examples In the Prisoner’s dilemma: C S C −5, −5 0, −20 S −20, 0 −1, −1 (C, C) is the only rationalizable equilibrium. In the Battle of Sexes: O F O 2, 1 0, 0 F 0, 0 1, 2 all strategies are rationalizable. 46 Cournot Duopoly G = (N, (Si)i∈N , (ui)i∈N) ▶ N = {1, 2} ▶ Si = [0, ∞) ▶ u1(q1, q2) = q1(κ − q1 − q2) − q1c1 = (κ − c1)q1 − q2 1 − q1q2 u2(q1, q2) = q2(κ − q2 − q1) − q2c2 = (κ − c2)q2 − q2 2 − q2q1 Assume for simplicity that c1 = c2 = c and denote θ = κ − c. What is a best response of player 1 to a given q2 ? Solve δu1 δq1 = θ − 2q1 − q2 = 0, which gives that q1 = (θ − q2)/2 is the only best response of player 1 to q2. Similarly, q2 = (θ − q1)/2 is the only best response of player 2 to q1. Since q2 ≥ 0, we obtain that q1 is never best response iff q1 > θ/2. Similarly q2 is never best response iff q2 > θ/2. Thus R1 1 = R1 2 = [0, θ/2]. 47 Cournot Duopoly G = (N, (Si)i∈N , (ui)i∈N) ▶ N = {1, 2} ▶ Si = [0, ∞) ▶ u1(q1, q2) = q1(κ − q1 − q2) − q1c1 = (κ − c1)q1 − q2 1 − q1q2 u2(q1, q2) = q2(κ − q2 − q1) − q2c2 = (κ − c2)q2 − q2 2 − q2q1 Assume for simplicity that c1 = c2 = c and denote θ = κ − c. Now, in G1 Rat , we still have that q1 = (θ − q2)/2 is the best response to q2, and q2 = (θ − q1)/2 the best resp. to q1 Since q2 ∈ R1 2 = [0, θ/2], we obtain that q1 is never best response iff q1 ∈ [0, θ/4) Similarly q2 is never best response iff q2 ∈ [0, θ/4) Thus R2 1 = R2 2 = [θ/4, θ/2]. .... 48 Cournot Duopoly (cont.) G = (N, (Si)i∈N , (ui)i∈N) ▶ N = {1, 2} ▶ Si = [0, ∞) ▶ u1(q1, q2) = q1(κ − q1 − q2) − q1c1 = (κ − c1)q1 − q2 1 − q1q2 u2(q1, q2) = q2(κ − q2 − q1) − q2c2 = (κ − c2)q2 − q2 2 − q2q1 Assume for simplicity that c1 = c2 = c and denote θ = κ − c. In general, after 2k iterations we have R2k i = R2k i = [ℓk , rk ] where ▶ rk = (θ − ℓk−1)/2 for k ≥ 1 ▶ ℓk = (θ − rk )/2 for k ≥ 1 and ℓ0 = 0 Solving the recurrence we obtain ▶ ℓk = θ/3 − ( 1 4 )k θ/3 ▶ rk = θ/3 + ( 1 4 )k−1 θ/6 Hence, limk→∞ ℓk = limk→∞ rk = θ/3 and thus (θ/3, θ/3) is the only rationalizable equilibrium. 49 Cournot Duopoly (cont.) G = (N, (Si)i∈N , (ui)i∈N) ▶ N = {1, 2} ▶ Si = [0, ∞) ▶ u1(q1, q2) = q1(κ − q1 − q2) − q1c1 = (κ − c1)q1 − q2 1 − q1q2 u2(q1, q2) = q2(κ − q2 − q1) − q2c2 = (κ − c2)q2 − q2 2 − q2q1 Assume for simplicity that c1 = c2 = c and denote θ = κ − c. Are qi = θ/3 the best outcomes possible? NO! u1(θ/3, θ/3) = u2(θ/3, θ/3) = θ2 /9 but u1(θ/4, θ/4) = u2(θ/4, θ/4) = θ2 /8 50 IESDS vs Rationalizability in Pure Strategies Theorem 14 Assume that S is finite. Then for all k we have that Rk i ⊆ Dk i . That is, in particular, all rationalizable strategies survive IESDS. The opposite inclusion does not have to be true in pure strategies: X Y A 1, 1 1, 1 B 2, 1 0, 1 C 0, 1 2, 1 Recall that A is never best response but is strictly dominated by neither B, nor C. That is, A survives IESDS but is not rationalizable. 51 Proof of Theorem 14 Claim If si is a best response to s−i in Gk Rat , then si is a best response to s−i in G. Proof of the Claim. By induction on k. For k = 0 we have Gk Rat = G0 Rat = G and the claim holds trivially. Assume that the claim is true for some k and that si is a best response to s−i in Gk+1 Rat . Let s′ i be a best response to s−i in Gk Rat . Then s′ i ∈ Gk+1 Rat since s′ i is not eliminated from Gk Rat . However, since si is a best response to s−i in Gk+1 Rat , we get ui(si, s−i) ≥ ui(s′ i , s−i). Thus si is a best response to s−i in Gk Rat . By induction hypothesis, si is a best response to s−i in G and the claim has been proved. 52 Proof of Theorem 14 Keep in mind: If si is a best response to s−i in Gk Rat , then si is a best response to s−i in G. Now we prove Rk i ⊆ Dk i for all players i by induction on k. For k = 0 we have that R0 i = Si = D0 i by definition. Assume that Rk i ⊆ Dk i for some k ≥ 0 and prove that Rk+1 i ⊆ Dk+1 i . Let si ∈ Rk+1 i . Then there must be s−i ∈ Rk −i such that si is a best response to s−i in Gk Rat (This follows from the fact that si has not been eliminated in Gk Rat .) By the claim, si is a best response to s−i in G as well! By induction hypothesis, si ∈ Rk+1 i ⊆ Rk i ⊆ Dk i and s−i ∈ Rk −i ⊆ Dk −i . However, then si is a best response to s−i in Gk DS . (This follows from the fact that the “best response” relationship of si and s−i is preserved by removing arbitrarily many other strategies.) Thus si is not strictly dominated in Gk DS and si ∈ Dk+1 i . □ 53 Pinning Down Beliefs – Nash Equilibria Criticism of previous approaches: ▶ Strictly dominant strategy equilibria often do not exist ▶ IESDS and rationalizability may not remove any strategies Typical example is Battle of Sexes: O F O 2, 1 0, 0 F 0, 0 1, 2 Here all strategies are equally reasonable according to the above concepts. But are all strategy profiles really equally reasonable? 54 Pinning Down Beliefs – Nash Equilibria O F O 2, 1 0, 0 F 0, 0 1, 2 Assume that each player has a belief about strategies of other players. By Claim 3, each player plays a best response to his beliefs. Is (O, F) as reasonable as (O, O) in this respect? Note that if player 1 believes that player 2 plays O, then playing O is reasonable, and if player 2 believes that player 1 plays F, then playing F is reasonable. But such beliefs cannot be correct together! (O, O) can be obtained as a profile where each player plays the best response to his belief and the beliefs are correct. 55 Nash Equilibrium Nash equilibrium can be defined as a set of beliefs (one for each player) and a strategy profile in which every player plays a best response to his belief and each strategy of each player is consistent with beliefs of his opponents. A usual definition is following: Definition 15 A pure-strategy profile s∗ = (s∗ 1 , . . . , s∗ n) ∈ S is a (pure) Nash equilibrium if s∗ i is a best response to s∗ −i for each i ∈ N, that is ui(s∗ i , s∗ −i) ≥ ui(si, s∗ −i) for all si ∈ Si and all i ∈ N Note that this definition is equivalent to the previous one in the sense that s∗ −i may be considered as the (consistent) belief of player i to which he plays a best response s∗ i 56 Nash Equilibria Examples In the Prisoner’s dilemma: C S C −5, −5 0, −20 S −20, 0 −1, −1 (C, C) is the only Nash equilibrium. In the Battle of Sexes: O F O 2, 1 0, 0 F 0, 0 1, 2 only (O, O) and (F, F) are Nash equilibria. In Cournot Duopoly, (θ/3, θ/3) is the only Nash equilibrium. (Best response relations: q1 = (θ − q2)/2 and q2 = (θ − q1)/2 are both satisfied only by q1 = q2 = θ/3) 57 Example: Stag Hunt Story: ▶ Two (in some versions more than two) hunters, players 1 and 2, can each choose to hunt ▶ stag (S) = a large tasty meal ▶ hare (H) = also tasty but small ▶ Hunting stag is much more demanding and forces of both players need to be joined (hare can be hunted individually) Strategy-form game model: N = {1, 2}, S1 = S2 = {S, H}, the payoff: S H S 5, 5 0, 3 H 3, 0 3, 3 Two NE: (S, S), and (H, H), where the former is strictly better for each player than the latter! Which one is more reasonable? 58 Example: Stag Hunt Strategy-form game model: N = {1, 2}, S1 = S2 = {S, H}, the payoff: S H S 5, 5 0, 3 H 3, 0 3, 3 Two NE: (S, S), and (H, H), where the former is strictly better for each player than the latter! Which one is more reasonable? If each player believes that the other one will go for hare, then (H, H) is a reasonable outcome ⇒ a society of individualists who do not cooperate at all. If each player believes that the other will cooperate, then this anticipation is self-fulfilling and results in what can be called a cooperative society. This is supposed to explain that in real world there are societies that have similar endowments, access to technology and physical environment but have very different achievements, all because of self-fulfilling beliefs (or norms of behavior). 59 Example: Stag Hunt Strategy-form game model: N = {1, 2}, S1 = S2 = {S, H}, the payoff: S H S 5, 5 0, 3 H 3, 0 3, 3 Two NE: (S, S), and (H, H), where the former is strictly better for each player than the latter! Which one is more reasonable? Another point of view: (H, H) is less risky Minimum secured by playing S is 0 as opposed to 3 by playing H (We will get to this minimax principle later) So it seems to be rational to expect (H, H) (?) 60 Nash Equilibria vs Previous Concepts Theorem 16 1. If s∗ is a strictly dominant strategy equilibrium, then it is the unique Nash equilibrium. 2. Each Nash equilibrium is rationalizable and survives IESDS. 3. If S is finite, neither rationalizability, nor IESDS creates new Nash equilibria. Proof: Homework! Corollary 17 Assume that S is finite. If rationalizability or IESDS result in a unique strategy profile, then this profile is a Nash equilibrium. 61 Interpretations of Nash Equilibria Except the two definitions, usual interpretations are following: ▶ When the goal is to give advice to all of the players in a game (i.e., to advise each player what strategy to choose), any advice that was not an equilibrium would have the unsettling property that there would always be some player for whom the advice was bad, in the sense that, if all other players followed the parts of the advice directed to them, it would be better for some player to do differently than he was advised. If the advice is an equilibrium, however, this will not be the case, because the advice to each player is the best response to the advice given to the other players. ▶ When the goal is prediction rather than prescription, a Nash equilibrium can also be interpreted as a potential stable point of a dynamic adjustment process in which individuals adjust their behavior to that of the other players in the game, searching for strategy choices that will give them better results. 62 Static Games of Complete Information Mixed Strategies 63 Let’s Mix It As pointed out before, neither of the solution concepts has to exist in pure strategies Example: Rock-Paper-sCissors R P C R 0, 0 −1, 1 1, −1 P 1, −1 0, 0 −1, 1 C −1, 1 1, −1 0, 0 There are no strictly dominant pure strategies No strategy is strictly dominated (IESDS removes nothing) Each strategy is a best response to some strategy of the opponent (rationalizability removes nothing) No pure Nash equilibria: No pure strategy profile allows each player to play a best response to the strategy of the other player How to solve this? Let the players randomize their choice of pure strategies .... 64 Probability Distributions Definition 18 Let A be a finite set. A probability distribution over A is a function σ : A → [0, 1] such that ∑ a∈A σ(a) = 1. We denote by ∆(A) the set of all probability distributions over A. Example 19 Consider A = {a, b, c} and a function σ : A → [0, 1] such that σ(a) = 1 4 , σ(b) = 3 4 , and σ(c) = 0. Then σ ∈ ∆(A). 65 Mixed Strategies Let us fix a strategic-form game G = (N, (Si)i∈N , (ui)i∈N). From now on, assume two players and both Si finite! G = ({1, 2}, (S1, S2) , (u1, u2)) Definition 20 A mixed strategy of player i is a probability distribution σ ∈ ∆(Si) over Si. We denote by Σi = ∆(Si) the set of all mixed strategies of player i. We define Σ := Σ1 × Σ2, the set of all mixed strategy profiles. We identify each si ∈ Si with a mixed strategy σ that assigns probability one to si (and zero to other pure strategies). For example, in rock-paper-scissors, the pure strategy R corresponds to σi which satisfies σi(X) =    1 X = R 0 otherwise 66 Mixed Strategy Profiles Let σ = (σ1, σ2) be a mixed strategy profile. Intuitively, we assume that each player i randomly selects his pure strategy according to σi and independently of his opponents. Thus for s = (s1, s2) ∈ S = S1 × S2 we have that σ(s) := σ1(s1) · σ2(s2) is the probability that the players randomly select the pure strategy profile s according to the mixed strategy profile σ. (We abuse notation a bit here: σ denotes two things, a vector of mixed strategies as well as a probability distribution on S) 67 Mixed Strategies – Example R P C R 0, 0 −1, 1 1, −1 P 1, −1 0, 0 −1, 1 C −1, 1 1, −1 0, 0 An example of a mixed strategy σ1: σ1(R) = 1 2 , σ1(P) = 1 3 , σ1(C) = 1 6 . Sometimes we write σ1 as (1 2 (R), 1 3 (P), 1 6 (C)), or only (1 2 , 1 3 , 1 6 ) if the order of pure strategies is fixed. Consider a mixed strategy profile (σ1, σ2) where σ1 = (1 2 (R), 1 3 (P), 1 6 (C)) and σ2 = (1 3 (R), 2 3 (P), 0(C)). Then the probability σ(R, P) that the pure strategy profile (R, P) will be played by players playing the mixed profile (σ1, σ2) is σ1(R) · σ2(P) = 1 2 · 2 3 = 1 3 68 Expected Payoff ... but now what is the suitable notion of payoff? Definition 21 The expected payoff of player i under a mixed strategy profile σ ∈ Σ is ui(σ) := ∑ s∈S σ(s)ui(s)  = ∑ s1∈S1 ∑ s2∈S2 σ1(s1) · σ2(s2) · ui(s1, s2)   I.e., it is the "weighted average" of what player i wins under each pure strategy profile s, weighted by the probability of that profile. Assumption: Every rational player strives to maximize his own expected payoff. (This assumption is not always completely convincing ...) 69 Expected Payoff – Example Matching Pennies: H T H 1, −1 −1, 1 T −1, 1 1, −1 Each player secretly turns a penny to heads or tails, and then they reveal their choices simultaneously. If the pennies match, player 1 (row) wins, if they do not match, player 2 (column) wins. Consider σ1 = (1 3 (H), 2 3 (T)) and σ2 = (1 4 (H), 3 4 (T)) u1(σ1, σ2) = ∑ (X,Y)∈{H,T}2 σ1(X)σ2(Y)u1(X, Y) = 1 3 1 4 1 + 1 3 3 4 (−1) + 2 3 1 4 (−1) + 2 3 3 4 1 = 1 6 u2(σ1, σ2) = ∑ (X,Y)∈{H,T}2 σ1(X)σ2(Y)u2(X, Y) = 1 3 1 4 (−1) + 1 3 3 4 1 + 2 3 1 4 1 + 2 3 3 4 (−1) = − 1 6 70 Solution Concepts We revisit the following solution concepts in mixed strategies: ▶ strict dominant strategy equilibrium ▶ IESDS equilibrium ▶ rationalizable equilibria ▶ Nash equilibria From now on, when I say a strategy I implicitly mean a mixed strategy. In order to deal with efficiency issues we assume that the size of the game G is defined by |G| := |N| + ∑ i∈N |Si| + ∑ i∈N |ui| where |ui| = ∑ s∈S |ui(s)| and |ui(s)| is the length of a binary encoding of ui(s) (we assume that rational numbers are encoded as quotients of two binary integers) Note that, in particular, |G| > |S|. 71 Strict Dominance in Mixed Strategies Definition 22 Let σ1, σ′ 1 ∈ Σ1 be (mixed) strategies of player 1. Then σ′ 1 is strictly dominated by σ1 (write σ′ 1 ≺ σ1) if u1(σ1, s2) > u1(σ′ 1, s2) for all s2 ∈ S2 (Symmetrically for player 2.) Comment: The above condition is equivalent to u1(σ1, σ2) > u1(σ′ 1, σ2) for all strategies σ2 ∈ Σ2 72 Strict Dominance in Mixed Strategies Example 23 X Y A 3 0 B 0 3 C 1 1 Is there a strictly dominated strategy? Question: Is there a game with at least one strictly dominated strategy but without strictly dominated pure strategies? 73 Strictly Dominant Strategy Equilibrium Definition 24 σi ∈ Σi is strictly dominant if every other mixed strategy of player i is strictly dominated by σi. Definition 25 A strategy profile σ ∈ Σ is a strictly dominant strategy equilibrium if σi ∈ Σi is strictly dominant for all i ∈ N. Proposition 2 If the strictly dominant strategy equilibrium exists, it is unique, all its strategies are pure, and rational players will play it. To compute the strictly dominant strategy equilibrium, it is sufficient to consider only pure strategies (greenboard). 74 IESDS in Mixed Strategies Define a sequence D0 i , D1 i , D2 i , . . . of strategy sets of player i. (Denote by Gk DS the game obtained from G by restricting the pure strategy sets to Dk i , i ∈ N.) 1. Initialize k = 0 and D0 i = Si for each i ∈ N. 2. For all players i ∈ N: Let Dk+1 i be the set of all pure strategies of Dk i that are not strictly dominated in Gk DS by mixed strategies. 3. Let k := k + 1 and go to 2. We say that si ∈ Si survives IESDS if si ∈ Dk i for all k = 0, 1, 2, . . . Definition 26 A strategy profile s = (s1, s2) ∈ S is an IESDS equilibrium if both s1 and s2 survive IESDS. Each Dk+1 i can be computed in polynomial time using linear programming. 75 IESDS in Mixed Strategie – Example X Y A 3 0 B 0 3 C 1 1 Let us have a look at the first iteration of IESDS. Observe that A, B are not strictly dominated by any mixed strategy. Let us construct a set of constraints on mixed strategies (possibly) strictly dominating C: 3xA + 0xB + xC > 1 Row’s payoff against X 0xA + 3xB + xC > 1 Row’s payoff against Y xA , xB , xC ≥ 0 xA + xB + xC = 1 x’s must make a distribution How to solve this? 76 Intermezzo: Linear Programming Linear programming is a technique for optimization of a linear objective function, subject to linear (non-strict) inequality constraints. Formally, a linear program in so called canonical form looks like this: maximize m∑ j=1 cjxj subject to m∑ j=1 aijxj ≤ bi 1 ≤ i ≤ n xj ≥ 0 1 ≤ j ≤ m (objective function) (constraints) Here aij, bk and cj are real numbers and xj’s are real variables. A feasible solution is an assignment of real numbers to the variables xj, 1 ≤ j ≤ m, so that the constraints are satisfied. An optimal solution is a feasible solution which maximizes the objective function ∑m j=1 cjxj. 77 Intermezzo: Complexity of Linear Programming We assume that coefficients aij, bk and cj are encoded in binary (more precisely, as fractions of two integers encoded in binary). Theorem 27 (Khachiyan, Doklady Akademii Nauk SSSR, 1979) There is an algorithm which for any linear program computes an optimal solution in polynomial time. The algorithm uses so called ellipsoid method. In practice, the Khachiyan’s is not used. Usually simplex algorithm is used even though its theoretical complexity is exponential. There is also a polynomial time algorithm (by Karmarkar) which has better complexity upper bounds than the Khachiyan’s and sometimes works even better than the simplex. There exist several advanced linear programming solvers (usually parts of larger optimization packages) implementing various heuristics for solving large scale problems, sensitivity analysis, etc. For more info see http://en.wikipedia.org/wiki/Linear_programming#Solvers_and_scripting_.28programming.29_languages 78 IESDS in Mixed Strategie – Example X Y A 3 0 B 0 3 C 1 1 The linear program for deciding whether C is strictly dominated: The program maximizes y under the following constraints: 3xA + 0xB + xC ≥1 + y Row’s payoff against X 0xA + 3xB + xC ≥1 + y Row’s payoff against Y xA , xB , xC ≥ 0 xA + xB + xC = 1 x’s must make a distribution y ≥ 0 Here y just implements the strict inequality using ≥, we look for a solution with y > 0. The maximum y = 1 2 is attained at xA = 1 2 and xB = 1 2 . 79 IESDS – Algorithm Note that in step 2 it is not sufficient to consider pure strategies. Consider the following zero sum game: X Y A 3 0 B 0 3 C 1 1 C is strictly dominated by (σ1(A), σ1(B), σ1(C)) = (1 2 , 1 2 , 0) but no strategy is strictly dominated in pure strategies. 80 Best Response in Mixed Strategies Definition 28 A (mixed) belief of player 1 is a mixed strategy σ2 of player 2 (and vice versa). Definition 29 σ1 ∈ Σ1 is a best response to a belief σ2 ∈ Σ2 if u1(σ1, σ2) ≥ u1(s1, σ2) for all s1 ∈ S1 Denote by BR1(σ2) the set of all best responses of player 1. (Symmetrically for player 2.) Comment: The above condition is equivalent to u1(σ1, σ2) ≥ u1(σ′ 1, σ2) for all σ′ 1 ∈ Σ1 81 Best Response – Example Consider a game with the following payoffs of player 1: X Y A 2 0 B 0 2 C 1 1 ▶ Player 1 (row) plays σ1 = (a(A), b(B), c(C)). ▶ Player 2 (column) plays (q(X), (1 − q)(Y)) (we write just q). Compute BR1(q). 82 Rationalizability in Mixed Strategies (Two Players) Assumption: A rational player 1 with a belief σ2 always plays a best response to σ2 (the same for player 2). Definition 30 A pure strategy s1 ∈ S1 of player 1 is never best response if it is not a best response to any belief σ2 (similarly for player 2). No rational player plays a strategy that is never best response. 83 Rationalizability in Mixed Strategies (Two Players) Define a sequence R0 i , R1 i , R2 i , . . . of strategy sets of player i. (Denote by Gk Rat the game obtained from G by restricting the pure strategy sets to Rk i , i ∈ N.) 1. Initialize k = 0 and R0 i = Si for each i ∈ N. 2. For all players i ∈ N: Let Rk+1 i be the set of all strategies of Rk i that are best responses to some (mixed) beliefs in Gk Rat . 3. Let k := k + 1 and go to 2. We say that si ∈ Si is rationalizable if si ∈ Rk i for all k = 0, 1, 2, . . . Definition 31 A strategy profile s = (s1, s2) ∈ S is a rationalizable equilibrium if both s1 and s2 are rationalizable. 84 Rationalizability vs IESDS (Two Players) X Y A 3 0 B 0 3 C 1 1 What pure strategies of player 1 are strictly dominated? What pure strategies of player 1 are never best responses? Observation: The set of strictly dominated pure strategies coincides with the set of pure never best responses! ... and this holds in general for two player games: Theorem 32 A pure strategy s1 of player 1 is never best response to any belief σ2 iff s1 is strictly dominated by a strategy σ1 ∈ Σ1 (similarly for player 2). It follows that a strategy of Si survives IESDS iff it is rationalizable. 85 Mixed Nash Equilibrium Definition 33 A mixed-strategy profile σ∗ = (σ∗ 1 , σ∗ 2 ) ∈ Σ is a (mixed) Nash equilibrium if σ∗ 1 is a best response to σ∗ 2 and σ∗ 2 is a best response to σ∗ 1 . That is u1(σ∗ 1, σ∗ 2) ≥ u1(s1, σ∗ 2) for all s1 ∈ S1 u2(σ∗ 1, σ∗ 2) ≥ u2(σ∗ 1, s2) for all s2 ∈ S2 The above condition is equivalent to u1(σ∗ 1, σ∗ 2) ≥ u1(σ1, σ∗ 2) for all σ1 ∈ Σ1 u2(σ∗ 1, σ∗ 2) ≥ u2(σ∗ 1, σ2) for all σ2 ∈ Σ2 Theorem 34 (Nash 1950) Every finite game in strategic form has a Nash equilibrium. This is THE fundamental theorem of game theory. 86 Example: Matching Pennies H T H 1, −1 −1, 1 T −1, 1 1, −1 Player 1 (row) plays (p(H), (1 − p)(T)) (we write just p) and player 2 (column) plays (q(H), (1 − q)(T)) (we write q). Compute all Nash equilibria. What are the expected payoffs of playing pure strategies for player 1? u1(H, q) = 2q − 1 and u1(T, q) = 1 − 2q Then u1(p, q) = pu1(H, q) + (1 − p)u1(T, q) = p(2q − 1) + (1 − p)(1 − 2q). We obtain the best response correspondence BR1: BR1(q) =    T if q < 1 2 p ∈ [0, 1] if q = 1 2 H if q > 1 2 87 Example: Matching Pennies H T H 1, −1 −1, 1 T −1, 1 1, −1 Player 1 (row) plays (p(H), (1 − p)(T)) (we write just p) and player 2 (column) plays (q(H), (1 − q)(T)) (we write q). Compute all Nash equilibria. Similarly for player 2 : u2(p, H) = 1 − 2p and u2(p, T) = 2p − 1 u2(p, q) = qu2(p, H) + (1 − q)u2(p, T) = q(1 − 2p) + (1 − q)(2p − 1) We obtain best-response relation BR2: BR2(p) =    H if p < 1 2 q ∈ [0, 1] if p = 1 2 T if p > 1 2 The only "intersection" of BR1 and BR2 is the only Nash equilibrium σ1 = σ2 = (1 2 , 1 2 ). 88 Computing Mixed Nash Equilibria Lemma 35 Every Nash equilibrium σ∗ = (σ∗ 1 , σ∗ 2 ) ∈ Σ satisfies ▶ u1(s1, σ∗ 2 ) = u1(σ∗ ) for s1 ∈ supp(σ∗ 1 ) ▶ u2(σ∗ 1 , s2) = u2(σ∗ ) for s2 ∈ supp(σ∗ 2 ) Proof. W.l.o.g. consider only the player 1 and assume that σ∗ is a Nash equilibrium. The latter assumption implies u1(s1, σ∗ 2 ) ≤ u1(σ∗ ) for all s1 ∈ S1. Now, if there exists s1 ∈ supp(σ∗ 1 ) ⊆ S1 satisfying u1(s1, σ∗ 2 ) < u1(σ∗ ), then because σ∗ 1 (s1) > 0 we have u1(σ∗ ) = ∑ s1∈S1 σ∗ 1(s1)u1(s1, σ∗ 2) < ∑ s1∈S1 σ∗ 1(s1)u1(σ∗ ) = u1(σ∗ ) A contradiction. Thus u1(s1, σ∗ 2 ) = u1(σ∗ ) for all s1 ∈ supp(σ∗ 1 ). 89 Example: Matching Pennies H T H 1, −1 −1, 1 T −1, 1 1, −1 Player 1 (row) plays (p(H), (1 − p)(T)) (we write just p) and player 2 (column) plays (q(H), (1 − q)(T)) (we write q). Compute all Nash equilibria. There are no pure strategy equilibria. There are no equilibria where only player 1 randomizes: Indeed, assume that (p, H) is such an equilibrium. Then by Lemma 35, 1 = u1(H, H) = u1(T, H) = −1 a contradiction. Also, (p, T) cannot be an equilibrium. Similarly, there is no NE where only player 2 randomizes. 90 Example: Matching Pennies H T H 1, −1 −1, 1 T −1, 1 1, −1 Player 1 (row) plays (p(H), (1 − p)(T)) (we write just p) and player 2 (column) plays (q(H), (1 − q)(T)) (we write q). Compute all Nash equilibria. Assume that both players randomize, i.e., p, q ∈ (0, 1). The expected payoffs of playing pure strategies for player 1: u1(H, q) = 2q − 1 and u1(T, q) = 1 − 2q Similarly for player 2 : u2(p, H) = 1 − 2p and u1(p, T) = 2p − 1 By Lemma 35, such Nash equilibria must satisfy: 2q − 1 = 1 − 2q and 1 − 2p = 2p − 1 That is p = q = 1 2 is the only Nash equilibrium. 91 Example: Battle of Sexes O F O 2, 1 0, 0 F 0, 0 1, 2 Player 1 (row) plays (p(O), (1 − p)(F)) (we write just p) and player 2 (column) plays (q(O), (1 − q)(F)) (we write q). Compute all Nash equilibria. There are two pure strategy equilibria (O, O) and (F, F), no Nash equilibrium where only one player randomizes. Now assume that ▶ player 1 (row) plays (p(O), (1 − p)(F)) (we write just p) and ▶ player 2 (column) plays (q(O), (1 − q)(F)) (we write q) where p, q ∈ (0, 1). By Lemma 35, such Nash equilibria must satisfy: 2q = 1 − q and p = 2(1 − p) This holds only for q = 1 3 and p = 2 3 . 92 An Algorithm? What did we do in the previous examples? We went through all support combinations for both players. (pure, one player mixing, both mixing) For each pair of supports we tried to find equilibria in strategies with these supports. (in Battle of Sexes: two pure, no equilibrium with just one player mixing, one equilibrium when both mixing) Whenever one of the supports was non-singleton, we reduced computation of Nash equilibria to linear equations. 93 Computing Mixed Nash Equilibria Lemma 36 Let σ∗ = (σ∗ 1 , σ∗ 2 ) ∈ Σ be a mixed profile. Assume that there exist w1, w2 ∈ R such that ▶ u1(s1, σ∗ 2 ) = w1 for s1 ∈ supp(σ∗ 1 ) ▶ u1(s1, σ∗ 2 ) ≤ w1 for s1 supp(σ∗ 1 ) ▶ u2(σ∗ 1 , s2) = w2 for s2 ∈ supp(σ∗ 2 ) ▶ u2(σ∗ 1 , s2) ≤ w2 for s2 supp(σ∗ 2 ) Then u1(σ∗ ) = w1 and u2(σ∗ ) = w2, and σ∗ is a Nash equilibrium. Proof. Consider just the player 1 (for pl. 2 similarly): u1(σ∗ ) = ∑ s1∈S1 σ∗ (s1)u1(s1, σ∗ 2) = ∑ s1∈supp(σ∗ 1 ) σ∗ (s1)u1(s1, σ∗ 2) = ∑ s1∈supp(σ∗ 1 ) σ∗ (s1)w1 = w1 ∑ s1∈supp(σ∗ 1 ) σ∗ (s1) = w1 Now the fact that σ∗ is a Nash equilibrium follows from the definition. 94 How to Compute Mixed Nash Equilibria? Every Nash equilibrium σ∗ = (σ∗ 1 , σ∗ 2 ) can be computed by finding appropriate w1, w2 so that ▶ u1(s1, σ∗ 2 ) = w1 for s1 ∈ supp(σ∗ 1 ) ▶ u1(s1, σ∗ 2 ) ≤ w1 for s1 supp(σ∗ 1 ) ▶ u2(σ∗ 1 , s2) = w2 for s2 ∈ supp(σ∗ 2 ) ▶ u2(σ∗ 1 , s2) ≤ w2 for s2 supp(σ∗ 2 ) Indeed, ▶ by Lemma 36, all σ∗ and w1, w2 satisfying the above inequalities give a Nash equilibrium σ∗ with u1(σ∗ ) = w1 and u2(σ∗ ) = w2, ▶ by Lemma 35, for every Nash equilibrium σ∗ choosing w1 = u1(σ∗ ) and w2 = u2(σ∗ ) satisfies the above inequalities. Suppose that we somehow know the supports supp(σ∗ 1 ), supp(σ∗ 2 ) for some Nash equilibrium σ∗ = (σ∗ 1 , σ∗ 2 ) (which itself is unknown to us). We may consider all σ∗ i (si)’s and both w1, w2’s as variables and use the above conditions to design a system of inequalities capturing Nash equilibria with the given support sets supp(σ∗ 1 ), supp(σ∗ 2 ). 95 Support Enumeration To simplify notation, assume that for every i we have Si = {1, . . . , mi}. Then σi(j) is the probability of the pure strategy j in the mixed strategy σi. Fix supports suppi ⊆ Si for every i ∈ {1, 2} and consider the following system of constraints with variables σ1(1), . . . , σ1(m1), σ2(1), . . . , σ2(m2), w1, w2: 1. For all k ∈ supp1 and all ℓ ∈ supp2: ∑ ℓ′∈S2 σ2(ℓ′ )u1(k, ℓ′ ) = w1 ∑ k′∈S1 σ1(k′ )u2(k′ , ℓ) = w2 2. For all k supp1 and all ℓ supp2: ∑ ℓ′∈S2 σ2(ℓ′ )u1(k, ℓ′ ) ≤ w1 ∑ k′∈S1 σ1(k′ )u2(k′ , ℓ) ≤ w2 3. For all i ∈ {1, 2}: σi(1) + · · · + σi(mi) = 1. 4. For all i ∈ {1, 2} and all k ∈ suppi: σi(k) ≥ 0. 5. For all i ∈ {1, 2} and all k suppi: σi(k) = 0. 96 Support Enumeration The constraints are linear for two player games! How to find supp1 and supp2? ... Just guess! Input: A two-player strategic-form game G with strategy sets S1 = {1, . . . , m1} and S2 = {1, . . . , m2} and rational payoffs u1, u2. Output: A Nash equilibrium σ∗ . Algorithm: For all possible supp1 ⊆ S1 and supp2 ⊆ S2: ▶ Check if the corresponding system of linear constraints (from the previous slide) has a feasible solution σ∗ , w∗ 1 , w∗ 2 . ▶ If so, STOP: the feasible solution σ∗ is a Nash equilibrium satisfying ui(σ∗ ) = w∗ i . Question: How many possible subsets supp1, supp2 are there to try? Answer: 2(m1+m2) So, unfortunately, the algorithm requires worst-case exponential time. 97 Remarks on Support Enumeration ▶ The algorithm combined with Theorem 34 and properties of linear programming imply that every finite two-player game has a rational Nash equilibrium (furthermore, the rational numbers have polynomial representation in binary). ▶ The algorithm can be used to compute all Nash equilibria. (There are algorithms for computing (a finite representation of) a set of all feasible solutions of a given linear constraint system.) ▶ The algorithm can be used to compute "good" equilibria. For example, to find a Nash equilibrium maximizing the sum of all expected payoffs (the "social welfare") it suffices to solve the system of constraints while maximizing w1 + w2. More precisely, the algorithm can be modified as follows: ▶ Initialize W := −∞ (W stores the current maximum welfare) ▶ For all possible supp1 ⊆ S1 and supp2 ⊆ S2: ▶ Find the maximum value max(w1 + w2) of w1 + w2 so that the constraints are satisfiable (using linear programming). ▶ Put W := max{W, max(w1 + w2)}. ▶ Return W. 98 Remarks on Support Enumeration (Cont.) Similar trick works for any notion of "good" NE that can be expressed using a linear objective function and (additional) linear constraints in variables σi(j) and wi. (e.g., maximize payoff of player 1, minimize payoff of player 2 and keep probability of playing the strategy 1 below 1/2, etc.) 99 Complexity Results – (Two Players) Theorem 37 Given a two-player game in strategic form, a mixed Nash equilibrium can be computed in exponential time. Theorem 38 All the following problems are NP-complete: Given a two-player game in strategic form, does it have 1. a NE in which player 1 has utility at least a given amount v ? 2. a NE in which the sum of expected payoffs of the two players is at least a given amount v ? 3. a NE with a support of size greater than a given number? 4. a NE whose support contains a given strategy s ? 5. a NE whose support does not contain a given strategy s ? 6. .... NP-hardness can be proved using reduction from SAT. 100 The Reduction (It’s Short and Sweet) 101 ... But What is The Exact Complexity of Computing Nash Equilibria in Two Player Games? Let us concentrate on the problem of computing one Nash equilibrium (sometimes called the sample equilibrium problem). As the class NP consists of decision problems, it cannot be directly used to characterize complexity of the sample equilibrium problem. We use complexity classes of function problems such as FP, FNP, etc. The sample equilibrium problem belongs to the complexity class PPAD (which is a subclass of FNP) for two-player games. Can we do better than FNP (i.e. exponential time)? In what follows we show that the sample equilibrium problem can be solved in polynomial time for zero-sum two-player games. (Using a beautiful characterization of all Nash equilibria) 102 MaxMin Definition 39 σ∗ 1 ∈ Σ1 is a maxmin strategy of player 1 if σ∗ 1 ∈ argmax σ1∈Σ1 min s2∈S2 u1(σ1, s2) (= argmax σ1∈Σ1 min σ2∈Σ2 u1(σ1, σ2)) (Intuitively, a maxmin strategy σ∗ 1 maximizes player 1’s worst-case payoff in the situation where player 2 strives to cause the greatest harm to player 1.) Similarly, σ∗ 2 ∈ Σ2 is a maxmin strategy of player 2 if σ∗ 2 ∈ argmax σ2∈Σ2 min s1∈S1 u2(s1, σ2) Which assuming zero-sum games, i.e. u1 = −u2, becomes σ∗ 2 ∈ argmin σ2∈Σ2 max s1∈S1 u1(s1, σ2) (= argmin σ2∈Σ2 max σ1∈Σ1 u1(σ1, σ2)) Note the same payoff function for both players!! 103 Zero-Sum Games: von Neumann’s Theorem Theorem 40 (von Neumann) Assume a two-player zero-sum game. Then max σ1∈Σ1 min s2∈S2 u1(σ1, s2) = min σ2∈Σ2 max s∈S1 u1(s1, σ2) Morever, σ∗ = (σ∗ 1 , σ∗ 2 ) ∈ Σ is a Nash equilibrium iff both σ∗ 1 and σ∗ 2 are maxmin. So to compute a Nash equilibrium it suffices to compute (arbitrary) maxmin strategies for both players. 104 Zero-Sum Two-Player Games – Computing NE Assume S1 = {1, . . . , m1} and S2 = {1, . . . , m2}. We want to compute σ∗ 1 ∈ argmax σ1∈Σ1 min ℓ∈S2 u1(σ1, ℓ) Consider a linear program with variables σ1(1), . . . , σ1(m1), v: maximize: v subject to: m1∑ k=1 σ1(k) · u1(k, ℓ) ≥ v ℓ = 1, . . . , m2 m1∑ k=1 σ1(k) = 1 σ1(k) ≥ 0 k = 1, . . . , m1 Lemma 41 σ∗ 1 ∈ argmaxσ1∈Σ1 minℓ∈S2 u1(σ1, ℓ) iff assigning σ1(k) := σ∗ 1 (k) and v := minℓ∈S2 u1(σ∗ 1 , ℓ) gives an optimal solution. 105 Zero-Sum Two-Player Games – Computing NE Summary: ▶ We have reduced computation of NE to computation of maxmin strategies for both players. ▶ Maxmin strategies can be computed using linear programming in polynomial time. ▶ That is, Nash equilibria in zero-sum two-player games can be computed in polynomial time. 106 Strategic-Form Games – Conclusion We have considered static games of complete information, i.e., "one-shot" games where the players know exactly what game they are playing. We modeled such games using strategic-form games. We have considered both pure strategy setting and mixed strategy setting. In both cases, we considered four solution concepts: ▶ Strictly dominant strategies ▶ Iterative elimination of strictly dominated strategies ▶ Rationalizability (i.e., iterative elimination of strategies that are never best responses) ▶ Nash equilibria 107 Strategic-Form Games – Conclusion In pure strategy setting: 1. Strictly dominant strategy equilibrium survives IESDS, rationalizability and is the unique Nash equilibrium (if it exists) 2. In finite games, rationalizable equilibria survive IESDS, IESDS preserves the set of Nash equilibria 3. In finite games, rationalizability preserves Nash equilibria In mixed setting: 1. In finite two player games, IESDS and rationalizability coincide. 2. Strictly dominant strategy equilibrium survives IESDS (rationalizability) and is the unique Nash equilibrium (if it exists) 3. In finite games, IESDS (rationalizability) preserves Nash equilibria The proofs for 2. and 3. in the mixed setting are similar to corresponding proofs in the pure setting. 108 Algorithms ▶ Strictly dominant strategy equilibria coincide in pure and mixed settings, and can be computed in polynomial time. ▶ IESDS and rationalizability can be implemented in polynomial time in the pure setting as well as in the mixed setting In the mixed setting, linear programming is needed to implement one step of IESDS (rationalizability). ▶ Nash equilibria can be computed for two-player games ▶ in polynomial time for zero-sum games (using von Neumann’s theorem and linear programming) ▶ in exponential time using support enumeration ▶ in PPAD using Lemke-Howson (omitted) 109 Loose Ends – Modes of Dominance To simplify, let us consider only pure strategies. Let si, s′ i ∈ Si. Then s′ i is strictly dominated by si if ui(si, s−i) > ui(s′ i , s−i) for all s−i ∈ S−i. Let si, s′ i ∈ Si. Then s′ i is weakly dominated by si if ui(si, s−i) ≥ ui(s′ i , s−i) for all s−i ∈ S−i and there is s′ −i ∈ S−i such that ui(si, s′ −i ) > ui(s′ i , s′ −i ). Let si, s′ i ∈ Si. Then s′ i is very weakly dominated by si if ui(si, s−i) ≥ ui(s′ i , s−i) for all s−i ∈ S−i. A strategy is (strictly, weakly, very weakly) dominant if it (strictly, weakly, very weakly) dominates any other strategy. Claim 4 Any pure strategy profile s ∈ S such that each si is very weakly dominant is a Nash equilibrium. The same claim can be proved in the mixed strategy setting. 110 Dynamic Games of Complete Information Extensive-Form Games Definition Sub-Game Perfect Equilibria 111 Dynamic Games of Perfect Information (Motivation) Static games (modeled using strategic-form games) cannot capture games that unfold over time. In particular, as all players move simultaneously, there is no way how to model situations in which order of moves is important. Imagine e.g. chess where players take turns, in every round a player knows all turns of the opponent before making his own turn. There are many examples of dynamic games: markets that change over time, political negotiations, models of computer systems, etc. We model dynamic games using extensive-form games, a tree like model that allows to express sequential nature of games. We start with perfect information games, where each player always knows results of all previous moves. Then generalize to imperfect information, where players may have only partial knowledge of these results (e.g. most card games). 112 Perfect-Info. Extensive-Form Games (Example) 1 h0 2 h1 (3, 1) K (1, 3) U L 2 h2 (2, 1) K (0, 0) U R Here h0, h1, h2 are non-terminal nodes, leaves are terminal nodes. Each non-terminal node is owned by a player who chooses an action. E.g. h1 is owned by player 2 who chooses either K or U Every action results in a transition to a new node. Choosing L in h0 results in a move to h1 When a play reaches a terminal node, players collect payoffs. E.g. the left most terminal node gives 3 to player 1 and 1 to player 2. 113 Perfect-Information Extensive-Form Games A perfect-information extensive-form game is a tuple G = (N, A, H, Z, χ, ρ, π, h0, u) where ▶ N = {1, . . . , n} is a set of n players, A is a (single) set of actions, ▶ H is a set of non-terminal (choice) nodes, Z is a set of terminal nodes (assume Z ∩ H = ∅), denote H = H ∪ Z, ▶ χ : H → ( 2A ∖ {∅} ) is the action function, which assigns to each choice node a non-empty set of enabled actions, ▶ ρ : H → N is the player function, which assigns to each non-terminal node a player i ∈ N who chooses an action there, we define Hi := {h ∈ H | ρ(h) = i}, ▶ π : H × A → H is the successor function, which maps a non-terminal node and an action to a new node, such that ▶ h0 is the only node that is not in the image of π (the root) ▶ for all h1, h2 ∈ H and for all a1 ∈ χ(h1) and all a2 ∈ χ(h2), if π(h1, a1) = π(h2, a2), then h1 = h2 and a1 = a2, ▶ u = (u1, . . . , un), where each ui : Z → R is a payoff function for player i in the terminal nodes of Z. 114 Extensive-Form Games as Rooted Trees h′ is a child of h, and h is a parent of h′ if there is a ∈ χ(h) such that h′ = π(h, a). A path from h ∈ H to h′ ∈ H is a sequence h1a2h2a3h3 · · · hk−1ak hk where h1 = h, hk = h′ and π(hj−1, aj) = hj for every 1 < j ≤ k. Note that, in particular, h is a path from h to h. h′ ∈ H is reachable from h ∈ H if there is a path from h to h′ . If h′ is reachable from h we say that h′ is a descendant of h and h is an ancestor of h′ Assumption: For every h ∈ H there is a unique path from h0 to h and there is no infinite path (i.e., a sequence h1a2h2a3h3 · · · such that π(hj−1, aj) = hj for every j > 1). The assumption implies that every perfect-information extensive-form game can be seen as a game on a rooted tree (H, E, h0) where ▶ H ∪ Z is a set of nodes, ▶ E ⊆ H × H is a set of edges defined by (h, h′ ) ∈ E iff h ∈ H and there is a ∈ χ(h) such that π(h, a) = h′ , ▶ h0 is the root. 115 Example: Trust Game 1 h0 (5, 5) z1 D h1 2 (0, 20) z2 K (7.5, 12.5) z3 S T ▶ Two players, both start with 5$ ▶ Player 1 either distrusts (D) player 2 and keeps the money (payoffs (5, 5)), or trusts (T) player 2 and passes 5$ to player 2 ▶ If player 1 chooses to trust player 2, the total money (10) is doubled by the experimenter in the hands of player 2. ▶ Player 2 may either keep (K) the additional 15$ (resulting in (0, 20)), or share (S) it with player 1 (resulting in (7.5, 12.5)) 116 Example: Trust Game (Cont.) 1 h0 (5, 5) z1 D h1 2 (0, 20) z2 K (7.5, 12.5) z3 S T ▶ N = {1, 2}, A = {D, T, K, S} ▶ H = {h0, h1}, Z = {z1, z2, z3} ▶ χ(h0) = {D, T}, χ(h1) = {K, S} ▶ ρ(h0) = 1, ρ(h1) = 2 ▶ π(h0, D) = z1, π(h0, T) = h1, π(h1, K) = z2, π(h1, S) = z3 ▶ u1(z1) = 5, u1(z2) = 0, u1(z3) = 7.5, u2(z1) = 5, u2(z2) = 20, u2(z3) = 12.5 117 Stackelberg Competition Very similar to Cournot duopoly ... ▶ Two identical firms, players 1 and 2, produce some good. Denote by q1 and q2 quantities produced by firms 1 and 2, resp. ▶ The total quantity of products in the market is q1 + q2. ▶ The price of each item is κ − q1 − q2 where κ > 0 is fixed. ▶ Firms have a common per item production cost c. Except that ... ▶ As opposed to Cournot duopoly, the firm 1 moves first, and chooses the quantity q1 ∈ [0, ∞). ▶ Afterwards, the firm 2 chooses q2 ∈ [0, ∞) (knowing q1) and then the firms get their payoffs. 118 Stackelberg Competition – Extensive-Form Model An extensive-form game model: ▶ N = {1, 2} ▶ A = [0, ∞) ▶ H = {h0, hq1 1 | q1 ∈ [0, ∞)} ▶ Z = {zq1,q2 | q1, q2 ∈ [0, ∞) ▶ χ(h0) = [0, ∞), χ(hq1 1 ) = [0, ∞) ▶ ρ(h0) = 1, ρ(hq1 1 ) = 2 ▶ π(h0, q1) = hq1 1 , π(hq1 1 , q2) = zq1,q2 ▶ The payoffs are ▶ u1(zq1,q2 ) = q1(κ − q1 − q2) − q1c ▶ u2(zq1,q2 ) = q2(κ − q1 − q2) − q2c 119 Example: Chess (a bit simplified) ▶ N = {1, 2} ▶ Denoting Boards the set of all (appropriately encoded) board positions, we define H = B × {1, 2} where B = {w ∈ Boards+ | no board repeats ≥ 3 times in w} (Here Boards+ is the set of all non-empty sequences of boards) ▶ Z consists of all nodes (wb, i) (here b ∈ Boards) where either b is checkmate for player i, or i does not have a move in b, or every move of i in b leads to a board with three occurrences in w ▶ χ(wb, i) is the set of all legal moves of player i in b ▶ ρ(wb, i) = i ▶ π is defined by π((wb, i), a) = (wbb′ , 3 − i) where b′ is obtained from b according to the move a ▶ h0 = (b0, 1) where b0 is the initial board ▶ uj(wb, i) ∈ {1, 0, −1}, here 1 means "win", 0 means "draw", and −1 means "loss" for player j 120 Pure Strategies Let G = (N, A, H, Z, χ, ρ, π, h0, u) be a perfect-information extensive-form game. Definition 42 A pure strategy of player i in G is a function si : Hi → A such that for every h ∈ Hi we have that si(h) ∈ χ(h). We denote by Si the set of all pure strategies of player i in G. Denote by S = S1 × · · · × Sn the set of all pure strategy profiles. Note that each pure strategy profile s ∈ S determines a unique path ws = h0a1h1 · · · hk−1ak hk from h0 to a terminal node hk by aj = sρ(hj−1)(hj−1) ∀0 < j ≤ k Denote by O(s) the terminal node reached by ws. Abusing notation a bit, we denote by ui(s) the value ui(O(s)) of the payoff for player i when the terminal node O(s) is reached using strategies of s. 121 Example: Trust Game 1 h0 (5, 5) z1 D h1 2 (0, 20) z2 K (7.5, 12.5) z3 S T A pure strategy profile (s1, s2) where s1(h0) = T and s2(h1) = K is usually written as TK (BFS & left to right traversal) determines the path h0T h1K z2 The resulting payoffs: u1(s1, s2) = 0 and u2(s1, s2) = 20. 122 Extensive-Form vs Strategic-Form The extensive-form game G determines the corresponding strategic-form game ¯G = (N, (Si)i∈N , (ui)i∈N) Here note that the set of players N and the sets of pure strategies Si are the same in G and in the corresponding game. The payoff functions ui in ¯G are understood as functions on the pure strategy profiles of S = S1 × · · · × Sn. With this definition, we may apply all solution concepts and algorithms developed for strategic-form games to the extensive form games. We often consider the extensive-form to be only a different way of representing the corresponding strategic-form game and do not distuinguish between them. There are some issues, namely whether all notions from strategic-form area make sense in the extensive-form. Also, naive application of algorithms may result in unnecessarily high complexity. For now, let us consider pure strategies only! 123 Example: Trust Game 1 h0 (5, 5) z1 D h1 2 (0, 20) z2 K (7.5, 12.5) z3 S T Is any strategy strictly (weakly, very weakly) dominant? Is any strategy never best response? Is there a Nash equilibrium in pure strategies ? 124 Example 1 h0 2 h1 (3, 1) K (1, 3) U L 2 h2 (2, 1) K′ (0, 0) U′ R Find all pure strategies of both players. Is any strategy (strictly, weakly, very weakly) dominant? Is any strategy (strictly, weakly, very weakly) dominated? Is any strategy never best response? Are there Nash equilibria in pure strategies ? 125 Example 1 h0 2 h1 (3, 1) K (1, 3) U L 2 h2 (2, 1) K′ (0, 0) U′ R KK′ KU′ UK′ UU′ L 3, 1 3, 1 1, 3 1, 3 R 2, 1 0, 0 2, 1 0, 0 Find all pure strategies of both players. Is any strategy (strictly, weakly, very weakly) dominant? Is any strategy (strictly, weakly, very weakly) dominated? Is any strategy never best response? Are there Nash equilibria in pure strategies ? 126 Criticism of Nash Equilibria 1 h0 2 h1 (3, 1) K (1, 3) U L 2 h2 (2, 1) K′ (0, 0) U′ R KK′ KU′ UK′ UU′ L 3, 1 3, 1 1, 3 1, 3 R 2, 1 0, 0 2, 1 0, 0 Two Nash equilibria in pure strategies: (L, UU′ ) and (R, UK′ ) Examine (L, UU′ ): ▶ Player 2 threats to play U′ in h2, ▶ as a result, player 1 plays L, ▶ player 2 reacts to L by playing the best response, i.e., U. However, the threat is not credible, once a play reaches h2, a rational player 2 chooses K′ . 127 Criticism of Nash Equilibria 1 h0 2 h1 (3, 1) K (1, 3) U L 2 h2 (2, 1) K′ (0, 0) U′ R KK′ KU′ UK′ UU′ L 3, 1 3, 1 1, 3 1, 3 R 2, 1 0, 0 2, 1 0, 0 Two Nash equilibria in pure strategies: (L, UU′ ) and (R, UK′ ) Examine (R, UK′ ): This equilibrium is sensible in the following sense: ▶ Player 2 plays the best response in both h1 and h2 ▶ Player 1 plays the "best response" in h0 assuming that player 2 will play his best responses in the future. This equilibrium is called subgame perfect. 128 Subgame Perfect Equilibria Given h ∈ H, we denote by Hh the set of all nodes reachable from h. Definition 43 (Subgame) A subgame Gh of G rooted in h ∈ H is the restriction of G to nodes reachable from h in the game tree. More precisely, Gh = (N, A, Hh , Zh , χh , ρh , πh , h, uh ) where Hh = H ∩ Hh , Zh = Z ∩ Hh , χh and ρh are restrictions of χ and ρ to Hh , resp., (Given a function f : A → B and C ⊆ A, a restriction of f to C is a function g : C → B such that g(x) = f(x) for all x ∈ C.) ▶ πh is defined for h′ ∈ Hh and a ∈ χh (h′ ) by πh (h′ , a) = π(h′ , a) ▶ each uh i is a restriction of ui to Zh Definition 44 A subgame perfect equilibrium (SPE) in pure strategies is a pure strategy profile s ∈ S such that for any subgame Gh of G, the restriction of s to Hh is a Nash equilibrium in pure strategies in Gh . A restriction of s = (s1, . . . , sn) ∈ S to Hh is a strategy profile sh = (sh 1 , . . . , sh n ) where sh i (h′ ) = si(h′ ) for all i ∈ N and all h′ ∈ Hi ∩ Hh . 129 Stackelberg Competition – SPE ▶ N = {1, 2}, A = [0, ∞) ▶ H = {h0, hq1 1 | q1 ∈ [0, ∞)}, Z = {zq1,q2 | q1, q2 ∈ [0, ∞) ▶ χ(h0) = [0, ∞), χ(hq1 1 ) = [0, ∞), ρ(h0) = 1, ρ(hq1 1 ) = 2 ▶ π(h0, q1) = hq1 1 , π(hq1 1 , q2) = zq1,q2 ▶ The payoffs are u1(zq1,q2 ) = q1(κ − c − q1 − q2), u2(zq1,q2 ) = q2(κ − c − q1 − q2) Denote θ = κ − c Player 1 chooses q1, we know that the best response of player 2 is q2 = (θ − q1)/2 where θ = κ − c. Then u1(zq1,q2 ) = q1(θ − q1 − θ/2 − q1/2) = (θ/2)q1 − q2 1 /2 which is maximized by q1 = θ/2, giving q2 = θ/4. Then u1(zq1,q2 ) = θ2 /8 and u2(zq1,q2 ) = θ2 /16. Note that firm 1 has an advantage as a leader. 130 Backward Induction An algorithm for computing SPE for finite perfect-information extensive-form games. Backward Induction: We inductively "attach" to every node h a pure strategy profile sh = (sh 1 , . . . , sh n ) in Gh , together with a vector of expected payoffs u(h) = (u1(h), . . . , un(h)). ▶ Initially: Attach to each terminal node z ∈ Z the empty profile sz = (∅, . . . , ∅) and the payoff vector u(z) = (u1(z), . . . , un(z)). ▶ While(there is an unattached node h with all children attached): 1. Let K be the set of all children of h 2. Let hmax ∈ argmax h′∈K uρ(h)(h′ ) 3. Attach to h a strategy profile sh where ▶ sh ρ(h) (h) = hmax ▶ for all i ∈ N and all h′ ∈ Hi \ {h} define sh i (h′ ) = s ¯h i (h′ ) where ¯h ∈ K and h′ ∈ H ¯h ∩ Hi 4. Attach to h the vector of expected payoffs u(h) := u(hmax). 131 Correctness of Backward Induction Theorem 45 For every finite perfect-information extensive-form game and for each node h the attached sh is a SPE and the attached vector u(h) satisfies u(h) = u(sh ) = (u1(sh ), . . . , un(sh )). Proof: By induction. In any terminal node z no player has any choice, thus empty strategies make a SPE with payoffs u(z). Assume that h is being processed in the while loop. Denote by ¯sh a profile obtained from sh by changing the strategy of player i. First, assume i ρ(h). Let ¯shmax be the restriction of ¯sh to the subgame rooted in hmax. ui(¯sh ) = ui(¯shmax ) ≤ ui(shmax ) = ui(sh ) Second, assume i = ρ(h) and denote by ¯h = ¯sh ρ(h) (h). Let ¯s ¯h be the restriction of ¯sh to the subgame rooted in ¯h. ui(¯sh ) = ui(¯s ¯h ) ≤ ui(s ¯h ) ≤ ui(shmax ) = ui(sh ) In both cases the deviation of player i leads to smaller or equal payoff. Apparently, u(sh ) = u(shmax ) = u(hmax) = u(h). 132 Chess Recall that in the model of chess, the payoffs were from {1, 0, −1} and u1 = −u2 (i.e. it is zero-sum). By Theorem 45, there is a SPE in pure strategies (s∗ 1 , s∗ 2 ). However, then one of the following holds: 1. White has a winning strategy If u1(s∗ 1 , s∗ 2 ) = 1 and thus u2(s∗ 1 , s∗ 2 ) = −1 2. Black has a winning strategy If u1(s∗ 1 , s∗ 2 ) = −1 and thus u2(s∗ 1 , s∗ 2 ) = 1 3. Both players have strategies to force a draw If u1(s∗ 1 , s∗ 2 ) = 0 and thus u2(s∗ 1 , s∗ 2 ) = 0 Question: Which one is the right answer? Answer: Nobody knows yet ... the tree is too big! Even with ∼ 200 depth & ∼ 5 moves per node: 5200 nodes! 133 Efficient Algorithms for Pure Nash Equilibria In the step 2. of the backward induction, the algorithm may choose an arbitrary hmax ∈ argmaxh′∈K uρ(h)(h′ ) and always obtain a SPE. In order to compute all SPE, the algorithm may systematically search through all possible choices of hmax throughout the induction. Backward induction is too inefficient (unnecessarily searches through the whole tree). There are better algorithms, such as α−β-prunning. For details, extensions etc. see e.g. ▶ PB016 Artificial Intelligence I ▶ Multi-player alpha-beta prunning, R. Korf, Artificial Intelligence 48, pages 99-111, 1991 ▶ Artificial Intelligence: A Modern Approach (3rd edition), S. Russell and P. Norvig, Prentice Hall, 2009 134 Example Centipede game: A A A A A D D D D D (1, 0) (0, 2) (3, 1) (2, 4) (4, 3) (3, 5)1 2 1 2 1 SPE in pure strategies: (DDD, DD) ... Isn’t it weird? There are serious issues here ... ▶ In laboratory setting, people usually play A for several steps. ▶ There is a theoretical problem: Imagine, that you are player 2. What would you do when player 1 chooses A in the first step? The SPE analysis says that you should go down, but the same analysis also says that the situation you are in cannot appear :-) 135 Dynamic Games of Complete Information Extensive-Form Games Mixed and Behavioral Strategies 136 Mixed and Behavioral Strategies Assume two players and a finite extensive-form game G. Definition 46 A mixed strategy σi of player i in G is a mixed strategy of player i in the corresponding strategic-form game. I.e., a mixed strategy σi of player i in G is a probability distribution on Si (recall that Si is the set of all pure strategies, i.e., functions of the form si : Hi → A). As before, we denote by Σi the set of all mixed strategies of player i. Definition 47 A behavioral strategy of player i in G is a function βi : Hi → ∆(A) such that for every h ∈ Hi and every a ∈ A: βi(h)(a) iff a ∈ χ(h). Given a profile β = (β1, β2) of behavioral strategies, we denote by Pβ(z) the probability of reaching z ∈ Z when β is used, i.e., Pβ(z) = k∏ ℓ=1 βρ(hℓ−1)(hℓ)(aℓ) where h0a1h1a2h2 · · · ak hk is the unique path from h0 to hk = z. We define ui(β) := ∑ z∈Z Pβ(z) · ui(z). 137 Behavioral Strategies: Example 1 h0 2 h1 z1 B 1 h3 z2 C z3 ¯C ¯B A 2 h2 z4 D z5 ¯D ¯A Pure strategies of player 1: AC, A ¯C, ¯AC, ¯A ¯C An example of a mixed strategy σ1 of player 1: σ1(AC) = 1 3 , σ1(A ¯C) = 1 9 , σ1(¯AC) = 1 6 and σ1(¯A ¯C) = 11 18 138 Behavioral Strategies: Example 1 h0 2 h1 z1 B 1 h3 z2 C z3 ¯C ¯B A 2 h2 z4 D z5 ¯D ¯A An example of behavioral strategies of both players: ▶ player 1: β1(h0)(A) = 1 3 and β1(h3)(C) = 1 2 ▶ player 2: β2(h1)(B) = 1 4 and β2(h2)(D) = 1 5 P(β1,β2)(z2) = 1 3 ( 1 − 1 4 ) 1 2 = 1 8 139 Behavioral Strategies: Example 1 h0 2 h1 z1 (1, 0) B 1 h3 z2 (2, 3) C z3 (3, 2) ¯C ¯B A 2 h2 z4 (1, 1) D z5 (5, 4) ¯D ¯A β = (β1, β2) ▶ player 1: β1(h0)(A) = 1 3 and β1(h3)(C) = 1 2 ▶ player 2: β2(h1)(B) = 1 4 and β2(h2)(D) = 1 5 u1(β) = Pβ(z1) · 1 + Pβ(z2) · 2 + Pβ(z3) · 3 + Pβ(z4) · 1 + Pβ(z5) · 5 = 1 3 1 4 1 + 1 3 3 4 1 2 2 + 1 3 3 4 1 2 3 + 2 3 1 5 1 + 2 3 4 5 5 ≈ 3.508 140 Pure Strategies as Behavioral 1 h0 2 h1 z1 B 1 h3 z2 C z3 ¯C ¯B A 2 h2 z4 D z5 ¯D ¯A Each pure strategy can be seen as a behavioral strategy. Consider e.g. s1 : H1 → A defined by s1(h0) = A and s1(h3) = C. The corresponding behavioral strategy β1 would satisfy β1(h0)(A) = β1(h3)(C) = 1 (i.e. select actions chosen by s1 with prob. 1). Now given a behavioral strategy β2 of player 2 defined by β2(h1)(B) = 1 4 and β2(h2)(D) = 1 5 we obtain P(s1,β2)(z2) = P(β1,β2)(z2) = 1 ( 1 − 1 4 ) 1 = 3 4 141 Mixed/Behavioral Profiles Let α = (α1, α2) be a strategy profile where each αi is either mixed or behavioral. The game is played as follows: ▶ If α1 mixed, select randomly a pure strategy β1 according to α1, else β1 := α1. ▶ If α2 mixed, select randomly a pure strategy β2 according to α2, else β2 := α2. ▶ Play (β1, β2) and collect payoffs. Denote the resulting payoffs by u1(α) and u2(α). Lemma 48 For every mixed/behavioral strategy α1 of player 1 there is a behavioral/mixed strategy α′ 1 such that for every mixed/behavioral strategy α2 we have that ui(α1, α2) = ui(α′ 1 , α2) for i ∈ {1, 2}. 142 Dynamic Games of Complete Information Extensive-Form Games Imperfect-Information Games 143 Extensive-form of Matching Pennies Is it possible to model Matching pennies using extensive-form games? H T H 1, −1 −1, 1 T −1, 1 1, −1 1 h0 2 h1 (1, −1) H (−1, 1) T H 2 h2 (−1, 1) H (1, −1) T T The problem is that player 2 is "perfectly" informed about the choice of player 1. In particular, there are pure Nash equilibria (H, TH) and (T, TH) in the extensive-form game as opposed to the strategic-form. Reversing the order of players does not help. We need to extend the formalism to be able to hide some information about previous moves. 144 Extensive-form of Matching Pennies Matching pennies can be modeled using an imperfect-information extensive-form game: 1 h0 2 h1 (1, −1) H (−1, 1) T H 2 h2 (−1, 1) H (1, −1) T T Here h1 and h2 belong to the same information set of player 2. As a result, player 2 is not able to distinguish between h1 and h2. So even though players do not move simultaneously, the information player 2 has about the current situation is the same as in the simultaneous case. 145 Imperfect Information Games An imperfect-information extensive-form game is a tuple Gimp = (Gperf , I) where ▶ Gperf = (N, A, H, Z, χ, ρ, π, h0, u) is a perfect-information extensive-form game (called the underlying game), ▶ I = (I1, . . . , In) where for each i ∈ N = {1, . . . , n} Ii = {Ii,1, . . . , Ii,ki } is a collection of information sets for player i that satisfies ▶ ∪ki j=1 Ii,j = Hi and Ii,j ∩ Ii,k = ∅ for j k (i.e., Ii is a partition of Hi) ▶ for all h, h′ ∈ Ii,j, we have ρ(h) = ρ(h′ ) and χ(h) = χ(h′ ) (i.e., nodes from the same information set are owned by the same player and have the same sets of enabled actions) Given h ∈ H, we denote by I(h) the information set Ii,j containing h. Given an information set Ii,j, we denote by χ(Ii,j) the set of all actions enabled in some (and hence all) nodes of Ii,j. 146 Imperfect Information Games – Strategies Now we define the set of pure, mixed, and behavioral strategies in Gimp as subsets of pure, mixed, and behavioral strategies, resp., in Gperf that respect the information sets. Let Gimp = (Gperf , I) be an imperfect-information extensive-form game where Gperf = (N, A, H, Z, χ, ρ, π, h0, u). Definition 49 A pure strategy of player i in Gimp is a pure strategy si in Gperf such that for all j = 1, . . . , ki and all h, h′ ∈ Ii,j holds si(h) = si(h′ ). Note that each si can also be seen as a function si : Ii → A such that for every Ii,j ∈ Ii we have that si(Ii,j) ∈ χ(Ii,j). As before, we denote by Si the set of all pure strategies of player i in Gimp, and by S = S1 × · · · × Sn the set of all pure strategy profiles. As in the perfect-information case we have a corresponding strategic-form game ¯Gimp = (N, (Si)i∈N , (ui)i∈N). 147 Matching Pennies 1 h0 2 h1 (1, −1) H (−1, 1) T H 2 h2 (−1, 1) H (1, −1) T T I1 = {I1,1} where I1,1 = {h0} I2 = {I2,1} where I2,1 = {h1, h2} Example of pure strategies: ▶ s1(I1,1) = H which describes the strategy s1(h0) = H ▶ s2(I2,1) = T which describes the strategy s2(h1) = s2(h2) = T (it is also sufficient to specify s2(h1) = T since then s2(h2) = T) So we really have strategies H, T for player 1 and H, T for player 2. 148 Weird Example 1 h0 2 h1 (1, 2) K (2, 1) L A 2 h2 (3, 5) K (7, 1) L B 1 h3 (2, 5) A (11, 0) B (−4, 10) C C Note that I1 = {I1,1} where I1,1 = {h0, h3} and that I2 = {I2,1} where I2,1 = {h1, h2} What pure strategies are in this example? 149 SPE with Imperfect Information 1 h0 2 h1 h3 1 z1 (4, 1) C z2 (1, 4) ¯C B 1 h4 z3 (1, 4) C z4 (4, 1) ¯C ¯B A 2 h2 z5 (1, 1) D z6 (4, 5) ¯D ¯A What we designate as subgames to allow the backward induction? Only subtrees rooted in h1, h2, and h0 (together with all subtrees rooted in terminal nodes) Note that subtrees rooted in h3 and h4 cannot be considered as "independent" subgames because their individual solutions cannot be combined to a single best response in the information set {h3, h4}. 150 SPE with Imperfect Information Let Gimp = (Gperf , I) be an imperfect-information extensive-form game where Gperf = (N, A, H, Z, χ, ρ, π, h0, u) is the underlying perfect-information extensive-form game. Let us denote by Hproper the set of all h ∈ H that satisfy the following: For every h′ reachable from h, we have that either all nodes of I(h′ ) are reachable from h, or no node of I(h′ ) is reachable from h. Intuitively, h ∈ Hproper iff every information set Ii,j is either completely contained in the subtree rooted in h, or no node of Ii,j is contained in the subtree. Definition 50 For every h ∈ Hproper we define a subgame Gh imp to be the imperfect information game (Gh perf , Ih ) where Ih is the restriction of I to Hh . Note that as subgames of Gimp we consider only subgames of Gperf that respect the information sets, i.e., are rooted in nodes of Hproper . Definition 51 A strategy profile s ∈ S is a subgame perfect equilibrium (SPE) if sh is a Nash equilibrium in every subgame Gh imp of Gimp (here h ∈ Hproper ). 151 Backward Induction with Imperfect Info The backward induction generalizes to imperfect-information extensive-form games along the following lines: 1. As in the perfect-information case, the goal is to label each node h ∈ Hproper ∪ Z with a SPE sh and a vector of payoffs u(h) = (u1(h), . . . , un(h)) for individual players according to sh . 2. Starting with terminal nodes, the labeling proceeds bottom up. Terminal nodes are labeled similarly as in the perfect-inf. case. 3. Consider h ∈ Hproper , let K be the set of all h′ ∈ ( Hproper ∪ Z ) ∖ {h} that are h’s closest descendants out of Hproper ∪ Z. I.e., h′ ∈ K iff h′ h is reachable from h and the unique path from h to h′ visits only nodes of H ∖ Hproper (except the first and the last node). For every h′ ∈ K we have already computed a SPE sh′ in Gh′ imp and the vector of corresponding payoffs u(h′ ). 4. Now consider all nodes of K as terminal nodes where each h′ ∈ K has payoffs u(h′ ). This gives a new game in which we compute an equilibrium ¯sh together with the vector u(h). The equilibrium sh is then obtained by "concatenating" ¯sh with all sh′ , here h′ ∈ K, in the subgames Gh′ imp of Gh imp . 152 Mutually Assured Destruction Analysis of Cuban missile crisis of 1962 (as described in Games for Business and Economics by R. Gardner) ▶ The crisis started with United States’ discovery of Soviet nuclear missiles in Cuba. ▶ The USSR then backed down, agreeing to remove the missiles from Cuba, which suggests that US had a credible threat "if you don’t back off we both pay dearly". Question: Could this indeed be a credible threat? 153 Mutually Assured Destruction (Cont.) Model as an extensive-form game: ▶ First, player 1 (US) chooses to either ignore the incident (I), resulting in maintenance of status quo (payoffs (0, 0)), or escalate the situation (E). ▶ Following escalation by player 1, player 2 can back down (B), causing it to lose face (payoffs (10, −10)), or it can choose to proceed to a nuclear confrontation (N). ▶ Upon this choice, the players play a simultaneous-move game in which they can either retreat (R), or choose doomsday (D). ▶ If both retreat, the payoffs are (−5, −5), a small loss due to a mobilization process. ▶ If either of them chooses doomsday, then the world destructs and payoffs are (−100, −100). Find SPE in pure strategies. 154 Mutually Assured Destruction (Cont.) 1 h0 2 h1 h2 1 h3 2 (−5, −5) z1 R (−100, −100) z2 D R h4 2 (−100, −100) z3 R (−100, −100) z4 D D N (10, −10) z5 B E (0, 0) z6 I Solve G h2 imp (a strategic-form game). Then G h1 imp by solving a game rooted in h1 with terminal nodes h2, z5 (payoffs in h2 correspond to an equilibrium in G h2 imp ). Finally solve Gimp by solving a game rooted in h0 with terminal nodes h1, z6 (payoffs in h1 have been computed in the previous step). 155 Mixed and Behavioral Strategies Definition 52 A mixed strategy σi of player i in Gimp is a mixed strategy of player i in the corresponding strategic-form game ¯Gimp = (N, (Si)i∈N , ui). Do not forget that now si ∈ Si iff si is a pure strategy that assigns the same action to all nodes of every information set. Hence each si ∈ Si can be seen as a function si : Ii → A. As before, we denote by Σi the set of all mixed strategies of player i. Definition 53 A behavioral strategy of player i in Gimp is a behavioral strategy βi in Gperf such that for all j = 1, . . . , ki and all h, h′ ∈ Ii,j : βi(h) = βi(h′ ). Each βi can be seen as a function βi : Ii → ∆(A) such that for all Ii,j ∈ Ii we have supp(βi(Ii,j)) ⊆ χ(Ii,j). Are they equivalent as in the perfect-information case? 156 Example: Absent Minded Driver 1 0 L 1 5 L 1 R R Only one player: A driver who has to take a turn at a particular junction. There are two identical junctions, the first one leads to a wrong neighborhood where the driver gets completely lost (payoff 0), the second one leads home (payoff 5). If the driver misses both, there is a longer way home (payoff 1). The problem is that after missing the first turn, the driver forgets that he missed the turn. Behavioral strategy: β1(I1,1)(L) = 1 2 has the expected payoff 3 2 . No mixed strategy gives a larger payoff than 1 since no pure strategy ever reaches the terminal node with payoff 5. 157 Kuhn’s Theorem Player i has perfect recall in Gimp if the following holds: ▶ Every information set of player i (i.e., his own) intersects every path from the root h0 to a terminal node at most once. ▶ Every two paths from the root that end in the same information set of player i ▶ pass through the same information sets of player i, ▶ and in the same order, ▶ and in every such information set the two paths choose the same action. May, however, pass through different information sets of other players and other players may choose different actions along each of the paths! I.e. each information set J of player i determines the sequence of information sets of player i and actions taken by player i along any path reaching J. Theorem 54 (Kuhn, 1953) Assuming perfect recall, every mixed strategy can be translated to a behavioral strategy (and vice versa) so that the payoff for the resulting strategy is the same in any mixed profile. 158 Dynamic Games of Complete Information Repeated Games Finitely Repeated Games 159 Example – repeated prisoner’s dilemma C S C −5, −5 0, −20 S −20, 0 −1, −1 Imagine that the criminals are being arrested repeatedly. Can they somewhat reflect upon their experience in order to play "better"? In what follows we consider strategic-form games played repeatedly ▶ for finitely many rounds, the final payoff of each player will be the average of payoffs from all rounds ▶ infinitely many rounds, here we consider a discounted sum of payoffs and the long-run average payoff We analyze Nash equilibria and sub-game perfect equilibria. We stick with pure strategies only! 160 Finitely Repeated Games Let G = ({1, 2}, (S1, S2) , (u1, u2)) be a finite strategic-form game of two players. A T-stage game GT-rep based on G proceeds in T stages so that in a stage t ≥ 1, players choose a strategy profile st = (st 1 , st 2 ). After T stages, both players collect the average payoff ∑T t=1 ui(st ) / T. A history of length 0 ≤ t ≤ T is a sequence h = s1 · · · st ∈ St of t strategy profiles. Denote by H(t) the set of all histories of length t. A pure strategy for player i in a T-stage game GT-rep is a function τi : T−1∪ t=0 H(t) → Si which for every possible history chooses a next step for player i. Every strategy profile τ = (τ1, τ2) in GT-rep induces a sequence of pure strategy profiles wτ = s1 · · · sT in G so that st i = τi(s1 · · · st−1 ). Given a pure strategy profile τ in GT-rep such that wτ = s1 · · · sT , define the payoffs ui(τ) = ∑T t=1 ui(st ) / T. 161 Example C S C −5, −5 0, −20 S −20, 0 −1, −1 Consider a 3-stage game. Examples of histories: ϵ, (C, S), (C, S)(S, S), (C, S)(S, S)(C, C) Here the last one is terminal, obtained using τ1, τ2 s.t.: τ1(ϵ) = C, τ1((C, S)) = S, τ1((C, S)(S, S)) = C τ2(ϵ) = S, τ2((C, S)) = S, τ2((C, S)(S, S)) = C Thus w(τ1,τ2) = (C, S)(S, S)(C, C) u1(τ1, τ2) = (0 + (−1) + (−5))/3 = −2 u2(τ1, τ2) = (−20 + (−1) + (−5))/3 = −26/3 162 Finitely Repeated Games in Extensive-Form Every T-stage game GT-rep can be defined as an imperfect information extensive-form game. Define an imperfect-information extensive-form game Grep imp = (Grep perf , I) such that Grep perf = ({1, 2}, A, H, Z, χ, ρ, π, h0, u) where ▶ A = S1 ∪ S2 ▶ H = (S1 × S2)≤T ∪ (S1 × S2) ui(s∗ ) for all i ∈ N. Consider the following grim trigger for s using s∗ strategy profile τ = (τ1, τ2) in Girep where τi(s1 · · · sT ) =    si T = 0 si sℓ = s for all 1 ≤ ℓ ≤ T s∗ i otherwise Then for δ ≥ max i∈{1,2} maxs′ i ∈Si ui(s′ i , s−i) − ui(s) maxs′ i ∈Si ui(s′ i , s−i) − ui(s∗) we have that (τ1, τ2) is a SPE in Gδ irep and uδ i (τ) = ui(s). 176 Simple Folk Theorem – Example Consider the infinitely repeated game Girep based on the following game G: m f r M 4, 4 −1, 5 3, 0 F 5, −1 1, 1 0, 0 R 0, 3 0, 0 2, 2 NE in G : (F, f) Consider the grim trigger for (M, m) using (F, f), i.e., the profile (τ1, τ2) in Girep where ▶ τ1 : Plays M in a given stage if (M, m) was played in all previous stages, and plays F otherwise. ▶ τ2 : Plays m in a given stage if (M, m) was played in all previous stages, and plays f otherwise. This is a SPE in Gδ irep for all δ ≥ 1 4 . Also, ui(τ1, τ2) = 4 for i ∈ {1, 2}. Are there other SPE? Yes, a grim trigger for (R, r) using (F, f). This is a SPE in Gδ irep for δ ≥ 1 2 . 177 Tacit Collusion Consider the Cournot duopoly game model G = (N, (Si)i∈N , (ui)i∈N) ▶ N = {1, 2} ▶ Si = [0, κ] ▶ u1(q1, q2) = q1(κ − q1 − q2) − q1c1 = (κ − c1)q1 − q2 1 − q1q2 u2(q1, q2) = q2(κ − q2 − q1) − q2c2 = (κ − c2)q2 − q2 2 − q2q1 Assume for simplicity that c1 = c2 = c and denote θ = κ − c. If the firms sign a binding contract to produce only θ/4, their profit would be θ2 /8 which is higher than the profit θ2 /9 for playing the NE (θ/3, θ/3). However, such contracts are forbidden in many countries (including US). Is it still possible that the firms will behave selfishly (i.e. only maximizing their profits) and still obtain such payoffs? In other words, is there a SPE in the infinitely repeated game based on G (with a discount factor δ) which gives the payoffs θ2 /8 ? 178 Tacit Collusion Consider the Cournot duopoly game model G = (N, (Si)i∈N , (ui)i∈N) ▶ N = {1, 2} ▶ Si = [0, ∞) ▶ u1(q1, q2) = q1(κ − q1 − q2) − q1c1 = (κ − c1)q1 − q2 1 − q1q2 u2(q1, q2) = q2(κ − q2 − q1) − q2c2 = (κ − c2)q2 − q2 2 − q2q1 Assume for simplicity that c1 = c2 = c and denote θ = κ − c. Consider the grim trigger profile for (θ/4, θ/4) using (θ/3, θ/3) : Player i will ▶ produce qi = θ/4 whenever all profiles in the history are (θ/4, θ/4), ▶ whenever one of the players deviates, produce θ/3 from that moment on. Assuming that κ = 100 and c = 10 (which gives θ = 90), this is a SPE Gδ irep for δ ≥ 0.5294 · · · . It results in (θ/4, θ/4)(θ/4, θ/4) · · · with the discounted payoffs θ2 /8. 179 Dynamic Games of Complete Information Repeated Games Infinitely Repeated Games Long-Run Average Payoff and Folk Theorems 180 Infinitely Repeated Games & Average Payoff In what follows we assume that all payoffs in the game G are positive and that S is finite! Let τ = (τ1, τ2) be a strategy profile in the infinitely repeated game Girep such that wτ = s1 s2 · · · . Definition 59 We define a long-run average payoff for player i by u avg i (τ) = lim sup T→∞ 1 T T∑ t=1 ui(st ) (Here lim sup is necessary because τi may cause non-existence of the limit.) The lon-run average payoff u avg i (τ) is well-defined if the limit u avg i (τ) = limT→∞ 1 T ∑T t=1 ui(st ) exists. Given a strategic-form game G, we denote by G avg irep the infinitely repeated game based on G together with the long-run average payoff. 181 Infinitely Repeated Games & Average Payoff Definition 60 A strategy profile τ is a Nash equilibrium if u avg i (τ) is well-defined for all i ∈ N, and for every i and every τ′ i we have that u avg i (τi, τ−i) ≥ u avg i (τ′ i , τ−i) (Note that we demand existence of the defining limit of uavg i (τi, τ−i) but the limit does not have to exist for uavg i (τ′ i , τ−i).) Moreover, τ = (τ1, τ2) is a SPE in G avg irep if for every history h we have that (τh 1 , τh 2 ) is a Nash equilibrium. 182 Example Consider the infinitely repeated game based on Prisoner’s dilemma: C S C −5, −5 0, −20 S −20, 0 −1, −1 The grim trigger profile (τ1, τ2) where τi(s1 · · · sT ) =    S T = 0 S sℓ = (S, S) for all 1 ≤ ℓ ≤ T C otherwise is a SPE which gives the long-run average payoff −1 to each player. The intuition behind the grim trigger works as for the discounted payoff: Whenever a player i deviates, the player −i starts playing C for which the best response of player i is also C. So we obtain (S, S) · · · (S, S)(X, Y)(C, C)(C, C) · · · (here (X, Y) is either (C, S) or (S, C) depending on who deviates). Apparently, the long-run average payoff is −5 for both players, which is worse than −1. 183 Example Consider the infinitely repeated game based on Prisoner’s dilemma: C S C −5, −5 0, −20 S −20, 0 −1, −1 However, other payoffs can be supported by NE. Consider e.g. a strategy profile (τ1, τ2) such that ▶ Both players cyclically play as follows: ▶ 9 times (S, S) ▶ once (S, C) ▶ If one of the players deviates, then, from that moment on, both play (C, C) forever. Then (τ1, τ2) is also SPE. Apparently, u avg 1 (τ1, τ2) = 9 10 · (−1) + (−20)/10 = −29/10 and u avg 1 (τ1, τ2) = 9 10 (−1) = −9/10. Player 2 gets better payoff than from the "best" profile (S, S)! 184 Outline of the Folk Theorems The previous examples suggest that other (possibly all?) convex combinations of payoffs may be obtained by means of Nash equilibria. This observation forms a basis for a bunch of theorems, collectively called Folk Theorems. No author is listed since these theorems had been known in games community long before they were formalized. In what follows we prove several versions of Folk Theorem concerning achievable payoffs for repeated games. We consider the following variants: ▶ Long-run average payoffs & SPE ▶ Long-run average payoffs & Nash equilibria Note that similar theorems can be proved also for the discounted payoff. 185 Folk Theorems – Feasible Payoffs Definition 61 We say that a vector of payoffs v = (v1, v2) ∈ R2 is feasible if it is a convex combination of payoffs for pure strategy profiles in G with rational coefficients, i.e., if there are rational numbers βs, here s ∈ S, satisfying βs ≥ 0 and ∑ s∈S βs = 1 such that for both i ∈ {1, 2} holds vi = ∑ s∈S βs · ui(s) We assume that there is m ∈ N such that each βs can be written in the form βs = γs/m. The following theorems can be extended to a notion of feasible payoffs using arbitrary, possibly irrational, coefficients βs in the convex combination. Roughly speaking, this follows from the fact that each real number can be approximated with rational numbers up to an arbitrary error. However, the proofs are technically more involved. 186 Folk Theorems – Long-Run Average & SPE Theorem 62 Let s∗ be a pure strategy Nash equilibrium in G and let v = (v1, v2) be a feasible vector of payoffs satisfying vi ≥ ui(s∗ ) for both i ∈ {1, 2}. Then there is a strategy profile τ = (τ1, τ2) in Girep such that ▶ τ is a SPE in G avg irep ▶ u avg i (τ) = vi for i ∈ {1, 2} Proof: Consider a strategy profile τ = (τ1, τ2) in Girep which gives the following behavior: 1. Unless one of the players deviates, the players play cyclically all profiles s ∈ S so that each s is always played for γs rounds. 2. Whenever one of the players deviates, then, from that moment on, each player i plays s∗ i . It is easy to see that u avg i (τ) = vi. We verify that τ is SPE. 187 Folk Theorems – Long-Run Average & SPE Fix a history h, we show that τh = (τh 1 , τh 2 ) is a NE in G avg irep . ▶ If h does not contain any deviation from the cyclic behavior 1., then τh continues according to 1., thus u avg i (τh ) = vi. ▶ If h contains a deviation from 1., then wτh = s∗ s∗ · · · and thus u avg i (τh ) = ui(s∗ ). ▶ Now if a player i deviates from τh i to ¯τh i in G avg irep , then w(¯τh i ,τh −i ) = α(s1 i , s′ −i)(s2 i , s∗ −i)(s3 i , s∗ −i) · · · where α is a sequence of profiles following the cyclic behavior 1., s1 i , s2 i , . . . are strategies of Si and s′ −i is a strat. of S−i. However, then u avg i (¯τh i , τh −i ) ≤ ui(s∗ ) ≤ vi since s∗ is a Nash equilibrium and thus ui(sk i , s∗ −i ) ≤ ui(s∗ ) for all k ≥ 1. Intuitively, player −i punishes player i by playing s∗ −i . □ 188 Folk Theorems – Individually Rational Payoffs Definition 63 v = (v1, v2) ∈ R2 is individually rational if for both i ∈ {1, 2} holds vi ≥ min s−i ∈S−i max si ∈Si ui(si, s−i) That is, vi is at least as large as the value that player i may secure by playing best responses to the most hostile behavior of player −i. Example: L R U −2, 2 1, −2 M 1, −2 −2, 2 D 0, 1 2, 3 Here any (v1, v2) such that v1 ≥ 1 and v2 ≥ 2 is individually rational. 189 Folk Theorems – Long-Run Average & NE Theorem 64 Let v = (v1, v2) be a feasible and individually rational vector of payoffs. Then there is a strategy profile τ = (τ1, τ2) in Girep such that ▶ τ is a Nash equilibrium in G avg irep ▶ u avg i (τ) = vi for i ∈ {1, 2} Proof: It suffices to use a slightly modified strategy profile τ = (τ1, τ2) in Girep from Theorem 62: ▶ Unless one of the players deviates, the players play cyclically all profiles s ∈ S so that each s is always played for γs rounds. ▶ Whenever a player i deviates, the opponent −i plays a strategy smin −i ∈ argmins−i ∈S−i maxsi ∈Si ui(si, s−i). It is easy to see that u avg i (τ) = vi. If a player i deviates, then his long-run average payoff cannot be higher than mins−i ∈S−i maxsi ∈Si ui(si, s−i) ≤ vi, so τ is a NE. □ 190 Folk Theorems – Long-Run Average & NE Theorem 65 If a strategy profile τ = (τ1, τ2) is a NE in G avg irep , then ( u avg 1 (τ), u avg 2 (τ) ) is individually rational. Proof: Suppose that ( u avg 1 (τ), u avg 2 (τ) ) is not individually rational. W.l.o.g. assume that u avg 1 (τ) < mins2∈S2 maxs1∈S1 u1(s1, s2). Now let us consider a new strategy ¯τ1 such that for every history h the pure strategy ¯τ1(h) is a best response to τ2(h). But then, for every history h, we have u1(¯τ1(h), τ2(h)) ≥ min s2∈S2 max s1∈S1 u1(s1, s2) > u avg 1 (τ) So clearly u avg 1 (¯τ1, τ2) > u avg 1 (τ) which contradicts the fact that (τ1, τ2) is a NE. □ Note that if irrational convex combinations are allowed in the definition of feasibility, then vectors of payoffs for Nash equilibria in Gavg irep are exactly feasible and individually rational vectors of payoffs. Indeed, the coefficients βs in the definition of feasibility are exactly frequencies with which the individual profiles of S are played in the NE. 191 Folk Theorems – Summary ▶ We have proved that "any reasonable" (i.e. feasible and individually rational) vector of payoffs can be justified as payoffs for a Nash equilibrium in G avg irep (where the future has "an infinite weight"). ▶ Concerning SPE, we have proved that any feasible vector of payoffs dominating a Nash equilibrium in G can be justified as payoffs for SPE in G avg irep . This result can be generalized to arbitrary feasible and strictly individually rational payoffs by means of a more demanding construction. ▶ For discounted payoffs, one can prove that an arbitrary feasible vector of payoffs strictly dominating a Nash equilibrium in G can be approximated using payoffs for SPE in Gδ irep as δ goes to 1. Even this result can be extended to feasible and strictly individually rational payoffs. For a very detailed discussion of Folk Theorems see "A Course in Game Theory" by M. J. Osborne and A. Rubinstein. 192 Summary of Extensive-Form Games We have considered extensive-form games (i.e., games on trees) ▶ with perfect information ▶ with imperfect information We have considered pure strategies, mixed strategies and behavioral strategies (Kuhn’s theorem). We have considered Nash equilibria (NE) and subgame perfect equilibria (SPE) in pure strategies. 193 Summary of Extensive-Form Games (Cont.) For perfect information we have shown that ▶ there always exists a pure strategy SPE ▶ SPE can be computed using backward induction in polynomial time For imperfect information the following holds: ▶ The backward induction can be used to propagate values through "perfect information nodes", but "imperfect information parts" have to be solved by different means ▶ Solving imperfect information games is at least as hard as solving games in strategic-form; however, even in the zero-sum case, most decision problems are NP-hard. 194 Summary of Extensive-Form Games (Cont.) Finally, we discussed repeated games. We considered both, finitely as well as infinitely repeated games. For finitely repeated games we considered the average payoff and discussed existence of pure strategy NE and SPE with respect to existence of NE in the original strategic-form game. For infinitely repeated games we considered both ▶ discounted payoff: We have formulated and applied a simple folk theorem: "grim trigger" strategy profiles can be used to implement any vector of payoffs strictly dominating payoffs for a Nash equilibrium in the original strategic-form game. ▶ long-run average payoff: We have proved that all feasible and individually rational vectors of payoffs can be achieved by Nash equilibria (a variant of grim trigger). 195 Games of INcomplete Information Bayesian Games Auctions 196 Auctions The (General) problem: How to allocate (discrete) resources among selfish agents in a multi-agent system? Auctions provide a general solution to this problem. As such, auctions have been heavily used in real life, in consumer, corporate, as well as government settings: ▶ eBay, art auctions, wine auctions, etc. ▶ advertising (Google adWords) ▶ governments selling public resources: electromagnetic spectrum, oil leases, etc. ▶ · · · Auctions also provide a theoretical framework for understanding resource allocation problems among self-interested agents: Formally, an auction is any protocol that allows agents to indicate their interest in one or more resources and that uses these indications to determine both the resource allocation and payments of the agents. 197 Auctions: Taxonomy Auctions may be used in various settings depending on the complexity of the resource allocation problem: ▶ Single-item auctions: Here n bidders (players) compete for a single indivisible item that can be allocated to just one of them. Each bidder has his own private value of the item in case he wins (gets zero if he loses). Typically (but not always) the highest bid wins. How much should he pay? ▶ Multiunit auctions: Here a fixed number of identical units of a homogeneous commodity are sold. Each bidder submits both a number of units he demands and a unit price he is willing to pay. Here also the highest bidders typically win, but it is unclear how much they should pay (pay-as-bid vs uniform pricing) ▶ Combinatorial auctions: Here bidders compete for a set of distinct goods. Each player has a valuation function which assigns values to subsets of the set (some goods are useful only in groups etc.) Who wins and what he pays? (We mostly concentrate on the single-item auctions.) 198 Single Unit Auctions There are many single-item auctions, we consider the following well-known versions: ▶ open auctions: ▶ The English Auction: Often occurs in movies, bidders are sitting in a room (by computer or a phone) and the price of the item goes up as long as someone is willing to bid it higher. Once the last increase is no longer challenged, the last bidder to increase the price wins the auction and pays the price for the item. ▶ The Dutch Auction: Opposite of the English auction, the price starts at a prohibitively high value and the auctioneer gradually drops the price. Once a bidder shouts "buy", the auction ends and the bidder gets the item at the price. ▶ sealed-bid-auction: ▶ k-th price Sealed-Bid Auction: Each bidder writes down his bid and places it in an envelope; the envelopes are opened simultaneously. The highest bidder wins and then pays the k-th maximum bid. (In a reverse auction it is the k-the minimum.) The most prominent special cases are The First-Price Auction and The Second-Price Auction. 199 Single Unit Auctions (Cont.) Observe that ▶ the English auction is essentially equivalent to the second price auction if the increments in every round are very small. There exists a "continuous" version, called Japanese auction, where the price continuously increases. Each bidder may drop out at any time. The last one who stays gets the item for the current price (which is the dropping price of the "second highest bid"). ▶ similarly, the Dutch auction is equivalent to the first price auction. Note that the bidder with the highest bid stops the decrement of the price and buys at the current price which corresponds to his bid. Now the question is, which type of auction is better? 200 Objectives The goal of the bidders is clear: To get the item at as low price as possible (i.e., they maximize the difference between their private value and the price they pay) We consider self-interested non-communicating bidders that are rational and intelligent. There are at least two goals that may be pursued by the auctioneer (in various settings): ▶ Revenue maximization ▶ Incentive compatibility: We want the bidders to spontaneously bid their true value of the item This means, that such an auction cannot be strategically manipulated by lying. 201 Auctions vs Games Consider single-item sealed-bid auctions as strategic form games: G = (N, (Bi)i∈N , (ui)i∈N) where ▶ The set of players N is the set of bidders ▶ Bi = [0, ∞) where each bi ∈ Bi corresponds to the bid bi (We follow the standard notation and use bi to denote pure strategies (bids)) ▶ To define ui, we assume that each bidder has his own private value vi of the item, then given bids b = (b1, . . . , bn) : First Price: ui(b) =    vi − bi if bi > maxj i bj 0 otherwise Second Price: ui(b) =    vi − maxj i bj if bi > maxj i bj 0 otherwise Is this model realistic? Not really, usually, the bidders are not perfectly informed about the private values of the other bidders. Can we use (possibly imperfect information) extensive-form games? 202 Incomplete Information Games A (strict) incomplete information game is a tuple G = (N, (Ai)i∈N , (Ti)i∈N , (ui)i∈N) where ▶ N = {1, . . . , n} is a set of players, ▶ Each Ai is a set of actions available to player i, We denote by A = ∏n i=1 Ai the set of all action profiles a = (a1, . . . , an). ▶ Each Ti is a set of possible types of player i, Denote by T = ∏n i=1 Ti the set of all type profiles t = (t1, . . . , tn). ▶ ui is a type-dependent payoff function ui : A1 × · · · × An × Ti → R Given a profile of actions (a1, . . . , an) ∈ A and a type ti ∈ Ti, we write ui(a1, . . . , an; ti) to denote the corresponding payoff. A pure strategy of player i is a function si : Ti → Ai. As before, we denote by Si the set of all pure strategies of player i, and by S the set of all pure strategy profiles ∏n i=1 Si. 203 Dominant Strategies ▶ A pure strategy si very weakly dominates s′ i if for every ti ∈ Ti the following holds: For all a−i ∈ A−i we have ui(si(ti), a−i; ti) ≥ ui(s′ i (ti), a−i; ti) ▶ A pure strategy si weakly dominates s′ i si if for every ti ∈ Ti satisfying si(ti) s′ i (ti) the following holds: For all a−i ∈ A−i we have ui(si(ti), a−i; ti) ≥ ui(s′ i (ti), a−i; ti) and the inequality is strict for at least one a−i (Such a−i may be different for different ti.) ▶ A pure strategy si strictly dominates s′ i si if for every ti ∈ Ti satisfying si(ti) s′ i (ti) the following holds: For all a−i ∈ A−i we have ui(si(ti), a−i; ti) > ui(s′ i (ti), a−i; ti) Definition 66 si is (very weakly, weakly, strictly) dominant if it (very weakly, weakly, strictly, resp.) dominates all other pure strategies. 204 Nash Equilibrium In order to generalize Nash equilibria to incomplete information games, we use the following notation: Given a pure strategy profile (s1, . . . , sn) ∈ S and a type profile (t1, . . . , tn) ∈ T, for every player i write s−i(t−i) = (s1(t1), . . . , si−1(ti−1), si+1(ti+1), . . . , sn(tn)) Definition 67 A strategy profile s = (s1, . . . , sn) ∈ S is an ex-post-Nash equilibrium if for every t1, . . . , tn we have that (s1(t1), . . . , sn(tn)) is a Nash equilibrium in the strategic-form game defined by the ti’s. Formally, s = (s1, . . . , sn) ∈ S is an ex-post-Nash equilibrium if for all i ∈ N and all t1, . . . , tn and all ai ∈ Ai : ui(s1(t1), . . . , sn(tn); ti) ≥ ui(ai, s−i(t−i); ti) 205 Example: Single-Item Sealed-Bid Auctions Consider single-item sealed-bid auctions as strict incomplete information games: G = (N, (Bi)i∈N , (Vi)i∈N , (ui)i∈N) where ▶ The set of players N is the set of bidders ▶ Bi = [0, ∞) where each action bi ∈ Bi corresponds to the bid bi ▶ Vi = [0, ∞) where each type vi ∈ Vi corresponds to the private value vi ▶ Let vi ∈ Vi be the type of player i (i.e. his private value), then given an action profile b = (b1, . . . , bn) (i.e. bids) we define First Price: ui(b; vi) =    vi − bi if bi > maxj i bj 0 otherwise. Second Price: ui(b; vi) =    vi − maxj i bj if bi > maxj i bj 0 otherwise. Note that if there is a tie (i.e., there are k ℓ such that bk = bℓ = maxj bj), then all players get 0. Are there dominant strategies? Are there ex-post-Nash equilibria? 206 Second-Price Auction For every i, we denote by vi the pure strategy si for player i defined by si(vi) = vi. Intuitively, such a strategy is truth telling, which means that the player bids his own private value truthfully. Theorem 68 Assume the Second-Price Auction. Then for every player i we have that vi is a weakly dominant strategy. So v is also an ex-post-Nash equilibrium. Proof. Let us fix a private value vi and a bid bi ∈ Bi such that bi vi. We show that for all bids of opponents b−i ∈ B−i : ui(vi, b−i; vi) ≥ ui(bi, b−i; vi) with the strict inequality for at least one b−i. Intuitively, assume that player i bids bi against b−i and compare his payoff with the payoff he obtains by playing vi against b−i. There are two cases to consider: bi < vi and bi > vi. 207 Second-Price Auction (Cont.) Case bi < vi : We distinguish three sub-cases depending on b−i. A. If bi > maxj i bj, then ui(bi, b−i; vi) = vi − max j i bj = ui(vi, b−i; vi) Intuitively, player i wins and pays the price maxj i bj < bi. However, then bidding vi, player i wins and pays maxj i bj as well. B. If there is k i such that bk > maxj k bj, then ui(bi, b−i; vi) = 0 ≤ ui(vi, b−i; vi) Moreover, if bi < bk < vi, then we get the strict inequality ui(bi, b−i; vi) = 0 < vi − bk = ui(vi, b−i; vi) Intuitively, if another player k wins, then player i gets 0 and increasing bi to vi does not hurt. Moreover, if bi < bk < vi, then increasing bi to vi strictly increases the payoff of player i. C. If there are k ℓ such that bk = bℓ = maxj bj, then ui(bi, b−i; vi) = 0 ≤ ui(vi, b−i; vi) Intuitively, there is a tie in (bi, b−i) and hence all players get 0. 208 Second-Price Auction (Cont.) Case bi > vi : We distinguish four sub-cases depending on b−i. A. If bi > maxj i bj > vi, then ui(bi, b−i; vi) = vi − max j i bj < 0 = ui(vi, b−i; vi) So in this case the inequality is strict. B. If bi > vi ≥ maxj i bj, then ui(bi, b−i; vi) = vi − max j i bj = ui(vi, b−i; vi) Note that this case also covers vi = maxj i bj where decreasing bi to vi causes a tie with zero payoff for player i. C. If there is k i such that bk > maxj k bj > vi, then ui(bi, b−i; vi) = 0 = ui(vi, b−i; vi) D. If there are k k′ such that bk = bk′ = maxj bj > vi, then ui(bi, b−i; vi) = 0 = ui(vi, b−i; vi) 209 First-Price Auction Consider the First-Price Auction. Here the highest bidder wins and pays his bid. Let us impose a (reasonable) assumption that no player bids more than his private value. Question: Are there any dominant strategies? Answer: No, to obtain a contradiction, assume that si is a very weakly dominant strategy. Intuitively, if player i wins against some bids of his opponents, then his bid is strictly higher than bids of all his opponents. Thus he may slightly decrement his bid and still win with a better payoff. Formally, assume that all opponents bid 0, i.e., bj = 0 for all j i, and consider vi > 0. If si(vi) > 0, then ui(si(vi), b−i; vi) = vi − si(vi) < vi − si(vi)/2 = ui(si(vi)/2, b−i; vi) If si(vi) = 0, then ui(si(vi), b−i; vi) = 0 < vi/2 = ui(vi/2, b−i; vi) Hence, si cannot be weakly dominant. 210 First-Price Auction (Cont.) Question: Is there a pure strategy Nash equilibrium? Answer: No, assume that (s1, . . . , sn) is a Nash equilibrium. Consider 0 < v1 < · · · < vn−1 and define M := max { si(vi) | i = 1, . . . , n − 1 } Consider vn = M + 1. If player n wins, i.e., sn(vn) > M, then un(sn(vn), s−n(v−n); vn) = vn − sn(vn) < vn − (sn(vn) − ε) = un(sn(vn) − ε, s−n(v−n); vn) for ε > 0 small enough to satisfy sn(vn) − ε > M (i.e., player n may help himself by decreasing the bid a bit) If player n does not win, i.e., sn(vn) ≤ M < M + 1 = vn, then for ε = 1 2 un(sn(vn), s−n(v−n); vn) = 0 < ε = un(vn − ε, s−n(v−n); vn) (i.e., player n can help himself by playing vn − 1 2 ) 211 Summary Second Price Auction: ▶ There is an ex-post Nash equilibrium in weakly dominant strategies ▶ It is incentive compatible (players are self-motivated to bid their private values) First Price Auction: ▶ There are neither dominant strategies, nor ex-post Nash equilibria Question: Can we modify the model in such a way that First Price Auction has a solution? Answer: Yes, give the players at least some information about private values of other players. 212 Bayesian Games A Bayesian Game G = (N, (Ai)i∈N , (Ti)i∈N , (ui)i∈N , P) where (N, (Ai)i∈N , (Ti)i∈N , (ui)i∈N) is a strict incomplete information game and P is a distribution on types, i.e., ▶ N = {1, . . . , n} is a set of players, ▶ Ai is a set of actions available to player i, ▶ Ti is a set of possible types of player i, Recall that T = ∏n i=1 Ti is the set of type profiles, and that A = ∏n i=1 Ai is the set of action profiles. ▶ ui is a type-dependent payoff function ui : A1 × · · · × An × Ti → R ▶ P is a (joint) probability distribution over T called common prior. Formally, P is a probability measure over an appropriate measurable space on T. However, I will not go into measure theory and consider only two special cases: finite T (in which case P : T → [0, 1] so that ∑ t∈T P(t) = 1) and Ti = R for all i (in which case I assume that P is determined by a (joint) density function p on Rn ). 213 Bayesian Games: Strategies & Payoffs A play proceeds as follows: ▶ First, a type profile (t1, . . . , tn) ∈ T is randomly chosen according to P. ▶ Then each player i learns his type ti. (It is a common knowledge that every player knows his own type but not the types of other players.) ▶ Each player i chooses his action based on ti. ▶ Each player receives his payoff ui(a1, . . . , an; ti). A pure strategy for player i is a function si : Ti → Ai. As before, we use S to denote the set of pure strategy profiles. 214 Properties ▶ We assume that ui depends only on ti and not on t−i. This is called private values model and can be used to model auctions. This model can be extended to common values by using ui(a1, . . . , an; t1, . . . , tn). ▶ We assume the common prior P. This means that all players have the same beliefs about the type profile. This assumption is rather strong. More general models allow each player to have ▶ his own individual beliefs about types ▶ ... his own beliefs about beliefs about types ▶ .... beliefs about beliefs about beliefs about types ▶ ..... ▶ (we get an infinite hierarchy) There is a generic result of Harsanyi saying that the hierarchy is not necessary: It is possible to extend the type space in such a way that each player’s "extended type" describes his original type as well as all his beliefs. 215 Example: Battle of Sexes Assume that player 1 may suspect that player 2 is angry with him/her (the choice is yours) but cannot be sure. In other words, there are two types of player 2 giving two different games. Formally we have a Bayesian Game G = (N, (Ai)i∈N , (Ti)i∈N , (ui)i∈N , P) where ▶ N = {1, 2} ▶ A1 = A2 = {F, O} ▶ T1 = {t1} and T2 = {t1 2 , t2 2 } ▶ The payoffs are given by t1 2 t2 2 t1 : F O F 2, 1 0, 0 O 0, 0 1, 2 F O F 2, 0 0, 2 O 0, 1 1, 0 ▶ P(t1 2 ) = P(t2 2 ) = 1 2 216 Example: Single-Item Sealed-Bid Auctions Consider single-item sealed-bid auctions as Bayesian games: G = (N, (Bi)i∈N , (Vi)i∈N , (ui)i∈N , P) where ▶ The set of players N = {1, . . . , n} is the set of bidders ▶ Bi = [0, ∞) where each action bi ∈ Bi corresponds to the bid ▶ Vi = R where each type vi corresponds to the private value ▶ Let vi ∈ Vi be the type of player i (i.e. his private value), then given an action profile b = (b1, . . . , bn) (i.e. bids) we define First Price: ui(b; vi) =    vi − bi if bi > maxj i bj 0 otherwise. Second Price: ui(b; vi) =    vi − maxj i bj if bi > maxj i bj 0 otherwise. ▶ P is a probability distribution of the private values such that P(v ∈ [0, ∞)n ) = 1. For example, we may (and will) assume that each vi is chosen independently and uniformly from [0, vmax] where vmax is a given number. Then P is uniform on [0, vmax]n . 217 Finite-Type Bayesian Games: Payoffs For now, let us assume that each player has only finitely many types, i.e., T is finite. Given a type profile t = (t1, . . . , tn), we denote by P(t−i | ti) the conditional probability that the opponents of player i have the type profile t−i conditioned on player i having ti, i.e., P(t−i | ti) := P(ti, t−i) ∑ t′ −i P(ti, t′ −i ) Intuitively, P(t−i | ti) is the maximum information player i may squeeze out of P about possible types of other players once he learns his own type ti. Given a pure strategy profile s = (s1, . . . , sn) and a type ti ∈ Ti of player i the expected payoff for player i is ui(s; ti) = ∑ t−i∈T−i P(t−i | ti) · ui(s1(t1), . . . , sn(tn); ti) (this is the conditional expectation of ui assuming the type ti of player i; the continuous case is treated similarly, just substitute a density f for P.) 218 Example: Battle of Sexes t1 2 t2 2 t1 : F O F 2, 1 0, 0 O 0, 0 1, 2 F O F 2, 0 0, 2 O 0, 1 1, 0 P(t1 2 ) = P(t2 2 ) = 1 2 Consider strategies s1 of player 1 and s2 of player 2 defined by ▶ s1(t1) = F ▶ s2(t1 2 ) = F and s2(t2 2 ) = O Then ▶ u1(s1, s2; t1) = 1 2 · 2 + 1 2 · 0 = 1 ▶ u2(s1, s2; t1 2 ) = 1 and u2(s1, s2; t2 2 ) = 2 219 Infinite-Type Bayesian Games: Payoffs Example: First-Price Auction Consider the first-price auction as a Bayesian game where the types of players are chosen uniformly and independently from [0, vmax]. Consider a pure strategy profile v = (v1/2, . . . , vn/2) (i.e., each player i plays vi/2). What is ui(v; vi) ? ui(v; vi) = P(player i wins) · vi/2 + P(player i loses) · 0 = P(all players except i bid less than vi) · vi/2 = ( vi vmax )n−1 · vi/2 = vn i 2vn−1 max 220 Risk Aversion We assume that players maximize their expected payoff. Such players are called risk neutral. In general, there are three kinds of players that can be described using the following experiment. A player can choose between two possibilities: Either get $50 surely, or get $100 with probability 1 2 and 0 with probability 1 2 . ▶ risk neutral person has no preference ▶ risk averse person prefers the first alternative ▶ risk seeking person prefers the second one 221 Dominance and Nash Equilibria A pure strategy si weakly dominates s′ i si if for every ti ∈ Ti satisfying si(ti) s′ i (ti) the following holds: For all s−i ∈ S−i we have ui(si, s−i; ti) ≥ ui(s′ i , s−i; ti) and the inequality is strict for at least one s−i. The other modes of dominance are defined analogously. Dominant strategies are defined as usual. Definition 69 A pure strategy profile s = (s1, . . . , sn) ∈ S in the Bayesian game is a pure strategy Bayesian Nash equilibrium if for each player i and each type ti ∈ Ti of player i and every strategy s′ i ∈ Si we have that ui(si, s−i; ti) ≥ ui(s′ i , s−i; ti) 222 Example: Battle of Sexes t1 2 t2 2 t1 : F O F 2, 1 0, 0 O 0, 0 1, 2 F O F 2, 0 0, 2 O 0, 1 1, 0 P(t1 2 ) = P(t2 2 ) = 1 2 Use the following notation: (X, (Y, Z)) means that player 1 plays X ∈ {F, O}, and player 2 plays Y ∈ {F, O} if his/her type is t1 2 and Z ∈ {F, O} otherwise. Are there pure strategy Bayesian Nash equilibria? (F, (F, O)) is a Bayesian NE. Even though O is preferred by player 2, the outcome (O, O) cannot occur with a positive probability in any BNE. ▶ To ever meet at the opera, player 1 needs to play O. ▶ The unique best response of player 2 to O is (O, F) ▶ But (O, (O, F)) is not a BNE: ▶ The expected payoff of player 1 at (O, (O, F)) is 1 2 ▶ The expected payoff of player 1 at (F, (O, F)) is 1 223 Second Price Auction Consider the second-price sealed-bid auction as a Bayesian game where the types of players are chosen according to an arbitrary distribution. Proposition 4 In a second-price sealed-bid auction, with any probability distribution P, the truth revealing profile of bids, i.e., v = (v1, . . . , vn), is a weakly dominant strategy profile. Proof. The exact same proof as for the strict incomplete information games. Indeed, we do not need to assume that the players have a common prior for this! □ 224 First Price Auction Consider the first-price sealed-bid auction as a Bayesian game with some prior distribution P. Note that bidding truthfully does not have to be a dominant strategy. For example, if player i knows that (with high probability) his value vi is much larger than maxj i vj, he will not waste money and bid less than vi. So is there a pure strategy Bayesian Nash equilibrium? Proposition 5 Assume that for all players i the type of player i is chosen independently and uniformly from [0, vmax]. Consider a pure strategy profile s = (s1, . . . , sn) where si(vi) = n−1 n vi for every player i and every value vi. Then s is a Bayesian Nash equilibrium. 225 Expected Revenue Consider the first and second price sealed-bid auctions. For simplicity, assume that the type of each player is chosen independently and uniformly from [0, 1]. What is the expected revenue of the auctioneer from these two auctions when the players play the corresponding Bayesian NE? ▶ In the first-price auction, players bid n−1 n vi. Thus the probability distribution of the revenue is F(x) = P(max j n − 1 n vj ≤ x) = P(max j vj ≤ nx n − 1 ) = ( nx n − 1 )n It is straightforward to show that then the expected maximum bid in the first-price auction (i.e., the revenue) is n−1 n+1 . ▶ In the second-price auction, players bid vi. However, the revenue is the expected second largest value. Thus the distribution of the revenue is F(x) = P(max j vj ≤ x) + n∑ i=1 P(vi > x and for all j i, vj ≤ x) Amazingly, this also gives the expectation n−1 n+1 . 226 Revenue Equivalence (Cont.) The result from the previous slide is a special case of a rather general revenue equivalence theorem, first proved by Vickrey (1961) and then generalized by Myerson (1981). Both Vickrey and Myerson were awarded Nobel Prize in economics for their contribution to the auction theory. Theorem 70 (Revenue Equivalence) Assume that each of n risk-neutral players has independent private values drawn from a common cumulative distribution function F(x) which is continuous and strictly increasing on an interval [vmin, vmax] (the probability of vi [vmin, vmax] is zero). Then any efficient auction mechanism in which any player with value vmin has an expected payoff zero yields the same expected revenue. Here efficient means that the auction has a symmetric and increasing Bayesian Nash equilibrium and always allocates the item to the player with the highest bid. 227 Bayesian Games – Nature & Common Values A Bayesian Game (with nature and common values) consists of ▶ a set of players N = {1, . . . , n}, ▶ a set of states of nature Ω, ▶ a set of actions Ai available to player i, ▶ a set of possible types Ti of player i, ▶ a type function τi : Ω → Ti assigning a type of player i to every state of nature, ▶ a payoff function ui for every player i ui : A1 × · · · × An × Ti → R ▶ P is a probability distribution over Ω called common prior. As before, a pure strategy for player i is a function si : Ti → Ai. 228 Bayesian Games – Nature & Common Values Given a pure strategy si of player i and a state of nature ω ∈ Ω, we denote by si(ω) the action si(τi(ω)) chosen by player i when the state is ω. We denote by s(ω) the action profile (s1(τ1(ω)), . . . , sn(τn(ω))). Given a set A ⊆ Ω of states of nature and a type ti ∈ Ti of player i, we denote by P(A | ti) the conditional probability of A conditioned on the type ti of player i. We define the expected payoff for player i by ui(s1, . . . , sn; ti) = Eω∼P [ui(s(ω); ω) | τi(ω) = ti] Here the right hand side is the expected payoff of player i with respect to the probability distribution P conditioned on his type ti. Definition 71 A pure strategy profile s = (s1, . . . , sn) ∈ S in the Bayesian game is a pure strategy Bayesian Nash equilibrium if for each player i and each type ti ∈ Ti of player i and every action ai ∈ Ai we have that ui(si, s−i; ti) ≥ ui(ai, s−i; ti) 229 Adverse Selection ▶ A firm C is taking over a firm D. ▶ The true value d of D is not known to C, assume that it is uniformly distributed on [0, 1]. This is of course a bit artificial, more precise analysis can be done with a different distribution. ▶ It is known that D’s value will flourish under C’s ownership: it will rise to λd where λ > 1. ▶ All of the above is a common knowledge. Let us model the situation as a Bayesian game (with common values). 230 Adverse Selection (Cont.) ▶ N = {C, D} ▶ Ω = [0, 1] where d ∈ Ω expresses the true value of D. ▶ AC = [0, 1] where c ∈ AC expresses how much is the firm C willing to pay for the firm D AD = {yes, no} (sell or not to sell). ▶ TC = {t1} (a trivial type) and TD = Ω = [0, 1]. ▶ uC (c, yes; d) = λd − c and uC (c, no; d) = 0 uD(c, yes; d) = c and uD(c, no; d) = d ▶ P is the uniform distribution on [0, 1]. Is there a BNE? 231 Adverse Selection (Cont.) What is the best response of firm D to an action c ∈ [0, 1] of firm C? Such a best response must satisfy: ▶ say yes if d < c ▶ say no if d > c So the expected value of the firm D (in the eyes of C) assuming that D says yes is c/2. Therefore, the expected payoff of A is λ(c/2) − c = c ( λ 2 − 1 ) which is negative for λ ≤ 2. So it is not profitable (on average) for the firm C to buy unless the target D more than doubles in value after the takeover! 232 Committe Voting Consider a very simple model of a jury made up of two players (jurors) who must collectively decide whether to acquit (A), or to convict (C) a defendant who can be either guilty (G) of innocent (I). Each player casts a sealed vote (A or C), and the defendant is convicted if and only if both vote C. A prior probability that the defendant is guilty is q > 1 2 and is common knowledge (i.e., P(G) = q). Assume that each player gets payoff 1 for a right decision and 0 for incorrect decision. We consider risk neutral players who maximize their expected payoff. We may model this situation using a strategic-form game: A C A 1 − q, 1 − q 1 − q, 1 − q C 1 − q, 1 − q q, q Is there a dominant strategy? 233 Committee Voting (Cont.) Let’s make things a bit more complicated. Assume that each juror, when observing the evidence, gets a private signal ti ∈ {θG, θI} that contains a valuable piece of information. That is if the defendant is guilty, θG is more probable, if innocent, θI is more probable. For i ∈ {1, 2} : P(ti = θG | G) = P(ti = θI | I) = p > 1 2 P(ti = θG | I) = P(ti = θI | G) = 1 − p < 1 2 We also assume that the players get their signals independently conditional on the defendants condition: P(t1 = θX ∧ t2 = θY | Z) = P(t1 = θX | Z) · P(t2 = θY | Z) for all X, Y, Z ∈ {G, I}. 234 Committe Voting (Cont.) We obtain a Bayesian game: ▶ N = {1, 2} ▶ A1 = A2 = {A, C} ▶ Ω = {(Z, θX , θY ) | Z, X, Y ∈ {G, I}} ▶ T1 = T2 = {θG, θI} ▶ τ1(Z, θX , θY ) = θX and τ2(Z, θX , θY ) = θY ▶ For arbitrary U, V, X, Y ∈ {G, I} we have that ui(U, V; (G, θX , θY )) =    1 if U = V = C, 0 otherwise. ui(U, V; (I, θX , θY )) =    0 if U = V = C, 1 otherwise. ▶ P(Z, θX , θX ) = P(Z)P(t1 = θX | Z)P(t2 = θY | Z) I.e., P(Z, θX , θY ) is the probability of choosing (Z, θX , θY ) as follows: First, Z ∈ {G, I} is randomly chosen (Z = G has probability q). Then, conditioned on Z, θX and θY are independently chosen. 235 Committee Voting (Cont.) Now consider just one player i. If the player i would be able to decide by himself, how does his decision depend on his type ti ∈ {θG, θI}? If ti = θG, then how probable is that the defendant is guilty? P(G | ti = θG) = P(ti = θG | G)P(G) P(ti = θG) = pq qp + (1 − q)(1 − p) > q so that the posterior probability of G is even higher. If θI is received, then how probable is that the defendant is guilty? P(G | ti = θI) = P(ti = θI | G)P(G) P(ti = θI) = (1 − p)q q(1 − p) + (1 − q)p < q which means, clearly, that the player is less sure about G. In particular, player i chooses I instead of G if P(G | ti = θI) = q(1 − p) q(1 − p) + (1 − q)p < 1 2 which holds iff p > q. 236 Committee Voting (Cont.) So if p > q each player would choose to vote according to his signal. Denote by XY the strategy of player i in which he chooses X if ti = θG and Y if ti = θI. Question: Is (CA, CA) BNE assuming that p > q ? u1(CA, CA; θI) = P(I | t1 = θI) = P(I | t1 = θI ∧ t2 = θG)P(t2 = θG | t1 = θI) + P(I | t1 = θI ∧ t2 = θI)P(t2 = θI | t1 = θI) u1(CC, CA; θI) = P(G ∧ t2 = θG | t1 = θI) + P(I ∧ t2 = θI | t1 = θI) = P(G | t1 = θI ∧ t2 = θG)P(t2 = θG | t1 = θI) + P(I | t1 = θI ∧ t2 = θI)P(t2 = θI | t1 = θI) Intuitively, if player 2 chooses A, then the decision of player 1 does not have any impact. On the other hand, if player 2 chooses C, then the decision is, in fact, up to player 1 (we say that he is pivotal). 237 Committee Voting (Cont.) So what is the probability that the defendant is guilty assuming that the vote of player 1 counts? That is, assuming t2 = θG and t1 = θI ? P(G | t1 = θI ∧ t2 = θG) = P(t1 = θI ∧ t2 = θG | G)P(G) P(t1 = θI ∧ t2 = θG) = (1 − p)pq p(1 − p) = q > 1 2 > (1 − q) = P(I | t1 = θI ∧ t2 = θG) which means that player 1 is more convinced that the defendant is guilty contrary to the signal! This means that even though individual decision would be "innocent", taking into account that the vote should have some value gives "guilty". Hence u1(CA, CA; θI) < u1(CC, CA; θI) and thus playing CC is a better response to CA. By the way, is (CC, CA) a BNE? 238 Winner’s Curse An auction for a new oil field (of unknown size), assume only two firms competing (two players). The field is either small (worth $10 million), medium (worth $20 million), large (worth $30 million). That is, the real value v of the field satisfies v ∈ {10, 20, 30}. Assume a prior information about the size of the filed: P(v = 10) = P(v = 30) = 1 4 P(v = 20) = 1 2 The government is selling the field in the second-price sealed-bid auction, so that in the case of a tie, the winner is chosen randomly (and pays his bid). That is, in effect, in case of a tie, the payoff of each player is (vi − bi)/2 where vi is the private value, bi the bid. Using the same argument as for the "ordinary" second-price auction with private values one may show that playing the true private value weakly dominates all other bids. 239 Winner’s Curse (Cont.) Each of the firms performs a (free) exploration that will provide the type ti ∈ {L, H} (low or high), correlated with the size as follows: ▶ If v = 10 then t1 = t2 = L ▶ If v = 30 then t1 = t2 = H ▶ If v = 20 then for i ∈ {1, 2}, conditioned on v = 20, the exploration results are uniformly distributed: There are four possible results, (L, L), (L, H), (H, L), (H, H), each with probability 1 4 . Given the signal ti, player i may estimate the true value of the field: P(vi = 10 | ti = L) = 1 2 P(vi = 10 | ti = H) = 0 P(vi = 20 | ti = L) = 1 2 P(vi = 20 | ti = H) = 1 2 P(vi = 30 | ti = L) = 0 P(vi = 30 | ti = H) = 1 2 Thus E(vi | ti = L) = 1 2 10 + 1 2 20 = 15. and E(vi | ti = H) = 1 2 20 + 1 2 30 = 25 240 Winner’s Curse (Cont.) Is it a good idea to bid the expected value? Define a strategy for player i by si(L) = E(vi | ti = L) and si(H) = E(vi | ti = H). Is (s1, s2) a Nash equilibrium? Consider t1 = L. Then player 1 bids 15. What is his expected payoff? With probability 3 4 , player 2 also bids 15, there is a tie and player 1 wins with probability 1 2 . With probability 1 4 player 2 bids 25 and player 1 loses. We obtain u1(s1, s2; L) = 3 4 ( 1 2 (10 − 15)) + 1 4 0 = −15 8 Thus player 1 would be better off by bidding 0 and always losing. Intuition: Player 1 wins only if the signal of player 2 is L, which in effect means, that assuming win, the effective expected value of the field is lower than the predicted expected value. Homework: Find a Bayesian Nash equilibrium. 241