what is game theory i
play

What*is*Game*Theory?*I* - PowerPoint PPT Presentation

What*is*Game*Theory?*I* Very*general*mathema)cal*framework*to*study*situa)ons* where*mul)ple*agents*interact,*including:* Popular*no)ons*of*games* Introduc)on*to*Game*Theory* Everything*up*to*and*including*mul)step,*mul)agent,*


  1. What*is*Game*Theory?*I* • Very*general*mathema)cal*framework*to*study*situa)ons* where*mul)ple*agents*interact,*including:* – Popular*no)ons*of*games* Introduc)on*to*Game*Theory* – Everything*up*to*and*including*mul)step,*mul)agent,* simultaneous*move,*par)al*informa)on*games* – Example*Duke*CS*research:*Aiming*sensors*to*catch*hiding* enemies,*assigning*guards*to*posts* – Can*even*include*nego)a)ng,*posturing*and*uncertainty*about* Ron*Parr* the*players*and*game*itself* CPS*270* • von*Neumann*and*Morgenstern*(1944)*was*a*major* launching*point*for*modern*game*theory* • Nash:*Existence*of*equilibria*in*general*sum*games* (wikipedia)* With*thanks*to*Vince*Conitzer* What*is*game*theory?*II* Real*World*Game*Theory*Examples* • Study*of*seVngs*where*mul)ple*agents*each*have* – Different*preferences*(u)lity*func)ons),* • War* – Different*ac)ons* • Auc)ons* • Animal*behavior* • Each*agent’s*u)lity*(poten)ally)*depends*on*all*agents’*ac)ons* – What*is*op)mal*for*one*agent*depends*on*what*other*agents*do* • Networking*protocols* – Can*be*circular* • Peer*to*peer*networking*behavior* • Game*theory*studies*how*agents*can*ra)onally*form*beliefs*over* • Road*traffic* what*other*agents*will*do,*and*(hence)*how*agents*should*act* • Useful*for*ac)ng*and*(poten)ally)*predic)ng*behavior*of*others* • Mechanism*design:* – Suppose*we*want*people*to*do*X?* • Not*necessarily*descrip)ve* – How*to*engineer*situa)on*so*they*will*act*that*way?*

  2. Covered*Today*(and*next*)me)* What*are*Linear*Programs*(LPs)?* • Linear*programs*are* constrained+op-miza-on+problems+ • Digression:*Linear*Programming* • Constrained*op)miza)on*problems*ask*us*to*maximize*or* minimize*a*func)on*subject*to*mathema)cal*constraints*on* the*variables* • 2*player,*zero*sum*simultaneous*move*games* – Convex*programs*have*convex*objec)ve*func)ons*and*convex* constraints* • Example:*Rock,*Paper,*Scissors* – Linear*programs*(special*case*of*convex*programs)*have*linear* objec)ve*func)ons*and*linear*constraints* • Linear*programming*solu)on* • LPs*=*generic*language*for*wide*range*problems* • LP*solvers*=*widely*available*hammers* • En)re*classes*and*vast*exper)se*invested*in*making* • General*sum*games* problems*look*like*nails* Linear*programs:*example* Solving*the*linear*program*graphically* • Make*reproduc)ons*of*2*pain)ngs* maximize *3x*+*2y* maximize *3x*+*2y* 8* subject-to- subject-to- 4x*+*2y*≤*16* 6* 4x*+*2y*≤*16* x*+*2y*≤*8* x*+*2y*≤*8* x*+*y*≤*5* • Pain)ng*1:* 4* op)mal*solu)on:* Sells*for*$30* • x*+*y*≤*5* x*≥*0* x=3,*y=2* • Requires*4*units*of*blue,*1*green,*1*red* x*≥*0* • Pain)ng*2* y*≥*0* 2* • Sells*for*$20* y*≥*0* • Requires*2*blue,*2*green,*1*red* We*have*16*units*blue,*8*green,*5*red* • 0* 2* 4* 6* 8* Feasible*region*=*region*not*viola)ng*constraints*

  3. What*Happens*In*Higher*Dimensions*(1)* Linear*Programs*in*General* Understanding*the*Feasible*Region* • Linear*constraints,*linear*objec)ve*func)on* 8* f ( x ) – Maximize*(minimize):* !! !! Linear*func)on*of*vector* x" 6* Ax ≤ b – Subject*to:* !! 4* Matrix* A" • Can*swap*maximize/minimize,*≤/≥;*can*add*equality* Intui)on:** • View*as*search:**Searches*space*of*values*of* x * 2* • Objec)ve*func)on*defines*“down”* • Feasible*region*is*a*“bowl”* • Alterna)vely:**Search*for*)ght*constraints*w/high* • Want*to*find*lowest*point*on*the*rotated*bowl* objec)ve*func)on*value* 0* 2* 4* 6* 8* Solving*linear*programs*(1) * What*Happens*In*Higher*Dimensions*(2)* linesn>hyperplanes* • Op)mal*solu)ons*always*exist*at*ver)ces*of*the* feasible*region* • Inequality*w/2*variables*n>*one*side*of*a*line* – Why?* • 3*variables*n>*one*side*of*a*plane* – Assume*you*are*not*at*a*vertex,*you*can*always*push*further* • k*variables*n>*one*side*of*hyperplane* in*direc)on*that*improves*objec)ve*func)on*(or*at*least* • Physical*intui)on:** doesn’t*hurt)* – How*many*ver)ces*does*a*kxn*matrix*imply?* • Dumb(est)*algorithm:* – Given*n*variables,*k*constraints* – Check*all*knchoosenn*=*O(k n )*possible*ver)ces* hpp://www.rubylane.com/item/623546n4085/Orreforsnx22Zenithx22nPapernnCrystalnBowl*

  4. Solving*linear*programs*(2) * Solving*LPs*in*Prac)ce* • Smarter*algorithm*(simplex)* – Pick*a*vertex* • Use*commercial*products*like*cplex*or*gurobi* – Repeatedly*hop*to*neighboring*(one*different*)ght* constrain)*ver)ces*that*improve*the*objec)ve*func)on* – Guaranteed*to*find*solu)on*(no*local*op)ma)* • Do*not*try*to*implement*an*LP*solver*yourself!* – May*take*exponen)al*)me*in*worst*case*(though*rarely)* • Do*not*use*matlab’s*linprog*for*anything*other* • S)ll*smarter*algorithm* than*small*problems.*Really.*No*–*REALLY!* – Move*inside*the*interior*of*the*feasible*region,*in*direc)on* that*increases*objec)ve*func)on* – Stop*when*no*further*improvements*possible* – Tricky*to*get*the*details*right,*but*weakly*polynomial*)me* Modified*LP* Integer*Linear*Program* maximize *3x*+*2y* maximize *3x*+*2y* Op)mal*solu)on:*x*=*2.5,*y*=*2.5* 8* subject-to- subject-to- Solu)on*value*=*7.5*+*5*=*12.5* 4x*+*2y*≤*15* 4x*+*2y*≤*15* op)mal*IP* solu)on:*x=2,*y=3** 6* * x*+*2y*≤*8* x*+*2y*≤*8* (objec)ve*12)* Half*pain)ngs?* x*+*y*≤*5* x*+*y*≤*5* op)mal*LP* 4* solu)on:*x=2.5,* x*≥*0* x*≥*0,*integer* y=2.5** (objec)ve*12.5)* y*≥*0* y*≥*0,*integer* 2* 0* 4* 6* 8* 2*

  5. Solving*linear/integer*programs * Mixed*integer*Linear*Program* • Linear*programs*can*be*solved*efficiently* maximize *3x*+*2y* – Simplex,*ellipsoid,*interior*point*methods…* 8* subject-to- – Standard*packages*for*solving*these* 4x*+*2y*≤*15* op)mal*IP* • GNU*Linear*Programming*Kit,*CPLEX,*…* solu)on:*x=2,*y=3** 6* x*+*2y*≤*8* (objec)ve*12)* • (Mixed)*integer*programs*are*intractable*to*solve* x*+*y*≤*5* op)mal*LP* 4* – No*known*efficient*(guaranteed*run*)me*less*than*exponen)al)* solu)on:*x=2.5,* x*≥*0* y=2.5** algorithms* (objec)ve*12.5)* – Solvers*use*standard*searchnlike*algorithms* y*≥*0,*integer* op)mal*MIP* 2* solu)on:*x=2.75,* y=2** (objec)ve*12.25)* 0* 4* 6* 8* 2* Rock,*Paper,*Scissors*Zero*Sum*Formula)on* • In*zero*sum*games,*one*player’s*loss*is*other’s*gain* • Payoff*matrix:* Back*to*Games!* R P S R 0 − 1 1 P 1 0 − 1 S − 1 1 0 • Minimax*solu)on*maximizes*worst*case*outcome*

  6. Rock,*Paper,*Scissors*Equa)ons* Outline* • Digression:*Linear*Programming* • R,P,S*=*probability*that*we*play*rock,*paper,*or* scissors*respec)vely*(R+P+S*=*1)* • U*is*our*expected*u)lity* • 2*player,*zero*sum*simultaneous*move*games* • Bounding*our*u)lity:* • Example:*Rock,*Paper,*Scissors* – Opponent*rock*case:**U*≤*P*–*S* – Opponent*paper*case:*U*≤*S*–*R* • Linear*programming*solu)on* – Opponent*scissors*case:*U*≤*R*–*P* • Want*to*maximize*U*subject*to*constraints* • General*sum*games* • Solu)on:** Canonical*LP*max*Formula)on* Rock,*Paper,*Scissors*LP*Formula)on* • Our*variables*are:**x=[U,R,P,S] T* maximize : c T x • We*want:* subject # to : A x b ≤ – Maximize*U* # : x 0 ≥ – U*≤*P*–*S* – U*≤*S*–*R* • Note:**min*formula)on*also*possible* – Min:*c T x* – U*≤*R*–*P* – Subject*to:**Ax≥b* c T maximize : x – R+P+S*=*1* • Some*use*equality*as*the*canonical*representa)on * ** ? * (introducing*slack*variables)* subject # to : A x b • How*do*we*make*this*fit:* ≤ • LP*tricks* – Mul)ply*by*n1*to*reverse*inequali)es* # : x 0 ≥ – Can*easily*introduce*equality*constraints,*or*arbitrary*domain*constraints*

  7. Rock*Paper*Scissors*LP*Formula)on* Rock,*Paper,*Scissors*Solu)on* • If*we*feed*this*LP*to*an*LP*solver*we*get:* x = [ U , R , P , S ] T – R=P=S=1/3* 1 0 − 1 1 # & – U=0* % ( c T maximize : x 1 − 1 0 1 • Solu)on*for*the*other*player*is:* % ( 1 − 1 1 0 A = % ( subject # to : A x b – The*same…* ≤ % ( 0 1 1 1 – By*symmetry* % ( # : x 0 % ( ≥ 0 − 1 − 1 − 1 • This*is*the*minimax*solu)on* $ ' b = [ 0 , 0 , 0 , 1 , − 1 ] T • This*is*also*an*equilibrium* c = [ 1 , 0 , 0 , 0 ] T – *No*player*has*an*incen)ve*to*deviate* !! !! – (Defined*more*precisely*later)* Tangent:**Why*is*RPS*Fun?* Minimax*Solu)ons*in*General* • What*do*we*know*about*minimax*solu)ons?* • OK,*it’s*not…* – Can*a*subop)mal*opponent*trick*minimax?* – When*should*we*abandon*minimax?* • Minimax*solu)ons*for*2nplayer*zeronsum*games*can*always*be* found*by*solving*a*linear*program* • Why* might *RPS*be*fun?* • The*minimax*solu)ons*will*also*be*equilibria* – Try*to*exploit*nonnrandomness*in*your*friends* • For*general*sum*games:* – Try*to*be*random*yourself* – Minimax*does*not*apply* – Equilibria*may*not*be*unique* – Need*to*search*for*equilibria*using*more*computa)onally*intensive* methods*

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend