Game Theory

Studies decision making between agents (players) whose outcomes depend on each other’s choices, not just their own.

Assumptions

The models in this note rely on the following assumptions.

  • Finite options
    Each player has a finite list of options.
  • Simultaneous choice
    Each player picks an option without observing the opponent’s choice.
  • Complete information
    Both players know every option and outcome available to each player, and each knows the other knows it.
  • Rational players
    Each player maximizes their own expected outcome.
  • Expected outcome
    Randomizing over options gives the probability-weighted average of the outcomes.
  • Independent randomization
    Each player’s randomization does not depend on the other player’s.
  • Repeated play
    The game is played over many periods, such as weekly decisions. A player’s randomization describes how often each option is used over time.

Zero-Sum Game

A game with nn players where the sum of each player’s gain and loss equals 0.

When n=2n=2, it is a two-player zero-sum game.

Value of a Game

The game value vv is the average payoff to the row player per play when both players play optimally. It lies between the maximin and minimax values, and equals both when a saddle point exists.

Payoff Matrix

A table of the row player’s payoffs for every pair of strategies. Rows are the row player’s pure strategies, columns are the column player’s pure strategies.

A=(a11⋯a1n⋮⋱⋮am1⋯amn)A = \begin{pmatrix} a_{11} & \cdots & a_{1n} \\ \vdots & \ddots & \vdots \\ a_{m1} & \cdots & a_{mn} \end{pmatrix}
Here:
mm
number of row player strategies
nn
number of column player strategies
aija_{ij}

row player’s payoff when the row player picks ii and the column player picks jj

In a two-player zero-sum game, the column-player’s payoff is −A-A. In that case, the matrix defines the whole game.

Col 1 (B plays 1)Col 2 (B plays 2) Row min
Row 1 (A plays 1) 3 -1 -1
Row 2 (A plays 2) 2 4 2
Col max 3 4

Maximin 2 (row 2) and minimax 3 (column 1).

Strategy Types

A strategy is a rule a player uses to choose among their options. Each player’s strategy is either pure or mixed.

  • Pure strategy
    A probability distribution that puts probability 11 on one strategy, so the player always picks that strategy.
  • Mixed strategy
    A probability distribution over a player’s pure strategies.
  • Optimal strategy
    A strategy that guarantees an expected payoff of at least vv against every opposing strategy, where vv is the game’s value.
  • Dominant strategy
    A strategy that gives a payoff at least as good as every other strategy against every opposing strategy.

Pure Strategy Solution

A game is solved with pure strategies when its maximin and minimax values match.

Maximin Criterion

The row player picks the strategy maximizing their guaranteed minimum payoff: max⁡imin⁡jaij\max_i \min_j a_{ij}.

Minimax Criterion

The column player picks the strategy minimizing the row player’s guaranteed maximum payoff: min⁡jmax⁡iaij\min_j \max_i a_{ij}.

Saddle Point

Exists when max⁡imin⁡jaij=min⁡jmax⁡iaij\max_i \min_j a_{ij} = \min_j \max_i a_{ij}. The corresponding entry is the game’s value, and both players have an optimal pure strategy: neither benefits from deviating alone.

If the maximin and minimax values differ, no saddle point exists, and pure strategies alone don’t give an optimal solution.

Mixed Strategy Solution

When a game has no saddle point, players randomize over their strategies (a mixed strategy) instead of committing to one.

Work through these steps in order and stop at the first one that applies.

  • Check for a saddle point. If the row maximin equals the column minimax, play safe and stop.
  • Remove dominated rows and columns to shrink the matrix.
  • Solve a 2x2 game algebraically by equalizing the payoffs.
  • Solve a 2xn or mx2 game graphically.
  • Otherwise, use linear programming with the simplex method.

Dominance

A strategy is dominated if another strategy gives the same player a payoff at least as good against every opposing strategy. Dominated strategies are removed before solving, reducing the payoff matrix.

2x2 Game Without a Saddle Point

Solved algebraically: for optimal mixed strategy probabilities p,1−pp, 1-p (row) and q,1−qq, 1-q (column), the row player’s expected payoff is equalized across the column player’s 2 strategies, and vice versa. Solving the resulting linear equations gives pp, qq, and the game’s value.

2xn and mx2 Games

Solved graphically: plot each of the smaller player’s strategies as a line over the opponent’s mixing probability, take the upper envelope (row player) or lower envelope (column player), and read off the optimal point. Reduces the game to an equivalent 2x2 game at that point.

