1. Home
  2. Explore
  3. Mathematics
  4. Game Theory Mathematics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Game Theory Mathematics

The Mathematics of Game Theory

Introduction to Game Theory

Game theory is a branch of mathematics that helps individuals and organizations make optimal decisions in competitive or cooperative situations. It applies whenever people buy and sell, barter, bid at auctions, or compete for resources. The Nobel Prize in Economics has been won multiple times by mathematicians using game theory to analyze economic questions.

Game theory can answer practical questions such as:

  • How much to charge for a cup of coffee?

  • What is the best way to fight a duel?

  • When should you buy a house?


The Prisoner's Dilemma

The prisoner's dilemma is a classic example of strategic decision-making where individual self-interest leads to a worse collective outcome.

The Setup

Two criminal accomplices are arrested and placed in separate rooms for questioning. The prosecutor has limited evidence. Each prisoner faces these choices:

  • If both remain silent: They serve 1 year each on a lesser charge.

  • If one confesses (betrays) and the other stays silent: The confessor goes free (0 years) and the silent partner gets the full sentence (5 years).

  • If both confess: They each serve 3 years.

Payoff Table

The outcomes for Prisoner A (rows) and Prisoner B (columns), with years in prison:


B talks

B stays silent

A talks

A: 3 years, B: 3 years

A: 0 years, B: 5 years

A stays silent

A: 5 years, B: 0 years

A: 1 year, B: 1 year

Analysis

Each prisoner reasons: Regardless of what the other does, I am better off confessing.

  • If B talks: A gets 3 years (talking) vs. 5 years (silent).

  • If B stays silent: A gets 0 years (talking) vs. 1 year (silent).

Thus, confessing is the dominant strategy for each. Yet both would be better off if they both stayed silent (1 year each vs. 3 years). The dilemma is that the individually rational choice leads to a worse group outcome.

Key Insight

The Nash equilibrium here is both confess, because neither can improve their outcome by changing strategy alone. However, if both could cooperate, they would achieve a better result. This is a non-zero-sum game because the total payoff varies.


Price War as Prisoner's Dilemma

The logic of the prisoner's dilemma appears in economic competition. Consider two companies, Acme Widgets and BestCo, selling identical widgets.

Market Assumptions

  • Total market: 100 widgets

  • If both charge the same high price (£5£5£5 profit per widget): equal market share (50 each), profit = £5×50=£250£5 \times 50 = £250£5×50=£250 each.

  • If one cuts price (£4£4£4 profit per widget) and the other does not: 80% of customers switch to the lower price → low-price seller gets 80 widgets, high-price seller gets 20.

    • Low-price profit: £4×80=£320£4 \times 80 = £320£4×80=£320

    • High-price profit: £5×20=£100£5 \times 20 = £100£5×20=£100

  • If both cut price: equal market share again (50 each), but profit = £4×50=£200£4 \times 50 = £200£4×50=£200 each.

Payoff Table for Acme (A) vs BestCo (B) — profits in £


B cuts price

B keeps high price

A cuts price

A: 200, B: 200

A: 320, B: 100

A keeps high price

A: 100, B: 320

A: 250, B: 250

Outcome

Each company has an incentive to cut prices to gain market share. When both cut, they end up with lower profits than if they had cooperated on high prices. This is why governments legislate against collusion — companies would naturally want to agree to keep prices high, but the temptation to cheat (cut price) is always present, leading to a price war.


The Duel: A Zero-Sum Game

Game theorist David Blackwell (1919–2010), a trailblazing mathematician and first Black faculty member at Princeton's Institute for Advanced Study, studied dueling scenarios. The duel problem applies to situations like military engagement or auctions where timing is critical.

The Scenario

Two duelists, Rose (rows) and Colin (columns), start 20 paces apart and walk toward each other. Each has one shot. The probability of hitting after ppp paces is p/10p/10p/10 (when p=10p=10p=10, they are adjacent and hit with certainty). If Rose fires first and hits, she wins; if she misses, Colin can walk up and win. If both fire at the same time, it's a draw.

Payoff Values

Rose receives:

  • +1 for a win

  • 0 for a draw

  • -1 for a loss

Since Colin's payoff is the negative of Rose's, the sum is always zero — this is a zero-sum game.

Expected Payoff Calculation

Example: Rose fires after 4 paces (p=4p=4p=4), Colin after 6 paces.

  • Rose fires first (4 < 6). She hits with probability 4/104/104/10, wins (+1). She misses with probability 6/106/106/10, then Colin fires with certainty and wins (Rose gets -1).

  • Expected payoff: 410(+1)+610(−1)=−0.2\frac{4}{10}(+1) + \frac{6}{10}(-1) = -0.2104​(+1)+106​(−1)=−0.2.

