Skip to content
LeetQuant
QT06 Game Theory, Auctions and Strategic Reasoning

QT06 · Game Theory, Auctions and Strategic Reasoning · Lesson 2 of 5

Mixed Strategies

Why players randomise, the indifference principle, solving 2×2 and small zero-sum games, minimax, rock-paper-scissors variants and the interview games built on them.

17 min

Objective

Solve any 2×2 game and small symmetric zero-sum games for their mixed equilibrium, compute the value of the game, and decide quickly whether an interviewer's "fair-looking" game favours you.

Intuition

In matching pennies (you win if the coins match, I win if they differ), any predictable choice is exploited. The only stable plan is to be unpredictable in exactly the right proportions. A mixed strategy is a probability distribution over pure strategies; Nash's theorem says every finite game has at least one equilibrium once mixing is allowed.

The indifference principle

If a player mixes between two strategies in equilibrium, both must give the same expected payoff; otherwise she would drop the worse one. So:

Each player's mix is chosen to make the opponent indifferent.

This is the key surprise: your own payoffs do not determine your own mix; the opponent's payoffs do.

For a 2×2 game where the column player plays left with probability qq, the row player is indifferent when

q a11+(1−q) a12=q a21+(1−q) a22,q\,a_{11} + (1-q)\,a_{12} = q\,a_{21} + (1-q)\,a_{22} ,

which pins down qq. Solve the symmetric equation for the row player's probability pp using the column player's payoffs. Always check first for dominated strategies and pure equilibria: the indifference recipe only applies to strategies used with positive probability.

Zero-sum games and minimax

In a zero-sum game the column player's payoff is minus the row player's. Von Neumann's minimax theorem:

max⁡p min⁡q  p⊤Aq  =  min⁡q max⁡p  p⊤Aq  =  v,\max_{p}\,\min_{q}\; p^\top A q \;=\; \min_{q}\,\max_{p}\; p^\top A q \;=\; v ,

where vv is the value of the game. The row player can guarantee at least vv whatever the opponent does, and the column player can hold her to vv. Equilibrium strategies are the same as safety (maximin) strategies, so in zero-sum games you need no beliefs about the opponent's rationality: the equilibrium mix is also the one that cannot be exploited. A symmetric zero-sum game (the matrix satisfies A=−A⊤A = -A^\top) has value 0.

Worked example

a 2×2 zero-sum game

The row player receives the following from the column player.

LeftRight
Top3−1
Bottom−21

Find both equilibrium mixes and the value.

Show solution

No pure equilibrium. Against Left the row player prefers Top, against Right she prefers Bottom; the column player prefers Right against Top and Left against Bottom. The best responses cycle, so the equilibrium is mixed.

Row's mix pp on Top makes Column indifferent. Column's cost of Left is 3p−2(1−p)=5p−23p - 2(1-p) = 5p - 2; of Right is −p+(1−p)=1−2p-p + (1-p) = 1 - 2p. Setting them equal: 5p−2=1−2p5p - 2 = 1 - 2p, so p=3/7p = 3/7.

Column's mix qq on Left makes Row indifferent. Top pays 3q−(1−q)=4q−13q - (1-q) = 4q - 1; Bottom pays −2q+(1−q)=1−3q-2q + (1-q) = 1 - 3q. Equal when q=2/7q = 2/7.

Value. Substitute either: 4⋅27−1=174 \cdot \tfrac{2}{7} - 1 = \tfrac{1}{7} and 5⋅37−2=175 \cdot \tfrac{3}{7} - 2 = \tfrac{1}{7}. The row player wins 1/71/7 per round on average. The two computations agreeing is a free arithmetic check.

Rock-paper-scissors variants

Standard RPS has the unique equilibrium (1/3,1/3,1/3)(1/3, 1/3, 1/3) and value 0. Interviewers change one payoff and ask what changes. The trap is to think "rock pays more, so play more rock".

Suppose a win with rock over scissors pays 2; every other win pays 1. Let the opponent play (r,p,s)(r, p, s). My expected payoffs:

Rock: −p+2s,Paper: r−s,Scissors: −2r+p.\text{Rock: } -p + 2s, \qquad \text{Paper: } r - s, \qquad \text{Scissors: } -2r + p .

The game is symmetric zero-sum, so its value is 0 and in a fully mixed equilibrium each line equals 0: p=2sp = 2s, r=sr = s. With r+p+s=1r + p + s = 1 this gives (r,p,s)=(14,12,14)(r, p, s) = (\tfrac14, \tfrac12, \tfrac14). Check: −12+12=0-\tfrac12 + \tfrac12 = 0, 14−14=0\tfrac14 - \tfrac14 = 0, −12+12=0-\tfrac12 + \tfrac12 = 0.

Rock is played no more than before, while paper, the counter to rock, rises to 1/2. The bonus makes scissors riskier for the opponent, which is the action rock beats; the equilibrium adjusts through the opponent's incentives, as the indifference principle predicts.

Worked example

is the finger game fair?

You and the interviewer each show one or two fingers at the same time. If the total is even, the interviewer pays you the total; if it is odd, you pay the interviewer the total (so 3 either way). Payoffs to you: (1,1) gives +2, (2,2) gives +4, a mismatch gives −3. Do you want to play?

Show solution

It looks favourable: you win 2 or 4, and lose 3. But the interviewer chooses too.

Your mix pp on one finger, chosen to make the interviewer indifferent. If she shows one: 2p−3(1−p)=5p−32p - 3(1-p) = 5p - 3. If she shows two: −3p+4(1−p)=4−7p-3p + 4(1-p) = 4 - 7p. Equal when 12p=712p = 7, so p=7/12p = 7/12, and your value is 5⋅712−3=−1125 \cdot \tfrac{7}{12} - 3 = -\tfrac{1}{12}.

Her mix qq on one finger, making you indifferent. You show one: 2q−3(1−q)=5q−32q - 3(1-q) = 5q - 3; you show two: 4−7q4 - 7q. Again q=7/12q = 7/12 and your value is −1/12-1/12.

So with optimal play you lose 1/12 per round. Decline, or ask to play the other side. Out loud: "neither side has a pure equilibrium, so I solve for the mixes by indifference; the value is negative for me, so the game is not fair despite the larger winning payoffs." If the interviewer then plays a fixed pattern, say always one finger, you exploit it with a pure best response (always one finger, +2 per round); the equilibrium mix is what you fall back on when you cannot read her.

Knowledge check

In battle of the sexes ((Opera, Opera) pays (2, 1), (Football, Football) pays (1, 2), mismatches pay (0, 0)), with what probability does the row player choose Opera in the mixed equilibrium?

Knowledge check

In the 2×2 zero-sum game above (Top/Left 3, Top/Right −1, Bottom/Left −2, Bottom/Right 1), the column player keeps playing Left with probability 1/2. What should the row player do?

Knowledge check

Rock-paper-scissors is changed so that a win with scissors over paper pays 3; all other wins pay 1 and ties pay 0. What is the equilibrium probability of rock?

Key takeaways

  • In a mixed equilibrium every strategy played with positive probability earns the same payoff.
  • Your mix is pinned down by the opponent's payoffs, not yours.
  • Check dominance and pure equilibria before solving indifference equations.
  • Zero-sum: minimax = maximin = value; the equilibrium mix is unexploitable. Symmetric zero-sum games have value 0.
  • Boosting a payoff of one action shifts weight onto its counter, not onto the action itself.
  • Against a predictable opponent, abandon the equilibrium and best respond.

Finished reading?

Answer the 3 knowledge checks to complete this lesson (0 done).