Motivating Example¶
In the Coordination Game, in how many
situations do neither player have an incentive to independently change
their strategy?
Neither player having a reason to change their strategy implies that both
strategies are best responses to each other.
Recall that for the Coordination game is defined by:
If we consider strategies that only play a single action, there are two options for each strategy:
and:
We will inspect all four combinations:
and corresponds to both players playing their first action, which gives: and .
If the row player were to modify their strategy (while the column player stayed unchanged) to play the second action, their utility would decrease. Likewise, if the column player were to modify their strategy, their utility would also decrease.and corresponds to the row player playing their first action and the column player playing their second action, which gives: and .
In this case, if either player were to move, their utility would increase.and corresponds to the row player playing their second action and the column player playing their first action, which gives: and .
In this case, if either player were to move, their utility would increase.and corresponds to both players playing their second action, which gives: and .
If the row player were to modify their strategy (while the column player stayed unchanged), their utility would decrease. Likewise, if the column player were to modify their strategy, their utility would also decrease.
Is there another pair of strategies that are best responses to each other and will such a pair always exist for any game?
Theory¶
A pair of strategies that are best responses to each other is a Nash equilibrium.
Definition: Nash Equilibria¶
In an -player normal form game, a Nash equilibrium is a strategy profile
such that:
The following algorithm gives an approach to use the best response condition to systematically find all Nash equilibrium.
Definition: Support Enumeration Algorithm¶
The algorithm proceeds as follows:
For a two-player game
, the following algorithm
returns all pairs of best responses:
For all pairs of supports (subsets of the action space) :
Solve the following equations (to ensure best responses):
Solve the normalisation and non-negativity constraints:
- and for all
- and for all
Check the best response condition.
Repeat steps 2–4 for all potential pairs of actions.
Example: Support enumeration algorithm for the coordination game¶
Let us apply the support enumeration algorithm to the coordination game.
The following supports (subsets of the action space) need to be considered:
and
For the cases where steps 2, 3 and 4 of the support enumeration algorithm correspond to finding best responses in the action space. This can be done by highlighting best responses:
The support enumeration algorithm for gives the two following Nash equilibria:
The final pair of actions to consider is when and . In this case let:
for and .
Step 2 corresponds to setting:
and
The particular values of or are not required so we can equate these pairs of expressions:
Giving: and .
Step 3 already holds as we enforced and at the start of our calculations. This is not necessarily the case for larger games.
The final step, step 4, requires us to check the best response condition. This is to check that there exists no better choice of action outside of the chosen set of and . This is more relevant for games with larger action spaces but let us nonetheless carry out the calculations:
and
as required by the best response condition. The support enumeration algorithm has given 3 Nash equilibria:
The support enumeration algorithm is one of many algorithms that can be used to compute Nash equilibrium. Like most of the algorithms it works well for “most” games. When games are “degenerate” it may need more calculations and fail to give all equilibria.
Definition: Degenerate Games¶
A two player game is called non degenerate if no strategy of support size has more than best response actions.
Example: Support Enumeration for a degenerate game¶
Let us use support enumeration for the following game.
First, we note that this game is degenerate, there are two best responses in action space to the first column:
Evaluating best responses in action space gives Nash equilibria:
We need to consider new pairs of supports:
- and : there is single best response to the first column so nothing else to consider here.
- and : step 2 holds for all , step 3 is already satisfied (the vectors are both probability distributions) thus we are left to check the best response condition: the only value of that gives a pair of best response is when the column player has no incentive to move from the support thus .
Exercises¶
Exercise: Support Enumeration¶
Use support enumeration to find Nash equilibria for the following games:
Exercise: Penalty kick strategies and Nash equilibrium¶
A soccer player (Player 1) is taking a penalty kick and can shoot either left or
right: . The goalie (Player 2) can dive left or
right: . The probabilities of scoring a goal
(depending on the chosen strategies) are shown in the matrix below:
Assume the utility to Player 1 is the probability of scoring, and the utility
to Player 2 is the probability of preventing a goal. What is the Nash
equilibrium of this game?
Now suppose Player 1 has a third strategy: shooting in the middle. The new
action set becomes . The updated
probability matrix is:
Determine the new Nash equilibrium for the extended game.
Programming¶
The Nashpy library has an implementation of the support enumeration algorithm. First let us create the payoff matrices and the game:
import numpy as np
import nashpy as nash
A = np.array(
(
(3, 1),
(0, 2),
)
)
B = np.array(
(
(2, 1),
(0, 3),
)
)
coordination_game = nash.Game(A, B)
coordination_game
Now to use the support enumeration algorithm:
list(coordination_game.support_enumeration())
Notable Research¶
Support enumeration is as close to a “from first principles” algorithm for computing Nash equilibria. Thus there is no specific paper to point to as per its formulation. Or indeed there is no specific set of papers that use it for their findings although a lot of papers that consider small games are in essence using support enumeration.
For example in Chiappori et al., 2002 theoretical results are given regarding penalty kicks that rely on the indifference ensured by the best response condition which is in turn essentially an application of the support enumeration algorithm.
A similar paper applied to another animal conservation is Lee & Roberts, 2016 in which the authors build a theoretical model of the effectiveness of Rhino horn devaluation. Once again the calculation presented are essentially an application of the support enumeration algorithm.
In Knight et al., 2017 whilst a different algorithm is used to identify Nash equilibrium for strategic hospital interactions it is somewhat similar to the support enumeration algorithm except that it takes advantage of the specific structure of the game considered.
Conclusion¶
This chapter introduced the concept of Nash equilibrium and demonstrated a
systematic method for identifying all equilibria in a two-player game using the
support enumeration algorithm. This method is rooted directly in the best
response condition and provides a computational approach that works well for
many games, particularly when the number of actions is small.
It is important to recognise that the support enumeration algorithm is
conceptually simple but can become computationally expensive as the action
spaces grow. Nevertheless, it serves as a useful tool both in theory and in
practice, particularly for small-scale empirical models.
Table 1 summarises the core concepts introduced in this chapter.
Table 1:The main concepts of Nash equilibrium
Concept | Description |
---|---|
Nash equilibrium | A strategy profile where each player’s strategy is a best response to the others’ |
Support of a strategy | The set of actions played with positive probability |
Support enumeration algorithm | Enumerates possible supports and checks conditions for equilibrium |
Degenerate game | A game in which some strategy of support size has more than best responses |
- Chiappori, P.-A., Levitt, S., & Groseclose, T. (2002). Testing mixed-strategy equilibria when players are heterogeneous: The case of penalty kicks in soccer. American Economic Review, 92(4), 1138–1151.
- Lee, T. E., & Roberts, D. L. (2016). Devaluing rhino horns as a theoretical game. Ecological Modelling, 337, 73–78.
- Knight, V., Komenda, I., & Griffiths, J. (2017). Measuring the price of anarchy in critical care unit interactions. Journal of the Operational Research Society, 68(6), 630–642.