Game theory 2 Lukáš Lehotský llehotsky@mail.muni.cz Pareto optimality Game M B Right Left A Right 2 , 2 0 , 0 Left 0 , 0 1 , 1 Game M B Right Left A Right 2 , 2 0 , 0 Left 0 , 0 1 , 1 Game M – pure strategy equilibriums B Right Left A Right 2 , 2 0 , 0 Left 0 , 0 1 , 1 Pareto optimality •Outcome is Pareto optimal (Pareto efficient), if there is no other outcome which is better or equal for all players and strictly better for some player • •To put it differently, there is no outcome which makes one player better without making other players worse • •Conversely, outcome A is Pareto dominated, if there is outcome B that makes all players as good (weakly better) and one player strictly better compared to outcome A • •Might provide unstable solutions Game M – Pareto optimality B Right Left A Right 2 , 2 0 , 0 Left 0 , 0 1 , 1 Pareto optimality A B Pareto optimality A B P Prisoner’s dilemma – Pareto optimality B c d A C 5 , 5 0 , 7 D 7 , 0 3 , 3 Prisoner’s dilemma – Pareto optimality B c d A C 5 , 5 0 , 7 D 7 , 0 3 , 3 Prisoner’s dilemma – Pareto optimality B c d A C 5 , 5 0 , 7 D 7 , 0 3 , 3 Game N B l r A L 2 , 2 4 , 0 R 2 , 3 8 , -1 Game N – Pareto optimality B l r A L 2 , 2 4 , 0 R 2 , 3 8 , -1 Game N – Pareto optimality B l r A L 2 , 2 4 , 0 R 2 , 3 8 , -1 Social welfare Social welfare •Situation where sum of all utilities of an outcome is at its maximum • •Might provide unstable situations • •Is always Pareto optimal Game M B Right Left A Right 2 , 2 0 , 0 Left 0 , 0 1 , 1 Game M – Social welfare B Right Left A Right 4 0 Left 0 2 Game N B l r A L 2 , 2 4 , 0 R 2 , 3 8 , -1 Game N – Pareto optimality B l r A L 2 , 2 4 , 0 R 2 , 3 8 , -1 Game N – Social welfare B l r A L 4 4 R 5 7 Prisoner’s dilemma – Pareto optimality B c d A C 5 , 5 0 , 7 D 7 , 0 3 , 3 Prisoner’s dilemma – Pareto optimality B c d A C 10 7 D 7 6 Pareto optimality solid tool for comparing equilibriums • Mixed-strategy Nash equilibrium Matching pennies •Two players • •Players choose heads or tails • •If players match heads/tails, I (Player 1) win both coins • •If players don’t match heads/tails, opponent (Player 2) wins both coins • Matching pennies My pair Heads Tails Me Heads 1 , -1 -1 , 1 Tails -1 , 1 1 , -1 Matching pennies – mixed strategy My pair Heads (0.5) Tails (0.5) Me Heads (0.5) 1 , -1 -1 , 1 Tails (0.5) -1 , 1 1 , -1 Calculation of mixed-strategy NE Game Y B L (q) R (1 - q) A U (p) 3 , -3 -2 , 2 D (1 - p) -1 , 1 0 , 0 Game Y – Player A •Player A plans to mix Up and Down strategy at a certain ratio p •Player B might play Left or Right •Player A must find such a probability of playing U and D that makes Player B indifferent to selecting L or R •Player B has to gain same utility from B’s choice Left and Right •EUL = EUR • •Expected utility of Player B chosing Left: •EUL = f(p) • •Expected utility of Player B chosing Right: •EUR = f(p) • • • • Game Y - Player A’s strategy •EUL: •Some % of time (p) gets B utility -3 •Rest of the time (1 - p) gets B utility 1 • •EUL = (p)*(-3) + (1 - p)*(1) •EUL = -3p + 1 - p •EUL = 1 - 4p B L (q) R (1 - q) A U (p) 3 , -3 -2 , 2 D (1 - p) -1 , 1 0 , 0 Game Y - Player A’s strategy •EUR: •Some % of time (p) gets B utility 2 •Rest of the time (1 - p) gets B utility 0 • •EUR = (p)*(2) + (1 - p)*(0) •EUR = 2p + 0 - 0p •EUR = 2p B L (q) R (1 - q) A U (p) 3 , -3 -2 , 2 D (1 - p) -1 , 1 0 , 0 Player A’s strategy – making B indifferent Comparison of EUL with EUR •EUL = 1 - 4p •EUR = 2p • •EUL = EUR •1 - 4p = 2p +4p •1 = 6p /6 •p = 1/6 • •1 - p = 1 - 1/6 = 5/6 •We’ve found the ideal mixed strategy for Player A •If Player A plays Up 1/6 of time and Down 5/6 of time, Player B is indifferent to choosing Left or Right •We need to do the same for player B Game Y - Player B’s strategy •EUU: •Some % of time (q) gets A utility 3 •Rest of the time (1 - q) gets A utility -2 • •EUU = (q)*(3) + (1 - q)*(-2) •EUU = 3q - 2 + 2q •EUU = 5q - 2 B L (q) R (1 - q) A U (p) 3 , -3 -2 , 2 D (1 - p) -1 , 1 0 , 0 Game Y - Player B’s strategy •EUD: •Some % of time (q) gets A utility -1 •Rest of the time (1 - q) gets A utility 0 • •EUD = (q)*(-1) + (1 - q)*(0) •EUD = -1q + 0 - 0q •EUD = -q B L (q) R (1 - q) A U (p) 3 , -3 -2 , 2 D (1 - p) -1 , 1 0 , 0 Player B’s strategy – making A indifferent Comparison of EUU with EUD •EUU = 5q - 2 •EUD = -q • •EUU = EUD •5q - 2 = -q -5q • -2 = -6q /-6 •q = 1/3 • •1 - q = 1 - 1/3 = 2/3 •We’ve found the ideal mixed strategy for Player B •If Player B plays Left 1/3 of time and Down 2/3 of time, Player A is indifferent to choosing Up or Down Mixed strategy NE •( 1/6 U , 1/3 L ) Game Y - MSNE B L (1/3) R (2/3) A U (1/6) 3 , -3 -2 , 2 D (5/6) -1 , 1 0 , 0 Battle of sexes •Want to go out together but have no means of communication •Have 2 choices – ballet or box fight •Player A prefers box fight •Player B prefers ballet •Both prefer being together than being alone • •Preferences for player A: F > B > A •Preferences for player B: B > F > A Battle of sexes Battle of sexes B b f A B 1 , 2 0 , 0 F 0 , 0 2 , 1 Battle of sexes B b f A B 1 , 2 0 , 0 F 0 , 0 2 , 1 Battle of sexes – PS equilibriums Equilibriums •2 pure-strategies equilibriums • •How would they coordinate? • •Apart from pure strategies equilibriums there is one mixed strategy equilibrium for this game •( 1/3 B, 2/3 b ) B b 2/3 f 1/3 A B 1/3 1 , 2 0 , 0 F 2/3 0 , 0 2 , 1 Battle of sexes – mixed strategy equilibrium Calculation of MS NE payoffs Battle of sexes – mixed-strategy NE payoffs B b 2/3 f 1/3 A B 1/3 1 , 2 1/3 * 2/3 0 , 0 1/3 * 1/3 F 2/3 0 , 0 2/3 * 2/3 2 , 1 2/3 * 1/3 Battle of sexes – mixed-strategy NE payoffs B b 2/3 f 1/3 A B 1/3 1 , 2 2/9 0 , 0 1/9 F 2/3 0 , 0 4/9 2 , 1 2/9 BoS – Payoffs for player A •We simply multiply payoffs for player A and probabilities for each outcome and then sum them together • •Player A’s payoffs: •u(B, b) = 1 * 2/9 = 2/9 •u(B, f) = 0 * 1/9 = 0 •u(F, b) = 0 * 4/9 = 0 •u(F, f) = 2 * 2/9 = 4/9 • •EU(A) = 2/9 + 0 + 0 + 4/9 •EU(A) = 6/9 •EU(A) = 2/3 • B b 2/3 f 1/3 A B 1/3 1 , 2 2/9 0 , 0 1/9 F 2/3 0 , 0 4/9 2 , 1 2/9 BoS – Payoffs for player B •We simply multiply payoffs of player B and probabilities for each outcome and then sum them together • •Player A’s payoffs: •u(B, b) = 2 * 2/9 = 4/9 •u(B, f) = 0 * 1/9 = 0 •u(F, b) = 0 * 4/9 = 0 •u(F, f) = 1 * 2/9 = 2/9 • •EU(B) = 4/9 + 0 + 0 + 2/9 •EU(B) = 6/9 •EU(B) = 2/3 • B b 2/3 f 1/3 A B 1/3 1 , 2 2/9 0 , 0 1/9 F 2/3 0 , 0 4/9 2 , 1 2/9 Battle of sexes NE •Pure strategies NE •( B , b ) •EU(A) = 1 •EU(B) = 2 •( F , f ) •EU(A) = 2 •EU(B) = 1 •Mixed strategies NE •( 1/3 B , 2/3 b ) •EU(A) = 2/3 •EU(B) = 2/3 B b f A B 1 , 2 0 , 0 F 0 , 0 2 , 1 FSS entrance game •Two students meet at the main faculty entrance •Both simultaneously decide whether to walk or stop •If both walk, they collide and both get a bruise (payoff -5) •If one stops and other walks •Student who stopped gets good karma for letting the other pass with payoff 1, but at the same time gets delayed, which is completely offsetting the value of the good karma •Student who walked gets to pass quickly and thus gets payoff 1 •If both stop, each would get good karma for letting the other pass, but each will get delayed B W s A W -5 , -5 1 , 0 S 0 , 1 0 , 0 FSS entrance game B w 1/6 s 5/6 A W 1/6 -5 , -5 1 , 0 S 5/6 0 , 1 0 , 0 FSS entrance game NE Extensive form games Extensive form games •Visualized as a game (decision) tree • •Players move sequentially • •Captures time in game • •Captures knowledge of agents – sometimes agents do not have information where they are located in game • U D d d u u A B B (2 , 4) (1 , -5) (-2 , 6) (4 , 4) Basic terminology •Each square is called node • •Each line represents an action an owner of the node has at his disposal • •Nodes might either trigger other action or end • •Every circle is an end of the tree – it’s called terminal node • •Every circle must yield payoffs for all the actors • •Each moment actor has information about all previous moves called information set Backwards induction U D d d u u A B B (2 , 4) (1 , -5) (-2 , 6) (4 , 4) Backwards induction •Moves player make at nodes reached in an equilibrium are called behavior on the equilibrium path • •Moves player make at nodes that are not reached in an equilibrium are behavior off the equilibrium path • •Players can not commit themselves to make moves in future – decisions at nodes change decisions at later nodes Backwards induction •Begin with decisions that lead only to terminal nodes • •Compare payoffs for decisions in each node leading to terminal node • •Find best reply to alternatives of player playing at the current node • •Work through nodes backwards and solve the outcomes of all nodes comparing payoffs for respective players • U D d d u u A B B (2 , 4) (1 , -5) (-2 , 6) (4 , 4) U D d d u u A B B (2 , 4) (1 , -5) (-2 , 6) (4 , 4) U D d d u u A B B (2 , 4) (1 , -5) (-2 , 6) (4 , 4) Equilibrium of sequential game •One Nash equilibrium in pure strategies on the equilibrium path •( U ; u , u ) • •There may be more NE in pure strategies • •B decides – if A goes U than u yields better payoff in the upper node, if A goes D than u yields better payoff in the lower node • •A knows that B will choose u in both nodes, therefore compares payoffs in u for going U or D – U yields better payoff Backwards induction •Works easily in games of perfect information • •All actors are aware of all previous actions and can also anticipate, what actors will do based on their expected utilities over outcomes at subsequent nodes – actors have a perfect recall • •However, backwards induction assesses only rationality on the equilibrium path. NE found off the equilibrium path will not be found through backwards induction • • U D d u A B (1 , 1) (-1 , -1) (2 , 0) Selten’s game U D d u A B (1 , 1) (-1 , -1) (2 , 0) Selten’s game U D d u A B (1 , 1) (-1 , -1) (2 , 0) Selten’s game Rewrite Selten’s game into matrix •Player A has 2 moves •U, D •Thess constitute 2 rows in a matrix •Player B has also 2 moves •u, d •These constitute 2 columns in a matrix • •We have 2x2 game in normal form U D d u A B (1 , 1) (-1 , -1) (2 , 0) Selten’s game B u d A U D Strategic form of Selten’s game U D d u A B (1 , 1) (-1 , -1) (2 , 0) Selten’s game B u d A U D -1 , -1 2 , 0 Strategic form of Selten’s game U D d u A B (1 , 1) (-1 , -1) (2 , 0) Selten’s game B u d A U 1 , 1 D -1 , -1 2 , 0 Strategic form of Selten’s game B u d A U 1 , 1 1 , 1 D -1 , -1 2 , 0 Strategic form of Selten’s game Rewriting extensive form into normal form •If we rewrite extensive form game into normal form, only one matrix will emerge as a representation • •This does not work the other way around • •Since matrixes do not hold information about sequence of actions, one normal-form game might have multiple extensive-form representations that would completely alter outcomes of the game • • Selten’s game from matrix U D d d u u A B (1 , 1) (1 , 1) (-1 , -1) (2 , 0) Selten’s game from matrix u d D D U U B A (1 , 1) (1 , 1) (-1 , -1) (0 , 2) B u d A U 1 , 1 1 , 1 D -1 , -1 2 , 0 Strategic form of Selten’s game B u d A U 1 , 1 1 , 1 D -1 , -1 2 , 0 Strategic form of Selten’s game B u d A U 1 , 1 1 , 1 D -1 , -1 2 , 0 Strategic form of Selten’s game U D d u A B (1 , 1) (-1 , -1) (2 , 0) Selten’s game NE off the equilibrium path •This game has another NE which is represented by action U which is not revealed in extensive form • •This equilibrium (U, u) is called a non-credible threat •B is willing to get its largest payoff, which will result from A playing U (deciding not to play the game) •B can change its payoff from A’s decision about U and D only by threatening that it will play u if A plays D •But B will never play u, since it brings lower payoff than playing d • • U D d u A B (1 , 1) (-1 , -1) (2 , 0) Selten’s game and non-credible threat Subgame perfection Subgame •Subset of the nodes of a game starting with initial node and including all its successors that preserves all information sets of the game and over which a (new) game is defined by the restriction of the original game elements to these nodes • •Subgame can be treated as a game in its own right • •To ensure each player rational, there’s requirement that strategies are optimal in all proper subgames U D d u A B (1 , 1) (-1 , -1) (2 , 0) Subgames of Selten’s game Information sets •Player’s information/knowledge about moves, which have been played in the game previously • •In games of perfect information, each node with its actions is information set – each player in each moment of the game knows, which moves were played before • •If player is uncertain about previous moves, information set contains more than one node • •Information sets capture player’s ignorance about previous moves in game Subgames in PD in EF C D d d c c A B (5 , 5) (-10 , 10) (10 , -10) (-5 , -5) Game A A D A (10 , -10) (15 , 5) j i B (-5 , -5) G S A (0 , 0) Game A – Backwards induction A D A (10 , -10) (15 , 5) Game A – Backwards induction A D A (10 , -10) (15 , 5) Game A – Backwards induction A D A (10 , -10) (15 , 5) j i B (-5 , -5) Game A – Backwards induction A D A (10 , -10) (15 , 5) j i B (-5 , -5) G S A (0 , 0) Game A – Backwards induction solution A D A (10 , -10) (15 , 5) j i B (-5 , -5) G S A (0 , 0) Subgame perfection •Set of strategies is subgame perfect, if for every proper subgame, the restriction of those strategies to the subgame forms a Nash Equilibrium • •SPNE must thus form NE in every subgame of the game, from the game itself to the last subgame • •Restricts equilibriums in the game which are not a credible threat throughout the game Game A - Subgames A D A (10 , -10) (15 , 5) j i B (-5 , -5) G S A (0 , 0) B j A A 10 , -10 D 15 , 5 Strategic form of Subgame 1 B j A A 10 , -10 D 15 , 5 NE in strategic form of Subgame 1 B j i A A 10 , -10 -5 , -5 D 15 , 5 -5 , -5 Strategic form of Subgame 2 B J i A A 10 , -10 -5 , -5 D 15 , 5 -5 , -5 NE in strategic form of Subgame 2 B J i A GA 10 , -10 -5 , -5 GD 15 , 5 -5 , -5 SA 0 , 0 0 , 0 SD 0 , 0 0 , 0 Strategic form of Subgame 3 B J i A GA 10 , -10 -5 , -5 GD 15 , 5 -5 , -5 SA 0 , 0 0 , 0 SD 0 , 0 0 , 0 NE in strategic form of Subgame 3 NE in the Game A •Strategic form NE •NE 1: •NE 2: •NE 3: • •Backwards induction NE •NE 1: • •Subgame perfect NE •NE 1: Game B L R A (0 , 2) (-2 , -2) u d B (1 , -1) U D A (0 , 3) B u A L 0 , 2 R -2 , -2 Strategic form of Subgame 1 B u A L 0 , 2 R -2 , -2 NE in strategic form of Subgame 1 B u d A L 0 , 2 1 , -1 R -2 , -2 1 , -1 Strategic form of Subgame 2 B u d A L 0 , 2 1 , -1 R -2 , -2 1 , -1 NE in strategic form of Subgame 2 B u d A UL 0 , 3 0 , 3 UR 0 , 3 0 , 3 DL 0 , 2 1 , -1 DR -2 , -2 1 , -1 Strategic form of Subgame 3 B u d A UL 0 , 3 0 , 3 UR 0 , 3 0 , 3 DL 0 , 2 1 , -1 DR -2 , -2 1 , -1 NE in strategic form of Subgame 3 NE in the game •Strategic form NE •NE 1: •NE 2: •NE 3: •NE 4: • •Backwards induction NE •NE 2: •NE 3: • •Subgame perfect NE •NE 3: u d R L B A (0 , 0) (-2 , -2) Game X U D A R L A (2 , 1) (0 , 0) (1 , 4) u d R L B A (0 , 0) (-2 , -2) Game X - Subgames U D A R L A (2 , 1) (0 , 0) (1 , 4) B u d A L 2 , 1 0 , 0 R 0 , 0 -2 , -2 Strategic form of Subgame of Game X B u d A L 2 , 1 0 , 0 R 0 , 0 -2 , -2 NE in strategic form of Subgame of Game X B u d A UL 1 , 4 1 , 4 UR 1 , 4 1 , 4 DL 2 , 1 0 , 0 DR 0 , 0 -2 , -2 Strategic form of the whole Game X B u d A UL 1 , 4 1 , 4 UR 1 , 4 1 , 4 DL 2 , 1 0 , 0 DR 0 , 0 -2 , -2 NE in strategic form of the whole Game X NE in the Game X •Strategic form NE •NE 1: •NE 2: •NE 3: • •Backwards induction NE •Can’t apply • •Subgame perfect NE •NE 3: Thank you for your attention Sources •McCain, R. A. Game Theory: a Nontechnical Introduction to the Analysis of Strategy. World Scientific Publishing, Singapore. 2010 •Morrow, J. D. Game theory for political scientists. Princeton University Press, Princeton. 1994 •Elster, J. (ed) Rational choice. New York University Press, New York. 1986 •Binmore, K. Game Theory: A Very Short Introduction. Oxford University Press, Oxford. 2007 •ECON 159: GAME THEORY, Yale Open Courses, http://oyc.yale.edu/economics/econ-159/ •http://www.gametheory.net •