ECON 365 · Game Theory

Nash Equilibrium

A Nash equilibrium is a pair of plans where neither player can do better by changing alone; here is how to find one.

Key takeaways

  • A Nash equilibrium is a set of strategies, one per player, where no player can gain by changing their own strategy while the others keep theirs.
  • To find one in a payoff table, underline each player's best reply to every choice of the rival, and look for cells where both numbers are underlined.
  • Every dominant-strategy outcome is a Nash equilibrium, but many Nash equilibria arise in games with no dominant strategies at all.
  • A game can have one, several, or (in pure strategies) none; Mixed Strategies fix the last problem.
  • A Nash equilibrium need not be the best outcome for the players, as the prisoner's dilemma showed.

Two drivers meet at a narrow country road, each steering toward the other. If both swerve right, they pass in peace. If both swerve left, they also pass in peace. Now suppose each driver expects the other to swerve right. Does either driver want to swerve left instead? No. Once you believe your rival will go right, going right is the best you can do.

That calm, no-regrets situation is the most important idea in game theory. It is called a Nash equilibrium, after the mathematician John Nash, who proved in 1950 that every game with finitely many players and choices has one. In this lesson you will learn what it means, how to find one with a pencil, and why it is not always a happy place to end up.

The idea in plain words

Earlier tools asked what a player should do whatever the rival does. Often there is no such strategy. Then we need a different question: what would each player do if they knew what the others were doing?

A best reply (or best response) is the strategy that gives a player the highest payoff against a particular choice by the rival. A Nash equilibrium is a combination of strategies in which every player is playing a best reply to the others at the same time.

Think of it as a stable agreement that nobody needs to enforce. If you told each player in advance what everyone else will do, nobody would want to change their own plan. If some player would want to change, then the combination is not an equilibrium, because that player has a better move available.

This does not say players reach an equilibrium by magic. It says that if players settle on a pattern and stay there, it must be an equilibrium. A pattern that is not one would fall apart as someone switched.

The tool: underline the best replies

Here is a mechanical way to find equilibria in a payoff table, and it works for any size of table.

  1. Go through each column. In that column, look at the row player's payoffs and underline the largest one. That is the row player's best reply to that column.
  2. Go through each row. In that row, look at the column player's payoffs and underline the largest one.
  3. Any cell where both numbers are underlined is a Nash equilibrium, because both players are best replying at once.

Many figures in this course already underline the best replies for you, so you can practice reading them.

Running example: choosing a spot

Maya and Leo, our two food truck owners, now choose where to park instead of what to charge. The three spots are the Beach, the Park and the Station. They choose at the same time. The payoffs are daily profits in tens of dollars, and they are made up. Each cell lists Maya first, then Leo.

Where to park (profit in tens of dollars)
Leo Maya Beach Park Station Beach 3 2 2 3 1 0 Park 2 1 4 4 3 2 Station 1 3 3 1 5 2 Lower left: Maya. Upper right: Leo. Underline: best reply. Leo Maya Beach Park Station Beach 3 2 2 3 1 0 Park 2 1 4 4 3 2 Station 1 3 3 1 5 2 Lower left: Maya. Upper right: Leo. Underline: best reply.

Only the Park-Park cell has both numbers underlined. Example with made-up numbers.

First, notice that no player has a dominant strategy. Maya's Station is best when Leo goes to the Station (5 beats 3 and 1), but it is the worst choice when Leo goes to the Beach (1 against 3 and 2). So the earlier methods give no answer. Let us use best replies.

Maya's best replies, column by column (Leo's choice is the column):

  • If Leo parks at the Beach, Maya's payoffs are 3, 2 and 1. Best reply: Beach.
  • If Leo parks at the Park, her payoffs are 2, 4 and 3. Best reply: Park.
  • If Leo parks at the Station, her payoffs are 1, 3 and 5. Best reply: Station.

Leo's best replies, row by row (Maya's choice is the row):

  • If Maya parks at the Beach, Leo's payoffs are 2, 3 and 0. Best reply: Park.
  • If Maya parks at the Park, his payoffs are 1, 4 and 2. Best reply: Park.
  • If Maya parks at the Station, his payoffs are 3, 1 and 2. Best reply: Beach.

Now look for a cell where both are best replying.

  • Beach and Park: Leo's Park is a best reply to Maya's Beach, but Maya's best reply to Leo's Park is the Park, not the Beach. Not an equilibrium.
  • Park and Park: Maya's best reply to Park is Park, and Leo's best reply to Park is Park. Both underlined. This is a Nash equilibrium.
  • Station and Beach: Leo's Beach is a best reply to Maya's Station, but Maya's best reply to Leo's Beach is the Beach. Not an equilibrium.

The one equilibrium is both at the Park, earning 40 each, which is $400 a day. Check by testing a switch. If Maya moves to the Station while Leo stays at the Park, she earns 30, less than 40. If Leo moves to the Beach while Maya stays at the Park, he earns 10, less than 40. Neither wants to switch alone.

The formal test, in a formula

The test above can be written in one line. Say Maya's payoff is a function of her strategy and Leo's. A pair of strategies is a Nash equilibrium if neither player can raise their payoff by changing only their own strategy.

The Nash condition for Maya
u(s*, t*) ≥ u(s, t*) u(s*, t*) = Payoff at the equilibrium Maya's payoff when she plays s* and Leo plays t*. u(s, t*) = Payoff from any switch Maya's payoff if she switches to any other strategy s while Leo still plays t*. u(s*, t*) ≥ u(s, t*) u(s*, t*) = Payoff at the equilibrium Maya's payoff when she plays s* and Leo plays t*. u(s, t*) = Payoff from any switch Maya's payoff if she switches to any other strategy s while Leo still plays t*.

