Lably
Skip to content

Minimax

Decision rule used for minimizing the possible loss for a worst-case scenario

  • 14 min read
  • 5 chapters

Related on Lably

Through Artificial intelligence, Statistics and Philosophy

Game theory

In general games

The maximin value is the highest value that the player can be sure to get without knowing the actions of the other players; equivalently, it is the lowest value the other players can force the player to receive when they know the player's action. Its formal definition is:

vi_=maxaimina−ivi(ai,a−i)

Where:

  • i is the index of the player of interest.
  • −i denotes all other players except player i.
  • ai is the action taken by player i.
  • a−i denotes the actions taken by all other players.
  • vi is the value function of player i.

Calculating the maximin value of a player is done in a worst-case approach: for each possible action of the player, we check all possible actions of the other players and determine the worst possible combination of actions – the one that gives player i the smallest value. Then, we determine which action player i can take in order to make sure that this smallest value is the highest possible.

For example, consider the following game for two players, where the first player ("row player") may choose any of three moves, labelled T, M, or B, and the second player ("column player") may choose either of two moves, L or R. The result of the combination of both moves is expressed in a payoff table:

LRT3,12,−20M5,0−10,1B−100,24,4

(where the first number in each of the cell is the pay-out of the row player and the second number is the pay-out of the column player).

For the sake of example, we consider only pure strategies. Check each player in turn:

  • The row player can play T, which guarantees them a payoff of at least 2 (playing B is risky since it can lead to payoff −100, and playing M can result in a payoff of −10). Hence: vrow_=2.
  • The column player can play L and secure a payoff of at least 0 (playing R puts them in the risk of getting −20). Hence: vcol_=0.

If both players play their respective maximin strategies (T,L), the payoff vector is (3,1).

The minimax value of a player is the smallest value that the other players can force the player to receive, without knowing the player's actions; equivalently, it is the largest value the player can be sure to get when they know the actions of the other players. Its formal definition is:

vi¯=mina−imaxaivi(ai,a−i)

The definition is very similar to that of the maximin value – only the order of the maximum and minimum operators is inverse. In the above example:

  • The row player can get a maximum value of 4 (if the other player plays R) or 5 (if the other player plays L), so: vrow¯=4.
  • The column player can get a maximum value of 1 (if the other player plays T), 1 (if M) or 4 (if B). Hence: vcol¯=1.

For every player i, the maximin is at most the minimax:

vi_≤vi¯

Intuitively, in maximin the maximization comes after the minimization, so player i tries to maximize their value before knowing what the others will do; in minimax the maximization comes before the minimization, so player i is in a much better position – they maximize their value knowing what the others did.

Another way to understand the notation is by reading from right to left: When we write

vi¯=mina−imaxaivi(ai,a−i)=mina−i(maxaivi(ai,a−i))

the initial set of outcomes vi(ai,a−i) depends on both ai and a−i. We first marginalize away ai from vi(ai,a−i), by maximizing over ai (for every possible value of a−i) to yield a set of marginal outcomes vi′(a−i), which depends only on a−i. We then minimize over a−i over these outcomes. (Conversely for maximin.)

Although it is always the case that vrow_≤vrow¯ and vcol_≤vcol¯, the payoff vector resulting from both players playing their minimax strategies, (2,−20) in the case of (T,R) or (−10,1) in the case of (M,R), cannot similarly be ranked against the payoff vector (3,1) resulting from both players playing their maximin strategy.

In zero-sum games

In two-player zero-sum games, the minimax solution is the same as the Nash equilibrium.

In the context of zero-sum games, the minimax theorem is equivalent to:

For every two-person zero-sum game with finitely many strategies, there exists a value V and a mixed strategy for each player, such that

(a) Given Player 2's strategy, the best payoff possible for Player 1 is V, and
(b) Given Player 1's strategy, the best payoff possible for Player 2 is −V.

Equivalently, Player 1's strategy guarantees them a payoff of V regardless of Player 2's strategy, and similarly Player 2 can guarantee themselves a payoff of −V. The name minimax arises because each player minimizes the maximum payoff possible for the other – since the game is zero-sum, they also minimize their own maximum loss (i.e., maximize their minimum payoff). See also example of a game without a value.

Example

The following example of a zero-sum game, where A and B make simultaneous moves, illustrates maximin solutions. Suppose each player has three choices and consider the payoff matrix for A displayed on the table ("Payoff matrix for player A"). Assume the payoff matrix for B is the same matrix with the signs reversed (i.e., if the choices are A1 and B1 then B pays 3 to A). Then, the maximin choice for A is A2 since the worst possible result is then having to pay 1, while the simple maximin choice for B is B2 since the worst possible result is then no payment. However, this solution is not stable, since if B believes A will choose A2 then B will choose B1 to gain 1; then if A believes B will choose B1 then A will choose A1 to gain 3; and then B will choose B2; and eventually both players will realize the difficulty of making a choice. So a more stable strategy is needed.

Some choices are dominated by others and can be eliminated: A will not choose A3 since either A1 or A2 will produce a better result, no matter what B chooses; B will not choose B3 since some mixtures of B1 and B2 will produce a better result, no matter what A chooses.

Player A can avoid having to make an expected payment of more than ⁠1/ 3 ⁠ by choosing A1 with probability ⁠1/ 6 ⁠ and A2 with probability ⁠5/ 6 ⁠: The expected payoff for A would be 3 × ⁠1/ 6 ⁠ − 1 × ⁠5/ 6 ⁠ = ⁠−+1/ 3 ⁠ in case B chose B1 and −2 × ⁠1/6 ⁠ + 0 × ⁠5/ 6 ⁠ = ⁠−+1/ 3 ⁠ in case B chose B2. Similarly, B can ensure an expected gain of at least ⁠1/ 3 ⁠, no matter what A chooses, by using a randomized strategy of choosing B1 with probability ⁠1/ 3 ⁠ and B2 with probability ⁠2/ 3 ⁠. These mixed minimax strategies cannot be improved and are now stable.

Maximin

Frequently, in game theory, maximin is distinct from minimax. Minimax is used in zero-sum games to denote minimizing the opponent's maximum payoff. In a zero-sum game, this is identical to minimizing one's own maximum loss, and to maximizing one's own minimum gain.

"Maximin" is a term commonly used for non-zero-sum games to describe the strategy which maximizes one's own minimum payoff. In non-zero-sum games, this is not generally the same as minimizing the opponent's maximum gain, nor the same as the Nash equilibrium strategy.

In repeated games

The minimax values are very important in the theory of repeated games. One of the central theorems in this theory, the folk theorem, relies on the minimax values.

Sign in to keep reading

4 more chapters are free with a Lably account.

More in Applied mathematics