Bimatrix games #
A bimatrix game (Cslib.GameTheory.BimatrixGame) is a finite two-player game in strategic form,
given by two payoff matrices A B : Matrix M N ℝ: if player 1 plays the row i and player 2 the
column j, they receive A i j and B i j, which they maximize. A mixed strategy is a
probability vector (Cslib.GameTheory.IsMixedStrategy, in
CslibFrontier.GameTheory.MixedStrategy), and the expected payoffs of mixed strategies x and y
are xᵀ A y and xᵀ B y. A pair (x, y) is a (mixed) Nash equilibrium (BimatrixGame.IsNash)
if each strategy is a best response to the other. We follow the conventions of [vS07],
Section 3.2.
Main definitions #
Cslib.GameTheory.BimatrixGame: a bimatrix game, with expected payoffspayoff₁andpayoff₂.BimatrixGame.swap: the game with the roles of the two players exchanged (⟨Bᵀ, Aᵀ⟩).BimatrixGame.IsBestResponse₁,BimatrixGame.IsBestResponse₂: mixed best responses.BimatrixGame.IsPureBestResponse₁,BimatrixGame.IsPureBestResponse₂: pure best responses.BimatrixGame.IsNash: a mixed Nash equilibrium.BimatrixGame.IsNondegenerate: no mixed strategy with support of sizekhas more thankpure best responses ([vS07], Definition 3.2).BimatrixGame.addConst: the game with a constant added to all payoffs.
Main results #
BimatrixGame.isBestResponse₁_iff,BimatrixGame.isBestResponse₂_iff: the best response condition, a mixed strategy is a best response iff every pure strategy in its support is a pure best response ([vS07], Proposition 3.1).BimatrixGame.IsNash.ncard_support_eq: in a Nash equilibrium of a nondegenerate game both strategies have supports of the same size ([vS07], Proposition 3.3).BimatrixGame.isNash_addConst,BimatrixGame.isNondegenerate_addConst: adding a constant to all payoffs changes neither the Nash equilibria nor nondegeneracy, andBimatrixGame.exists_addConst_posmakes all payoffs positive.
References #
The game with the roles of the two players exchanged: player 1's payoff matrix becomes Bᵀ and
player 2's becomes Aᵀ.
(x, y) is a (mixed) Nash equilibrium: each strategy is a best response to the other.
The row i is a pure best response of player 1 to y: it maximizes the expected payoff
(A *ᵥ y) i.
The column j is a pure best response of player 2 to x: it maximizes the expected payoff
(x ᵥ* B) j.
A bimatrix game is nondegenerate if no mixed strategy with support of size k has more than
k pure best responses ([vS07], Definition 3.2).
Express player 2's expected payoff as the dot product y ⬝ᵥ (x ᵥ* G.B).
Unfolding characterization of IsNash: each player plays a best response to the other.
Unfolding characterization of a pure best response for player 1.
Unfolding characterization of a pure best response for player 2.
Unfolding characterization of nondegeneracy in terms of support and pure best-response cardinalities.
Swapping the players preserves nondegeneracy.
A best response of player 1 is a mixed strategy.
A best response of player 2 is a mixed strategy.
Best response condition for player 1 ([vS07], Proposition 3.1): a mixed strategy is a best response iff every row it plays with positive probability is a pure best response.
Best response condition for player 2 ([vS07], Proposition 3.1).
Against y, a best response earns the payoff of each row in its support.
Against y, a best response earns at least the payoff of every row.
Against x, a best response earns the payoff of each column in its support.
Against x, a best response earns at least the payoff of every column.
A mixed strategy is a best response to y iff no row earns more against y than it does.
A mixed strategy is a best response to x iff no column earns more against x than it
does.
With positive payoffs, player 1 earns a positive expected payoff.
With positive payoffs, player 2 earns a positive expected payoff.
In a Nash equilibrium of a nondegenerate bimatrix game, both strategies have supports of the same size ([vS07], Proposition 3.3).
Adding a constant to all payoffs #
The game with the constant c added to every payoff of both players.
Adding c to every payoff shifts player 1's pure-row payoff vector by the constant
c * ∑ j, y j.
Adding c to every payoff shifts player 2's pure-column payoff vector by the constant
c * ∑ i, x i.
Adding a constant to all payoffs does not change player 1's pure best responses.
Adding a constant to all payoffs does not change player 2's pure best responses.
Adding a constant to all payoffs does not change nondegeneracy.