Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
S. Pinchinat
Master2 RI 2011-2012
S. Pinchinat (IRISA)
Master2 RI 2011-2012
1 / 64
Introduction
Economy
Biology
Synthesis and Control of reactive Systems
Checking and Realizability of Formal Specifications
Compatibility of Interfaces
Simulation Relations between Systems
Test Cases Generation
...
S. Pinchinat (IRISA)
Master2 RI 2011-2012
2 / 64
In this Course
S. Pinchinat (IRISA)
Master2 RI 2011-2012
3 / 64
Bibliography
S. Pinchinat (IRISA)
Master2 RI 2011-2012
4 / 64
Strategic Games
Representions
T
B
r
w1 , w2 x1 , x2
y1 , y2 z 1 , z 2
Player 1 has the rows (Top or Bottom) and Player 2 has the columns
(left or right):
S1 = {T , B} and S2 = {, r }
For example, when Player 1 chooses T and Player 2 chooses , the
payoff for Player 1 (resp. Player 2) is w1 (resp. w2 ), that is
u1 (T , ) = w1 and u2 (T , ) = w2
S. Pinchinat (IRISA)
Master2 RI 2011-2012
5 / 64
Strategic Games
Example
The Battle of Sexes
Bach
Stravinsky
Bach
2, 1
0, 0
Stravinsky
0, 0
1, 2
Mozart
1, 1
0, 0
Mahler
0, 0
2, 2
Master2 RI 2011-2012
6 / 64
Strategic Games
Master2 RI 2011-2012
7 / 64
Strategic Games
Confess
Dont Confess
confess
2, 2
3, 0
dont Confess
0, 3
1, 1
S. Pinchinat (IRISA)
Master2 RI 2011-2012
7 / 64
Strategic Games
A 3-player Games
T
B
L R
8 0
0 0
M1
L R
4 0
0 4
M2
L R
0 0
0 8
M3
L R
3 3
3 3
M4
S. Pinchinat (IRISA)
Master2 RI 2011-2012
8 / 64
Strategic Games
Master2 RI 2011-2012
9 / 64
Strategic Games
Comments on Interpretation
A strategic game describes a situation where
we have a one-shot even
each player knows
S. Pinchinat (IRISA)
Master2 RI 2011-2012
10 / 64
Strategic Games
Comments on Interpretation
A strategic game describes a situation where
we have a one-shot even
each player knows
S. Pinchinat (IRISA)
Master2 RI 2011-2012
10 / 64
Strategic Games
Notations
S. Pinchinat (IRISA)
Master2 RI 2011-2012
11 / 64
Strategic Games
Dominance
Let si , si Si .
si strongly dominates si if
ui (si , si ) > ui (si , si ) for all si Si ,
si (weakly) dominates si if
ui (si , si ) ui (si , si ), for all si Si ,
ui (si , si ) > ui (si , si ), for some si Si .
S. Pinchinat (IRISA)
Master2 RI 2011-2012
12 / 64
Strategic Games
Example of Dominance
The Prisoners Dilemma
c
d
C 2, 2 0, 3
D 3, 0 1, 1
Strategy C of Player 1 strongly dominates strategy D.
Because the game is symmetric, strategy c of Player 2 strongly
dominates strategy d.
Note also that u1 (D, d) > u1 (C , c) (and also u2 (D, d) > u2 (C , c)),
so that
C dominates D does not mean C is always better than D.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
13 / 64
Strategic Games
T
B
r
1, 3 1, 3
1, 1 1, 0
(weakly) dominates r .
S. Pinchinat (IRISA)
Master2 RI 2011-2012
14 / 64
Strategic Games
S. Pinchinat (IRISA)
Master2 RI 2011-2012
15 / 64
Strategic Games
S. Pinchinat (IRISA)
Master2 RI 2011-2012
16 / 64
Strategic Games
Nash Equilibrium
Motivations
Bach
2, 1
0, 0
Stravinsky
0, 0
1, 2
S. Pinchinat (IRISA)
Master2 RI 2011-2012
17 / 64
Strategic Games
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
18 / 64
Strategic Games
Nash Equilibrium
Illustration
T
B
r
2
1
0
0
3
S. Pinchinat (IRISA)
1
1
Master2 RI 2011-2012
19 / 64
Strategic Games
Nash Equilibrium
Illustration
T
B
r
2
0
0
S. Pinchinat (IRISA)
1
1
1
T
B
r
2
1
0
0
3
1
1
Master2 RI 2011-2012
19 / 64
Strategic Games
Nash Equilibrium
Examples
Battle of Sexes: two Nash Equilibria.
Bach
2,1
0, 0
Bach
Stravinsky
Stravinsky
0, 0
1,2
Mozart
1,1
0, 0
Mahler
0, 0
2,2
Master2 RI 2011-2012
20 / 64
Strategic Games
Nash Equilibrium
Proposition
If a game is dominance solvable, its solution is the only NE of the game.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
21 / 64
Strategic Games
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
22 / 64
S. Pinchinat (IRISA)
Master2 RI 2011-2012
23 / 64
Mixed Strategies
A mixed (randomized) strategy xi for Player i is a probability distribution
over Si . Formally, it is a vector xi = (xi (1), . . . , xi (mi )) with
xi (j) 0, for all j Si , and
xi (1) + . . . + xi (mi ) = 1
Let Xi be the set of mixed strategies for Player i .
X := X1 X2 . . . Xn is the set of (mixed) profiles.
A mixed strategy xi is pure if xi (j) = 1 for some j Si and xi (j ) = 0
for all j 6= j. We use i ,j to denote such a pure strategy.
The support of the mixed strategy xi is
support(xi ) := {i ,j | xi (j) > 0}
We use e.g. xi (counter (mixed) profile), Xi (counter profiles), etc.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
24 / 64
S. Pinchinat (IRISA)
Master2 RI 2011-2012
25 / 64
Expected Payoffs
Given a profile x = (x1 , . . . , xn ) of mixed strategies, and a
combination of pure strategies s = (s1 , . . . , sn ), the probability of
combinaison s under profile x is
x(s) := x1 (s1 ) x2 (s2 ) . . . xn (sn )
The expected payoff of Player i is the mapping Ui : X IR defined by
X
Ui (x) :=
x(s) ui (s)
sS
It coincides with the notion of payoff when only pure strategies are
considered.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
26 / 64
S. Pinchinat (IRISA)
Master2 RI 2011-2012
27 / 64
u1 (1, 1) u1 (1, 2)
u1 (2, 1) u1 (2, 2)
U1 :=
...
...
u1 (n, 1) u1 (n, 2)
. . . u1 (1, m)
. . . u1 (2, m)
...
...
. . . u1 (n, m)
U2 . . .
Master2 RI 2011-2012
28 / 64
m
n X
X
pj u1 (j, k) qk
j=1 k=1
m
n X
X
pj u2 (j, k) qk
j=1 k=1
S. Pinchinat (IRISA)
Master2 RI 2011-2012
29 / 64
Master2 RI 2011-2012
30 / 64
P
P
x1 U1 x2 = nj=1 pj (U1 x2 )j = nj=1 pj [u [u (U1 x2 )j]]
Pn
Pn
P
= j=1 pj u j=1 pj [u (U1 x2 )j] = u nj=1 pj [u (U1 x2 )j]
Master2 RI 2011-2012
31 / 64
Only pure strategies that get maximum, and hence equal, expected payoff
can be played with postive probability in NE.
Proposition
A propfile (x1 , x2 ) is a NE if and only if there exists w1 , w2 IR such that
for every j support(x1 ), (U1 x2 )j = w1 , and
for every j
/ support(x1 ), (U1 x2 )j w1 .
for every k support(x2 ), (x1 U2 )k = w2 . and
for every k
/ support(x2 ), (x1 U2 )k w2 .
S. Pinchinat (IRISA)
Master2 RI 2011-2012
32 / 64
(U1 x2 )j = w1
(x
P1nU2 )k = w2
pj = 1
Pj=1
k=1 qk = 1
S. Pinchinat (IRISA)
Master2 RI 2011-2012
33 / 64
(U1 x2 )j = w1
(x
P1nU2 )k = w2
pj = 1
Pj=1
k=1 qk = 1
Master2 RI 2011-2012
33 / 64
b
B
S
s
2
0
0
1
0
0
S. Pinchinat (IRISA)
Master2 RI 2011-2012
34 / 64
b
B
S
s
2
0
0
1
0
0
S. Pinchinat (IRISA)
1
2
Master2 RI 2011-2012
34 / 64
b
B
S
s
2
0
0
1
0
0
1
2
S. Pinchinat (IRISA)
Master2 RI 2011-2012
34 / 64
b
B
S
s
2
0
0
1
0
0
S. Pinchinat (IRISA)
Master2 RI 2011-2012
34 / 64
b
B
S
s
2
0
0
1
0
0
Then Player II can mix between b and s. A similar calculation shows that
Player I is indifferent between C and S if Player II uses the mixed strategy
(2/3, 1/3), and Player I has an expected payoff of 2/3 for both strategies.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
34 / 64
b
B
S
s
2
0
0
1
0
0
Then Player II can mix between b and s. A similar calculation shows that
Player I is indifferent between C and S if Player II uses the mixed strategy
(2/3, 1/3), and Player I has an expected payoff of 2/3 for both strategies.
The profile of mixed strategies ((1/3, 2/3), (2/3, 1/3)) is the mixed NE.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
34 / 64
S. Pinchinat (IRISA)
Master2 RI 2011-2012
35 / 64
Matching Pennies
Head Tail
Head 1, 1 1, 1
Tail 1, 1 1, 1
x1 (Head) = x1 (Tail ) = x2 (Head) = x2 (Tail ) =
1
2
S. Pinchinat (IRISA)
Master2 RI 2011-2012
36 / 64
Complements
S. Pinchinat (IRISA)
Master2 RI 2011-2012
37 / 64
S. Pinchinat (IRISA)
Master2 RI 2011-2012
38 / 64
By Extensive Games,
we implicitly mean
Extensive Games with Perfect Information.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
39 / 64
Example
1
(0, 2)
(1, 1)
(2, 0)
(2, 0)
(0, 0)
(1, 1)
2
n
(0, 0)
(0, 2)
(0, 0)
S. Pinchinat (IRISA)
Master2 RI 2011-2012
40 / 64
2
2, 3
c
1
3, 4
4, 5
1
3
0, 15
1, 3
2
3
3, 0
0, 5
4, 2
Master2 RI 2011-2012
41 / 64
Master2 RI 2011-2012
42 / 64
S. Pinchinat (IRISA)
Master2 RI 2011-2012
43 / 64
Example
1
(0, 2)
(1, 1)
(2, 0)
(2, 0)
(0, 0)
(1, 1)
2
n
(0, 0)
(0, 2)
(0, 0)
Player 1 plays at decision node (she starts the game), and this is the
only one; she has 3 strategies s1 = (2, 0), s1 = (1, 1), s1 = (0, 2).
Player 2 takes an action after each of the three histories, and in each
case it has 2 possible actions (y or n); we write this as abc
(a, b, c {y , n}), meaning that after history (2, 0) Player 2 chooses
action a, after history (1, 1) Player 2 chooses action b, and after
history (0, 2) Player 2 chooses action c.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
44 / 64
Example
1
(0, 2)
(1, 1)
(2, 0)
(2, 0)
(0, 0)
(1, 1)
2
n
(0, 0)
(0, 2)
(0, 0)
Player 1 plays at decision node (she starts the game), and this is the
only one; she has 3 strategies s1 = (2, 0), s1 = (1, 1), s1 = (0, 2).
Player 2 takes an action after each of the three histories, and in each
case it has 2 possible actions (y or n); we write this as abc
(a, b, c {y , n}), meaning that after history (2, 0) Player 2 chooses
action a, after history (1, 1) Player 2 chooses action b, and after
history (0, 2) Player 2 chooses action c. Possible strategies for Player
2 are yyy , yyn, yny , ynn, ... There are 23 possibilities.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
44 / 64
Example
1
(0, 2)
(1, 1)
(2, 0)
(2, 0)
(0, 0)
(1, 1)
(0, 0)
(0, 2)
(0, 0)
Player 1 plays at decision node (she starts the game), and this is the
only one; she has 3 strategies s1 = (2, 0), s1 = (1, 1), s1 = (0, 2).
Possible strategies for Player 2 are yyy , yyn, yny , ynn, ... There are
23 possibilities.
In general the number of strategies of a given Player i is in O(|Ai |m )
where m is the number of decision nodes where Player i plays.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
44 / 64
Master2 RI 2011-2012
45 / 64
Reduced Strategies
S. Pinchinat (IRISA)
Master2 RI 2011-2012
46 / 64
Outcomes
S. Pinchinat (IRISA)
Master2 RI 2011-2012
47 / 64
Example of Outcomes
1
1
2
v4
D
1
v3
v1
S. Pinchinat (IRISA)
v2
Master2 RI 2011-2012
48 / 64
S. Pinchinat (IRISA)
Master2 RI 2011-2012
49 / 64
AE
AF
BE
BF
C
v1
v2
v4
v4
D
v3
v3
v4
v4
1
B
A
2
v4
Reduced Strategies:
C D
AE v1 v3
AF v2 v3
B v4 v4
v1
S. Pinchinat (IRISA)
v3
v2
Master2 RI 2011-2012
50 / 64
Nash Equilibrium
Simply use the definition of NE for the strategic game form of the
extensive game.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
51 / 64
Nash Equilibrium
A
2
0, 0
1, 2
2, 1
Two NE (A, R) and (B, L) with payoffs are (2, 1) and (1, 2) resp.
(B, L) is a NE because:
S. Pinchinat (IRISA)
Master2 RI 2011-2012
52 / 64
Nash Equilibrium
A
2
0, 0
1, 2
2, 1
Two NE (A, R) and (B, L) with payoffs are (2, 1) and (1, 2) resp.
(B, L) is a NE because:
Master2 RI 2011-2012
52 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
53 / 64
Nash Equilibrium
1
1
B
v4
v3
v1
v1
S. Pinchinat (IRISA)
v3
v2
v2
Master2 RI 2011-2012
54 / 64
Nash Equilibrium
O|h (si
|h , si |h ) %i |h O|h (si
|h , si )
S. Pinchinat (IRISA)
Master2 RI 2011-2012
55 / 64
Nash Equilibrium
Example
1
1
B
A
2
0, 0
1, 2
2, 1
NE were (A, R) and (B, L), but the only SPE is (A, R).
S. Pinchinat (IRISA)
Master2 RI 2011-2012
56 / 64
Nash Equilibrium
Another Example
1
(0, 2)
(1, 1)
(2, 0)
(2, 0)
(0, 0)
(1, 1)
2
n
(0, 0)
(0, 2)
(0, 0)
Master2 RI 2011-2012
57 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
58 / 64
Nash Equilibrium
A
2
0, 0
S. Pinchinat (IRISA)
1, 2
2, 1
Elements of Game Theory
Master2 RI 2011-2012
59 / 64
Nash Equilibrium
2
2, 1
L
0, 0
S. Pinchinat (IRISA)
1, 2
2, 1
Elements of Game Theory
Master2 RI 2011-2012
60 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
61 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
61 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
61 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
61 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
62 / 64
Nash Equilibrium
Corollary
By the BI procedure, each players action can be chosen deterministically,
so that pure strategies suffice. It is not necessary, as in strategic games, to
consider mixed strategies.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
62 / 64
Nash Equilibrium
Corollary
By the BI procedure, each players action can be chosen deterministically,
so that pure strategies suffice. It is not necessary, as in strategic games, to
consider mixed strategies.
Corollary
Subgame Perfect Equilibrium always exist.
For game trees, we can use SPE synonymously with strategy profile
obtained by backward induction.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
62 / 64
Nash Equilibrium
II
l
2,1,3
1
2
c
0,2,4
III
r
1,2,3
2,3,1
1,4,2
3,5,0
Master2 RI 2011-2012
63 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
64 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
64 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
64 / 64
Nash Equilibrium
S. Pinchinat (IRISA)
Master2 RI 2011-2012
64 / 64
Nash Equilibrium
Master2 RI 2011-2012
64 / 64
Nash Equilibrium
J.F. Nash.
Equilibrium points in n-person games.
Proceedings of the National Academy of Sciences of the United States of
America, 36:4849, 1950.
Andres Perea.
Rationality in extensive form games.
Boston : Kluwer Academic Publishers, 2001.
E. Gradel, W. Thomas, and T. Wilke, editors.
Automata, Logics, and Infinite Games: A Guide to Current Research
[outcome of a Dagstuhl seminar, February 2001], volume 2500 of Lecture
Notes in Computer Science.
Springer, 2002.
S. Pinchinat (IRISA)
Master2 RI 2011-2012
64 / 64