If both fire after 4 paces simultaneously:

  • Rose hits (4/10), Colin misses (6/10) → +1

  • Rose misses (6/10), Colin hits (4/10) → -1

  • Both hit or both miss → 0

  • Expected: 410⋅610(+1)+610⋅410(−1)=0.24−0.24=0\frac{4}{10} \cdot \frac{6}{10}(+1) + \frac{6}{10} \cdot \frac{4}{10}(-1) = 0.24 - 0.24 = 0104​⋅106​(+1)+106​⋅104​(−1)=0.24−0.24=0

Payoff Table

A full table (Rose's payoff) for all combinations of paces 1–10:

Rose \ Colin

1 pace

2 paces

…

5 paces

6 paces

…

10 paces

1 pace

…

…

…

…

…

…

…

2 paces

…

…

…

…

…

…

…

…

…

…

…

…

…

…

…

5 paces

…

…

…

0

0.2

…

…

6 paces

…

…

…

0

0

…

…

…

…

…

…

…

…

…

…

Maximin Strategy

Rose adopts a maximin (pessimistic) approach: for each of her possible strategies, she considers the worst-case outcome (the minimum payoff across Colin's possible strategies) and then picks the strategy that maximizes that minimum.

  • For firing after 4 paces, the worst case is -0.2.

  • For firing after 5 or 6 paces, the worst case is 0, which is the best among all rows.

Colin, wanting to minimize Rose's maximum payoff (since his payoff is negative of hers), also picks 5 or 6 paces. Comparing rows 5 and 6, row 6 is often better (higher values) — a dominant strategy. So both choose 6 paces, leading to an expected draw (Rose's payoff ≈ 0).


Mixed Strategies and the Minimax Theorem

Pure vs Mixed Strategies

In many games, using a pure strategy (always the same action) is exploitable. For example, in a penalty kick in soccer (football), if a striker always kicks to the right, the goalkeeper will learn and move right.

Penalty Kick Game — A Zero-Sum Example

The striker wants to score, the goalkeeper wants to save. Payoffs (probability of goal) for the striker:

Striker \ Goalkeeper

Dive right

Stay center

Dive left

Kick right

0.5

0.8

0.9

Kick left

0.9

0.8

0.5

If the striker uses a pure strategy (always right), the goalkeeper can counter, resulting in low scoring probability.

Mixed Strategy

A mixed strategy involves randomizing among actions with certain probabilities. For example, if both players choose each action with probability 1/31/31/3, the expected goal probability is:

19(0.5+0.8+0.9+0.9+0.8+0.5+0.9+0.8+0.5)≈0.7\frac{1}{9}(0.5 + 0.8 + 0.9 + 0.9 + 0.8 + 0.5 + 0.9 + 0.8 + 0.5) \approx 0.791​(0.5+0.8+0.9+0.9+0.8+0.5+0.9+0.8+0.5)≈0.7

But actual penalty conversion rate in international competition is about 75%, suggesting there is room for optimization.

The Minimax Theorem

John von Neumann proved the Minimax Theorem: In any finite two-player zero-sum game, there exists an equilibrium where one player uses a maximin strategy and the other a minimax strategy. These strategies converge to a unique value, the value of the game.

For the penalty kick example, research (Forgó) gives the optimal mixed strategy:

  • Go right: 42% of the time

  • Go left: 42% of the time

  • Stay center: 16% of the time

This mixed strategy makes the opponent indifferent and prevents exploitation.


Nash Equilibrium

John Nash (1928–2015) generalized the concept of equilibrium to non-zero-sum and multiplayer games. A Nash equilibrium is a set of strategies (one per player) such that no player can improve their outcome by unilaterally changing their own strategy.

  • In the prisoner's dilemma, (Confess, Confess) is a Nash equilibrium because neither prisoner can do better by switching to Silent alone.

  • In the price war, (Cut price, Cut price) is a Nash equilibrium.

  • Nash's work earned him the 1994 Nobel Prize in Economics (shared with John Harsanyi and Reinhard Selten).


The Coffee Shop Problem

Scenario

Two coffee shops in a town:

  • 400 locals who know prices and will go to the cheaper shop (if same price, split equally).

  • 200 tourists who pick a shop at random and are not price-sensitive.

If both shops charge £3, they split all 600 customers equally: 300 each → profit £900 each. If both charge £4: 300 each → profit £1200 each. If one charges £4 and the other £3: all locals go to the cheaper shop + half the tourists → cheaper shop gets 400 locals + 100 tourists = 500 customers at £3 = £1500; expensive shop gets only 100 tourists at £4 = £400.

Payoff Table (implied)


B: £3

B: £4

A: £3

(900, 900)

(1500, 400)

A: £4

(400, 1500)

(1200, 1200)

Nash Equilibrium

The equilibrium is (£3, £3). Why? If A raises price to £4 alone, profit drops to £400. If B raises alone, same. If both raise, both profit increases, but that would require cooperation (collusion) — which is illegal in many markets. Thus, the competitive equilibrium is at the lower price, even though both would prefer the higher price if they could trust each other.


Auctions

Types of Auctions

  • English (open ascending) auction: Price rises until only one bidder remains; winner pays their final bid.

  • Dutch (open descending) auction: Price starts high and decreases until a bidder accepts; winner pays that price.

  • First-price sealed-bid auction: Each bidder submits a secret bid; highest bid wins and pays their own bid.

  • Second-price sealed-bid auction (Vickrey auction): Highest bid wins, but pays the second-highest bid.

Setting a Reserve Price

Consider an English auction with a single amalgamated bidder (representing the highest of all bidders). The seller sets a reserve price RRR. The bidder's maximum willingness to pay is uniformly distributed between 0 and 100. Revenue:

  • If max bid ≥R\ge R≥R: sale at price RRR (bidder pays the reserve).

  • If max bid <R< R<R: no sale, revenue 000.

Expected revenue:

E(R)=1100⋅R⋅(100−R)=R(100−R)100E(R) = \frac{1}{100} \cdot R \cdot (100 - R) = \frac{R(100-R)}{100}E(R)=1001​⋅R⋅(100−R)=100R(100−R)​

This is a quadratic (inverted parabola). Maximum occurs at R=50R = 50R=50. Thus, the optimal reserve price is half the maximum possible value.

Bidding in a First-Price Sealed-Bid Auction

If a bidder values an item at VVV (private value), the optimal bid is V/2V/2V/2. This balances the probability of winning against profit margin.

Bidding in a Second-Price Sealed-Bid Auction (Vickrey)

The dominant strategy is to bid your true valuation VVV. Why?

  • Bidding more than VVV risks winning at a price above your valuation.

  • Bidding less than VVV risks losing when you could have won profitably. Because you pay the second-highest bid, you never pay more than your valuation. The expected payment, if others' bids are uniform, is V/2V/2V/2, same as in the first-price auction.

Revenue Equivalence Theorem

The revenue equivalence theorem states that under certain assumptions (risk-neutral bidders, independent private values), all four standard auction types yield the same expected revenue for the seller: half of the highest valuation.

The Winner's Curse

In a common value auction (e.g., oil drilling rights), the true value is unknown but the same for all. Each bidder makes an estimate. The highest bidder likely overestimated — winning the auction may mean you paid too much. This is the winner's curse.

Real-World Application: 3G Spectrum Auction (UK, 2000)

The UK government designed a multi-round auction for five 3G licenses. Mathematical modeling by game theorists led to a complex bidding procedure that raised £22.5 billion — far more than previous telecom auctions. This demonstrates the power of auction design using game theory.


Optimal Stopping: The House-Buying Problem

The Problem

You must choose a house (or rental) from a sequence of options. You see them one at a time, must decide immediately whether to take it (cannot go back), and you want the best overall house.

Strategy

  1. Reject the first sss houses (the sample) — these are for information only.

  2. After that, choose the first house that is better than all you have seen so far (if any).

  3. If none appears by the end, you settle for the last house.

Small Example: n=3n=3n=3 houses

  • Sample size s=0s=0s=0: pick first house → success probability 1/31/31/3 (33%).

  • Sample size s=1s=1s=1: reject first, then pick the first house that beats it.

    • Enumerate all 6 orderings. Success when the best house appears after the first and is chosen. Probability = 3/6=50%3/6 = 50\%3/6=50%.

  • Sample size s=2s=2s=2: reject first two, pick third only if it's the best → 1/31/31/3 (33%).

Best is s=1s=1s=1 (33% of total).

General Result

For nnn houses, optimal sample size s∗≈n/es^* \approx n/es∗≈n/e, where e≈2.71828e \approx 2.71828e≈2.71828 (Euler's number).

  • Fraction: 1/e≈36.79%1/e \approx 36.79\%1/e≈36.79%

  • Success probability using this strategy approaches 1/e1/e1/e as nnn grows.

Applications

  • Renting a house: See a few to gauge the market, then commit to the first that beats them all.

  • Dating: If you expect to date nnn potential partners in your lifetime, date the first n/en/en/e (about 37%) without settling, then marry the first who is better than all previous. For example, with 20 candidates, date 7 without commitment, then settle with the next best so far.

This is known as the optimal stopping problem or secretary problem.


Key Theorems and Definitions

Zero-sum game: A game where one player's gain is exactly the other player's loss, so total payoff sums to zero (or a constant).

Nash equilibrium: A set of strategies where no player can benefit by unilaterally changing their strategy.

Dominant strategy: A strategy that yields the best outcome regardless of what opponents do.

Mixed strategy: A probability distribution over pure strategies.

Minimax theorem (von Neumann): In any finite two-player zero-sum game, there exists a mixed strategy equilibrium; the value of the game is the maximum of the minimum expected payoff for one player.

Revenue equivalence theorem: Under standard assumptions (risk neutrality, independent private values), all common auction formats yield the same expected revenue.


Summary

Game theory provides powerful mathematical tools for strategic decision-making in economics, auctions, competitive scenarios, and everyday life. From the prisoner's dilemma to optimal stopping, these models reveal how self-interest, uncertainty, and timing interact. Understanding concepts like Nash equilibrium, mixed strategies, and auction design can lead to better personal and business decisions.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent