35
A Brief Introduction to Game Theory Jesse Crawford Department of Mathematics Tarleton State University April 27, 2011 (Tarleton State University) Brief Intro to Game Theory April 27, 2011 1 / 35

A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

A Brief Introduction to Game Theory

Jesse Crawford

Department of MathematicsTarleton State University

April 27, 2011

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 1 / 35

Page 2: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Outline

1 Games of Perfect Information

2 Games without Perfect Information

3 Final Thoughts

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 2 / 35

Page 3: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Games of Perfect Information

All players know all important details of the game state at all times.Games with perfect information:

chess, checkers, tic-tac-toe

Games without perfect information:

poker, rock-paper-scissors

Can be solved using backwards induction.

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 3 / 35

Page 4: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Example of a Game with Perfect Information

Two players.Start with 4 pennies in center of table.Each player can take 1 penny or 2 pennies on his/her turn.Player to take the last penny wins.First player = blueSecond player = red

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 4 / 35

Page 5: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 5 / 35

Page 6: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 6 / 35

Page 7: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 7 / 35

Page 8: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 8 / 35

Page 9: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 9 / 35

Page 10: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 10 / 35

Page 11: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 11 / 35

Page 12: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 12 / 35

Page 13: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 13 / 35

Page 14: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Backwards Induction for Penny Game

Conclusion: First player wins with optimal play.Backwards induction was easy.Number of variations = 5.

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 14 / 35

Page 15: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Game Tree for Tic-Tac-Toe

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 15 / 35

Page 16: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Tic-Tac-Toe and Checkers

With optimal play, tic-tac-toe is a draw.Schaeffer et al. (2007) showed that checkers is also a draw.http://webdocs.cs.ualberta.ca/~chinook/publications/solving_checkers.html

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 16 / 35

Page 17: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Chess

Number of variations is too big to use backwards induction.

# of variations > 14686 > Number of electrons in visible universe!

Chess programs do use the game tree.I Only plot to finite depth.I Use an evaluation function to evaluate positions.

http://www.shredderchess.com/online-chess/online-databases/opening-database.html

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 17 / 35

Page 18: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Outline

1 Games of Perfect Information

2 Games without Perfect Information

3 Final Thoughts

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 18 / 35

Page 19: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Rock-Paper-Scissors

Two playersEach one chooses Rock, Paper, or Scissors simultaneously.Rock beats ScissorsScissors beats PaperPaper beats Rock

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 19 / 35

Page 20: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Payoff Matrix for RPS

First player = blueSecond player = red

Rock Paper ScissorsRock (0,0) (-1,1) (1,-1)Paper (1,-1) (0,0) (-1,1)

Scissors (-1,1) (1,-1) (0,0)

RPS is a zero sum game.

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 20 / 35

Page 21: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Randomized Strategy for RPS

Need our strategy to be “snoop proof”.Solution: use randomized strategy.

I pR = probability of choosing RockI pP = probability of choosing PaperI pS = probability of choosing Scissors

Example:I pR = 0.7I pP = 0.2I pS = 0.1

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 21 / 35

Page 22: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Randomized Strategy for RPS

Example:I pR = 0.7I pP = 0.2I pS = 0.1

If opponent chooses Paper, his expected utility is

0.7(1) + 0.2(0) + 0.1(−1) = 0.6

This is the maximum utility our opponent can achieve.We want to minimize his maximum utility.

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 22 / 35

Page 23: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Minimax Strategy for RPS

Minimax strategy:I pR = 1

3I pP = 1

3I pS = 1

3

Now if opponent chooses Paper, his expected utility is

13(1) +

13(0) +

13(−1) = 0

No matter what he does, his expected utility will be 0.

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 23 / 35

Page 24: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Equilibrium Strategies

In zero sum games with finite strategy spaces, minimax strategiesalways exist for both players.Both players using minimax strategies is an equilibrium:Neither player can benefit from changing strategies.Theory can be generalized to multiplayer games, cf. Nash (1949).

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 24 / 35

