Simulating the Evolution of Aggression
Hawk-dove simulations reveal aggression stabilizes at a Nash equilibrium fraction set by payoff values, not by survival of the fittest alone.
Key takeaways
5 points- 1Equilibrium fraction equals the value that equalizes expected payoffs of hawk and dove.
- 2Raising hawk-hawk payoff lowers the stable dove percentage.
- 3All-hawk populations arise only when hawk-hawk payoff exceeds a critical threshold.
- 4Nash equilibrium explains stable polymorphism without invoking group selection.
- 5Simulation results match analytical solutions derived from the payoff matrix.
Summary
A simulation of creatures needing food to survive and reproduce demonstrates how the hawk-dove game produces stable population mixes through game theory.
Core Setup
- Creatures require one food unit to survive and two to reproduce; paired food spawns force conflict resolution (0:00-8:05).
- Doves share equally; hawks seize extra food from doves but fight other hawks to mutual loss.
Equilibrium Dynamics
- Population reaches balance when expected scores for hawk and dove are equal (8:06-13:04).
- Starting payoffs yield 50% doves; raising hawk-vs-hawk payoff to 1/4 food drops doves to 33%.
Game Theory Insight
- The stable state is a Nash Equilibrium: no individual gains by switching strategy.
- Extreme hawk payoffs create a prisoner's dilemma where universal aggression emerges despite worse collective outcomes.
Deep read
Executive Summary
This Primer video uses a hawk-dove game-theory framework to illustrate how simple, rule-based interactions can generate nontrivial population dynamics. Food is earned in pairs, and two archetypal strategies exist: the dove (share) and the hawk (ambush and take). The payoff structure leads to insights from game theory, notably the Nash Equilibrium, where no single agent benefits from unilateral deviation. Through both qualitative narrative and quantitative payoff analysis, the video shows how mixed strategies (fractions of doves vs hawks) stabilize at an equilibrium that depends on payoff values, and how small changes to costs and benefits can shift the equilibrium or even produce Prisoner’s Dilemma-like outcomes. The video closes by pointing toward richer extensions—mixed strategies, conditional strategies, asymmetry, ritualized displays, and the broader relevance to animal behavior—setting the stage for future explorations.
The core takeaway is that conflict and cooperation in biology can be understood through simple models that reveal when cooperation is stable, when aggression dominates, and how the structure of payoffs dictates population composition. This is a foundation for more nuanced investigations into behavioral ecology and evolutionary game theory.
00:00:00Major TopicIntroduction and Setup
Speaker: Justin
- In this video, we're gonna start exploring conflict between creatures. To try to build some understanding here, we're gonna use some simulations and some ideas from a field of math called Game Theory.
- The simulation premise is that food appears each day and blobs (creatures) go out to eat. Eating one piece of food lets a creature survive to the next day; eating two pieces lets it survive and reproduce. The key twist: food comes in pairs, and each creature randomly chooses a pair to walk to. They might get the pair all to themselves or share with another creature that arrives at the same time.
- Early setup establishes a single baseline strategy: if two creatures meet, they share, each taking a piece of food. This peaceful strategy is given the name “dove.”
- The video then adds a competing strategy called the hawk, which is aggressive: if a hawk meets a dove, the hawk goes for the same food as the dove, takes half, and then quickly takes the other half for itself. This means the dove ends with 0.5 food and the hawk ends with 1.5 food in that encounter.
- Consequences of the hawk-dove interaction are explained through survival and reproduction rules: a dove gets 50% chance to survive; a hawk has guaranteed survival but only a 50% chance of reproducing. The hawk’s strategy looks strong at first, but there are risks, especially when hawks meet hawks and fight.
- The setup then tests what happens if you add a hawk to a population that initially uses only dove strategies. The narrative notes that the mixture tends to fluctuate around a balance and that, under some conditions, having all hawks can lead to collapse (population far smaller than doves). The point is to illustrate that “survival of the fittest” does not automatically maximize the success of the species as a whole; multiple strategies can coexist.
- The narrator emphasizes that this is a springboard into Game Theory, a branch of mathematics that studies strategic interactions among players with potentially conflicting interests. The concept of a Nash Equilibrium is introduced as a situation where no player can improve their payoff by unilaterally changing their strategy.
Notable line (verbatim): "In this video, we're gonna start exploring conflict between creatures." "Eating one piece of food lets a creature survive to the next day, and eating two pieces of food allows a creature to both survive and reproduce."
00:08:06Major TopicHawk-Dove Payoffs and the Payoff Table
- The video transitions from a narrative setup to a concrete payoff framework. Payoffs are summarized in a table describing what each player earns given the pair of strategies they each adopt (dove or hawk).
- If two doves meet: both get one food (1, 1).
- If a dove meets a hawk: the dove gets 0.5 food; the hawk gets 1.5 food (3/2).
- If a hawk meets a dove: the hawk gets 1.5; the dove gets 0.5 (the same as above but from the other perspective).
- If two hawks meet: both end up with zero due to energy wasted in fighting (no food survives). This captures the cost of conflict.
- The speaker uses a two-by-two payoff matrix to illustrate how choices map into rewards, highlighting that there are two stable outcomes: hawk-dove or dove-hawk. In either of these two equilibria, switching strategies hurts the player who changes unilaterally.
- The key vocabulary is introduced: Game Theory (the study of strategic interactions) and Nash Equilibrium (a stable state where no player benefits from changing strategy).
- A central insight is that the best overall outcome for the population is not one fixed strategy; it depends on what the other players are doing. The Nash Equilibrium arises from mutual best responses, not from cooperative optimization.
Notable line (verbatim): "This way of analyzing choices is called Game Theory, which is a whole field of math. In a situation where nobody benefits from changing their strategy, it's called a Nash Equilibrium, named after John Nash, who some would say had a beautiful mind."
00:10:00Major TopicStability, Equilibrium, and the Fraction of Doves
- The video moves toward a quantitative analysis: what fraction of the population should be doves at equilibrium so that both dove and hawk have the same expected payoff? Equilibrium occurs when their average scores match; then neither strategy has an advantage to invade.
- The method: express the fractions of doves (d) and hawks (h) as variables, with d + h = 1, so h = 1 − d. Then compute the expected payoff for a dove and for a hawk as functions of d, and find where those two expected payoffs are equal (the intersection point of the two curves).
- An illustrative calculation is shown: if 90% of the population are doves, a dove’s average payoff is 0.95 food per encounter, while a hawk’s average payoff is 1.35 food per encounter. Since 1.35 > 0.95, hawks would invade, so 90% doves is not equilibrium.
- By graphing the dove payoff and hawk payoff as functions of the dove fraction d, the intersection (the equilibrium point) occurs at d = 0.5 (50% doves, 50% hawks). The population tends toward this balance in the simulation.
- The concept is made robust by showing that the result depends on payoff values. If the hawk–hawk payoff changes, the equilibrium dove fraction can shift (e.g., if hawks fight less aggressively so hawk–hawk payoff becomes 3/4 instead of 0), leading to different equilibria (e.g., about 1/3 dove, 2/3 hawk).
- The upshot: even with only two strategies, simple rules can yield non-obvious population dynamics that are not obviously optimal for the group as a whole. The model provides a tractable lens for understanding real-world animal conflicts and why cooperation can arise in populations with competitive pressures.
Notable line (verbatim): "Equilibrium is when, on average, we don't expect a change one way or the other, so we can't have one strategy doing better. They're equal. Our goal is to find the fraction of doves that makes this condition true."
00:15:00Major TopicHow We Find the Equilibrium Fraction
- The speaker emphasizes simplifying assumptions: doves and hawks make up all creatures; their fractions sum to one, so we reduce to a single variable d (dove fraction).
- With the single-variable formulation, both expected dove and hawk scores are functions of d, and we can graph them to find their intersection. The crossing point is the equilibrium dove fraction.
- The 50/50 equilibrium is validated by larger simulations showing convergence toward that mix as population size grows and randomness averages out.
- The takeaway: the hawk-vs-dove dynamics illustrate basic evolutionary game theory concepts—no single best strategy over the long run; the fitness landscape changes with composition, and populations hover around a mixed strategy equilibrium.
00:20:00Major TopicVariations of Payoffs and Implications
- The video explores how adjusting the hawk payoff changes the equilibrium. If the hawk payoff is not as favorable (for example, if hawk fights are costly but leave hawks with 3/4 food), the equilibrium shifts away from 50/50 toward fewer hawks and more doves.
- Conversely, if the hawk payoff becomes too favorable, the system can reach a deadlock: everyone prefers to fight, and cooperation collapses. This is introduced as a precursor to the Prisoner’s Dilemma concept.
- These variations underscore that relatively small changes in payoffs can produce qualitatively different population structures, illustrating the sensitivity of evolutionary outcomes to the exact costs and benefits of aggression and sharing.
- The idea that “the best strategy depends on what others are doing” is reinforced as the core of game-theoretic thinking in biology.
00:25:00Major TopicExtensions and Future Directions in Game Theory in Biology
- The video previews several directions to make the model more realistic:
- Mixed strategies: individuals may have multiple behavioral strategies (not just strictly dove or hawk) influenced by genetics; some mix of strategies is possible. - Conditional strategies: actors could adapt behavior depending on who they encounter (e.g., a strategy that fights hawks but is nice to doves). - Threats and ritualized displays: some organisms may threaten or bluff, or fight only as a display rather than a physical engagement. - Asymmetry: real conflicts often involve unequal stakes or power, leading to dominance hierarchies and territorial behavior. - The Prisoner’s Dilemma: as payoffs change, populations can get trapped in non-cooperative equilibria where mutual cooperation would yield better outcomes. The video teases that future work will explore possible escape routes from the dilemma.
00:30:00Major TopicSummary of Key Concepts and Teasers for Future Videos
- The hawk-dove model, even in its simplicity, provides a powerful lens for examining animal behavior, conflict, and cooperation.
- Key concepts revisited:
- Payoff matrix: the table of outcomes for each pair of strategies. - Nash Equilibrium: a stable state where neither player benefits from a unilateral change. - Mixed strategies: probabilistic combination of strategies rather than a single pure strategy. - Evolutionary stability: the idea that certain strategy distributions persist over generations under selection pressures.
- Teasers for future exploration include: more nuanced strategy sets, asymmetry, ritualized conflict, and mechanisms to overcome the Prisoner’s Dilemma.
00:35:00Major TopicConclusion and Acknowledgments
- The host invites viewers to reflect on the hawk-dove dynamics and to anticipate deeper explorations in future videos.
- Thanks are extended to patrons on Patreon and to 3Blue1Brown for sharing the prior video, with encouragement for viewers to check out their work.
- The video closes with a reminder of the channel’s collaborative and open-access ethos (Creative Commons license) and a nod to the tools and resources used (Blender, Python, blendswap, GitHub, etc.).
00:40:00Resources Mentioned
- Books:
- The Selfish Gene, Richard Dawkins - An Introduction to Behavioral Ecology
- Channels and tools:
- 3Blue1Brown (YouTube channel) - Blender (3D software) - Python (programming language) - GitHub (code hosting)
- Platforms for discussion and updates:
- Patreon - Discord - Reddit (r/primerlearning) - Twitter (@primerlearning) - Facebook page
- Public-domain and community resources:
- blendswap.com (public domain contributions for graphics)
- Licenses and attribution:
- Creative Commons Attribution-NonCommercial-ShareAlike 4.0 license
- Music:
- "A Song of Doves and Hawks" by Mathieu Keith
- The video’s own repository and extras:
- GitHub: https://github.com/Helpsypoo/primer
00:44:00Resources Mentioned (Expanded)
- Books that inspired this video and provide deeper info:
- The Selfish Gene, Richard Dawkins (amzn link provided in description) - An Introduction to Behavioral Ecology (amzn link provided in description)
- External media and creators:
- 3Blue1Brown - Blender and Python used to create visuals - blendswap.com (public domain contributions for graphics)
- Community and discussion:
- Patreon supporters listed in description - Discord, Reddit, Twitter, Facebook
- Licensing and reuse:
- CC BY-NC-SA 4.0 license
00:50:00Notable Visuals and How to Recreate Them (Textual Description)
- Visuals show a grid-like payoff matrix with two strategies (Dove and Hawk) and the resulting payoffs for each encounter.
- There are simple annotations: arrows illustrating best responses (e.g., if I expect you to play Hawk, Dove is best; if I expect you to play Dove, Hawk is best).
- A narrative is used to walk through the equilibrium concept by comparing expected scores as the fraction of doves varies, and by overlaying simulated results with theoretical expectations.
- A dynamic payoff discussion: adjusting the Hawk–Hawk payoff changes the equilibrium point and can even lead to a Prisoner’s Dilemma scenario where mutual aggression dominates cooperation.
00:56:00How to Use This Analysis (Study Notes)
- Step-by-step approach:
- Define strategies (Dove, Hawk) and the payoff rules for all encounters. - Build a payoff matrix for all possible interactions. - Express payoffs as functions of the population composition (fraction of doves, d). - Solve for the equilibrium where the expected payoff of both strategies is equal. - Test predictions with simulations to observe convergence or fluctuations. - Explore extensions (mixed strategies, asymmetries, conditional strategies).
01:02:00Quick Recap of Core Concepts
- Hawk-Dove model illustrates how conflict and sharing emerge from simple interaction rules.
- Nash Equilibrium is a concept where no individual can improve by changing strategy unilaterally; in this model, the equilibria are mixed, not purely hawk or dove.
- The population’s composition directly affects payoffs and the incentive to switch strategies, illustrating why cooperation can be stable or fragile depending on costs and benefits.
Resources Mentioned Summary
- Books: The Selfish Gene; An Introduction to Behavioral Ecology
- Online resources: 3Blue1Brown; Blender; Python; blendswap; GitHub
- Platforms: Patreon; Discord; Reddit; Twitter; Facebook
- License: CC BY-NC-SA 4.0
- Music: A Song of Doves and Hawks by Mathieu Keith
- Repository: https://github.com/Helpsypoo/primer
00:00:00End of Deep Read
Action Items
- Work through the Dove-Hawk payoff matrix yourself and recompute the equilibrium for different hawk–hawk payoffs.
- Build a simple simulation to observe how changing payoffs affects population composition over time.
- Study mixed strategies: assign probabilities to each strategy and explore how they evolve under selection.
- Explore conditional strategies (e.g., fight vs. retreat based on opponent or history).
- Investigate asymmetry in conflicts (territory, size, power) and how that alters equilibria.
- Read about the Prisoner’s Dilemma to understand why cooperation can break down without mechanisms to sustain it.
- Watch related content by 3Blue1Brown for visualization ideas and deepen understanding of equilibria.
Mental Models
Glossary
- Dove
- A strategy that shares the resource; avoids costly conflict and aims for a peaceful outcome.
- Hawk
- A strategy that fights aggressively to take the resource, risking energy costs and injury.
- Nash Equilibrium
- A state where no participant can benefit by changing their strategy while others keep theirs unchanged.
- Payoff
- The score or number of resources a creature gains from an encounter, used to assess success.
- Prisoner's Dilemma
- A standard game showing that rational individuals may choose to defect even when cooperation would lead to a better collective outcome.
- Mixed Strategy
- A random or probabilistic choice among several strategies rather than always picking one.
Notable Quotes
“In this video, we're gonna start exploring conflict between creatures.”
“Eating one piece of food lets a creature survive to the next day, and eating two pieces of food allows a creature to both survive and reproduce.”
“The best strategy isn't hawk or dove. It's to do the opposite of what your opponent is doing.”
“In a situation where nobody benefits from changing their strategy, it's called a Nash Equilibrium.”
“This kind of situation has a special name. It's called the prisoner's dilemma.”
Topics
More from Polymath
See all




