Game Theory: introduction and applications to computer networks Game Theory: introduction and applications to computer networks Introduction Giovanni Neglia.

Slides:



Advertisements
Similar presentations
9.1 Strictly Determined Games Game theory is a relatively new branch of mathematics designed to help people who are in conflict situations determine the.
Advertisements

GAME THEORY.
Nash’s Theorem Theorem (Nash, 1951): Every finite game (finite number of players, finite number of pure strategies) has at least one mixed-strategy Nash.
Module 4 Game Theory To accompany Quantitative Analysis for Management, Tenth Edition, by Render, Stair, and Hanna Power Point slides created by Jeff Heyl.
This Segment: Computational game theory Lecture 1: Game representations, solution concepts and complexity Tuomas Sandholm Computer Science Department Carnegie.
Game Theory S-1.
15 THEORY OF GAMES CHAPTER.
Two-Player Zero-Sum Games
Operations Research Assistant Professor Dr. Sana’a Wafa Al-Sayegh 2 nd Semester ITGD4207 University of Palestine.
1 Chapter 4: Minimax Equilibrium in Zero Sum Game SCIT1003 Chapter 4: Minimax Equilibrium in Zero Sum Game Prof. Tsang.
An Introduction to... Evolutionary Game Theory
MIT and James Orlin © Game Theory 2-person 0-sum (or constant sum) game theory 2-person game theory (e.g., prisoner’s dilemma)
Study Group Randomized Algorithms 21 st June 03. Topics Covered Game Tree Evaluation –its expected run time is better than the worst- case complexity.
Game theory.
© 2015 McGraw-Hill Education. All rights reserved. Chapter 15 Game Theory.
EC941 - Game Theory Lecture 7 Prof. Francesco Squintani
Game Theory. “If you don’t think the math matters, then you don’t know the right math.” Chris Ferguson 2002 World Series of Poker Champion.
Game Theory: introduction and applications to computer networks Game Theory: introduction and applications to computer networks Zero-Sum Games (follow-up)
Game Theory Eduardo Costa. Contents What is game theory? Representation of games Types of games Applications of game theory Interesting Examples.
Chapter 15- Game Theory: The Mathematics of Competition
A Brief History of Game Theory From various sources.
Part 3: The Minimax Theorem
An Introduction to Game Theory Part I: Strategic Games
5/16/20151 Game Theory Game theory was developed by John Von Neumann and Oscar Morgenstern in Economists! One of the fundamental principles of.
UNIT II: The Basic Theory Zero-sum Games Nonzero-sum Games Nash Equilibrium: Properties and Problems Bargaining Games Review Midterm3/19 3/12.
Advanced Microeconomics Instructors: Wojtek Dorabialski & Olga Kiuila Lectures: Mon. & Wed. 9:45 – 11:20 room 201 Office hours: Mon. & Wed. 9:15 – 9:45.
Matrix Games Mahesh Arumugam Borzoo Bonakdarpour Ali Ebnenasir CSE 960: Selected Topics in Algorithms and Complexity Instructor: Dr. Torng.
UNIT II: The Basic Theory Zero-sum Games Nonzero-sum Games Nash Equilibrium: Properties and Problems Bargaining Games Bargaining and Negotiation Review.
QR 38, 2/22/07 Strategic form: dominant strategies I.Strategic form II.Finding Nash equilibria III.Strategic form games in IR.
Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 68 Chapter 9 The Theory of Games.
Introduction to Game Theory Yale Braunstein Spring 2007.
Introduction to Game Theory and its Applications in Computer Networks
UNIT II: The Basic Theory Zero-sum Games Nonzero-sum Games Nash Equilibrium: Properties and Problems Bargaining Games Review Midterm3/23 3/9.
Game Theory.
UNIT II: The Basic Theory Zero-sum Games Nonzero-sum Games Nash Equilibrium: Properties and Problems Bargaining Games Bargaining and Negotiation Review.
Minimax strategies, Nash equilibria, correlated equilibria Vincent Conitzer
Strategic Game Theory for Managers. Explain What is the Game Theory Explain the Basic Elements of a Game Explain the Importance of Game Theory Explain.
Game Theory.
Lecture 1: introduction
Chapter 12 Choices Involving Strategy Copyright © 2014 McGraw-Hill Education. All rights reserved. No reproduction or distribution without the prior written.
Game Theory: introduction and applications to computer networks Game Theory: introduction and applications to computer networks Two-person non zero-sum.
To accompany Quantitative Analysis for Management,9e by Render/Stair/Hanna M4-1 © 2006 by Prentice Hall, Inc. Upper Saddle River, NJ Module 4 Game.
Lecture 4: N-person non zero-sum games
Standard and Extended Form Games A Lesson in Multiagent System Based on Jose Vidal’s book Fundamentals of Multiagent Systems Henry Hexmoor, SIUC.
The Design & Analysis of the Algorithms Lecture by me M. Sakalli Download two pdf files..
Introduction to Game Theory application to networks Joy Ghosh CSE 716, 25 th April, 2003.
Game Theory: introduction and applications to computer networks Game Theory: introduction and applications to computer networks Lecture 2: two-person non.
Game Theory: introduction and applications to computer networks Game Theory: introduction and applications to computer networks Introduction Giovanni Neglia.
Lecture 5 Introduction to Game theory. What is game theory? Game theory studies situations where players have strategic interactions; the payoff that.
2008/01/30Lecture 11 Game Theory. 2008/01/30Lecture 12 What is Game Theory? Game theory is a field of Mathematics, analyzing strategically inter-dependent.
1 What is Game Theory About? r Analysis of situations where conflict of interests is present r Goal is to prescribe how conflicts can be resolved 2 2 r.
Game Theory Optimal Strategies Formulated in Conflict MGMT E-5070.
1. 2 Some details on the Simplex Method approach 2x2 games 2xn and mx2 games Recall: First try pure strategies. If there are no saddle points use mixed.
1. 2 You should know by now… u The security level of a strategy for a player is the minimum payoff regardless of what strategy his opponent uses. u A.
Zero-sum Games The Essentials of a Game Extensive Game Matrix Game Dominant Strategies Prudent Strategies Solving the Zero-sum Game The Minimax Theorem.
M9302 Mathematical Models in Economics Instructor: Georgi Burlakov 0.Game Theory – Brief Introduction Lecture
GAME THEORY Day 5. Minimax and Maximin Step 1. Write down the minimum entry in each row. Which one is the largest? Maximin Step 2. Write down the maximum.
Lec 23 Chapter 28 Game Theory.
By: Donté Howell Game Theory in Sports. What is Game Theory? It is a tool used to analyze strategic behavior and trying to maximize his/her payoff of.
John Forbes Nash John Forbes Nash, Jr. (born June 13, 1928) is an American mathematician whose works in game theory, differential geometry, and partial.
Introduction to Game Theory
Chapter 15: Game Theory: The Mathematics Lesson Plan of Competition
Introduction to Game Theory
Chapter 6 Game Theory (Module 4) 1.
GAME THEORY AND APPLICATIONS
Game Theory.
GAME THEORY AND APPLICATIONS
Chapter 15: Game Theory: The Mathematics Lesson Plan of Competition
M9302 Mathematical Models in Economics
Presentation transcript:

Game Theory: introduction and applications to computer networks Game Theory: introduction and applications to computer networks Introduction Giovanni Neglia INRIA – EPI Maestro 21 January 2013 Part of the slides are based on a previous course with D. Figueiredo (UFRJ) and H. Zhang (Suffolk University)

What is Game Theory About? r Mathematical/Logical analysis of situations of conflict and cooperation r Goal: to prescribe how rational players should act 2 2 r Game of Chicken m driver who steers away looses m what should drivers do?

What is a Game? r A Game consists of m at least two players m a set of strategies for each player m a preference relation over possible outcomes r Player is general entity m individual, company, nation, protocol, animal, etc r Strategies m actions which a player chooses to follow r Outcome m determined by mutual choice of strategies r Preference relation m modeled as utility (payoff) over set of outcomes

Short history of GT r Forerunners: m Waldegrave’s first minimax mixed strategy solution to a 2-person game (1713), Cournot’s duopoly (1838), Zermelo’s theorem on chess (1913), Borel’s minimax solution for 2-person games with 3 or 5 strategies (20s) r 1928: von Neumann’s theorem on two-person zero-sum games r 1944: von Neumann and Morgenstern, Theory of Games and Economic Behaviour r : Nash’s contributions (Nash equilibrium, bargaining theory) r : Shapley and Gillies’ core (basic concept in cooperative GT) r 60s: Aumann’s extends cooperative GT to non-transferable utility games r : Harsanyi’s theory of games of incomplete information r 1972: Maynard Smith’s concept of an Evolutionarily Stable Strategy r Nobel prizes in economics m 1994 to Nash, Harsanyi and Selten “for their pioneering analysis of equilibria in the theory of non-cooperative games” m 2005 to Aumann and Schelling “for having enhanced our understanding of conflict and cooperation through game-theory analysis” m 2012 to Roth and Shapley “for the theory of stable allocations and the practice of market design” r Movies: m 2001 “A beautiful mind” on John Nash’s life r See also: m

Applications of Game Theory r Economy r Politics (vote, coalitions) r Biology (Darwin’s principle, evolutionary GT) r Anthropology r War r Management-labor arbitration r Philosophy (morality and free will) r National Football league draft

Applications of Game Theory r “Recently” applied to computer networks m Nagle, RFC 970, 1985 “datagram networks as a multi-player game” m wider interest starting around 2000 r Which are the strategies available? m Network elements follow protocol!!!

Power games

Medium Access Control Games

r Despite of the Wi-Fi certification, several cards exhibit very heterogeneous performance, due to arbitrary protocol implementations m “Experimental Assessment of the Backoff Behavior of Commercial IEEE b Network Cards,” G Bianchi et al, INFOCOM 2007

Routing games r Possible in the Internet (see later) ? Traffic Delay

Free riders in P2P networks r Individuals not willing to pay the cost of a public good, they hope that someone else will bear the cost instead r Few servers become the hot spots: Anonymous?, Copyright?, Privacy? Scalability?, Is it P2P?

Connection games in P2P  Each peer may open multiple TCP connections to increase its downloading rate

Diffusion of BitTorrent variants r Try to exploit BitTorrent clients weaknesses r Are they really dangerous? m Evolutionary game theory says that Yes they can be BitThief

Space for GT in Networks r User behaviors (to share or not to share) m Client variants r Protocols do not specify everything… m power level to use m number of connections to open r …and/or are not easy to enforce m how control a P2P network m not-compliant WiFi implementation r …and software easy to modify

Limitations of Game Theory r Real-world conflicts are complex m models can at best capture important aspects r Players are considered rational m determine what is best for them given that others are doing the same m Men are not, but computers are more r No unique prescription m not clear what players should do r But it can provide intuitions, suggestions and partial prescriptions m the best mathematical tool we have

Syllabus r References m [S] Straffin, Game Theory and Strategy (main one, chapters indicated) m [EK] Easley and Kleinberg, Network Crowds and Markets m [OR] Osborne and Rubinstein, A course in game theory, MIT Press r Two-person zero-sum games m Matrix games Pure strategy equilibria (dominance and saddle points), [S2] Mixed strategy equilibria, [S3] m Game trees (?), [S7] r Two-person non-zero-sum games m Nash equilibria… …And its limits (equivalence, interchangeability, Prisoner’s dilemma), [S11-12] m Subgame Perfect Nash Equilibria (?) m Routing games [EK8] r Auction theory

Game Theory: introduction and applications to computer networks Game Theory: introduction and applications to computer networks Two-person zero-sum games Giovanni Neglia INRIA – EPI Maestro 21 January 2013 Slides are based on a previous course with D. Figueiredo (UFRJ) and H. Zhang (Suffolk University)

Matrix Game (Normal form) r Simultaneous play m players analyze the game and then write their strategy on a piece of paper ABC A(2, 2)(0, 0)(-2, -1) B(-5, 1)(3, 4)(3, -1) Player 1, Rose Player 2, Colin Strategy set for Player 1 Strategy set for Player 2 Payoff to Player 1 Payoff to Player 2

More Formal Game Definition r Normal form (strategic) game  a finite set N of players m a set strategies S i for each player m payoff function for each player where is an outcome sometimes also

Two-person Zero-sum Games r One of the first games studied m most well understood type of game r Players interest are strictly opposed m what one player gains the other loses m game matrix has single entry (gain to player 1) r A “strong” solution concept

ABCD A1210 B C3243 D Let’s play! r Divide in pairs, assign roles (Rose/Colin) and play 20 times r Log how many times you have played each strategy and how much you have won Rose Colin

ABCD A1210 B C3243 D Analyzing the Game Rose Colin dominated strategy (dominated by B)

