Lesson 3: Repeated games, reputation and cooperation
See why repeated play makes cooperation last: tit for tat, grim trigger, the patience threshold, noise and reputation, with tournament results.
Lesson 1 ended on a gloomy note. In a one-shot prisoner's dilemma, two rational players both defect and both end up worse off. Yet in real life people and firms often cooperate. Suppliers and buyers keep their promises, rival shopkeepers in a market do not slash prices every week, and neighbours share tools. What changes? The main answer is that most relationships are not one-shot. The same players meet again, and what happens tomorrow depends on what they do today. This lesson shows how repetition changes the logic of the game, which strategies work well in repeated play, how patient the players must be for cooperation to last, and what can undermine it. By the end you will be able to explain why the one-shot dilemma and the repeated game differ, compute whether a grim trigger strategy sustains cooperation for a given discount factor, read the results of a strategy tournament, explain the finite-horizon unravelling puzzle, describe how noise and mistakes damage cooperation and how forgiveness helps, and say how reputation works as a way of making a repeated game out of a one-shot interaction. You should have read Lessons 1 and 2. The algebra is a geometric series, and it is explained when it appears.
Why repetition changes the game
In a one-shot dilemma, defecting is dominant because nothing follows it. Suppose instead the two delivery apps of Lesson 1 compete every quarter for years. If Quick discounts this quarter to grab customers, Swift can respond next quarter by discounting too, and the profit gain from the first move disappears while the price war remains. Today's defection can be punished tomorrow. And today's cooperation can be rewarded tomorrow. The future casts a shadow over the present.
Whether the shadow is long enough depends on two things: how likely the players are to meet again, and how much they care about the future compared with the present. The second is captured by a discount factor, written δ (delta), a number between 0 and 1. A payoff received one period from now is worth δ times a payoff received now. A player who is very patient has δ close to 1, and one who cares only about today has δ close to 0. A discount factor combines patience (a rupee tomorrow is worth less than a rupee today) with the chance that the relationship ends (δ falls if there is a probability each period that the game stops).
Notation. As in Lesson 1, call the payoffs T (temptation: defect against a cooperator), R (reward: both cooperate), P (punishment: both defect) and S (sucker: cooperate against a defector), with T > R > P > S. In the delivery-app game, T = 14, R = 10, P = 6 and S = 4. The total value of a stream of payoffs x₀, x₁, x₂, … is x₀ + δx₁ + δ²x₂ + …
Predict first: two firms are in the delivery-app dilemma and will meet every quarter, with no end date, and each cares about the future with δ = 0.8. Do you think they can sustain the cooperative outcome of 10 each, with no contract? Roughly how patient must they be? Write down a guess, then read on to see how to find out.
The grim trigger and the discount factor
The simplest way to see how cooperation can be sustained is a harsh strategy called the grim trigger: cooperate as long as the other player has always cooperated, and defect for ever if the other player defects even once. Suppose both players use it. Will either want to deviate?
The value of cooperating for ever. If both always cooperate, a player gets R every period: R + δR + δ²R + … = R ÷ (1 − δ). This is a geometric series, and it sums to R divided by (1 − δ). With R = 10 and δ = 0.8, the value is 10 ÷ 0.2 = 50.
The value of deviating. If a player defects now, they get T this period. After that the other player defects for ever, and they get P every period: T + δP + δ²P + … = T + δP ÷ (1 − δ). With T = 14, P = 6 and δ = 0.8: 14 + 0.8 × 6 ÷ 0.2 = 14 + 24 = 38.
Cooperating (50) beats deviating (38), so with δ = 0.8 neither player wants to deviate, and cooperation is an equilibrium of the repeated game. The threat of the punishment is enough.
The threshold. Cooperation is worth it when R ÷ (1 − δ) ≥ T + δP ÷ (1 − δ). Multiply both sides by (1 − δ): R ≥ T(1 − δ) + δP, which rearranges to δ ≥ (T − R) ÷ (T − P). For the apps, δ = (14 − 10) ÷ (14 − 6) = 4 ÷ 8 = 0.5. If the players value the future at least half as much as the present, cooperation holds. Test the other side: at δ = 0.3, cooperating is worth 10 ÷ 0.7 = 14.29, and deviating is worth 14 + 0.3 × 6 ÷ 0.7 = 14 + 2.57 = 16.57. Deviating wins, and cooperation collapses.
The formula is intuitive. The numerator (T − R) is the gain from cheating, once. The denominator (T − P) is the loss per period from being in a price war rather than at the best, comparing the temptation to the punishment. The larger the temptation relative to the punishment, the more patient the players must be.
Why the future matters: what the threshold teaches
The threshold δ = (T − R) ÷ (T − P) has practical lessons.
Long relationships help. If there is a high probability that the players will meet again, δ is high and cooperation is easier. This is why firms in long-term supply relationships behave better than in spot markets, and why a shopkeeper who has served a neighbourhood for decades is trusted.
The end of the relationship is dangerous. If a firm knows this is the last contract, δ drops to zero for it, and it will cheat. Watch for end-of-relationship behaviour: a supplier about to be dropped, an employee about to leave.
Fast detection helps. If cheating is noticed quickly and punished quickly, the gain from cheating is small (only one period). If the response is slow, the gain from cheating is larger. A market with public prices (petrol stations posting prices on boards) makes cooperation easier than one with secret discounts.
Smaller temptations help. If T is close to R, the threshold is low. Rules that reduce the benefit of cheating (return policies, warranties, deposits) make cooperation easier.
Harsher punishments help. If P is much lower than R, so that a price war is very painful, the denominator T − P is large and the threshold is lower. But a harsh punishment must be credible, which means that the players must actually be willing to carry it out.
Many players are harder. With more firms, a defection is harder to spot and to punish. Cooperation among a handful of firms is much easier to maintain than among a hundred.
A tournament of strategies
The grim trigger is only one strategy. In 1980 the political scientist Robert Axelrod invited experts to submit computer programs to play the repeated prisoner's dilemma against each other in a round-robin tournament, and the winner was the simplest entry, tit for tat: cooperate on the first move and then copy whatever the opponent did last time. Axelrod's findings are widely taught, and you can reproduce the spirit of them with a small simulation.
The strategies in the simulation (all of them play against each other and against themselves) are:
Always cooperate: always plays C.
Always defect: always plays D.
Tit for tat: plays C first, then copies the opponent's previous move.
Grim trigger: plays C until the opponent defects once, then plays D for ever.
Suspicious tit for tat: like tit for tat, but starts with D.
Win-stay, lose-shift: repeats its last move if it got a good payoff (the opponent cooperated), and switches if it got a poor one.
Random: plays C or D with equal probability.
The payoffs are the standard ones for this experiment: T = 5, R = 3, P = 1 and S = 0. Each pair plays 200 rounds, and each strategy's score is its average payoff per round against all seven strategies, including a copy of itself. This is synthetic, computed with a seeded simulation.
Look at what the results say.
1. The winner is nice. Tit for tat never defects first. In fact the top four strategies (tit for tat, grim trigger, win-stay lose-shift and always cooperate) are all "nice", meaning they never defect first. Axelrod found the same.
2. Always defect does poorly overall. It beats a naive cooperator (5.00 against 0.00 in a match) but scores about 1 against retaliators such as tit for tat (a match average of about 0.99), and 1 against itself. Its average of 2.137 is below that of the nice strategies, because it spends most of its time in poor mutual-defection matches.
3. Being exploitable has a cost. Always cooperate does worse than tit for tat because it is milked by always defect and random.
4. Being too suspicious has a cost. Suspicious tit for tat starts with a defection and so triggers retaliation, then gets locked in mutual defection against other retaliators. It scores last.
Axelrod's summary of what makes a strategy do well is: be nice (do not defect first), be retaliatory (respond to defection at once, so that you are not exploited), be forgiving (return to cooperation after a response, so that you do not get stuck in feuds) and be clear (be easy to understand, so that others can see that cooperation pays). Tit for tat has all four properties.
An important caution: the result depends on the field. A strategy that wins in one population may lose in another. Always defect would win in a population of naive cooperators. The tournament shows that nice, retaliatory strategies are robust: they do well in a wide range of environments.
When there are mistakes: noise
Real life is not perfectly clear. A message is delayed, a delivery is late through no fault of the supplier, a price cut was made by a regional manager without head office knowing. Cooperators can seem to defect, or defect by accident. In the jargon, there is noise.
Noise changes the result, because strict retaliation turns a single mistake into a long feud. Two tit-for-tat players meet. One makes an accidental defection. The other retaliates. The first now sees a defection and retaliates, and the two echo each other for ever (or until another mistake restarts cooperation).
We can measure it. Repeat the same tournament, but with a 5 per cent chance that any move is flipped by mistake, averaging over 200 repetitions.
The order has changed. Tit for tat falls from first to fourth, and in a match between two tit-for-tat players with 5 per cent noise, mutual cooperation happens only about 29 per cent of the time (in the noise-free case it is 100 per cent). Always defect rises to first place in this field, because there are few cooperators left to be exploited by, and many mistakes among them to take advantage of. (Grim trigger also does comparatively well in this field, mainly because it spends so long in mutual defection, which scores 1 each, and because its victims are often others who forgive too easily.)
What would help in a noisy world?
Forgiveness. A strategy that sometimes forgives a defection (generous tit for tat) breaks the echo. If it forgives a defection with probability around 10 to 30 per cent, mistakes heal.
Contrition. A player who knows that their own defection was a mistake can accept punishment for it without retaliating, which stops the cycle.
Win-stay, lose-shift. This strategy recovers from a mistake in two moves: after an accidental defection, both players are in a state of mutual defection, they both switch, and cooperation is restored. It does better than tit for tat in a noisy tournament (2.112 against 2.061 in this simulation).
Better information. Reducing noise at its source: confirming messages, verifying prices, asking before retaliating.
Practical rule: in a noisy relationship, ask whether the other side's bad move was a mistake before you retaliate, and keep a path back to cooperation open. Many a price war and many a broken business partnership has started with a misunderstanding.
A game that ends: the unravelling puzzle
Suppose the delivery apps know they will compete for exactly ten quarters and then the game ends. Surely cooperation is possible for the first nine quarters? The theory says no, and the argument is called backward induction.
In the last quarter there is no future, so no punishment is possible. Each firm discounts (defects) as in the one-shot game.
In the quarter before the last, each firm knows that the last quarter will be mutual defection whatever it does now. So cooperating now earns no reward in the future, and defecting now earns no punishment in the future. Each defects.
In the quarter before that, the same logic applies, and so on back to the first quarter.
The conclusion is that, in a finitely repeated prisoner's dilemma with a known end, the only equilibrium is for both players to defect in every round. The cooperation unravels from the end. This is the finite-horizon paradox.
In practice people do cooperate for most of a finite game and defect near the end. Experiments find high cooperation in early rounds and a sharp decline towards the last few. Several explanations are given: some players are genuinely cooperative or believe the other may be, the horizon is uncertain, and people do not carry out many steps of backward reasoning. For decision makers the lesson is practical:
Beware the end of a relationship. Expect behaviour to worsen when the end is in sight, such as a contract's final year.
Keep the future open. Uncertainty about when a relationship ends, or the prospect of renewal, extends the shadow of the future. In the model, a constant probability of ending each period just lowers δ and does not cause unravelling.
Reputation: making a one-shot game into a repeated one
Sometimes you meet a stranger only once, but others are watching. A restaurant serves tourists who will never return, but its rating on a review site affects future customers. A seller on an online marketplace has a star rating. Here, reputation supplies the missing future: what you do in this game is observed by those who will play with you later.
A simple model: a seller can deliver good quality (cost 6, price 10, gain 4) or cheat on quality (cost 2, gain 8 per sale). In a one-shot game with an unknown buyer who pays first, cheating pays. But if buyers check the seller's record and only buy from sellers with no cheating, a cheat earns 8 once and then loses all future business. If the seller's future honest profit stream is 4 per period at δ = 0.9, it is worth 4 ÷ 0.1 = 40, while cheating once earns 8 plus nothing afterwards. The seller is better off honest. This is the same grim-trigger logic, with the whole market playing the role of the punisher.
This explains many features of markets:
Brands. A brand is an asset built up by costly good behaviour and lost by one scandal. It makes a firm's promises credible. The bigger the brand, the more it has to lose by cheating, so the more trustworthy it is, which is why large firms recall products at their own expense.
Ratings and reviews. They make records public, which lengthens the shadow of the future for sellers.
Credit scores. A borrower's record is a reputation that makes default costly beyond the loan itself, since it affects all future borrowing. (Credit risk analytics is largely the study of that record.)
Professional communities. In close-knit trades, a person who cheats is known to all, and no one deals with them again.
Reputation has limits. It needs observability (others see what you did), persistence (records last) and identity (you cannot cheaply start afresh under a new name). Online markets where a cheat can open a new account lose much of the discipline of reputation, which is why platforms work to verify identities.
Cooperation in practice: tools for sustaining it
Putting the ideas together, here are the ways to support cooperation in a repeated relationship.
Tool · How it works · ExampleLengthen the relationship · Raises the discount factor · Multi-year contracts with renewal options
Detect cheating fast · Cuts the gain from cheating · Open price lists, audits, transparent reporting
Make punishment credible · Players believe the response will come · Clear rules for what happens after a breach
Reduce the temptation · Lowers T relative to R · Warranties, deposits, penalty clauses
Allow forgiveness · Repairs the damage from mistakes · A cooling-off period, a chance to make good
Build reputation · Links separate games · Ratings, references, brand investment
Communicate · Distinguishes mistakes from intent · Regular meetings between buyer and supplier
Note the dark side. Everything in this lesson also applies to collusion. The same logic that lets honest suppliers cooperate lets rival firms keep prices high at the expense of customers. In most countries price-fixing agreements are illegal, and competition authorities look for them. A firm should know both sides: use cooperation where it benefits everyone, and avoid arrangements that harm competition. Lesson 4 takes up cartels and price wars in more detail.
A repeated game in code
Here is a compact simulation in Python that reproduces the tournament and the discount-factor test.
python
import random
T, R, P, S = 5, 3, 1, 0
payoff = {("C","C"): (R, R), ("C","D"): (S, T), ("D","C"): (T, S), ("D","D"): (P, P)}
def alwaysc(my, opp): return "C"
def alwaysd(my, opp): return "D"
def tft(my, opp): return opp[-1] if opp else "C"
def grim(my, opp): return "D" if "D" in opp else "C"
def wsls(my, opp):
if not my: return "C"
won = opp[-1] == "C" # got R or T
return my[-1] if won else ("D" if my[-1] == "C" else "C")
strategies = {"Always cooperate": alwaysc, "Always defect": alwaysd,
"Tit for tat": tft, "Grim trigger": grim, "Win-stay lose-shift": wsls}
def match(f, g, rounds=200, noise=0.0):
hf, hg, sf, sg = [], [], 0, 0
for in range(rounds):
a, b = f(hf, hg), g(hg, hf)
if random.random() < noise: a = "D" if a == "C" else "C"
if random.random() < noise: b = "D" if b == "C" else "C"
pa, pb = payoff[(a, b)]
sf += pa; sg += pb; hf.append(a); hg.append(b)
return sf / rounds, sg / rounds
def tournament(noise=0.0, reps=50):
names = list(strategies)
score = {n: 0.0 for n in names}
for n in names:
for m in names:
score[n] += sum(match(strategies[n], strategies[m], 200, noise)[0] for in range(reps)) / reps
return {n: round(score[n] / len(names), 3) for n in names}
random.seed(1)
print("no noise :", tournament(0.0))
print("5% noise :", tournament(0.05))
grim trigger threshold: delta = (T - R) / (T - P), here with the delivery-app payoffs
Tt, Rr, Pp = 14, 10, 6
print("threshold", (Tt - Rr) / (Tt - Pp))
for d in (0.3, 0.5, 0.8):
coop = Rr / (1 - d)
dev = Tt + d Pp / (1 - d)
print(d, round(coop, 2), round(dev, 2), "cooperate" if coop >= dev else "defect")
The last loop reproduces the numbers in the lesson: at 0.3 cooperation is worth 14.29 against 16.57 from deviating, and at 0.8 it is worth 50 against 38. The tournament results will differ slightly from the lesson's numbers because the strategy list and random seed differ, but the pattern is the same.
A worked example: a supplier relationship
A packaging supplier sells to a snack manufacturer every month. If the supplier delivers on time and to specification, the supplier earns ₹10 lakh a month and the manufacturer gains ₹10 lakh. If the supplier cuts corners once (cheaper material), it saves ₹4 lakh that month, so it earns ₹14 lakh, and the manufacturer loses (its gain falls to ₹4 lakh). If the manufacturer finds out, it switches to a spot-market supplier, where the original supplier would earn only ₹6 lakh a month from then on (the value of other customers).
Treat it as the repeated dilemma with T = 14, R = 10 and P = 6 for the supplier. The threshold is δ = (14 − 10) ÷ (14 − 6) = 0.5. Suppose that the supplier values the next month at δ = 0.9 (a monthly discount of about 10 per cent, which is high, but includes the risk that the contract ends). Then cooperating is worth 10 ÷ 0.1 = ₹100 lakh, and cheating is worth 14 + 0.9 × 6 ÷ 0.1 = 14 + 54 = ₹68 lakh. The supplier should stay honest.
Now add slow detection: the manufacturer notices cheating only after three months, so the supplier earns the temptation payoff for three months before the punishment starts. Value of cheating: 14 + 0.9 × 14 + 0.81 × 14 + 0.729 × 6 ÷ 0.1 = 14 + 12.6 + 11.34 + 43.74 = ₹81.68 lakh. This is still below 100, so honesty still pays, but the margin has shrunk from 32 to 18. If the supplier's discount factor falls to 0.7 (because it expects to lose the contract soon), the arithmetic: cooperation is 10 ÷ 0.3 = 33.3. Cheating with three months of detection delay is 14 + 0.7 × 14 + 0.49 × 14 + 0.343 × 6 ÷ 0.3 = 14 + 9.8 + 6.86 + 6.86 = 37.52. Now cheating wins. The manufacturer's defence: check quality every month, because quicker detection restores the margin, and keep the supplier's future prospects bright with renewals and volume commitments.
Common mistakes
Expecting cooperation in a true one-shot game. Without a future or a reputation, defection is the equilibrium.
Ignoring the discount factor. A promise is only as strong as the patience of the parties who must keep it.
Forgetting the end. Expect behaviour to change near the end of a relationship.
Retaliating strictly in a noisy world. A single error can trigger a long feud, so check before you respond.
Being too nice. Always cooperating invites exploitation. Retaliation must be part of the strategy.
Being too harsh. A grim trigger gives no way back, and so the damage lasts after a mistake.
Trusting a single tournament. Results depend on the field of strategies and the payoffs.
Forgetting the law. Tacit and explicit collusion among competitors can be illegal, even if the game is the same.
Key takeaways
In a repeated game, today's choices can be punished or rewarded tomorrow, so cooperation can be an equilibrium even when it is not in a one-shot game.
With grim trigger strategies, cooperation holds when the discount factor is at least (T − R) ÷ (T − P). In the delivery-app example that is 0.5: at δ = 0.8 cooperation is worth 50 against 38, and at δ = 0.3 it is worth 14.29 against 16.57.
Cooperation is easier with long relationships, fast detection, smaller temptations, credible punishment and few players.
In the tournament, tit for tat scored 2.533, ahead of grim trigger (2.449) and always cooperate (2.366), and always defect scored 2.137. Nice, retaliatory, forgiving and clear strategies do well.
With 5 per cent noise, tit for tat fell to fourth place and two tit-for-tat players cooperated only about 29 per cent of the time. Forgiveness and win-stay lose-shift help.
In a finitely repeated dilemma with a known end, backward induction predicts unravelling. Watch for bad behaviour near the end of relationships.
Reputation turns separate encounters into a repeated game, and it needs observability, persistence and identity.
Check yourself
1. Why can the same two firms cooperate in a repeated game but not in a one-shot game?
In a repeated game a defection can be punished and cooperation rewarded in later rounds, so the short-term gain from defecting can be outweighed by the future loss.
2. A repeated prisoner's dilemma has T = 12, R = 8 and P = 4. What is the smallest discount factor at which grim trigger sustains cooperation?
δ = (T − R) ÷ (T − P) = 4 ÷ 8 = 0.5.
3. A cooperator earns 8 each period. Deviating pays 12 once and then 4 per period for ever. Is cooperation better at δ = 0.6?
Cooperation: 8 ÷ 0.4 = 20. Deviation: 12 + 0.6 × 4 ÷ 0.4 = 12 + 6 = 18. Cooperation is better.
4. Why do two strict tit-for-tat players do badly when mistakes occur?
One accidental defection triggers retaliation, which triggers a counter-retaliation, and the two echo each other, so mutual cooperation is lost for a long time.
5. What is the finite-horizon paradox, and how can a manager guard against it?
With a known last round, backward induction implies defection in every round. A manager can keep the end uncertain, offer renewal prospects and watch behaviour near the end of a contract.
Try this
Test cooperation in a relationship you know. Set aside forty-five minutes.
1. Choose a repeated relationship, such as a supplier, a rival, a partner firm or a team-mate. Write the payoffs, in numbers you can defend, for T, R and P from your side.
2. Compute the threshold δ = (T − R) ÷ (T − P) and decide whether your side's patience (how long you expect the relationship to last) is above or below it.
3. Use the simulator to test how the answer changes if the temptation payoff is 30 per cent higher or the punishment is milder.
4. List three ways that cheating could be noticed, and how long each takes. Estimate how detection delay changes the value of cheating, as in the supplier example.
5. Run the Python tournament with your own strategies, including one that you think would suit your situation, and see how it does with and without noise.
6. Identify one risk of end-of-relationship defection and one way to keep the future open.
7. Write a five-sentence note: the relationship, the threshold, whether cooperation is safe, the weakest point (patience, detection or end game) and one step to strengthen it.
A good result is a threshold computed from defensible payoffs, a test of how robust it is to changes, a list of detection and forgiveness mechanisms and a concrete action. Lesson 4 applies these tools to markets, auctions and negotiation.
Tags: Game theory Repeated games Tit for tat Cooperation Reputation