Game Trees and Backward Induction
In games where players take turns, start at the last move and reason backward to see what every earlier move is worth.
Key takeaways
- A sequential game is drawn as a game tree: nodes are decision points, branches are choices, and the ends show payoffs.
- Backward induction solves the game by finding the best move at the last decision first, then the one before it, and so on to the start.
- Each player is assumed to know that later players will choose what is best for them.
- Moving first can help or hurt, and the result can differ greatly from a simultaneous version of the same game.
- Backward induction can produce a result that both players dislike, because each cannot trust the other later.
Think about how a good chess player plans. She does not ask, "What is the best move right now?" in a vacuum. She asks, "If I move here, what will my opponent do next? And then what will I do? And what will they do after that?" She looks to the end of the line and works backward.
That habit, looking ahead and then reasoning back, is the secret to games where people take turns. It is a different skill from the simultaneous games of the last few lessons, where nobody saw the other's move. In this lesson you will learn to draw a game as a tree and to solve it from the last move to the first.
Games where players take turns
In What Is a Game you met two families of games. Simultaneous games are drawn as payoff tables. In a sequential game, players move one after another, and later movers can see earlier moves. A table hides this timing, so we draw a game tree instead.
A tree has these parts.
- A node is a point where some player must choose. The first one is the root.
- A branch is one choice a player can make at a node.
- A terminal node (or leaf) is where the game ends. It shows the payoff for each player.
Because each player sees what happened before, a player can base their choice on the past. That means a strategy in a sequential game is richer. It is a complete plan that says what to do at every node where you might be called to move, not only the one you actually reach.
A running example: the growing prize
Picture a school fair booth. Maya and Leo run it together, and there is a prize pot that grows as they pass the turn back and forth. They move in order: Maya, then Leo, then Maya. Payoffs are in dollars of profit for each, and they are made up.
- Move 1, Maya: Stop, and the game ends with Maya getting $2 and Leo $1. Or Pass.
- Move 2, Leo: Stop, and the game ends with Maya getting $1 and Leo $4. Or Pass.
- Move 3, Maya: Stop, and the game ends with Maya getting $6 and Leo $2. Or Pass, which ends with Maya getting $3 and Leo $7.
Here it is as a tree. Each leaf lists Maya's payoff first, then Leo's.
Payoffs are (Maya, Leo) in dollars.
If you look at the leaves, the best result for the two of them together is the last one: Maya $3 plus Leo $7 makes $10. But will they get there? Let us solve the game.
Backward induction: the method
Backward induction is solving a sequential game by starting at the last decision nodes and working toward the root. At each node, the player picks the branch with the best payoff for themselves, taking later choices as already solved.
The logic is that the last mover has no future to worry about. Whatever they choose just ends the game, so we can read off the answer directly. Once we know what the last mover will do, we can replace that whole piece of the tree with the result. Then the second-to-last mover can see what each of their choices really leads to.
Work from the leaves to the root.
Solving the growing prize
Step 1: Maya's last move (move 3). She chooses between Stop, which pays her $6, and Pass, which pays her $3. She picks Stop. So if the game ever reaches move 3, the result is (Maya $6, Leo $2).
Step 2: Leo's move (move 2). Leo knows what Maya will do at move 3. If Leo Passes, Maya will Stop, and Leo gets $2. If Leo Stops, he gets $4. Four is more than two, so Leo Stops. The result if the game reaches move 2 is (Maya $1, Leo $4).
Step 3: Maya's first move (move 1). Maya knows that if she Passes, Leo will Stop and she will get $1. If she Stops now, she gets $2. Two is more than one, so Maya Stops.
The solution is that Maya stops at once. The game ends right away with Maya earning $2 and Leo earning $1.
Look at the lost opportunity. Had both of them passed all the way, they could have shared $10 in total (Maya $3, Leo $7). By stopping at move 1 they share only $3. Why does this happen? Because Maya cannot trust herself at move 3. If the game reaches her last move, she will take the $6 and leave Leo with $2. Leo knows this, so he stops early. Maya knows that Leo knows, so she stops even earlier. Distrust unwinds the whole tree.
A game with this shape is called a centipede game. Experiments find that real people often pass for a few moves before stopping, rather than stopping at once. That tells us the model's assumption of perfect rationality and common knowledge may not always hold. We look at the evidence in Evolutionary Games and What Experiments Show.
Another example: the entrant and the incumbent
Here is a business version that you will meet again in the next lesson. Maya's taco truck is the only food seller at a stadium and earns $10 a day. Leo thinks of opening a noodle stand there. He chooses first: Enter or Stay out. If he enters, Maya chooses: Fight (cut prices hard) or Accommodate (share the crowd). Payoffs in dollars (Leo, Maya) are made up.
- Stay out: Leo 0, Maya 10.
- Enter, then Maya fights: Leo −2, Maya 2.
- Enter, then Maya accommodates: Leo 4, Maya 5.
Payoffs are (Leo, Maya).
Work backward. If Leo enters, Maya compares Fight, which gives her $2, with Accommodate, which gives her $5. She accommodates. Leo, looking ahead, sees that entering gets him $4, against $0 for staying out. So Leo enters, and Maya accommodates. The result is (Leo $4, Maya $5).
Maya may say beforehand, "If you come here, I will fight." But when Leo has entered, fighting costs her $3 compared with accommodating ($5 down to $2). So the threat is empty, and backward induction sees through it. This idea of credibility is the heart of the next two lessons: Subgame Perfect Equilibrium and Commitment, Threats and Promises.
Does the order of moves matter?
Yes, and sometimes a lot. Take the stag hunt or the entry game and suppose the players moved at the same time instead of in turn. Their strategies and likely outcomes can change. A first mover may gain a first-mover advantage: by committing early, she changes what the second mover will do. In other games moving second is better, because you can see the other's choice and respond. In our growing prize, being the first mover was not a gain: Maya stopped with $2, whereas she could have had $3 in the last outcome if trust had existed.
Chess is the best-known tree. In principle, backward induction could solve chess: a theorem by Ernst Zermelo from 1913 shows that such a game has a determined best outcome. In practice, the tree has far too many nodes to draw, so players use judgment and computers use search.
A common mistake
The first mistake is to solve forward. Students pick the move that looks best at the root and then hope. Always start at the end. The final mover's choice cannot be guessed. It follows from their payoffs.
The second is to look only at the path that is actually played. Backward induction needs the choice at every node, even nodes never reached. Leo's choice at move 2 mattered to Maya's move-1 decision, even though in the solution Leo never gets to move. What would happen "off the path" is exactly what drives the logic on the path.
The third is to assume that the best joint outcome will be reached. Players look after their own payoffs, not the sum.
Words to know
Game tree a diagram of a sequential game showing each decision, each choice, and each final payoff.
Node a point in the tree where a player must choose.
Terminal node an end point of the tree that shows the final payoffs.
Backward induction solving a sequential game by starting at the last decisions and working back to the first.
First-mover advantage a gain a player gets from moving before the others.
Centipede game a game in which two players alternately choose to stop or pass, with growing total payoffs for passing.
Credible believable because it is in the player's own interest to carry it out.
Check yourself
- Name the three parts of a game tree.
- In the growing prize, what does Maya choose at move 3, and why?
- What does Leo choose at move 2, and what would he get if he passed instead?
- What is the total payoff to the two players at the solution, compared with the outcome in which both pass all the way?
- In the entry game, why would Leo ignore Maya's threat to fight?
- Why must backward induction consider moves at nodes that are never reached?
Show the answers
- Nodes (decision points), branches (choices) and terminal nodes (payoffs).
- Stop, because it pays her $6 against $3 for passing.
- Stop, which gives $4; passing leads to Maya stopping and leaves Leo only $2.
- At the solution the total is $2 + $1 = $3; if both pass all the way, it is $3 + $7 = $10.
- If he enters, fighting would cut Maya's payoff from $5 to $2, so she would not carry out the threat.
- What a player would do at an unreached node shapes what the earlier players expect, and so what they choose.