Kungsgatan in Stockholm at 04:50 on 3 September 1967, the morning Sweden changed from driving on the left to driving on the right, with cars and buses crossing to the other side of the street
Unit 03 · All masterclasses · 95 min

Nash Equilibrium

A profile of strategies in which nobody wants to change their mind
Image: Jan Collsiöö, via Wikimedia Commons (public domain)

Most games have no dominant strategies, so a stable prediction needs another idea. A Nash equilibrium is a profile in which every player's strategy is a best response to the others. The unit finds every pure equilibrium of the stag hunt, the coordination game with conflicting preferences, and chicken by underlining, explains how focal points, conventions, and risk dominance select among several equilibria, and solves Cournot's model of two competing producers with the program's numbers, against the monopoly and the competitive outcome and against Bertrand's price competition. It closes with Nash's existence theorem and the question whether an equilibrium can be computed quickly.

Sample unit: the complete text

In the prisoner’s dilemma of Unit 2 the prediction was easy, because each suspect had a strategy that was best whatever the other did. Most games are not so convenient. Two drivers who meet on a narrow road, two firms that choose how much to produce, two friends who have lost each other in a city: none of them has a dominant strategy, and yet each of these situations settles down somewhere. This unit introduces the idea that says where. A Nash equilibrium is a combination of strategies in which nobody wants to change their mind, and almost every later unit refines, tests, or computes it.

1 The limits of dominance

Two reminders come first, because this unit is read by visitors as well as by students who have Units 1 and 2 behind them. A payoff matrix lists the strategies of the row player down the side and those of the column player across the top, and every cell holds two numbers, the row player’s payoff first, as in “3, 3”; each player wants their own number to be large. A best response is a strategy that gives a player the highest payoff against a given strategy of the other player, so that each column has a best response for the row player and each row has one for the column player. Unit 2 built dominance on these ideas: a strategy is dominant when it is a best response to everything the other player might do, and when every player has one, the game is solved.

To see how rarely that happens, take the two drivers of Unit 1 once more. Two cars approach each other on a road without markings, and each driver chooses, at the same moment, to keep left or to keep right. If both choose the same side, they pass, and each gets a payoff of 1. If they choose different sides, they have to brake hard, and each gets 0. Table 1 shows the matrix, with the row player’s payoff written first.

Neither driver has a dominant strategy, because in Table 1 Left is the best response to Left and Right is the best response to Right. The iterated elimination of Unit 2 removes nothing either, since no strategy is dominated. Dominance therefore says nothing about this game, although anyone can see that it has two stable outcomes, in which both keep left or both keep right, and two unstable ones, in which the drivers choose different sides. What is missing is a precise statement of what “stable” means, one that works equally for the drivers, for firms choosing among thousands of quantities, and for games with a dozen players.

LeftRight
Left1, 10, 0
Right0, 01, 1
Table 1. The two drivers’ game. The first driver chooses the row and the second the column; the first number in each cell is the row player’s payoff.

2 The definition of a Nash equilibrium

The idea is to ask the stability question of every player at once. Suppose each player has settled on a strategy and knows what the others have settled on. If no single player can do better by switching to another strategy while the others keep theirs, the combination holds. John Forbes Nash Jr. (1928-2015) wrote this condition down in 1950, when he was a doctoral student at Princeton, and proved that it can always be met in any game with finitely many players and finitely many strategies, once players may choose at random among their strategies. Section 6 returns to his theorem; the definition comes first.

The notation is that of Unit 1. There are \(n\) players, player \(i\) chooses a strategy \(s_i\) from a set \(S_i\), a complete list of choices \(s = (s_1, \ldots, s_n)\) is called a strategy profile, and \(s_{-i}\) stands for the choices of everyone except player \(i\), so that a profile can be written \((s_i, s_{-i})\). The payoff of player \(i\) is \(u_i(s)\).

The inequality compares one player’s payoff in the equilibrium with the payoff from a change made by that player alone. Nothing is said about what happens when two or more players change together; questions of that kind need the theory of coalitions, which lies beyond this unit. The definition can be read in three ways, and each reading is useful in a different situation.

  1. No regrets. After the game has been played and everyone sees what the others did, nobody wishes they had chosen differently. The two drivers who both kept left have no regrets; the two who chose different sides and had to brake do.
  2. A self-enforcing agreement. If the players had agreed on the profile \(s^{*}\) beforehand, nobody would have a reason to break the agreement in secret, so it needs no contract and no referee. An agreement on a profile that is not an equilibrium is worthless, because at least one player gains by quietly doing something else.
  3. Consistent expectations. Each player expects something of the others, plays a best response to it, and turns out to be right. An equilibrium is the only kind of outcome in which everyone can be right about everyone else at the same time.

