Skip to content

Latest commit

 

History

History
243 lines (163 loc) · 7.89 KB

extensive-form-games.rst

File metadata and controls

243 lines (163 loc) · 7.89 KB

Extensive Form Games

Motivating example: A modification of the Coordination Game

Consider the Coordination game <motivating-example-coordination-game> with the modification that Alice and Bob have more information available to them: Alice decides where they are going and then lets Bob know before Bob makes their own choice.

This can be represented pictorially as follows:

image

Definition of an Extensive Form Game

An extensive form game consists of:

  • A finite set of players 𝒩.
  • A tree: G = (V, E, x0) where: V is the set of vertices, E the set of edges and x0 ∈ V is the root of the tree.
  • (Vi)i ∈ 𝒩 is a partition of the set of vertices that are not leaves.
  • O is the set of possible game outcomes.
  • u is a function mapping every leaf of G to an element of O.

Question

For the modified coordination game <motivating-example-modified-coordination-game>:

  1. What is the finite set of players 𝒩?
  2. What the elements G = (V, E, x0)?
  3. What is the partition (Vi)i ∈ 𝒩?
  4. What is the set of possible game outcomes O?
  5. What is the mapping u from every leaf of G to an element of O?

Answer

  1. The set 𝒩 has two players: Alice and Bob.
  2. The tree is given by:


    V = {A, B1, B2, O1, O2, O3, O4}


    E = {(A, B1), (A, B2), (B1, O1), (B1, O2), (B2, O3), (B2, O4)}


    x0 = A

  3. The partition of of non leaf vertices is given by:


    VAlice = {A1}  VBob = {B1, B2}

  1. The set of possible game ouctomes O = {(3, 2), (1, 1), (0, 0), (2, 3)}.
  2. The mapping u is given by:


u(O1) = (3, 2)  u(O2) = (1, 1)  u(O3) = (0, 0)  u(O4) = (2, 3)

Imperfect information

The modified coordination game described here <motivating-example-modified-coordination-game> differs from the example given in the normal for game chapter <motivating-example-coordination-game> in that Bob knows what action is chosen by Alice.

To represent imperfect information we can partition the vertices of a game tree to indicate which vertices have the same information.

This can be represented pictorially as follows:

image

This indicates that Bob makes a decision at both nodes in {B1, B2} without knowing at which of the two vertices they are. The set {B1, B2} is called an information set.

Definition of an information set

Given a game in extensive form: (𝒩, G, (Vi)i ∈ 𝒩, O, u) the set of information sets vi of player i ∈ 𝒩 is a partition of Vi. Each element of vi denotes a set of nodes at which a player is unable to distinguish when choosing an action.

This implies that:

  • Every information set contains vertices for a single player.
  • All vertices in an information set must have the same number of successors (with the same action labels).

Question

For the following games with 𝒩 = {Alice, Bob}, assume that decision nodes Ai are Alice's and Bi are Bob's. Obtain all information sets:

  1. image
  2. image
  3. image
  4. image
  5. image

Answer

  1. :math:v_{text{Alice}}={{A}} vBob = {{B1}, {B2}}
  2. :math:v_{text{Alice}}={{A}} vBob = {{B1, B2}}
  3. :math:v_{text{Alice}}={{A_1}, {A_2}} vBob = {{B1}, {B2}}
  4. :math:v_{text{Alice}}={{A_1}, {A_2}} vBob = {{B1, B2}}
  5. This game has incoherent information sets: the two vertices B1 and B2 have different actions.

Definition of a strategy in an extensive form game

A strategy for a player in an extensive form is a collection of probability distribution over the action set of each information set.

Equivalence of Extensive and Normal Form Games

A game in extensive form can be mapped to a game in normal form by enumerating all possible strategies that indicate single actions at each information set. This set of possible strategies corresponds to the actions in the normal form game.

These strategies can be thought of as vectors in the space of the cross product of the sets of actions available at every information set. For player i ∈ 𝒩 with information sets vi = ((vi)1, (vi)2, …, (vi)n) a strategy s = (s1, s2, …, sn indicates what action to take at each information set. So s2 will prescribe which action to take at all vertices contained in (vi)2.

As an example consider the modified coordination game <motivating-example-modified-coordination-game>. The full enumeration of strategies that indicate single actions for Alice is:


𝒜1 = {(Sports), (Comedy)}

The full enumeration of strategies that indicate single actions for Bob is:


𝒜2 = {(Sports, Sports), (Sports, Comedy), (Comedy, Sports), (Comedy, Comedy)}

So (Sports, Comedy) indicates to choose Sports at B1 and Comedy at B2.

Using this enumeration the payoff functions can be given by the matrices A, B:

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

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

Question

Obtain the Normal Form Game representation corresponding to

image

Answer

The full enumeration of strategies that indicate single actions for Alice is:


𝒜1 = {(Sports), (Comedy)}

The full enumeration of strategies that indicate single actions for Bob is:


𝒜2 = {(Sports), (Comedy)}

This is because there is a single information set for Bob.

Using this enumeration the payoff functions can be given by the matrices A, B:

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

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

Using Nashpy

See how-to-use-support-enumeration for guidance of how to use Nashpy to use support enumeration to find Nash equilibria once a Normal Form game representation has been obtained.