Dominance r Strategy S (weakly) dominates a strategy T if every possible outcome when S is chosen is at least as good as corresponding outcome in T, and one is strictly better m S strictly dominates T if every possible outcome when S is chosen is strictly better than corresponding outcome in T r Dominance Principle m rational players never choose dominated strategies r Higher Order Dominance Principle m iteratively remove dominated strategies

ABCD A1210 B C5243 D-1605 Higher order dominance may be enough Rose Colin

ABCD A1210 B C5243 D-1605 Higher order dominance may be enough Rose Colin (Weakly) Dominated by C Strictly dominated by B GT prescribes: Rose C – Colin B A priori D is not dominated by C

ABCD A1210 B C3243 D … but not in the first game Rose Colin dominated strategy (dominated by B)

ABD A120 B51-20 C323 D Analyzing the Reduced Game: Movement Diagram Rose Colin Outcome (C, B) is “stable” m saddle point of game m mutual best responses

Saddle Points r An outcome (x,y) is a saddle point if the corresponding entry u(x,y) is both less than or equal to any value in its row and greater than or equal to any value in its column m u(x,y) <= u(x,w) for all w in S 2 =S Colin m u(x,y) >= u(v,y) for all v in S 1 =S Rose ABD A120 B51-20 C323 D-16016

Saddle Points Principle r Players should choose outcomes that are saddle points of the game m Because it is an equilibrium… m … but not only

Performance Evaluation Second Part Lecture 5 Giovanni Neglia INRIA – EPI Maestro 6 February 2012

Saddle Points main theorem r The game has a saddle point iff max v min w u(v,w) = min w max v u(v,w) ABDmin w A120 B51-20 C3232 D max v ABDmin w A120 B51-20 C323 D max v Rose C ε argmax min w u(v,w) most cautious strategy for Rose: it secures the maximum worst case gain independently from Colin’s action (the game maximin value) Rose Colin Colin B ε argmin max v u(v,w) most cautious strategy for Colin: it secures the minimum worst case loss (the game minimax value)

Saddle Points main theorem r Another formulation: m The game has a saddle point iff maximin = minimax, r This value is called the value of the game

Saddle Points main theorem r The game has a saddle point iff max v min w u(v,w) = min w max v u(v,w) N.C. Two preliminary remarks 1. It holds (always) max v min w u(v,w) <= min w max v u(v,w) because min w u(v,w)<=u(v,w)<=max v u(v,w) for all v and w 2. By definition, if (x,y) is a saddle point m u(x,y)<=u(x,w) for all w in S Colin i.e. u(x,y)=min w u(x,w) m u(x,y) >= u(v,y) for all v in S Rose i.e. u(x,y)=max v u(v,y)

Saddle Points main theorem r The game has a saddle point iff max v min w u(v,w) = min w max v u(v,w) 1. max v min w u(v,w) <= min w max v u(v,w) 2. if (x,y) is a saddle point o u(x,y)=min w u(x,w),u(x,y)=max v u(v,y) N.C. u(x,y)=min w u(x,w)<=max v min w u(v,w)<=min w max v u(v,w)<=max v u(v,y)=u(x,y)

Saddle Points main theorem r The game has a saddle point iff max v min w u(v,w) = min w max v u(v,w) S.C. x in argmax min w u(v,w) y in argmin max v u(v,w) We prove that (x,y) is a saddle-point w 0 in argmin w u(x,w) (max v min w u(v,w)=u(x,w 0 )) v 0 in argmax v u(v,y) (min w max v u(v,w)=u(v 0,y)) u(x,w 0 )=min w u(x,w)<=u(x,y)<=max v u(v,y)=u(v 0,y) Note that u(x,y) = max v min w u(v,w) w0w0 y v0v0 x <=

Saddle Points main theorem r The game has a saddle point iff max v min w u(v,w) = min w max v u(v,w) ABDmin w A120 B51-20 C3232 D max v ABDmin w A120 B51-20 C323 D max v Rose Colin This result provides also another way to find saddle points

Properties r Given two saddle points (x 1,y 1 ) and (x 2,y 2 ), m they have the same payoff (equivalence property): it follows from previous proof: u(x 1,y 1 ) = max v min w u(v,w) = u(x 2,y 2 ) m (x 1,y 2 ) and (x 2,y 1 ) are also saddle points(interchangeability property): as in previous proof They make saddle point a very nice solution! y1y1 y2y2 x2x2 x1x1 <=

What is left? r There are games with no saddle-point! r An example? RPS min R P S max RPS min R 01 P 10 S 10 max 111 maximin <> minimax maximin minimax

What is left? r There are games with no saddle-point! r An example? An even simpler one AB min A 200 B -53 max 23 maximin minimax

Some practice: find all the saddle points ABC D A 3242 B 2130 C 2222 ABC A -204 B 213 C 3-2 ABC A 438 B 951 C 276

Games with no saddle points r What should players do? m resort to randomness to select strategies AB A 20 B -53 Rose Colin

Mixed Strategies r Each player associates a probability distribution over its set of strategies r Expected value principle: maximize the expected payoff AB A20 B-53 Rose 1/32/3 Rose’s expected payoff when playing A = 1/3*2+2/3*0=2/3 Rose’s expected payoff when playing B = 1/3*-5+2/3*3=1/3 r How should Colin choose its prob. distribution? Colin

2x2 game AB A20 B-53 Rose p1-p r How should Colin choose its prob. distribution? o Rose cannot take advantage of p=3/10 o for p=3/10 Colin guarantees a loss of 3/5, what about Rose’s? Colin p Rose’s expected payoff 0 1 Rose’s exp. gain when playing A = 2p + (1-p)*0 = 2p Rose’s exp. gain when playing B = -5*p + (1-p)*3 = 3-8p 3/10

2x2 game AB A20 B-53 Rose r How should Rose choose its prob. distribution? o Colin cannot take advantage of q=8/10 o for q=8/10 Rose guarantees a gain of? Colin q Colin’s expected loss 0 1 Colin’s exp. loss when playing A = 2q -5*(1-q) = 7q Colin’s exp. loss when playing B = 0*q+3*(1-q) = 3-3q 8/10 1-q q

2x2 game AB A20 B-53 Rose p1-p r Rose playing the mixed strategy (8/10,2/10) and Colin playing the mixed strategy (3/10,7/10) is the equilibrium of the game o No player has any incentives to change, because any other choice would allow the opponent to gain more o Rose gain 3/5 and Colin loses 3/5 Colin p Rose’s expected payoff /10 q Colin’s expected loss /10 1-q q 1

mx2 game AB A20 B-53 C3 Rose p1-p r By playing p=3/10, Colin guarantees max exp. loss = 3/5 o it loses 3/5 if Rose plays A or B, it wins 13/5 if Rose plays C r Rose should not play strategy C Colin p Rose’s expected payoff / x-y y x

mx2 game AB A20 B-53 C3 Rose p1-p Colin y Colin’s expected loss x-y y x x -5 3 (8/10,2/10,3/5) r Then Rose should play mixed strategy(8/10,2/10,0) r guaranteeing a gain not less than 3/5

Minimax Theorem r Every two-person zero-sum game has a solution, i.e, there is a unique value v (value of the game) and there are optimal (pure or mixed) strategies such that m Rose’s optimal strategy guarantees to her a payoff >= v (no matter what Colin does) m Colin’s optimal strategies guarantees to him a payoff <= v (no matter what Rose does) r This solution can always be found as the solution of a kxk subgame r Proved by John von Neumann in 1928! m birth of game theory…

How to solve mxm games r if all the strategies are used at the equilibrium, the probability vector is such to make equivalent for the opponent all its strategies m a linear system with m-1 equations and m-1 variables m if it has no solution, then we need to look for smaller subgames ABC A201 B-53-2 C3-53 Rose Colin 1-x-y y x Example: m 2x-5y+3(1-x-y)=0x+3y-5(1-x-y) m 2x-5y+3(1-x-y)=1x-2y+3(1-x-y)

How to solve 2x2 games r If the game has no saddle point m calculate the absolute difference of the payoffs achievable with a strategy m invert them m normalize the values so that they become probabilities AB A20 B-53 Rose p1-p Colin |2-0|=2 |-5-3|= /10 2/10 1-q q

How to solve mxn matrix games 1. Eliminate dominated strategies 2. Look for saddle points (solution of 1x1 games), if found stop 3. Look for a solution of all the hxh games, with h=min{m,n}, if found stop 4. Look for a solution of all the (h-1)x(h-1) games, if found stop 5. … h+1. Look for a solution of all the 2x2 games, if found stop Remark: when a potential solution for a specific kxk game is found, it should be checked that Rose’s m-k strategies not considered do not provide her a better outcome given Colin’s mixed strategy, and that Colin’s n-k strategies not considered do not provide him a better outcome given Rose’s mixed strategy.