Three warnings belong next to the definition. First, an equilibrium need not be good for the players. The prisoner’s dilemma of Unit 2 has exactly one Nash equilibrium, mutual defection with a payoff of 1 each, although both prefer mutual cooperation with 3 each; the reason is that a player who switches to cooperation alone only lowers their own payoff, from 1 to 0. Second, a game can have several equilibria, as the drivers’ game shows, and the definition does not say which one will be played; Section 4 is about that question. Third, the condition uses “at least as good”, not “better”. A strategy that is weakly dominated in the sense of Unit 2 can therefore be part of a Nash equilibrium, because being tied for best is enough; a strictly dominated strategy never can be, since by definition some other strategy does strictly better against everything, including the equilibrium strategies of the others.

The connection with Unit 2 also runs the other way: a dominant strategy is a best response to every profile of the others, so a profile of dominant strategies is always a Nash equilibrium, and when the dominant strategies are strict it is the only one.

3 Every pure equilibrium of a matrix game

A strategy chosen without any randomization is called a pure strategy, and this unit looks for equilibria in pure strategies only; Unit 4 adds strategies that mix. In a payoff matrix the definition turns into a mechanical procedure, which is best done with a pencil.

  1. For each column, find the row player’s largest payoff in that column and underline it. These are the row player’s best responses to each strategy of the column player. If two payoffs tie for largest, underline both.
  2. For each row, find the column player’s largest payoff in that row and underline it. These are the column player’s best responses.
  3. A cell in which both payoffs are underlined is a pure strategy Nash equilibrium, because each player’s strategy is then a best response to the other’s. Every pure equilibrium is found this way, and nothing else is.

Figure 1 shows the procedure on four games that every game theorist knows by name, written with the payoffs this masterclass uses throughout. In the prisoner’s dilemma only the cell (Defect, Defect) carries two underlines, as the dominance argument of Unit 2 already implied. The other three games have no dominant strategies, and underlining is how their equilibria are found.

Four classic games solved by underlining. A line under a payoff marks a best response: under the row player’s payoff, the best reply to that column; …
Figure 1. Four classic games solved by underlining. A line under a payoff marks a best response: under the row player’s payoff, the best reply to that column; under the column player’s payoff, the best reply to that row. The shaded cells carry two underlines each and are the pure strategy Nash equilibria. The row player’s payoff is written first in every cell.

The stag hunt goes back to Jean-Jacques Rousseau (1712-1778), whose book Discourse on the Origin and Basis of Inequality among Men of 1755 describes hunters who agree to wait for a stag but cannot resist a passing hare. Chicken, the fourth game of Figure 1, is the game of two drivers racing towards each other. The driver who swerves is the chicken and gets \(-1\), while the other gets 1; if both swerve, nothing happens and both get 0; if neither swerves, the cars crash, which is written as \(-5\) for each. Its two equilibria are the cells in which exactly one driver swerves, because the driver who swerves would fall from \(-1\) to \(-5\) by going straight, and the driver who goes straight would fall from 1 to 0 by swerving. The same structure returns in Unit 8 as the hawk-dove game. Table 2 collects the four games with a fifth, discussed next.

GameThe StoryPure Equilibria
Prisoner’s dilemmaConfess or stay silent(Defect, Defect)
Stag huntHunt together or alone(Stag, Stag), (Hare, Hare)
Conflicting preferencesTogether, but where?(Concert, Concert), (Match, Match)
ChickenWho swerves first?(Swerve, Straight), (Straight, Swerve)
Matching penniesMatch or mismatchnone
Table 2. Five classic two-player games and their equilibria in pure strategies. The first four are drawn in Figure 1; the fifth is shown in Table 4.

Underlining also works where the dominance method of Unit 2 stops, as the game of Table 3 and the example below show.

LeftCentreRight
Top3, 41, 02, 5
Middle0, 33, 53, 1
Bottom1, 41, 04, 2
Table 3. A 3 by 3 game without dominated strategies and with a single pure strategy Nash equilibrium. The row player’s payoff is written first.

