# Normal Form Games¶

## Motivating example: Coordination Game¶

Game theory is the study of interactive decision making. One example of this is the following situation:

Two friends must decide what movie to watch at the cinema. Alice would like to watch a sport movie and Bob would like to watch a comedy. Importantly, they would both rather spend their evening together than apart.

To quantify this mathematically, numeric values are associated to the 4 possible outcomes:

1. Alice watches a sport movie, Bob watches a comedy: Alice receives a utility of 1 and Bob a utility of 1.

2. Alice watches a comedy, Bob watches a sport movie: Alice receives a utility of 0 and Bob a utility of 0.

3. Alice and Bob both watch a sport movie: Alice receives a utility of 3 and Bob a utility of 2.

4. Alice and Bob both watch a comedy: Alice receives a utility of 2 and Bob a utility of 3.

This particular example will be represented using two matrices.

$$A$$ will represent the utilities of Alice:

$\begin{split}A = \begin{pmatrix} 3 & 1\\ 0 & 2 \end{pmatrix}\end{split}$

$$B$$ will represent the utilities of Bob

$\begin{split}B = \begin{pmatrix} 2 & 1\\ 0 & 3 \end{pmatrix}\end{split}$

Alice is referred to as the row player and Bob as the column player:

• The row player chooses which row of the matrices the player will gain their utilities.

• The column player chooses which column of the matrices the player will gain their utilities.

This representation of the strategic interaction between Alice and Bob is called a Normal Form Game

## Definition of Normal Form Game¶

An $$N$$ player normal form game consists of:

• A finite set of $$N$$ players.

• Action set for the players: $$\{\mathcal{A}_1, \mathcal{A}_2, \dots \mathcal{A}_N\}$$

• Payoff functions for the players: $$u_i : \mathcal{A}_1 \times \mathcal{A}_2 \dots \times \mathcal{A}_N \to \mathbb{R}$$

Question

For the Coordination game:

1. What is the finite set of players?

2. What are the action sets?

3. What are the payoff functions?

## Definition of a Zero Sum Game¶

A two player normal form game with payoff matrices $$A, B$$ is called zero sum if and only if:

$A = -B$

Question

Is the Coordination game zero sum?

## Examples of other Normal Form Games¶

### Prisoners Dilemma¶

Assume two thieves have been caught by the police and separated for questioning. If both thieves cooperate and do not divulge any information they will each get a short sentence (with a utility value of 3). If one defects they are offered a deal (utility value of 5) while the other thief will get a long sentence (utility value of 0). If they both defect they both get a medium length sentence (utility value of 1).

Question

For the Prisoners Dilemma

1. What is the finite set of players?

2. What are the action sets?

3. What are the payoff functions?

4. Is the game zero sum?

### Hawk Dove Game¶

Suppose two birds of prey must share a limited resource. The birds can act like a hawk or a dove. Hawks always act aggressively over the resource to the point of exterminating another hawk (both hawks get a utility value of 0) and/or take a majority of the resource from a dove (the hawk gets a utility value of 3 and the dove a utility value of 1). Two doves can share the resource (both getting a utility value of 2).

Question

For the Hawk Dove Game

1. What is the finite set of players?

2. What are the action sets?

3. What are the payoff functions?

4. Is the game zero sum?

### Pigs¶

Consider two pigs. One dominant pig and one subservient pig. These pigs share a pen. There is a lever in the pen that delivers food but if either pig pushes the lever it will take them a little while to get to the food.

• If the dominant pig pushes the lever, the subservient pig has some time to eat most of the food before being pushed out of the way. The dominant pig gets a utility value of 2 and the subservient pig gets a utility value of 3.

• If the subservient pig pushes the lever, the dominant pig will eat all the food. The dominant pig gets a utility value of 6 and the subservient pig gets a utility value of -1.

• If both pigs push the lever, the subservient pig will a small amount of the food. The dominant pig gets a utility value of 4 and the subservient pig gets a utility value of 2.

• If both pigs do not push the lever they both get a utility value of 0.

Question

For the Pigs Game

1. What is the finite set of players?

2. What are the action sets?

3. What are the payoff functions?

4. Is the game zero sum?

### Matching Pennies¶

Consider two players who can choose to display a coin either Heads facing up or Tails facing up. If both players show the same face then player 1 wins, if not then player 2 wins. Winning corresponds to a numeric value of 1 and losing a numeric value of -1.

Question

For the Matching Pennies game:

1. What is the finite set of players?

2. What are the action sets?

3. What are the payoff functions?

4. Is the game zero sum?

## Using Nashpy¶

See Create a Normal Form Game for guidance of how to use Nashpy to create a Normal form game.