Game Theory as a Linear Program

An m×nm \times n two-person zero-sum game is solved by formulating it as a pair of dual linear programs.

Row Player’s LP

maximize v\text{maximize } v

Subject to ∑i=1mpiaij≥v\sum_{i=1}^{m} p_i a_{ij} \ge v for every column jj, ∑i=1mpi=1\sum_{i=1}^{m} p_i = 1, pi≥0p_i \ge 0.

Column Player’s LP

minimize v\text{minimize } v

Subject to ∑j=1nqjaij≤v\sum_{j=1}^{n} q_j a_{ij} \le v for every row ii, ∑j=1nqj=1\sum_{j=1}^{n} q_j = 1, qj≥0q_j \ge 0.

The column player’s LP is solved after the substitution xj=qj/vx_j = q_j / v, which requires v>0v > 0. Dividing the constraints by vv gives ∑jaijxj≤1\sum_j a_{ij} x_j \le 1, and maximizing ∑jxj\sum_j x_j equals 1/v1/v. Positivity is ensured by adding a constant cc to every entry, which shifts the game value to v+cv + c and leaves the strategies unchanged. Choose cc so that the shifted maximin is positive.

The 2 LPs are duals of each other. Solving one with the simplex algorithm gives that player’s optimal mixed strategy and the game’s value. The other player’s strategy is read from the dual values in the final tableau, so only one LP needs solving.

To convert a game into a linear program:

  • Shift every entry by cc so the shifted value v+cv + c is positive.
  • Substitute xj=qj/vx_j = q_j / v, so each constraint becomes ∑jaijxj≤1\sum_j a_{ij} x_j \le 1 and the objective is max⁡∑jxj=1/v\max \sum_j x_j = 1/v.
  • Add slack variables and solve with the simplex method.
  • The column strategy follows from v=1/∑jxjv = 1 / \sum_j x_j and qj=vxjq_j = v x_j.
  • The row strategy follows from the dual values yiy_i in the final tableau, using pi=vyip_i = v y_i.
  • Subtract cc from vv to get the original game value.

For the LP approach used in this course, formulate the game and solve it with Solver. Manual iteration is not required. After obtaining Player A’s optimal strategy, determine the corresponding optimal strategy for Player B from the dual solution.

Prisoner’s Dilemma

A 2-player, non-zero-sum game illustrating that individually rational choices can produce a jointly worse outcome than cooperation would.

Worked Example

Saddle Point Game

Given the payoff matrix

C=(142352)C = \begin{pmatrix} 1 & 4 & 2 \\ 3 & 5 & 2 \end{pmatrix}

Find the value of the game and its saddle point.

Solution Reveal Hide
Col 1Col 2Col 3 Row min
Row 1 1 4 2 1
Row 2 3 5 2 2
Col max 3 5 2

Maximin 2 (row 2) and minimax 2 (column 3).

Row minimums are 11 and 22, so the maximin is max⁡{1,2}=2\max\{1, 2\} = 2, attained by row 2. Column maximums are 33, 55 and 22, so the minimax is min⁡{3,5,2}=2\min\{3, 5, 2\} = 2, attained by column 3.

Maximin equals minimax, so a saddle point exists at (2,3)(2, 3).

Result: v=2v = 2. Row player plays row 2 and column player plays column 3, both with probability 11.

Dominance Reduction

Given the payoff matrix

F=(413233)F = \begin{pmatrix} 4 & 1 & 3 \\ 2 & 3 & 3 \end{pmatrix}

Reduce the game by removing dominated strategies, then check whether a saddle point exists.

Solution Reveal Hide

The column player minimizes, so column 3 is dominated by column 2, since 1≤31 \le 3 and 3≤33 \le 3. Removing column 3 gives

(4123)\begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}

The maximin is 22 and the minimax is 33, so no saddle point exists.

2x2 Mixed Game

Solve the reduced matrix (4123)\begin{pmatrix} 4 & 1 \\ 2 & 3 \end{pmatrix}.

Solution Reveal Hide

Let the row player play row 1 with probability pp. Equalizing the payoffs against both columns gives 4p+2(1−p)=p+3(1−p)4p + 2(1-p) = p + 3(1-p), so p=14p = \frac{1}{4}.

Let the column player play column 1 with probability qq. Equalizing the payoffs against both rows gives 4q+(1−q)=2q+3(1−q)4q + (1-q) = 2q + 3(1-q), so q=12q = \frac{1}{2}.