The procedure can also come back empty. In matching pennies each of two players secretly places a coin heads or tails up. If the coins match, the row player takes both and gets 1 while the column player gets \(-1\); if they differ, the column player wins instead, so the matrix, shown in Table 4, has 1, \(-1\) in the two cells where the coins match and \(-1\), 1 in the two where they differ. The row player’s best responses are Heads against Heads and Tails against Tails, the column player’s are Tails against Heads and Heads against Tails, and no cell collects two underlines. Whatever the two players settle on, one of them wants to switch, so the game has no equilibrium in pure strategies. Nash’s theorem, stated in Section 6, says that every finite game has an equilibrium once players are allowed to randomize, and Unit 4 shows that playing Heads and Tails with probability \(\tfrac{1}{2}\) each is the equilibrium of this game, and that the same idea explains how a penalty kicker and a goalkeeper behave.

HeadsTails
Heads1, \(-1\)\(-1\), 1
Tails\(-1\), 11, \(-1\)
Table 4. Matching pennies. The row player wins when the coins match and the column player when they differ; the row player’s payoff is written first. No cell holds a best response for both players.

4 Several equilibria and the choice between them

The drivers’ game, the stag hunt, the coordination game with conflicting preferences, and chicken each have two pure equilibria, and the definition is silent about which one is played. Game theory has three answers.

4.1 Focal points

Thomas Schelling (1921-2016) argued in his book The Strategy of Conflict, published in 1960, that players who must coordinate without communicating look for a focal point, an equilibrium that stands out from the others for some reason that both players can expect the other to notice: a tradition, a round number, a symmetry, a landmark. The reason has nothing to do with the payoffs, which are often identical across the equilibria; a focal point works because each player expects the other to be drawn to the same prominent option, and the expectation makes itself true.

4.2 Conventions

The second answer looks at history rather than at the matrix. A convention is an equilibrium that everyone plays because everyone has always played it, so that each player’s expectation about the others rests on experience rather than on reasoning about the matrix. The side of the road is the standard example. Both equilibria of the drivers’ game in Table 1 give the same payoffs; which one a country plays was settled long ago by habit or by a law that fixed a habit, and once in place the convention is extremely stable, because a single driver who tries the other side loses at once. It can nevertheless be changed, provided everyone changes together.

4.3 Payoff dominance and risk dominance

The third answer looks at the payoffs themselves. In the stag hunt, (Stag, Stag) gives both hunters 4 and (Hare, Hare) gives both 3, so both prefer the first equilibrium; an equilibrium that every player prefers to another is called payoff dominant. If the players could rely on each other, they would hunt the stag. The difficulty is that hunting the stag is only a good idea when the other hunter does the same, and a hunter who is not sure of that may prefer the safe hare. John Harsanyi (1920-2000) and Reinhard Selten (1930-2016) made this trade-off precise in their book A General Theory of Equilibrium Selection in Games of 1988 and called the safer equilibrium risk dominant.

The stag hunt from one hunter’s point of view. The expected payoff of hunting the stag, \(4p\), rises with the probability \(p\) that the other hunte…
Figure 2. The stag hunt from one hunter’s point of view. The expected payoff of hunting the stag, \(4p\), rises with the probability \(p\) that the other hunter does the same, while the hare pays 3 regardless. The lines cross at \(p = 3/4\), and the shaded part of the belief interval, three quarters of it, is where the hare is the best response. Computed from the payoffs of Figure 1.

To see what risk means here, suppose the row player believes that the other hunter will hunt the stag with probability \(p\) and the hare with probability \(1 - p\). The expected payoff of Stag, which is the payoff averaged with these probabilities, is then \(4p + 0\,(1 - p) = 4p\), and the expected payoff of Hare is \(3p + 3\,(1 - p) = 3\) whatever \(p\) is. Stag is the better choice when \(4p \geq 3\), that is, when \(p \geq \tfrac{3}{4}\), where the two lines of Figure 2 cross. A hunter needs to be at least 75 per cent sure of the partner before the stag is worth the risk, whereas the hare is the better choice for every belief below that. The range of possible beliefs, from \(p = 0\) to \(p = 1\), is called the belief interval, and the hare’s part of it is three times as large as the stag’s. That asymmetry is what risk dominance measures.

For the stag hunt the arithmetic is short. At (Stag, Stag) a hunter who deviates to Hare falls from 4 to 3, a loss of 1, so the product is \(1 \times 1 = 1\). At (Hare, Hare) a hunter who deviates to Stag falls from 3 to 0, a loss of 3, and the product is \(3 \times 3 = 9\). Since \(9 > 1\), (Hare, Hare) is the risk dominant equilibrium and (Stag, Stag) the payoff dominant one, and the two criteria point in opposite directions; the shares of the belief interval are \(1/(1 + 3) = 1/4\) for the stag and \(3/(1 + 3) = 3/4\) for the hare, the quarter and three quarters of Figure 2. Which one real players follow depends on how well they know each other and on how often they have played; Unit 6 returns to the stag hunt when the same players meet repeatedly.

5 Cournot competition

All the games so far had two or three strategies per player. Many of the most useful games have infinitely many, because the strategy is a number: a price, a quantity, a bid, a share. Underlining is impossible in such a game, but the definition of Section 2 applies unchanged, and the first game of this kind, the competition between the two sellers of one market, which is called a duopoly, was solved more than a century before Nash wrote down the general idea.

Cournot’s figure from the part of the Recherches of 1838 headed “Of the competition of producers”. Each curve gives one owner’s best quantity against…
Figure 3. Cournot’s figure from the part of the Recherches of 1838 headed “Of the competition of producers”. Each curve gives one owner’s best quantity against the other’s, and the solution of the duopoly lies where they cross, which is the construction of Figure 4. Credit: Antoine Augustin Cournot, via Wikimedia Commons (public domain).

5.1 The model and the best-response function

The game is set up as follows, in the form this masterclass uses in Units 3, 5, and 6. Two firms, and only two, produce the same good. Each firm \(i\) chooses a quantity \(q_i \geq 0\), and the two choices are made at the same time, without knowing the other’s. The market price depends on the total quantity through the inverse demand function \begin{equation} P = a - b\,(q_1 + q_2) , \label{eq:demand} \end{equation} with \(a > 0\) and \(b > 0\), which says that every extra item brought to market lowers the price by \(b\); the price is zero if the total reaches \(a/b\). A demand function gives the quantity that buyers take at each price; this one is called inverse because it gives the price at each total quantity instead. Each item costs \(c\) to produce, with \(c < a\), and there are no other costs. The payoff of firm \(i\) is its profit, revenue minus cost, \begin{equation} \pi_i(q_1, q_2) = \bigl(P - c\bigr)\,q_i = \bigl(a - c - b\,q_1 - b\,q_2\bigr)\,q_i . \label{eq:profit} \end{equation} The program’s numbers are \(a = 120\), \(b = 1\), and \(c = 30\), so that \(P = 120 - (q_1 + q_2)\), which means that the price would be 120 if nothing were sold and falls by 1 for every item brought to market, while each item costs 30 to make. This kind of game, with a few firms, an identical product, and quantities chosen at the same time, is called Cournot competition.

To find the equilibrium, the best responses are needed first. Firm 1’s profit for a given \(q_2\) is a quadratic function of \(q_1\), and because the coefficient of \(q_1^{2}\) in Equation \eqref{eq:profit} is \(-b\), a negative number, its graph is a parabola opening downwards, so the best response is the vertex of that parabola, its highest point. The vertex can be found by completing the square, a method from school algebra; the Key Result states what comes out, and the Proof box derives it in full.

The graph of a best-response function is called a reaction curve, after Cournot’s own drawing, and Figure 4 shows both for the program’s numbers. Firm 1’s quantity is on the horizontal axis. The curves are straight lines here because the demand is linear, and they cross exactly once, at the Nash equilibrium.

