Lesson 2: Best responses and Nash equilibrium
Find stable outcomes with best responses and Nash equilibrium. Covers coordination, chicken and inspection games and mixed strategies, with worked examples.
Lesson 1 handled games in which a player has a strategy that is best whatever the others do. Many games are not like that. In the sales channel example, brand A did best at the Mall if its rival went to the Market, and best at the Market if its rival went to the Mall. There was no dominant strategy, so each player's best choice depended on a guess about the other's. This lesson gives the central idea of game theory for such cases: the Nash equilibrium, an outcome in which nobody can gain by changing their own choice alone. By the end of this lesson you will be able to find a player's best response to each of the other's choices, mark best responses in a payoff matrix, find all the pure-strategy Nash equilibria of a two-player game, recognise coordination, chicken and inspection games, explain when a game has several equilibria and what that means, compute a mixed-strategy equilibrium in which players randomise, and say what an equilibrium does and does not tell you. You should have read Lesson 1. The arithmetic is comparison and a little algebra, and every step is shown.
Best responses
A player's best response to a given choice by the other player is the strategy that gives the highest payoff against that choice. It answers the question: "if I knew what you were going to do, what would I do?"
Take the sales channel game of Lesson 1. Two brands, A and B, each choose between the Mall and the Market. Payoffs (A first, B second):
· B at Mall · B at MarketA at Mall · 3, 3 · 8, 5
A at Market · 5, 8 · 2, 2
A's best responses.
If B is at the Mall: A gets 3 at the Mall and 5 at the Market. Best response: Market.
If B is at the Market: A gets 8 at the Mall and 2 at the Market. Best response: Mall.
B's best responses.
If A is at the Mall: B gets 3 at the Mall and 5 at the Market. Best response: Market.
If A is at the Market: B gets 8 at the Mall and 2 at the Market. Best response: Mall.
A convenient way to keep track is to mark the best-response payoff in each column for A and in each row for B. Mark them with an asterisk:
· B at Mall · B at MarketA at Mall · 3, 3 · 8\, 5\
A at Market · 5\, 8\ · 2, 2
A's best responses are the 5 in the first column (B at Mall) and the 8 in the second column (B at Market). B's best responses are the 5 in the first row (A at Mall) and the 8 in the second row (A at Market). Look for a cell where both payoffs are marked. There are two: (A at Mall, B at Market) with payoffs (8, 5), and (A at Market, B at Mall) with payoffs (5, 8).
Nash equilibrium
A Nash equilibrium, named after the mathematician John Nash, is a combination of strategies, one for each player, such that each player's strategy is a best response to the others'. Nobody can do better by changing their own choice while the others stay put. It is a stable outcome in the sense that nobody has a reason to regret and deviate.
In the table above, the two cells with both payoffs marked are the Nash equilibria:
1. A at Mall, B at Market. A is at the Mall, which is the best response to B at the Market (8 against 2). B is at the Market, which is the best response to A at the Mall (5 against 3).
2. A at Market, B at Mall. The mirror image.
The other two cells are not equilibria. Take (Mall, Mall) with payoffs (3, 3): each brand would gain by moving to the Market (A gets 5 instead of 3, if B stays). Take (Market, Market) with payoffs (2, 2): each would gain by moving to the Mall (8 instead of 2).
The method for finding all pure-strategy Nash equilibria of a two-player game is therefore:
1. For each choice of the column player, mark the row player's best response(s).
2. For each choice of the row player, mark the column player's best response(s).
3. Any cell where both payoffs are marked is a Nash equilibrium.
The prisoner's dilemma of Lesson 1 fits the same method. In the delivery-app game, discounting is the best response whatever the other does, so the only cell with both marks is (discount, discount): the unique Nash equilibrium. A dominant-strategy equilibrium is always a Nash equilibrium. The converse is not true, as the sales channel game shows: it has equilibria with no dominant strategies.
Predict first: in the sales channel game, there are two equilibria and in each one the brands end up in different places. Brand A prefers the first (it gets 8) and brand B prefers the second (it gets 8). If the brands must choose without talking, what do you think will happen? Think about the problem before reading on.
The theory alone does not say. Both equilibria are consistent, so the players face a problem of coordination: each must guess which equilibrium the other has in mind. Where nothing singles out one, they may fail and end up both at the Mall (3, 3) or both at the Market (2, 2). This is the characteristic difficulty of games with several equilibria, and it is discussed below.
Coordination games
A coordination game is one in which the players want to choose the same thing. Take two payment apps that must choose which of two technical standards to build on. If both choose the same standard, they can work with each other's merchants. If they choose different ones, neither works well.
· App Y: Standard 1 · App Y: Standard 2App X: Standard 1 · 5, 5 · 0, 0
App X: Standard 2 · 0, 0 · 3, 3
Mark the best responses. If Y chooses Standard 1, X gets 5 with Standard 1 and 0 with Standard 2, so X's best response is Standard 1. If Y chooses Standard 2, X gets 0 or 3, so Standard 2. By symmetry the same holds for Y. Both (Standard 1, Standard 1) and (Standard 2, Standard 2) are Nash equilibria. Both players prefer the first, which pays 5 each against 3 each.
So there are two equilibria, and one is better for everyone. Even so, a player who expects the other to choose Standard 2 should also choose Standard 2, even though the first is better for both. A game like this can trap players in the inferior outcome. In technology markets this is the story of standards, such as keyboard layouts or payment systems: a standard may persist because everyone expects everyone else to use it, even if a better one exists. Ways of getting out are:
Communication. A simple agreement, if it is believable (and here it is believable, since both would gain from sticking to it), can select the better equilibrium. This is called cheap talk.
Focal points. Thomas Schelling observed that people often coordinate on a solution that stands out as natural or prominent, such as a famous meeting place or a round number, even with no communication. A regulator, an industry body or a big player announcing a standard can create a focal point.
Leadership and commitment. One player moving first and visibly can settle the matter, as in the sequential games of Lesson 4.
The game of chicken, and market entry
In a game of chicken, each player prefers to be the one who does not give way, but if neither gives way, the result is a disaster. The name comes from the picture of two drivers heading towards each other. In business it describes market entry into a market with room for one.
Two firms consider entering a small market. If one enters and the other stays out, the entrant earns ₹6 crore and the other earns nothing. If both enter, they split a market too small for both and each loses ₹2 crore. If neither enters, both earn nothing.
· Firm Q: Enter · Firm Q: Stay outFirm P: Enter · −2, −2 · 6, 0
Firm P: Stay out · 0, 6 · 0, 0
Best responses: if Q enters, P gets −2 from entering and 0 from staying out, so P stays out. If Q stays out, P gets 6 from entering and 0 from staying out, so P enters. By symmetry Q does the same. The marked cells are (Enter, Stay out) with (6, 0) and (Stay out, Enter) with (0, 6). These are the two pure-strategy Nash equilibria: one firm enters and the other stays out. Each firm prefers the equilibrium in which it is the entrant.
The difficulty again is who is the entrant. If both reason that "the other will stay out, so I will enter", they both enter and lose. This is the miscoordination that makes the game dangerous: the equilibria are asymmetric, and nothing in the game tells the players which firm should be the entrant. Real markets resolve it through timing (the first mover), reputation, regulation (licences) or negotiation.
Mixed strategies: when randomising is rational
Some games have no pure-strategy equilibrium. Consider a game where one player wants to match and the other wants to avoid being matched, like a goalkeeper and a penalty taker: if the taker kicks to the side the keeper dives, the keeper saves, and otherwise the taker scores. Whatever either does, the other would want to change. There is no stable pure choice.
The resolution is for players to randomise: to play each option with a certain probability. A choice of probabilities is a mixed strategy. John Nash proved that every finite game has at least one equilibrium if mixed strategies are allowed. The logic of randomising is that being predictable is costly. A tax authority that always audits the same people will be gamed. A tennis player who always serves to the same side will lose.
The key to finding a mixed equilibrium is the indifference principle: each player mixes in such a way that the other player is indifferent between their choices. If the other had a strictly better option, they would use it and the first player's mixing would not be an equilibrium. So each player's probabilities are set to make the other player's payoffs equal across the options.
A worked example: the inspection game
A tax authority chooses whether to inspect a taxpayer's return. The taxpayer chooses whether to evade or to comply. Payoffs are in ₹ lakh, authority first, taxpayer second:
Inspect and evade: the evasion is caught, and the taxpayer pays a fine of 6, so the taxpayer gets −6. The authority collects the fine and pays 1 for the inspection, a net of 5.
Inspect and comply: the inspection finds nothing. The authority bears the cost of 1, so −1, and the taxpayer gets 0.
Don't inspect and evade: the taxpayer keeps 4 of unpaid tax. The authority loses 4.
Don't inspect and comply: both get 0.
· Taxpayer evades · Taxpayer compliesAuthority inspects · 5, −6 · −1, 0
Authority doesn't inspect · −4, 4 · 0, 0
Look for a pure equilibrium. If the taxpayer evades, the authority's best response is to inspect (5 against −4). If the authority inspects, the taxpayer's best response is to comply (0 against −6). If the taxpayer complies, the authority's best response is not to inspect (0 against −1). If the authority does not inspect, the taxpayer's best response is to evade (4 against 0). The best responses chase each other round the table, and there is no cell where both are marked. There is no pure equilibrium.
Find the mixed equilibrium. Let p be the probability that the authority inspects and q the probability that the taxpayer evades.
Step 1: make the taxpayer indifferent. The taxpayer's expected payoff from evading is p × (−6) + (1 − p) × 4 = 4 − 10p. From complying it is 0. Setting them equal: 4 − 10p = 0, so p = 0.4. The authority inspects 40 per cent of the time.
Step 2: make the authority indifferent. The authority's expected payoff from inspecting is q × 5 + (1 − q) × (−1) = 6q − 1. From not inspecting it is q × (−4) + (1 − q) × 0 = −4q. Setting them equal: 6q − 1 = −4q, so q = 0.1. The taxpayer evades 10 per cent of the time.
The equilibrium is that the authority inspects with probability 0.4 and the taxpayer evades with probability 0.1. In it, the authority's expected payoff is −4 × 0.1 = −0.4, and the taxpayer's is 0.
A surprising result. The probabilities are set by the other player's payoffs, so changing a player's own payoffs does not change their own mixing. Suppose the fine is doubled from 6 to 12 lakh, and the authority keeps it. The taxpayer's payoffs become: evade and inspected −12. The authority's: inspect and evade gets 12 − 1 = 11. Redo the indifference calculations:
Taxpayer indifferent: p × (−12) + (1 − p) × 4 = 0, so 4 = 16p and p = 0.25. The authority inspects 25 per cent of the time, less than before.
Authority indifferent: 11q − (1 − q) = −4q, so 16q = 1 and q = 0.0625. The taxpayer evades 6.25 per cent of the time, less than before.
A higher fine reduces both the inspection rate (40 to 25 per cent) and the evasion rate (10 to 6.25 per cent). The result is a standard one in the theory of inspection and enforcement. A heavier penalty does not need to be enforced as often, since a smaller chance of being caught deters evasion, and so the authority saves on inspection costs while evasion also falls. It is a good illustration of the point that equilibrium behaviour responds to incentives in ways that are not always obvious.
A general formula and a calculator
For a two-by-two game with a mixed equilibrium, write the column player's payoffs as a, b in the top row and c, d in the bottom row, and the row player's payoffs as e, f in the top row and g, h in the bottom row. The probability that the row player chooses the top row is p = (d − c) ÷ (a − b − c + d), and the probability that the column player chooses the left column is q = (h − f) ÷ (e − f − g + h). A mixed equilibrium exists in the interior only if both come out between 0 and 1.
Mixed equilibrium in the entry game
The entry game of chicken has a mixed equilibrium as well as the two pure ones. If each firm enters with probability p, then for the other to be indifferent: entering gives p × (−2) + (1 − p) × 6 = 6 − 8p, and staying out gives 0. Setting 6 − 8p = 0 gives p = 0.75. In the mixed equilibrium each firm enters with probability 75 per cent, and each earns an expected 0, the same as staying out. The probability that both enter, and both lose, is 0.75 × 0.75 = 56 per cent, which is more than half of the time. The mixed equilibrium is poor: it wastes the market.
Real firms are not constrained to it, and they search for ways to avoid it, such as signalling intentions, or one firm committing to enter first.
What an equilibrium tells you, and what it does not
It is a stability condition. An equilibrium is a combination of strategies that is self-enforcing. If everyone expects it, everyone does it. It describes a place where behaviour could settle, not necessarily where it starts.
It need not be good. The prisoner's dilemma has an equilibrium that is worse for both than another outcome. Equilibrium is not efficiency.
There may be many. The sales channel and coordination games have more than one. The theory narrows possibilities but does not always predict. Ideas for choosing include focal points, history, risk (some equilibria are safer than others) and communication.
It may need unrealistic reasoning. A mixed equilibrium requires players to randomise with exact probabilities, which no manager does with a calculator. A better reading is as a description of unpredictability: do not be predictable, and mix in proportions that keep the other side guessing. Evidence from sports (penalty kicks, tennis serves) suggests that professionals come close to equilibrium mixing, as they learn from experience.
It depends on the payoffs. A small change in a payoff can change the equilibrium, so test the robustness of your conclusion.
Games can be rich. Real games have many players and options, and finding all equilibria needs software. The two-by-two cases here teach the logic.
Finding equilibria in Python
A brute-force search for pure Nash equilibria in any two-player game is a short function.
python
import numpy as np
def purenash(A, B):
"""A: row player's payoffs, B: column player's payoffs (same shape). Returns list of (row, col)."""
eq = []
for i in range(A.shape[0]):
for j in range(A.shape[1]):
rowbest = A[i, j] >= A[:, j].max()
colbest = B[i, j] >= B[i, :].max()
if rowbest and colbest:
eq.append((i, j))
return eq
sales channel game: 0 = Mall, 1 = Market
A = np.array([[3, 8], [5, 2]])
B = np.array([[3, 5], [8, 2]])
print("channel game:", purenash(A, B))
market entry (chicken): 0 = Enter, 1 = Stay out
A = np.array([[-2, 6], [0, 0]])
B = np.array([[-2, 0], [6, 0]])
print("entry game:", purenash(A, B))
inspection game: rows = Inspect, Don't; columns = Evade, Comply
A = np.array([[5, -1], [-4, 0]]) # authority
B = np.array([[-6, 0], [4, 0]]) # taxpayer
print("inspection game pure equilibria:", purenash(A, B))
def mixed2x2(A, B):
(e, f), (g, h) = A
(a, b), (c, d) = B
p = (d - c) / (a - b - c + d) # prob. row player plays row 0
q = (h - f) / (e - f - g + h) # prob. column player plays column 0
return p, q
p, q = mixed2x2(A, B)
print("authority inspects with probability", round(p, 3), "; taxpayer evades with probability", round(q, 3))
comparative statics: fine of 12, kept by the authority
A2 = np.array([[11, -1], [-4, 0]]); B2 = np.array([[-12, 0], [4, 0]])
print(mixed2x2(A2, B2))
The first two games return two equilibria each, the inspection game returns none, and the mixed formula gives 0.4 and 0.1, then 0.25 and 0.0625 with the doubled fine, matching the hand calculation.
A worked example: a launch-timing game
Two competing phone makers, Orbit and Nova, plan to launch a new model in the same quarter. Each can launch Early or Late. Launching early costs extra (₹10 crore in rush costs) but captures the festive season. If one launches early and the other late, the early one earns ₹40 crore net and the late one ₹10 crore. If both launch early, they split the festive demand and each earns ₹20 crore net of the rush cost. If both launch late, they each earn ₹25 crore without the rush cost, though the festive season is partly missed.
· Nova: Early · Nova: LateOrbit: Early · 20, 20 · 40, 10
Orbit: Late · 10, 40 · 25, 25
Best responses. For Orbit: if Nova is Early, Early gives 20 and Late gives 10, so Early. If Nova is Late, Early gives 40 and Late gives 25, so Early. Early is dominant for Orbit, and by symmetry for Nova. So the unique Nash equilibrium is (Early, Early), with 20 each, even though (Late, Late) would give 25 each. It is another prisoner's dilemma: the race to launch costs both firms ₹5 crore. The managers see that they would be better off if both launched late, and also that neither can afford to launch late alone and receive ₹10 crore. They might ask whether a credible signal or a common industry calendar (a trade event on a fixed date) could move them to (Late, Late). Lesson 3 shows when repeated play makes such outcomes sustainable.
Common mistakes
Looking only for dominant strategies. Many games have none, and best responses find the equilibria.
Marking best responses in the wrong direction. Compare payoffs within a column for the row player and within a row for the column player.
Believing an equilibrium must be efficient. It need not be.
Assuming a unique outcome. Check for several equilibria and think about how players would choose.
Forgetting mixed strategies. If no pure equilibrium exists, look for one in randomisation.
Setting your own mix from your own payoffs. In a mixed equilibrium, your probabilities make the other player indifferent.
Taking probabilities literally. Read a mixed equilibrium as a statement about unpredictability.
Ignoring robustness. Change the payoffs a little and see whether the equilibrium holds.
Key takeaways
A best response is the choice that pays most against a given choice by the other player. A Nash equilibrium is a combination of choices in which each player's choice is a best response to the others'.
To find pure equilibria, mark each player's best responses in the payoff matrix and look for cells where both payoffs are marked.
Games can have several equilibria. In the sales channel game, (Mall, Market) and (Market, Mall) are both equilibria, and players must coordinate. Standards, cheap talk and focal points help.
In a coordination game both players want to match. In the chicken game of market entry, the equilibria are asymmetric, and miscoordination is costly: at a mixed equilibrium of 75 per cent entry, both enter 56 per cent of the time.
Some games have only mixed equilibria. The indifference principle finds them: each player's probabilities make the other indifferent. In the inspection game the authority inspects 40 per cent of returns and 10 per cent of taxpayers evade.
Doubling the fine in the inspection game lowered both inspection (to 25 per cent) and evasion (to 6.25 per cent), an example of equilibrium effects that intuition can miss.
An equilibrium is stable but need not be efficient, unique or reached easily, and it depends on the payoffs.
Check yourself
1. In a two-by-two game, player 1's payoffs are 4 and 1 against player 2's Left and Right if 1 plays Up, and 2 and 3 if 1 plays Down. What is player 1's best response to Left and to Right?
Against Left: Up pays 4 and Down 2, so Up. Against Right: Up pays 1 and Down 3, so Down.
2. A coordination game has payoffs of 6, 6 if both choose A, 2, 2 if both choose B, and 0, 0 for a mismatch. List the pure Nash equilibria. Which is better?
(A, A) and (B, B). Both are equilibria, and (A, A) is better for both.
3. In the entry game with payoffs of −2 for both entering, 6 for entering alone and 0 for staying out, an entrant earns 6 − 8p expected profit when the other enters with probability p. At what p is the firm indifferent between entering and staying out?
6 − 8p = 0, so p = 0.75.
4. Why does a mixed-strategy equilibrium set a player's probabilities from the other player's payoffs?
A player will randomise only if indifferent between the options. The mixing probabilities of the opponent are what make the player indifferent.
5. Is a Nash equilibrium always the best outcome for the players? Give an example.
No. In the prisoner's dilemma, mutual defection is the equilibrium but both would prefer mutual cooperation.
Try this
Find the equilibria of games of your own. Set aside forty minutes.
1. Take the sales channel game of this lesson. Mark the best responses in the payoff matrix, find both equilibria and say who prefers which.
2. Invent a coordination game, such as two teams choosing a common software tool, with payoffs that make one equilibrium better for both. Find the equilibria and suggest two ways the players could reach the better one.
3. Invent a two-by-two game with no pure equilibrium, such as a negotiator choosing to bluff or be honest against an opponent who chooses to check or accept. Check by marking best responses that no cell is doubly marked.
4. Compute the mixed equilibrium of your game by the indifference principle, and check it with the simulator or code.
5. Change one of your own payoffs and recompute. Write down whose probability changes and why.
6. Use the code to find the pure equilibria of a 3 by 3 game that you invent, and check one by hand.
7. Write a five-sentence note: the game and its payoffs, the equilibria you found, whether they are efficient, what the players need in order to settle on one and one real-world change that would move the equilibrium.
A good result is a payoff matrix with best responses marked, a list of equilibria with a clear statement of which is better for whom, a mixed equilibrium that passes the indifference check and a note on how the players could coordinate. Lesson 3 asks what happens when the same game is played again and again.
Tags: Game theory Nash equilibrium Best response Mixed strategies Coordination