The value is v=4⋅14+2⋅34=52v = 4\cdot\frac{1}{4} + 2 \cdot\frac{3}{4} = \frac{5}{2}.

Result: v=52v = \frac{5}{2}. Row mix (14,34)\left(\frac{1}{4}, \frac{3}{4}\right). Column mix (12,12,0)\left(\frac{1}{2}, \frac{1}{2}, 0\right) on the original columns.

Graphical 2x2 Game

Given the payoff matrix

H=(3542)H = \begin{pmatrix} 3 & 5 \\ 4 & 2 \end{pmatrix}

Find the value of the game and the optimal mixed strategies of both players.

Solution Reveal Hide

Let the row player play row 1 with probability PP. Column 1 gives 3P+4(1−P)=4−P3P + 4(1-P) = 4 - P, and column 2 gives 5P+2(1−P)=2+3P5P + 2(1-P) = 2 + 3P. The lower envelope peaks where the 2 lines cross: 4−P=2+3P4 - P = 2 + 3P, so P=12P = \frac{1}{2} and v=72v = \frac{7}{2}.

Graphical 2x2 Game Envelope Payoff P 4 − P 2 + 3P 0 0 1 Maximin (0.50, 3.50)

The envelope is the lowest line at each p, and its peak is at p = 4/7, where the column 2 and column 3 lines cross.

Let the column player play column 1 with probability qq. Row 1 gives 3q+5(1−q)=5−2q3q + 5(1-q) = 5 - 2q, and row 2 gives 4q+2(1−q)=2+2q4q + 2(1-q) = 2 + 2q. Equalizing gives q=34q = \frac{3}{4}.

Result: v=72v = \frac{7}{2}. Row mix (12,12)\left(\frac{1}{2}, \frac{1}{2}\right). Column mix (34,14)\left(\frac{3}{4}, \frac{1}{4}\right).

2xn Game

Given the payoff matrix

G=(214340)G = \begin{pmatrix} 2 & 1 & 4 \\ 3 & 4 & 0 \end{pmatrix}

Find the value of the game and the optimal mixed strategies of both players.

Solution Reveal Hide

Let the row player play row 1 with probability pp. The payoffs for the columns are 3−p3 - p, 4−3p4 - 3p and 4p4p.

2xn Game Envelope Payoff p 3 − p 4 − 3p 4p 0 0 1 Maximin (0.57, 2.28)

The envelope is the lowest line at each p, and its peak is at p = 4/7, where the column 2 and column 3 lines cross.

The illustration shows where the lowest payoff per column peaks, p=47p=\frac{4}{7}. Column 1 never participates in the lowest payoff curve. Hence it can be removed.

Reduce to the 2x2 game on columns 2 and 3: (1440)\begin{pmatrix} 1 & 4 \\ 4 & 0 \end{pmatrix}. Let the column player play column 2 with probability rr. Equalizing the payoffs against both rows gives 4−3r=4r4 - 3r = 4r, so r=47r = \frac{4}{7}.

Result: v=167v = \frac{16}{7}. Row mix (47,37)\left(\frac{4}{7}, \frac{3}{7}\right). Column mix (0,47,37)\left(0, \frac{4}{7}, \frac{3}{7}\right).

Linear Program Solution

Given the payoff matrix A=(3−124)A = \begin{pmatrix} 3 & -1 \\ 2 & 4 \end{pmatrix}, solve the row player’s LP.

Solution Reveal Hide

The row player’s constraints are 3p1+2p2≥v3p_1 + 2p_2 \ge v and −p1+4p2≥v-p_1 + 4p_2 \ge v. Both bind at the optimum. Substituting p2=1−p1p_2 = 1 - p_1 and equating gives 2+p1=4−5p12 + p_1 = 4 - 5p_1, so p1=13p_1 = \frac{1}{3} and v=73v = \frac{7}{3}.

The column player’s constraints are 3q1−q2≤v3q_1 - q_2 \le v and 2q1+4q2≤v2q_1 + 4q_2 \le v. Substituting q2=1−q1q_2 = 1 - q_1 and equating gives 4q1−1=4−2q14q_1 - 1 = 4 - 2q_1, so q1=56q_1 = \frac{5}{6}.

Result: v=73v = \frac{7}{3}. Row mix (13,23)\left(\frac{1}{3}, \frac{2}{3}\right). Column mix (56,16)\left(\frac{5}{6}, \frac{1}{6}\right).

