Evolutionary Stable Strategy: The Hawk-Dove Game Simulator

simulator advanced ~10 min
Loading simulation...
ESS: 60% Hawks, 40% Doves — stable polymorphism at V/C = 0.6

With V=6 and C=10, the ESS predicts 60% Hawks and 40% Doves. Starting from any initial frequency, replicator dynamics drives the population to this stable equilibrium. Hawks cannot invade a population at ESS, nor can Doves — the balance is maintained by frequency-dependent selection.

Formula

Hawk vs Hawk: (V-C)/2 each
Hawk vs Dove: Hawk gets V, Dove gets 0
Dove vs Dove: V/2 each
ESS Hawk frequency: p* = V/C (when V < C)
Replicator dynamics: dx_i/dt = x_i · (f_i - f_avg)

Evolutionary Game Theory

Classical game theory assumes rational agents who deliberately choose strategies. Evolutionary game theory takes a different approach: strategies are inherited traits, and natural selection acts as the 'rational optimizer.' Organisms don't choose strategies — they are strategies, and their reproductive success determines which strategies persist. This framework, pioneered by John Maynard Smith and George Price in 1973, connects game theory to biology in a profound way.

The Hawk-Dove Game

The Hawk-Dove game is the foundational model of evolutionary game theory. Two animals compete for a resource of value V. Hawks always fight — they escalate until one wins and the other is injured (cost C). Doves always display but retreat if the opponent escalates. The payoff matrix captures the key tradeoff: aggression can win resources, but at the risk of costly injury.

The ESS Solution

When V < C (fighting is costly relative to the resource), the Evolutionarily Stable Strategy is a mixed population with Hawk frequency p* = V/C. At this frequency, Hawks and Doves have equal fitness — neither can invade the other. If Hawks become too common, their frequent costly fights reduce their fitness below that of Doves. If Doves become too common, the rare Hawk exploits them profitably. This frequency-dependent selection maintains the polymorphism.

Replicator Dynamics

The animated population shows replicator dynamics in action. Starting from 50% Hawks, the frequencies shift over generations until reaching the ESS. The replicator equation dx/dt = x·(f(x) - f_avg) causes strategies with above-average fitness to grow and those below average to decline. The convergence to ESS is visible in the frequency chart — the lines settle to their equilibrium values, marked by the dashed white line.

Applications Beyond Biology

The Hawk-Dove game extends far beyond animal behavior. It models property rights (who owns contested territory), escalation in international conflicts, pricing strategies in oligopolistic markets, and even traffic behavior (aggressive vs. yielding drivers). Wherever agents face a choice between escalation and accommodation with frequency-dependent payoffs, the Hawk-Dove framework applies. Adjust V and C to explore how the cost-benefit ratio shapes the balance between aggression and peace.

FAQ

What is an Evolutionarily Stable Strategy?

An Evolutionarily Stable Strategy (ESS), introduced by Maynard Smith and Price in 1973, is a strategy that, if adopted by a population, cannot be invaded by any alternative mutant strategy. It combines Nash Equilibrium with evolutionary stability — not only is no deviation profitable, but any small invasion of mutants will be selected against.

What is the Hawk-Dove game?

The Hawk-Dove game models animal conflict over a resource of value V. Hawks always escalate fights; Doves always retreat. Hawk vs Hawk: each gets (V-C)/2 on average (risking injury cost C). Hawk vs Dove: Hawk gets V, Dove gets 0. Dove vs Dove: each gets V/2 through sharing. When V < C, the ESS is a mixed strategy with Hawk frequency = V/C.

What are replicator dynamics?

Replicator dynamics is the standard model of evolutionary game theory. The frequency of each strategy changes proportionally to its fitness relative to the population average: dx/dt = x·(f(x) - f_avg). Strategies that perform above average grow; those below average decline. Fixed points where all strategies have equal fitness correspond to Nash Equilibria.

How does V/C determine the ESS?

When the resource value V is less than the fighting cost C, the ESS has Hawks at frequency p* = V/C. As V/C increases toward 1, more hawks are favored. When V >= C, the ESS is all Hawks (p* = 1), because fighting always pays off even with the risk of injury.

Sources

Embed

<iframe src="https://homo-deus.com/lab/game-theory/evolutionary-stable-strategy/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub