extensive-form games. extensive-form games with perfect information player 1 player 2 player 1 2,...

23
Extensive-form games

Upload: brice-payne

Post on 17-Dec-2015

225 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Extensive-form games

Page 2: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Extensive-form games with perfect information

Player 1

Player 2 Player 2

Player 1

2, 4 5, 3 3, 2

1, 0 0, 5

• Players do not move simultaneously

• When moving, each player is aware of all the previous moves (perfect information)

• A (pure) strategy for player i is a mapping from player i’s nodes to actions (when at X do s1)

Leaves of the tree show player 1’s utility first, then

player 2’s utility

Page 3: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Backward induction

Player 1

Player 2 Player 2

Player 1

2, 4 5, 3 3, 2

1, 0 0, 5

• When we know what will happen at each of a node’s children, we can decide the best action for the player who is moving at that node

• Substitute the result of the computation at the parent node.

1,0

Page 4: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

What happens with backwards induction here?

Page 5: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

A limitation of backward induction

Player 1

Player 2 Player 2

3, 2 2, 3 4, 1

• Tree may be too long to evaluate.

• If there are ties, then how they are broken affects what happens higher up in the tree

• Colors show multiple possible strategies.

• Multiple equilibria…

0, 1

1/2

.87655

1/2

.12345

Page 6: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Conversion from extensive to normal form

Player 1

Player 2 Player 2

3, 2 2, 3 4, 1

• Nash equilibria of this normal-form game include (Right, LL), (Right, RL), (Left, RR) + infinitely many mixed-strategy equilibria

• In general, normal form can have exponentially many strategies

0, 1

3, 2 3, 2 2, 3 2, 3

4, 1 0, 1 4, 1 0, 1Left

Right

LL LR RL RR

player 1 is row playerLR = Left if 1 moves Left, Right if 1 moves Right; etc.

Underscores mean, given you knowwhat the other person will do, what

will you do?

Left Right

L LR R

Page 7: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Conversion from extensive to normal form

Player 1

Player 2 Player 2

3, 2 2, 3 4, 1 0, 1

3, 2 3, 2 2, 3 2, 3

4, 1 0, 1 4, 1 0, 1Left

Right

LL LR RL RR

player 1 is row playerfor player 2 LR = Left if 1 moves Left, Right if 1 moves Right; etc.

Underscores mean, given you knowwhat the other person will do, what

will you do?

One concern, why is column player playing

LL? It doesn’t appear to be a smart strategy. Will player 1 believe him or is he claiming that strategy

to get an advantage?

Page 8: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Theorem 5.1.3 (SLB)

Every finite perfect-information game in extensive form has a pure-strategy equilibrium.

Why?

Page 9: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Converting another game to normal form

Player 1

Player 2 Player 2

Player 1

2, 4 5, 3 3, 2

1, 0 0, 1

Do at your seats…

Page 10: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Converting another game to normal form

Player 1

Player 2 Player 2

Player 1

2, 4 5, 3 3, 2

1, 0 0, 1

2, 4 2, 4 5, 3 5, 3

2, 4 2, 4 5, 3 5, 3

3, 2 1, 0 3, 2 1, 0

3, 2 0, 1 3, 2 0, 1

LL LR RL RR

LL

RL

RR

• Pure-strategy Nash equilibria of this game are (LL, LR), (LR, LR), (RL, LL), (RR, LL)

• But the only backward induction solution is (RL, LL)

• Why?

LR

Page 11: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Subgame perfect equilibrium

2, 4 2, 4 5, 3 5, 3

2, 4 2, 4 5, 3 5, 3

3, 2 1, 0 3, 2 1, 0

3, 2 0, 1 3, 2 0, 1

Player 1

Player 2 Player 2

Player 12, 4 5, 3 3, 2

1, 0 0, 1

LL LR RL RR

LL

RL

RR

• Each node in a (perfect-information) game tree, together with the remainder of the game after that node is reached, is called a subgame

• A strategy profile is a subgame perfect equilibrium if it is an equilibrium for every subgame

LR

3, 2 1, 0

3, 2 0, 1

*L *R

*L

*R1, 0

0, 1

***L

*R

• (RR, LL) and (LR, LR) are not subgame perfect equilibria because (*R, **) is not an equilibrium as player 1 shouldn’t play R at second node.

• (LL, LR) is not subgame perfect because (*L, *R) is not an equilibrium• *R for player 2 is not a credible threat

Page 12: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Imperfect information• Dotted lines indicate that a player cannot distinguish between

two (or more) states– A set of states that are connected by dotted lines is called an

information set. We consider moves from anyplace in the set as a unit

• Reflected in the normal-form representationPlayer 1

Player 2 Player 2

0, 0 -1, 1 1, -1 -5, -5

• Any normal-form game can be transformed into an imperfect-information extensive-form game this way

At seats, what is normal form?

Show both extensive form and normal form as want to show comparisons

between methods

Page 13: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Imperfect information• Dotted lines indicate that a player cannot distinguish

between two (or more) states– A set of states that are connected by dotted lines is called an

information set

• Reflected in the normal-form representationPlayer 1

Player 2 Player 2

0, 0 -1, 1 1, -1 -5, -5

0, 0 -1, 1

1, -1 -5, -5

L R

L

R

• Any normal-form game can be transformed into an imperfect-information extensive-form game this way

Note at each node of player 2, you mustmake the same choice. Why?

Page 14: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

A poker-like gamePractice turning the game tree into the normal form.

It is a bit tricky

1 gets King 1 gets Jack

bet betstay stay

call fold call fold call fold call fold

“nature”

player 1player 1

player 2 player 2

2 1 1 1 -2 -11 1

0, 0 0, 0 1, -1 1, -1

.5, -.5 1.5, -1.5 0, 0 1, -1

-.5, .5 -.5, .5 1, -1 1, -1

0, 0 1, -1 0, 0 1, -1

cc cf fc ff

bb

sb

ss

bs

2/3 1/3

1/3

2/3

Remove dominated strategiesDo mixed strategy on the others.

Reward for player 1 is shownZero sum game

Page 15: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Computing mixed NE

cc q fc (1-q)

bb p 0,0 1.-1

bs (1-p) .5 , -.5 0,0

Column player selects q so that row player has no preference between row1 or row 2.

row 1 gets 0q + 1(1-q)row 2 gets .5q + 0(1-q)to have no preference, set them equal q = 2/3Solving for p is similar.

Notice that in mixedstrategies, the whole strategyis given a probability.In behavioral strategies, each node can have a different mix.

Page 16: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Subgame perfection and imperfect information

Player 1

Player 2 Player 2

1, -1 -1, 1 -1, 1 1, -1

• How should we extend the notion of subgame perfection to games of imperfect information?

• We cannot expect Player 2 to play Right after Player 1 plays Left, and Left after Player 1 plays Right, because of the information set, player 2 doesn’t know which state he is in.

Let us say that a subtree is a subgame only if there are no information sets that connect the subtree to parts outside the subtree

Page 17: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Subgame perfection and imperfect information…

Player 1

Player 2 Player 2

4, 1 0, 0 5, 1 1, 0• One of the Nash equilibria is: (R, RR)• Also subgame perfect (the only subgames are the whole game, and the

subgame after Player 1 moves Right)• But it is not reasonable to believe that Player 2 will move Right after

Player 1 moves Left/Middle (not a credible threat)• There exist more sophisticated refinements of Nash equilibrium that rule

out such behavior

Player 2

3, 2 2, 3

Page 18: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Computing equilibria in the extensive form

• Can just use normal-form representation– Misses issues of subgame perfection, etc.

• Another problem: there are exponentially many pure strategies, so normal form is exponentially larger– Even given polynomial-time algorithms for normal form,

time would still be exponential in the size of the extensive form as you have to build the table first.

• There are other techniques that reason directly over the extensive form and scale much better– E.g., using the sequence form of the game

Page 19: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Commitment• Consider the following (normal-form) game:

2, 1 4, 0

1, 0 3, 1

• How should this game be played?• Now suppose the game is played as follows:

– Player 1 commits to playing one of the rows,– Player 2 observes the commitment and then chooses a

column

• What is the optimal strategy for player 1?• What if 1 can commit to a mixed strategy?

Page 20: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Commitment as an extensive-form game

Player 1

Player 2 Player 2

2, 1 4, 0 1, 0 3, 1

• For the case of committing to a pure strategy:

Up Down

Left Left RightRight

Page 21: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Commitment as an extensive-form game

Player 1

Player 2

2, 1 4, 0 1, 0 3, 1

• For the case of committing to a mixed strategy:

(1,0) (=Up)

Left Left RightRight

1.5, .5 3.5, .5

Left Right

(0,1) (=Down)

(.5,.5)

… …

• Infinite-size game; computationally impractical to reason with the extensive form here

Page 22: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Solving for the optimal mixed strategy to commit to

[Conitzer & Sandholm 2006; see also: von Stengel & Zamir 2004, Letchford, Conitzer, Munagala 2009]

• For every column t separately, we will solve separately for the best mixed row strategy (defined by ps) that induces player 2 to play t

• maximize Σs ps u1(s, t)

• subject to for any t’, Σs ps u2(s, t) ≥ Σs ps u2(s, t’)

Σs ps = 1

• (May be infeasible, e.g., if t is strictly dominated)• Pick the t that is best for player 1

Page 23: Extensive-form games. Extensive-form games with perfect information Player 1 Player 2 Player 1 2, 45, 33, 2 1, 00, 5 Players do not move simultaneously

Visualization

L C R

U 0,1 1,0 0,0

M 4,0 0,1 0,0

D 0,0 1,0 1,1

(1,0,0) = U

(0,1,0) = M

(0,0,1) = D

L

C

R

Shows what happens toutility as probability ofeach choice changes.A 3D version of the best responsegraph.