Professional Documents
Culture Documents
Game Theory: Unit - Iii
Game Theory: Unit - Iii
Game Theory
• Invented by von
Neumann and
Morgenstren in 1944.
• Game Theory is a
mathematical theory
that deals with
models of conflict
and cooperation.
UNIT - III
Dr. Devendra Choudhary, Govt.
Engineering College Ajmer
1
04-Oct-18
ZERO-SUM GAMES
Two-Player Games
• A game with just two players is a two-player Penny Matching:
game. Each of the two players has a penny.
• We will study only games in which there are Two players must simultaneously choose whether to show the
two players. Head or the Tail.
• Chess, back-gammon, tic-tac-toe, and rock- Both players know the following rules:
paper-scissors are examples. If two pennies match (both heads or both tails) then player
2 wins player 1’s penny.
Otherwise, player 1 wins player 2’s penny.
2
04-Oct-18
Player 2 Player 2
Strategies Strategies
Head Tail Head Tail
Head -1 , 1 1 , -1 Head -1 1
Player 1
1 , -1 -1 , 1 Payoff Player 1
1 -1 Payoff
Tail Tail
3
04-Oct-18
E.g. if A plays Up and B plays Right then And if A plays Down and B plays Right
A’s payoff is 1 and B’s payoff is 8. then A’s payoff is 2 and B’s payoff is 1.
4
04-Oct-18
5
04-Oct-18
6
04-Oct-18
If A plays Up then B’s best reply is Left. If A plays Up then B’s best reply is Left.
If B plays Left then A’s best reply is Up.
So (U,L) is a likely play.
7
04-Oct-18
8
04-Oct-18
9
04-Oct-18
Similarly, no matter what Prisoner 2 plays, So the only Nash equilibrium for this
Prisoner 1’s best reply is always Confess. game is (C,C), even though (S,S) gives
Hence, Confess is a dominant strategy for both Prisoner 1 and Prisoner 2 better payoffs.
Prisoner 1 also. The only Nash equilibrium is inefficient.
Dr. Devendra Choudhary, Govt. Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
10
04-Oct-18
Scissors -1 , 1 1 , -1 0,0 -1
• The payoffs for the players always adds up to Column +1 +1 +1 -1
zero minimum
Scissors
+1
-1
0
+1
-1
0
-1
-1
Column +1 +1 +1 -1
Dr. Devendra Choudhary, Govt. minimum Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
11
04-Oct-18
Player B Player B
Row Row
B1 B2 B3 B4 B5 Min. B1 B2 B3 B4 B5 Min.
A1 2 4 3 8 4 2 A1 2 4 3 8 4 2
Player A
Player A
A2 5 6 3 7 8 3 A2 5 6 3 7 8 3
A3 6 7 9 8 7 6 A3 6 7 9 8 7 6
A4 4 2 8 4 3 2 A4 4 2 8 4 3 2
Column
Max. 6 7 9 8 8
Dr. Devendra Choudhary, Govt.
Engineering College Ajmer
Minimax = Maximin
Dr. Devendra Choudhary, Govt.
Engineering College Ajmer
Player A
A2 -4 -3 9 10 A2 -4 -3 9 10 -4
A3 10 2 -5 0 A3 10 2 -5 0 -5
Column
Max. 10 6 9 10
Minimax = Maximin
Dr. Devendra Choudhary, Govt. Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
12
04-Oct-18
Player A
A2 2 3 8 4 A2 2 3 8 4 2
A3 -5 -2 10 -3 A3 -5 -2 10 -3 -5
A4 7 4 -2 -5 A4 7 4 -2 -5 -5
Col. Max. 7 9 10 4
Dr. Devendra Choudhary, Govt.
Engineering College Ajmer
Minimax ≠ Maximin
Dr. Devendra Choudhary, Govt.
Engineering College Ajmer
13
04-Oct-18
Player A
A2 2 3 8 4 A2 2 3 4
A3 -5 -2 10 -3 A3 -5 -2 -3
A4 7 4 -2 -5 A4 7 4 -5
Player A
A2 2 3 4 A2 2 3 4 3
A3 A3
A4 7 4 -5 A4 7 4 -5 1
14
04-Oct-18
Player A
A2 2 4 A2 2 4
A3 A3
A4 7 -5 A4 7 -5
Player A
A2 3 4 2 4 A2 3 4 2 4 2
A3 4 2 4 0 A3 4 2 4 0 0
A4 0 6 0 8 A4 0 6 0 8 0
Col. Max. 4 6 4 8
Dr. Devendra Choudhary, Govt.
Engineering College Ajmer
Minimax ≠ Maximin
Dr. Devendra Choudhary, Govt.
Engineering College Ajmer
15
04-Oct-18
Player A
A2 3 4 2 4 A2 4 2 4
A3 4 2 4 0 A3 2 4 0
A4 0 6 0 8 A4 6 0 8
Player A
A2 4 2 4 3 A2 2 4
A3 2 4 0 2 A3 4 0
A4 6 0 8 4 A4 0 8
16
04-Oct-18
Player
A3 4 0
A1
A
A4 0 8
Player A
A2
A3 4 0
A4 0 8 • Find the difference of two numbers in Column I and put
it under the Column II, neglecting negative sign if occurs.
Player
A3 4 0 A3 4 0
A
A
A4 0 8 A4 0 8
4 8 4
• Find the difference of two numbers in Column I and put • Similarly, find the difference of two numbers in Column II
it under the Column II, neglecting negative sign if occurs. and put it under the Column I, neglecting negative sign if
occurs.
Dr. Devendra Choudhary, Govt. Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
17
04-Oct-18
Player
Player
A3 4 0 8 A3 4 0 8 8/12
A
A
A4 0 8 4 A4 0 8 4 4/12
8 4 8 4
Prob. 8/12 4/12
• Do similar steps for two rows also. • Optimum strategy for Player A {0, 0, 8/12, 4/12}
• Optimum strategy for Player B { 0, 0, 8/12, 4/12}
• The Value of game V = {4*8/12+0*4/12} = 8/3
Dr. Devendra Choudhary, Govt. Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
Player A
B3 B4 Prob. A1 5 1
Player
A3 4 0 8 8/12 A2 3 4
A
A4 0 8 4 4/12
8 4
Prob. 8/12 4/12
• The Value of game V = {0*8/12+8*4/12} = 8/3
18
04-Oct-18
Player A
Player A
A1 5 1 p A1 5 1
A2 3 4 1–p A2 3 4
q 1–q
B’s pure strategy A’s expected payoff A’s pure strategy B’s expected payoff
B1 5*p + 3*(1 – p) = 2p + 3 A1 5*q + 1*(1 – q) = 4q + 1
B2 1*p + 4*(1 – p) = 4 – 3p A2 3*q + 4*(1 – q) = 4 – q
Expected payoff under both conditions are equal, that is: Expected payoff under both conditions are equal, that is:
2pDr.+Devendra
3 = 4Choudhary,
– 3p orGovt.
p = 1/5 4q + 1 = 4Choudhary,
Dr. Devendra – q or Govt.
q = 3/5
Engineering College Ajmer Engineering College Ajmer
B1 B2 B3 Probability
A1 5 1 1/5
A1 1 3 11 X1
Player
A2 3 4 4/5
A
3/5 2/5 A2 8 5 2 X2= 1-X1
19
04-Oct-18
X1 = 0 X1 = 1 X1 = 0 X1 = 1
Dr. Devendra Choudhary, Govt. Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
Player A
Subsequently, for Player B
A2 3 5
5 - 2*X1
B2 and B3 strategies are A3 11 2
Feasible. Therefore, Probability Y1 Y2 = 1 - Y1
Y2 + Y 3 = 1
X1 = 0 X =11 3*Y2 + 11*(1 – Y2) = V = 49/11 A’s strategies B’s expected payoff
Player B or A1 2*Y1 + 7*(1-Y1) = 7 – 5*Y1
B2 B3 5*Y2 + 2*(1 – Y2) = V = 49/11.
A2 3*Y1 + 5*(1-Y1) = 5 – 2*Y1
Player
A1 3 11 That is,
A
A2 5 2 Dr. Devendra
Y2Choudhary,
Engineering
= 9/11 Govt.
College Ajmer
and Y3 = 2/11. A3 11*Y1 + 2*(1-Y1) = 2 + 9*Y1
Dr. Devendra Choudhary, Govt.
Engineering College Ajmer
20
04-Oct-18
Y1 = 0 Y1 = 1
Dr. Devendra Choudhary, Govt. Y1 = 0 Y1 = 1
Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
A1 2 7 That is,
A
A3 11 2 Dr. Devendra
X1Choudhary,
= 9/14 Govt.
and X3 = 5/14. Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
21
04-Oct-18
22
04-Oct-18
EXAMPLE: Stone, Paper, Scissors GAME EXAMPLE: Stone, Paper, Scissors GAME
Player B Player B Row
Min
Stone Paper Scissor Stone Paper Scissor
Stone 0 -1 1 Stone 0 -1 1 -1
Player A
Player A
Paper 1 0 -1 Paper 1 0 -1 -1
Scissor -1 1 0 Scissor -1 1 0 -1
Col. Max. 1 1 1
Dr. Devendra Choudhary, Govt. Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
EXAMPLE: Stone, Paper, Scissors GAME EXAMPLE: Stone, Paper, Scissors GAME
Stone Paper Scissor • The column player has chosen Stone Paper Scissor • The row player has chosen a
a mixed strategy (y1, y2, y3) mixed strategy (x1, x2, x3) then
Stone Stone the optimal strategy can be
0 -1 1 then the optimal strategy can 0 -1 1 found by solving the LP
Paper be found by solving the LP Paper
1 0 -1 1 0 -1 Max z = v
Scissor Scissor
-1 1 0 Min z = w -1 1 0 s.t.
s.t.
v ≤ x2 – x3 (Stone constraint)
x1 = probability that row player chooses stone w ≤ -y2 + y3 (Stone constraint) The row player’s LP is the dual of
x2 = probability that row player chooses paper v ≤ -x1 + x3 (Paper constraint)
x3 = probability that row player chooses scissors w ≤ y1 - y3 (Paper constraint) the column player’s LP.
y1 = probability that row player chooses stone v ≤ x1 – x2 (Scissor constraint)
y2 = probability that row player chooses paper w ≤ -y1 + y2 (Scissor constraint) x1 + x2 +x3 = 1
y3 = probability that row player chooses scissors
y1 + y2 +y3 = 1 x1, x2, x3 ≥ 0
y 1 , y 2 , y3 ≥ 0
Dr. Devendra Choudhary, Govt. Dr. Devendra Choudhary, Govt.
Engineering College Ajmer Engineering College Ajmer
23