📘 CodingMarble Learn

Game Theory: Making the Best Choice When Others Choose Too

Game theory studies decisions where your result depends on what others choose. A pay-off matrix lists each player's gain for every pair of choices. A dominated strategy is always worse and can be removed. A Nash equilibrium is a pair of choices where no player gains by changing alone; the prisoner's dilemma shows it can be worse for everyone than cooperating. In a zero-sum game, the play-safe (maximin/minimax) strategies meet at a saddle point when the game is stable; otherwise players use a mixed strategy, found by drawing expected-pay-off lines and taking the highest point of the lower edge.

🎬 Step-by-step story

  1. A pay-off matrix: A picks a row, B picks a column. Blue blocks show A's gain and orange blocks show B's gain.
  2. Dominance: one row gives A more blocks whatever B does, so the other row is never sensible and is dropped.
  3. Nash equilibrium: in the prisoner's dilemma, (Confess, Confess) is stable, even though (Silent, Silent) is better for both.
  4. Zero-sum: A's gain is B's loss. Row minimums and column maximums meet at a saddle point, a stable solution.
  5. No saddle point: A mixes rows with probability p. The best p is where the two expected-pay-off lines cross.
  6. Free play: pick a game, spot the equilibrium, and slide p in the mixed game.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

Why do we need two numbers in each cell?

Each player gets their own pay-off. Blue blocks are A's, orange are B's. In zero-sum games one number is enough because B gets the negative.

Can I remove a row that is only better most of the time?

No. A row is dominated only if it is never better in any column. Count the blue blocks column by column.

If (Silent, Silent) is better for both, why is it not the answer?

From (Silent, Silent), each player can grab 5 instead of 3 by confessing. Since a player gains by switching alone, it is not stable.

Why does the row player look at row minimums?

A plays safe: it assumes B will reply in the worst way for A. The row minimum is A's guaranteed amount; A picks the row with the best guarantee.

Why take the lower line, not the higher?

B sees A's mix and chooses the column that gives A less. So A is sure of only the lower line, and pushes it as high as possible.

Can a game have no pure Nash equilibrium?

Yes, like the mixed zero-sum game. Pick it in free play: no tile gets both rings, but the mixed strategy still gives a stable answer.

Players, strategies and the pay-off matrix

A game has players, the strategies (choices) each player can make, and pay-offs (what each gets).

For two players with a few choices, we use a pay-off matrix. Player A chooses a row, player B a column. Each cell shows (A's pay-off, B's pay-off).

B: SilentB: Confess
A: Silent(3, 3)(0, 5)
A: Confess(5, 0)(1, 1)

In a zero-sum game, what one wins the other loses, so we write only A's pay-off. A game tree is used instead when players move one after another (a sequential game).

Dominance: removing bad choices

A strategy is dominated if another strategy gives a pay-off at least as good against every choice of the opponent, and better against at least one. A sensible player never uses it, so we cross it out. This makes the matrix smaller.

In the table above, compare A's rows: against Silent, Confess gives 5 > 3; against Confess, it gives 1 > 0. So Confess dominates Silent for A. It is a dominant strategy: best whatever B does. By symmetry the same is true for B.

For the column player in a zero-sum game, remember that B wants A's number to be small: a column is dominated if its entries are all bigger.

Nash equilibrium and the prisoner's dilemma

A Nash equilibrium is a pair of strategies where each player is already giving their best reply to the other. Nobody can do better by changing alone.

To find it: for each column, mark A's best row; for each row, mark B's best column. A cell with both marks is an equilibrium.

In the prisoner's dilemma, both confessing (1, 1) is the only equilibrium, although both staying silent (3, 3) is better for both. Each player's private interest leads to a worse shared result. This explains price wars, arms races and over-fishing.

Some games have more than one equilibrium. In a coordination game (both pick tea or both pick coffee) both matching cells are stable.

When the same game is repeated many times, players can reward cooperation and punish cheating ("tit for tat"), so cooperation can last. A credible threat or commitment is one a player would really carry out.

Zero-sum games: play-safe strategies and saddle points

In a zero-sum game a cautious player assumes the worst.

These are the play-safe strategies. If maximin = minimax, the game has a saddle point and a stable solution: neither player gains by changing. That common number is the value of the game.

Example: A's pay-offs [[3, 1], [4, 2]]. Row minimums 1, 2 → maximin 2. Column maximums 4, 2 → minimax 2. Saddle point at (A2, B2), value 2.

Mixed strategies by graph

If maximin < minimax, there is no stable pure solution. A player should then mix: play each row with a fixed probability, chosen at random, so the opponent cannot guess.

Let A play row 1 with probability p and row 2 with 1 − p. Against each of B's columns, A's expected pay-off is a straight line in p. B will pick the column that is worse for A, so A gets the lower of the lines. A chooses p at the highest point of this lower edge, usually where the lines cross.