The same condition must hold for Leo, with Maya's choice held fixed.

The star marks the equilibrium choice. The key phrase is "while Leo still plays t*": we change only one player at a time. This is a test against a single player's switch, called a unilateral deviation. It does not test what happens if both change together.

How this connects to the earlier lessons

The Nash idea is a generalization of what you already know.

  • If both players have a dominant strategy, as in the prisoner's dilemma from Dominant Strategies and the Prisoner's Dilemma, the pair of dominant strategies is a Nash equilibrium. Each strategy is a best reply against everything, so it is certainly a best reply against the rival's actual choice.
  • If iterated elimination from Iterated Elimination of Dominated Strategies leaves one cell, that cell is a Nash equilibrium. (Players who survive elimination are best replying to each other.)
  • The reverse is not true. In the parking game, no elimination was possible, yet there is a Nash equilibrium. Nash is the more general idea.
How the solution concepts fit together
Dominant-strategy equilibrium Everyone has a strategy that is best against anything. Iterated elimination result A single cell left after crossing out dominated strategies. Nash equilibrium Each player is best replying to the others; the broadest idea. Dominant-strategy equilibrium Everyone has a strategy that is best against anything. Iterated elimination result A single cell left after crossing out dominated strategies. Nash equilibrium Each player is best replying to the others; the broadest idea.

Each layer contains the one above it.

Several equilibria, or one that is a trap

Two things can complicate matters.

More than one equilibrium. Some games have two or more cells where both players are best replying. Which one will players reach? Game theory alone may not say. This happens in the coordination games of the next lesson, Coordination Games, Chicken and the Stag Hunt. In the country road story at the start, both "everyone right" and "everyone left" are equilibria. Habit, law or a local custom picks one.

An equilibrium that is not the best outcome. In the prisoner's dilemma, the single Nash equilibrium (both defect) is worse for both than another cell (both cooperate). An equilibrium is about stability, not about being good. If a stable result is bad, society may need laws, contracts or rules that change the game.

No equilibrium in pure strategies. Some games, like rock-paper-scissors, have no cell where both are best replying. Nash's great result was that once players may randomize, an equilibrium always exists (for games with a finite number of players and strategies). That is the topic of Mixed Strategies.

A common mistake

The most common error is to read "equilibrium" as "the best the players can do." It is not. The equilibrium for the parking game gives 40 and 40. Look again at the table: the Station and Station cell gives Maya 50, and the Park and Park cell gives her 40. For Maya alone, the Station and Station cell would be better, but it is not an equilibrium because Leo's best reply to Maya's Station is the Beach, which then pushes Maya to change as well.

A second mistake is checking only one player. A cell can look good for Maya because she has her highest payoff, but if Leo could gain by switching, it is not an equilibrium. Always check both players.

A third is to test a switch by both players at once. The test is one player at a time, with the others held still.

Words to know

Best reply the strategy that gives a player the highest payoff against a particular choice by the rival.

Nash equilibrium a combination of strategies in which every player is playing a best reply to the others.

Unilateral deviation a change of strategy by one player while all the others stay the same.

Pure strategy choosing one action for certain, without randomizing.

Stable outcome a result that nobody wants to leave once they are in it.

Equilibrium selection the question of which equilibrium players reach when a game has more than one.

Check yourself

  1. State the definition of a Nash equilibrium in one sentence.
  2. In the parking game, what is Leo's best reply if Maya parks at the Beach?
  3. Explain why Station and Beach is not a Nash equilibrium, using the payoffs of Maya and Leo.
  4. If Maya moves from the Park to the Station while Leo stays at the Park, how much profit does she gain or lose, in dollars?
  5. Why is a dominant-strategy outcome always a Nash equilibrium?
  6. Is the Nash equilibrium of a game always the best outcome for the players? Give an example.
Show the answers
  1. A set of strategies, one for each player, in which no player can do better by changing only their own strategy.
  2. The Park, which pays Leo 3 against 2 at the Beach and 0 at the Station.
  3. Maya's payoff there is 1, but she could earn 3 by moving to the Beach against Leo's Beach, so she would deviate.
  4. She goes from 40 to 30 in tens of dollars, so she loses 10 tens, which is $100 a day.
  5. A dominant strategy is a best reply to every choice by the rival, so it is a best reply to the rival's actual choice too.
  6. No. In the prisoner's dilemma the equilibrium (both defect) is worse for both than mutual cooperation.

A free self-study program written for 4Economics with AI writing tools and not reviewed line by line by a person. It is not an accredited degree and awards no credit. Check anything you rely on against a textbook or primary source. Report an error.

In this unit: Games played at once

  1. What Is a GameA game is any situation where your best choice depends on what others choose; learn its players, strategies and payoffs.11 min
  2. Dominant Strategies and the Prisoner's DilemmaWhen one choice beats every alternative no matter what rivals do, smart players can still end up worse off together.11 min
  3. Iterated Elimination of Dominated StrategiesCross out choices no rational player would make, then cross out more, until the game solves itself.11 min
  4. Nash EquilibriumA Nash equilibrium is a pair of plans where neither player can do better by changing alone; here is how to find one.10 min
  5. Coordination Games, Chicken and the Stag HuntSome games have several equilibria, so the puzzle is how players pick the same one; three classic cases explain.11 min
  6. Mixed StrategiesWhen any predictable move gets punished, the best play is a calculated random mix; learn to find the right odds.10 min
  7. Games With Continuous ChoicesWhen players choose any quantity or price, best-reply curves cross at the Nash equilibrium, as in a two-firm market.10 min

In the news