3x3 Game with Linear Programming

Given the payoff matrix

D=(3−421−3−7−247)D = \begin{pmatrix} 3 & -4 & 2 \\ 1 & -3 & -7 \\ -2 & 4 & 7 \end{pmatrix}

Find the value of the game and the optimal mixed strategies of both players.

Solution Reveal Hide

Row minimums are −4-4, −7-7 and −2-2, so the maximin is −2-2. Column maximums are 33, 44 and 77, so the minimax is 33. The two differ, so no saddle point exists and the value lies strictly between them.

The smallest entry is −7-7, so add 88 to every entry to make them all strictly positive. This adds 88 to the value and leaves the optimal strategies unchanged:

M=(1141095161215)M = \begin{pmatrix} 11 & 4 & 10 \\ 9 & 5 & 1 \\ 6 & 12 & 15 \end{pmatrix}

Let vv be the value of MM and qjq_j the probability that the column player plays column jj. The column player wants every row to give the row player at most vv, so ∑jMijqj≤v\sum_j M_{ij} q_j \le v for each row ii. Substitute xj=qj/vx_j = q_j / v. Dividing by vv gives:

11x1+4x2+10x3≤1,9x1+5x2+x3≤1,6x1+12x2+15x3≤111x_1 + 4x_2 + 10x_3 \le 1, \quad 9x_1 + 5x_2 + x_3 \le 1, \quad 6x_1 + 12x_2 + 15x_3 \le 1

These constraints are linear because the right-hand side is now the constant 11. Since ∑jqj=1\sum_j q_j = 1, the scaled variables satisfy x1+x2+x3=1vx_1 + x_2 + x_3 = \frac{1}{v}. The column player wants the smallest vv, which is the same as the largest 1v\frac{1}{v}. The column player’s LP is therefore to maximize x1+x2+x3x_1 + x_2 + x_3 subject to the three constraints above and xj≥0x_j \ge 0.

The simplex method gives x1=227x_1 = \frac{2}{27}, x2=5108x_2 = \frac{5}{108} and x3=0x_3 = 0. The first and third constraints are tight. The second has slack 11108\frac{11}{108}.

The optimal sum is 13108=1v\frac{13}{108} = \frac{1}{v}, so v=10813v = \frac{108}{13}. Then qj=vxjq_j = v x_j gives the column mix (813,513,0)\left(\frac{8}{13}, \frac{5}{13}, 0\right).

The row mix is pi=vyip_i = v y_i, where yiy_i are the optimal dual values of the LP. Complementary slackness gives y2=0y_2 = 0, since the second constraint is not tight. Also y1y_1 and y3y_3 must satisfy the dual constraints with equality for columns 1 and 2, which are used by the column player. Solving gives y=(118,0,7108)y = \left(\frac{1}{18}, 0, \frac{7}{108}\right), and so p=(613,0,713)p = \left(\frac{6}{13}, 0, \frac{7}{13}\right).

Result: the original value is 10813−8=413\frac{108}{13} - 8 = \frac{4}{13}. Row mix (613,0,713)\left(\frac{6}{13}, 0, \frac{7}{13}\right). Column mix (813,513,0)\left(\frac{8}{13}, \frac{5}{13}, 0\right).

4x3 Game Without a Stable Solution

Given the payoff matrix

E=(3−42−14−2−3141−11)E = \begin{pmatrix} 3 & -4 & 2 \\ -1 & 4 & -2 \\ -3 & 1 & 4 \\ 1 & -1 & 1 \end{pmatrix}

Find the maximin, the minimax and whether a saddle point exists.

Solution Reveal Hide

Row minimums are −4-4, −2-2, −3-3 and −1-1, so the maximin is −1-1. Column maximums are 33, 44 and 44, so the minimax is 33. They differ, so no saddle point exists and both players need mixed strategies.

2x2 Game with Dual Payoff Matrix

Given the payoff matrix for A

F=(4−2−53)F = \begin{pmatrix} 4 & -2 \\ -5 & 3 \end{pmatrix}

Find the maximin and minimax of AA, and write the payoff matrix for BB.

Solution Reveal Hide

Row minimums are −2-2 and −5-5, so the maximin is −2-2. Column maximums are 44 and 33, so the minimax is 33. No saddle point exists.

The payoff matrix for B is the negative transpose of FF:

(−452−3)\begin{pmatrix} -4 & 5 \\ 2 & -3 \end{pmatrix}

Row Dominance Reduction

Given the payoff matrix

K=(71−3640)K = \begin{pmatrix} 7 & 1 \\ -3 & 6 \\ 4 & 0 \end{pmatrix}

Reduce the game by removing dominated rows.

Solution Reveal Hide

Row 1 dominates row 3 for A, since 7≥47 \ge 4 and 1≥01 \ge 0. Removing row 3 gives (71−36)\begin{pmatrix} 7 & 1 \\ -3 & 6 \end{pmatrix}.

Column Dominance Reduction

Given the payoff matrix

L=(71−2−361)L = \begin{pmatrix} 7 & 1 & -2 \\ -3 & 6 & 1 \end{pmatrix}

Reduce the game by removing dominated columns.

Solution Reveal Hide

B minimizes A’s payoff, so column 2 is dominated by column 3, since −2≤1-2 \le 1 and 1≤61 \le 6. Removing column 2 gives (7−2−31)\begin{pmatrix} 7 & -2 \\ -3 & 1 \end{pmatrix}.

2x2 Mixed Game with Dual Payoff Matrix

Solve the game with payoff matrix F=(4−2−53)F = \begin{pmatrix} 4 & -2 \\ -5 & 3 \end{pmatrix} from the previous example.

Solution Reveal Hide

Let the row player play row 1 with probability pp. Column 1 gives 4p−5(1−p)=9p−54p - 5(1-p) = 9p - 5, and column 2 gives −2p+3(1−p)=3−5p-2p + 3(1-p) = 3 - 5p. Equalizing gives p=47p = \frac{4}{7}, so v=17v = \frac{1}{7}.

Let the column player play column 1 with probability qq. Row 1 gives B 2−6q2 - 6q, and row 2 gives B 8q−38q - 3. Equalizing gives q=514q = \frac{5}{14}, so B’s value is −17-\frac{1}{7}.

Result: v=17v = \frac{1}{7}. Row mix (47,37)\left(\frac{4}{7}, \frac{3}{7}\right). Column mix (514,914)\left(\frac{5}{14}, \frac{9}{14}\right).

2x3 Graphical Game

Given the payoff matrix

M=(−52−12−31)M = \begin{pmatrix} -5 & 2 & -1 \\ 2 & -3 & 1 \end{pmatrix}

Find the value of the game and the optimal mix for the row player.

Solution Reveal Hide

Row minimums are −5-5 and −3-3, so the maximin is −3-3. Column maximums are 22, 22 and 11, so the minimax is 11. No saddle point exists.

Let the row player play row 1 with probability pp. Column 1 gives 2−7p2 - 7p, column 2 gives 5p−35p - 3 and column 3 gives 1−2p1 - 2p. The lower envelope peaks where the first 2 lines cross: 2−7p=5p−32 - 7p = 5p - 3, so p=512p = \frac{5}{12}.

Column 3 gives 16\frac{1}{6} here, which is above the value, so it does not bind. The value is v=2−3512=−1112v = 2 - \frac{35}{12} = -\frac{11}{12}.

Result: v=−1112v = -\frac{11}{12}. Row mix (512,712)\left(\frac{5}{12}, \frac{7}{12}\right).

3x2 Graphical Game

Given the payoff matrix for A

N=(4−13417)N = \begin{pmatrix} 4 & -1 \\ 3 & 4 \\ 1 & 7 \end{pmatrix}

Find the value of the game and the optimal mix for the column player.

Solution Reveal Hide

Row minimums are −1-1, 33 and 11, so the maximin is 33. Column maximums are 44 and 77, so the minimax is 44. No saddle point exists.

Let the column player play column 1 with probability qq. Winnings for B are 1−5q1 - 5q for row 1, q−4q - 4 for row 2 and 6q−76q - 7 for row 3.

The lower envelope peaks where rows 1 and 2 cross: 1−5q=q−41 - 5q = q - 4, so q=56q = \frac{5}{6}. Row 3 gives −2-2 here, which is above the value, so it does not bind. The crossing of rows 1 and 3 is not the answer, since row 2 is lower there.

Result: column mix (56,16)\left(\frac{5}{6}, \frac{1}{6}\right). Value to B −196-\frac{19}{6}.

Wolfram Mathematica notebooks

A companion notebook for this note. Open it in Mathematica and evaluate the cells to reproduce the worked example.

The summary notebook defines every function used in this module, with documentation and no examples, as a starting point for your own problems.

Written by November 3, 2026 12 min read
Was this helpful?