Example [[4, 1], [2, 3]]: against B1, E = 4p + 2(1 − p) = 2 + 2p. Against B2, E = p + 3(1 − p) = 3 − 2p. Set equal: 2 + 2p = 3 − 2p → p = 1/4. Value = 2.5.

For larger games (e.g. 3×3), the same idea is written as a linear programming problem: maximise the value V subject to each column giving A at least V, and solved by the simplex method.

Try it: the 3D and at home

In the 3D: on the last step pick each game and predict the equilibrium before the rings appear. In the mixed game, slide p from 0 to 1 and find where the red dot is highest.

At home (with a friend): play the ultimatum game with 10 sweets. One person offers a split; the other accepts (both keep their shares) or rejects (nobody gets any). Theory says any offer above 0 should be accepted, but real people often reject unfair offers. This shows that fairness and reputation matter, not only pay-offs.

Exam focus

Expect to: write a pay-off matrix from a story; reduce it by dominance; find play-safe strategies and test for a saddle point; find a Nash equilibrium; find the optimal mixed strategy and value by graph or by solving two equations; explain the prisoner's dilemma in a real context.

Key formulas and definitions

Worked examples

1. In the matrix [[3, 1], [4, 2]] (A's pay-offs, zero-sum), find the play-safe strategies and test for a saddle point.

Row minimums: 1, 2 → A plays row 2 (maximin 2). Column maximums: 4, 2 → B plays column 2 (minimax 2). Equal, so the saddle point is (row 2, column 2) and the value is 2.

2. Reduce by dominance: A's pay-offs [[2, 5, 4], [1, 3, 2], [3, 6, 1]].

Row 2 (1, 3, 2) is dominated by row 1 (2, 5, 4): remove it. Now [[2, 5, 4], [3, 6, 1]]. For B (wants small), column 2 (5, 6) is worse than column 1 (2, 3) in both rows: remove it. Left: [[2, 4], [3, 1]].

3. Find the Nash equilibria of the coordination game: (Tea, Tea) = (4, 4), (Tea, Coffee) = (0, 0), (Coffee, Tea) = (0, 0), (Coffee, Coffee) = (3, 3).

If B picks Tea, A's best is Tea; if B picks Coffee, A's best is Coffee. Same for B. Both (Tea, Tea) and (Coffee, Coffee) have both best replies, so there are two equilibria.

4. Solve the zero-sum game [[4, 1], [2, 3]] for A.

Maximin = 2, minimax = 3: no saddle point. Let A play row 1 with probability p. E(B1) = 2 + 2p, E(B2) = 3 − 2p. Equal when p = 1/4. A plays row 1 with probability 1/4 and row 2 with 3/4; value = 2 + 2(1/4) = 2.5.

5. For the same game, find B's optimal mix.

Let B play column 1 with probability q. A's row 1 gives 4q + 1(1 − q) = 1 + 3q; row 2 gives 2q + 3(1 − q) = 3 − q. Equal when 4q = 2, q = 1/2. B plays each column half the time; value = 2.5, the same as for A.

6. Two firms choose High or Low price. (High, High) = (6, 6), (High, Low) = (2, 8), (Low, High) = (8, 2), (Low, Low) = (3, 3). What happens and why?

Low dominates High for each firm (8 > 6 and 3 > 2), so both choose Low: equilibrium (3, 3). Both would earn 6 with High prices, so this is a prisoner's dilemma; repeated play or agreements (collusion) may keep prices high.

Common mistakes

Practice quiz

1. A Nash equilibrium is a situation where:
2. In a zero-sum game the row player's play-safe strategy uses:
3. A game has a saddle point when:
4. In the prisoner's dilemma, the equilibrium is:
5. A mixed strategy means:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is game theory in simple words?

The maths of making choices when your result also depends on other people's choices, like in games, business, sport and politics.

What is a Nash equilibrium?

A set of choices, one per player, where nobody can do better by changing only their own choice. Named after mathematician John Nash.

What is a saddle point in game theory?

An entry in a zero-sum matrix that is the smallest in its row and the largest in its column. There, maximin = minimax and both players have a stable best choice.

Where this is taught

NetherlandsHAVO 5 (eindexamenjaar)Cooperation and bargaining
NetherlandsVWO 5Cooperation and bargaining
England (GCSE, A level)Year 12Optional application 3 Discrete (part 1)
England (GCSE, A level)Year 13Optional application 3 Discrete (part 2)
South Korea고등학교 2학년Life and mathematics
Germany (Bavaria)Jahrgangsstufe 11Institutional economics view of business and law
Germany (Bavaria)Jahrgangsstufe 11Profile area (economics-social science school)

Learn first

Learn next

Related lessons

All Maths lessons