Page 25: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

A Simplified Poker Game

Both players ante $1.Player 1 is dealt a card that says “strong” or “weak”.

I 50% chance of getting “strong” card.I 50% chance of getting “weak” card.

Player 1 may bet $1 or check.Player 2 may call or fold.If there’s a showdown, Player 1 wins if card is strong and loses ifcard is weak.

Player 1 should always bet with strong card.Questions:

I How often should Player 1 bluff with weak card?I How often should Player 2 call when Player 1 bets?

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 25 / 35

Page 26: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Expected Value for Player 1

p = probability that Player 1 bluffs with weak cardq = probability that Player 2 calls when Player 1 betsPlayer 1’s expected value is

EV1 = −1 + 12 [3q + 2(1 − q)] + 1

2p[−1q + 2(1 − q)]

EV1 = −1 + 12 [q + 2] + 1

2p[2 − 3q]

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 26 / 35

Page 27: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Optimal Calling Frequency

EV1 = −1 + 12 [q + 2] + 1

2p[2 − 3q]

Claim: Player 2 should choose q = 23 .

If q < 23 , Player 1 can choose p = 1, and

EV1 = 1 − q > 13 .

If q > 23 , Player 1 can choose p = 0, and

EV1 = 12q > 1

3 .

If q = 23 , then

EV1 = 13 .

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 27 / 35

Page 28: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

A Bit of Algebra

EV1 = −1 + 12 [q + 2] + 1

2p[2 − 3q]

EV1 = −1 + 12 [q(1 − 3p) + 2 + 2p]

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 28 / 35

Page 29: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Optimal Bluffing Frequency

EV1 = −1 + 12 [q(1 − 3p) + 2 + 2p]

Claim: Player 1 should choose p = 13 .

If p < 13 , Player 2 can choose q = 0, and

EV1 = p < 13 .

If p > 13 , Player 2 can choose q = 1, and

EV1 = 12 − 1

2p < 13 .

If p = 13 , then

EV1 = 13 .

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 29 / 35

Page 30: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Simplified Poker Game Solution

Player 1 should always bet with a strong card.Player 1 should bluff 1

3 of the time with a weak card.

Player 2 should call 23 of the time when Player 1 bets.

Player 1 will win about 33 cents per hand on average.

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 30 / 35

Page 31: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Outline

1 Games of Perfect Information

2 Games without Perfect Information

3 Final Thoughts

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 31 / 35

Page 32: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

A Non-zero-sum Game: Prisoner’s Dilemma

Two criminalsInterrogated in separate rooms

Stay Silent ConfessStay Silent (-1,-1) (-10,0)

Confess (0,-10) (-5,-5)

General principle: individuals acting in their own self interest canlead to a negative outcome for the group.Related problems:

I Pollution/“Tragedy of the Commons”I Cartels/MonopoliesI Taxation and public goods

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 32 / 35

Page 33: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Areas of Application for Game Theory

Economics/Political ScienceI Bargaining problems

BiologyI Competition between organismsI Sex ratiosI Genetics

Philosophy

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 33 / 35

Page 34: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

References

Chen, B., and Ankenman, J. (2006). The Mathematics of Poker.Conjelco.Luce, R.D., and Raiffa, H. (1989). Games and Decisions:Introduction and Critical Survey. Dover.Nash, J.F. (1949). Equilibrium Points in N-Person Games.Proceedings of the National Academy of Sciences 36 48-49.Schaeffer, et al. (2007). Checkers is Solved. Science 141518-1522.

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 34 / 35

Page 35: A Brief Introduction to Game Theory › crawford › documents... · Games of Perfect Information All players know all important details of the game state at all times. Games with

Thank You!

(Tarleton State University) Brief Intro to Game Theory April 27, 2011 35 / 35