Algorithm Search⌘K

Definitionintro

Bimatrix game

Also called two-player normal-form game.

A finite two-player game given by two m by n payoff matrices A and B, one for the row player and one for the column player.

A bimatrix game is a finite normal-form game with two players, written as a pair (A,B)(A, B) of m×nm \times n matrices: when the row player chooses row ii and the column player chooses column jj, the row player gets AijA_{ij} and the column player gets BijB_{ij}. It is the setting of most algorithms for Nash equilibria, such as support enumeration and the Lemke-Howson algorithm. The special case B=−AB = -A is a zero-sum game, which linear programming solves; the general case is PPAD-complete.

Definition

Let m,n≥1m, n \ge 1. A bimatrix game is a pair (A,B)(A, B) of real m×nm \times n matrices. The row player has the pure strategies 1,…,m1, \ldots, m, the column player has 1,…,n1, \ldots, n, and the profile (i,j)(i, j) gives payoffs AijA_{ij} and BijB_{ij}. Both players maximize. On two-player pages, mm and nn are these sizes; elsewhere nn is the number of players. In the notation of normal-form games, N={1,2}N = \{1, 2\}, S1={1,…,m}S_1 = \{1, \ldots, m\}, S2={1,…,n}S_2 = \{1, \ldots, n\}, u1(i,j)=Aiju_1(i, j) = A_{ij} and u2(i,j)=Biju_2(i, j) = B_{ij}.

A mixed strategy of the row player is a vector xx in the simplex Δm={x∈Rm:x≥0,∑ixi=1}\Delta_m = \{x \in \mathbb{R}^m : x \ge 0, \sum_i x_i = 1\}, and one of the column player is y∈Δny \in \Delta_n. The expected payoffs are

u1(x,y)=xTAy,u2(x,y)=xTBy.u_1(x, y) = x^{\mathsf T} A y, \qquad u_2(x, y) = x^{\mathsf T} B y.

The vector AyAy lists the payoffs of the rows against yy, and xTBx^{\mathsf T} B lists the payoffs of the columns against xx. A pair (x,y)(x, y) is a Nash equilibrium if and only if

xTAy≥(Ay)i  for every row i,xTBy≥(xTB)j  for every column j.x^{\mathsf T} A y \ge (Ay)_i \ \text{ for every row } i, \qquad x^{\mathsf T} B y \ge (x^{\mathsf T} B)_j \ \text{ for every column } j.

Pure deviations are enough because x′TAyx'^{\mathsf T} A y is an average of the entries of AyAy. The same fact gives the best response condition: xx is a best response to yy if and only if every row ii with xi>0x_i > 0 has (Ay)i=max⁡k(Ay)k(Ay)_i = \max_k (Ay)_k, and the same for yy (best response).

Special cases. The game is zero-sum if B=−AB = -A, and constant-sum if A+BA + B has all entries equal. It is symmetric if m=nm = n and B=ATB = A^{\mathsf T}, so that the two players face the same situation. A game with A=BA = B is a coordination game (a game of common interest).

Nondegenerate games. A bimatrix game is nondegenerate if, for every mixed strategy of either player with a support of size kk, the other player has at most kk pure best responses. In a nondegenerate game every equilibrium has supports of equal size, and the equilibria are finitely many.

Examples and non-examples

Each table lists the payoff of the row player first.

Battle of the sexes. A=(2001)A = \begin{pmatrix} 2 & 0 \\ 0 & 1 \end{pmatrix} and B=(1002)B = \begin{pmatrix} 1 & 0 \\ 0 & 2 \end{pmatrix}. The game has two pure equilibria, rows and columns (1,1)(1, 1) with payoffs (2,1)(2, 1) and (2,2)(2, 2) with payoffs (1,2)(1, 2). In the mixed one, y=(1/3,2/3)y = (1/3, 2/3) makes the row player indifferent (Ay=(2/3,2/3)Ay = (2/3, 2/3)), and x=(2/3,1/3)x = (2/3, 1/3) makes the column player indifferent (xTB=(2/3,2/3)x^{\mathsf T} B = (2/3, 2/3)). Each player gets 2/32/3. Three equilibria: an odd number, as in every nondegenerate game (Lemke and Howson 1964).