The two best-response lines of the Cournot game with \(P = 120 - (q_1 + q_2)\) and a cost of 30 per item. They cross at the Nash equilibrium \((30, 3…
Figure 4. The two best-response lines of the Cournot game with \(P = 120 - (q_1 + q_2)\) and a cost of 30 per item. They cross at the Nash equilibrium \((30, 30)\). The dashed grey line \(q_1 + q_2 = 45\) is the monopoly quantity, with the equal split at \((22.5, 22.5)\), and the dotted grey line \(q_1 + q_2 = 90\) is the competitive quantity. Computed from the Key Result above.

The economic reason for the extra output is that each firm counts only its own loss when it lowers the price by selling one more item and ignores the loss it inflicts on the rival, whereas a monopolist bears both losses and stops earlier. Unit 5 shows what changes when one firm chooses its quantity first and the other observes it, the case of Stackelberg leadership, and Unit 6 asks whether two firms that meet year after year can hold the monopoly split after all.

5.2 Bertrand competition

Bertrand’s objection of 1883 was that firms do not announce quantities and let the market find the price; they announce prices and let the buyers decide where to shop. The change seems small and turns the result upside down. In Bertrand competition two firms with the same cost \(c\) per item and the same product each name a price, at the same time. Buyers, who are fully informed and have no preference between the firms, all buy from the cheaper one; if the prices are equal, the buyers split evenly. With the demand of Equation \eqref{eq:demand}, the quantity sold at a price \(P\) is \(Q = (a - P)/b\), which for the program’s numbers is \(120 - P\).

The equilibrium can be found by going through the possible pairs of prices one case at a time, without any algebra.

  1. At a common price above cost each firm serves half the market, and either firm can take the whole market at almost the same margin per item by pricing slightly lower, which roughly doubles its profit, so no such pair is stable.
  2. If the prices differ and the cheaper price is above cost, the dearer firm sells nothing and gains by undercutting the cheaper firm, so no such pair is stable either.
  3. A firm that prices below cost sells every item at a loss and gains by raising its price, so no pair with a price below cost is stable.
  4. Only \(p_1 = p_2 = c\) survives. Both firms earn zero there, a firm that raises its price sells nothing and still earns zero, and a firm that lowers it sells every item at a loss, so no unilateral change pays. The condition of Section 2 holds only weakly, because a firm that raises its price ends up tied with one that keeps it rather than worse off.

One detail deserves a precise statement. When a price can be any number, there is no largest price below the rival’s, so a firm facing a rival price above cost has no single best response, only a whole range of better replies, each a little below the rival. For the argument this is enough, because the definition only asks whether some change pays, not which change is best; if prices move in steps of one cent, the best response is exactly one cent below the rival.

The best responses of the Bertrand game with \(Q = 120 - P\) and a cost of 30, drawn as correspondences, the name used when a best response may be a …
Figure 5. The best responses of the Bertrand game with \(Q = 120 - P\) and a cost of 30, drawn as correspondences, the name used when a best response may be a whole set of prices rather than a single one. Against a rival price between 30 and 75 each firm’s best response is a price just below it, drawn slightly off the diagonal; against a rival price above the monopoly price of 75 it is 75 itself; against a rival price at or below cost, in the shaded regions, any higher price gives zero profit and is as good as any other. The only point on both correspondences is the equilibrium \((30, 30)\).

With the same demand and the same costs, quantity competition gives a price of 60 and a profit of 900 each, and price competition gives a price of 30 and nothing; the two games differ in what a firm can commit to, a quantity or a price. Where capacity is fixed in advance, as for a steel mill or a hotel, Cournot’s model fits better, and where firms can supply any demand at the price they name, as in much online retail, Bertrand’s does.

6 Nash’s theorem and the cost of finding an equilibrium

The examples of this unit all had an equilibrium, except matching pennies in pure strategies. The theorem that made the concept central guarantees that this is no accident.

A finite game has finitely many players, each with finitely many pure strategies; every matrix game is finite, and so is chess, written out as a matrix of complete plans of play. A mixed strategy is a probability distribution over a player’s pure strategies, such as heads and tails with probability \(\tfrac{1}{2}\) each in matching pennies; Unit 4 develops them properly.

The proof is beyond this unit, because it rests on a theorem from topology, but its idea fits in a paragraph. Think of a rule, called a map in mathematics, that takes every profile of mixed strategies and moves each player a little towards their best responses against the others, leaving a player who already plays a best response alone. A profile that the map does not move is called a fixed point of the map, and by construction a fixed point is exactly a Nash equilibrium. The fixed point theorems of Brouwer and Kakutani say that any such map, if it is continuous and acts on a closed and bounded set without holes, such as a disc or a solid cube, leaves at least one point unmoved, just as a paper map of a country, laid down anywhere inside that country, has one point lying exactly above the place it represents. Nash built the right map and checked that it satisfies the conditions.

6.1 Can an equilibrium be found?

The theorem says that an equilibrium exists; it does not say how to find one, because fixed point theorems show that a point exists without locating it. For a 2 by 2 game the search takes a minute. For two players with a hundred strategies each, or for many players, the question becomes serious, and not only for computers: if people are supposed to play equilibrium, some process of learning, reasoning, or trial and error must take them there, and such a process is an algorithm whether a person or a machine runs it. A method is said to run in polynomial time when the number of steps it needs grows no faster than some fixed power of the size of the input, here the number of payoffs in the matrix; a method whose running time grows exponentially with the size of the game, doubling, say, with every added strategy, is useless beyond toy examples. For two-player zero-sum games a polynomial-time method has existed since 1979, when linear programming, the task of making a linear quantity as large as possible under linear constraints, into which such games can be translated, was first solved in polynomial time. For general games the known methods, including the Lemke-Howson algorithm of 1964, can take exponentially many steps in the worst case, and nobody has found a better one.

The open problem does not spoil the concept: for the games of this unit, and for the auctions, matchings, and repeated games of later units, equilibria can be found and checked by hand. What the result rules out is the comfortable assumption that equilibrium is the natural resting point of play in every game, however large and strange.

This is one of 16 units

Participants also get the quiz, the further reading, and the final exam.
See the Tuition Fee