Matching pennies. A=(1−1−11)A = \begin{pmatrix} 1 & -1 \\ -1 & 1 \end{pmatrix} and B=−AB = -A. It is zero-sum, has no pure equilibrium, and its unique equilibrium is x=y=(1/2,1/2)x = y = (1/2, 1/2) with value 0 (minimax theorem).

The identity coordination game. Let A=B=InA = B = I_n, the n×nn \times n identity matrix: both players get 1 if they choose the same index. For every nonempty set TT of indices, the pair in which both players are uniform on TT is an equilibrium, since each index in TT gets 1/∣T∣1/|T| and every other index gets 0. These are all the equilibria, so the game has 2n−12^n - 1 of them: 3, 7 and 15 for n=2,3,4n = 2, 3, 4. A bimatrix game can have exponentially many equilibria, which is one reason why enumerating them is slow.

A degenerate game. Take the normal form of an entry game:

Fight Accommodate
Out 0, 2 0, 2
In -1, -1 1, 1

Against the pure strategy Out, both columns give 2, so the column player has two best responses to a strategy with support size 1, and the game is degenerate. Its equilibria form an infinite set: (In, Accommodate), and every pair (Out, yy) where yy plays Fight with probability at least 1/21/2, because In then gives the row player 1−2yFight≤01 - 2 y_{\text{Fight}} \le 0. Algorithms that assume nondegeneracy, such as the basic Lemke-Howson algorithm, need a perturbation or a lexicographic rule on such games.

Non-example: three players. A game with three players cannot be written as a pair of matrices: each payoff needs three indices, and the payoff of a player is a multilinear function of degree 3 in the mixed strategies. The two-player case is special. With rational entries, a bimatrix game has an equilibrium with rational entries of polynomial bit length, because each equilibrium on given supports solves a system of linear equations. Nash (1951) gave a simplified three-player poker game with rational payoffs whose only equilibrium uses irrational probabilities.

  • Zero-sum games. The case B=−AB = -A; an equilibrium is a pair of maximin strategies, computed by one linear program (zero-sum game linear programming).
  • Best response polytopes. For a game with positive payoffs, the polytopes {x≥0:BTx≤1}\{x \ge 0 : B^{\mathsf T} x \le \mathbf{1}\} and {y≥0:Ay≤1}\{y \ge 0 : A y \le \mathbf{1}\} encode the best responses; equilibria are the completely labeled pairs of vertices (best response polytope).
  • Linear complementarity. Finding an equilibrium of (A,B)(A, B) is a linear complementarity problem, which the Lemke-Howson algorithm solves by pivoting.
  • Complexity. Finding one equilibrium is PPAD-complete, also to within an additive 1/poly(n)1/\mathrm{poly}(n) (Chen, Deng and Teng 2009); no polynomial algorithm is known (computation). For a constant additive ε\varepsilon with payoffs in [0,1][0, 1], the Lipton-Markakis-Mehta algorithm runs in quasi-polynomial time. Questions about the best equilibrium, such as whether one gives the row player at least a given payoff, are NP-complete (hardness of optimal Nash equilibria).
  • Stackelberg commitment. If one player commits to a mixed strategy first, the best commitment is found with nn linear programs (Stackelberg equilibrium).

References

  1. Noam Nisan, Tim Roughgarden, Eva Tardos and Vijay V. Vazirani (eds.), Algorithmic Game Theory, Cambridge University Press, 2007, Chapter 3, Bernhard von Stengel, Equilibrium computation for two-player games in strategic and extensive form (bimatrix games, the best response condition, nondegenerate games)
  2. Yoav Shoham and Kevin Leyton-Brown, Multiagent Systems, Algorithmic, Game-Theoretic, and Logical Foundations, Cambridge University Press, 2009, Chapter 3 (normal-form games) and Chapter 4 (computing Nash equilibria of two-player games, the LCP form and the Lemke-Howson algorithm)
  3. Equilibrium points of bimatrix games, the term bimatrix game, the algorithm, and the odd number of equilibria in nondegenerate games
  4. Xi Chen, Xiaotie Deng and Shang-Hua Teng, Settling the complexity of computing two-player Nash equilibria, Journal of the ACM 56(3) (2009), PPAD-completeness of finding a Nash equilibrium of a bimatrix game, also to within 1/poly(n)
  5. John Nash, Non-cooperative games, Annals of Mathematics 54(2) (1951), 286-295, the section on a three-man poker game, whose equilibrium probabilities are irrational

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/JZ9GG0/text.yaml