The replicator dynamics and Moran process are just two of many ways a population might update its strategies over time. This chapter examines a broader family of learning and evolutionary dynamics, exploring how the choice of update rule shapes long-run behaviour.

Figure 1:Ideas spread through a population as individuals copy what appears to be working. A number of population update mechanisms exist that model this spread in different ways.
Motivating Example: Does the Update Rule Matter?¶
Return to the graduate student reading group from Motivating Example: Everyone’s citing the preprint. The same coordination game governs citations, textbook () versus preprint (), but now consider three plausible ways students might update their habits:
Imitation: a student notices a peer doing well and copies them.
Best-response: a student calculates which citation would be optimal given current group behaviour and switches if warranted.
Generational turnover: new students join each cohort and tend to adopt whichever citation style is more prevalent.
The payoff matrix is the same in all three cases. Yet these mechanisms can produce different trajectories, different fixation probabilities, and different long-run distributions. This raises a fundamental question: does the update rule matter?
The answer is yes, particularly in small populations, at high selection intensity, or when the game has multiple equilibria. This chapter introduces three families of update rules (imitation, introspection, and best-response) alongside the Wright–Fisher process, and shows how they relate to each other and to the replicator dynamics and Moran process studied in previous chapters.
Theory¶
Definition: Imitation Dynamics¶
In imitation dynamics a population of individuals updates strategy by pairwise comparison. At each step:
Two individuals and are selected uniformly at random.
Individual switches to ’s strategy with the Fermi probability:
where and are their current payoffs and is the selection intensity.
The parameter controls how strongly payoff differences drive imitation:
: strategies are copied uniformly at random (neutral drift).
: copying is deterministic; the higher-payoff strategy is always adopted.
Example: Imitation in the Citation Game¶
For the citation coordination game with , suppose the group has students with 2 citing the textbook and 2 citing the preprint. Each student’s fitness is:
If student cites and is paired with student citing , the probability that switches to is:
Compare this to the Moran process, where the probability of the preprint spreading would instead depend on relative fitness proportions. Both models favour in this state, but at different rates and with different stochastic properties.
Definition: Introspection Dynamics¶
In introspection dynamics individuals update by counterfactual reasoning rather than by observing others. At each step:
One individual is selected uniformly at random.
Individual computes the payoff they would receive if they switched to each alternative strategy , holding all other individuals’ strategies fixed.
They switch to strategy with the Fermi probability:
The key distinction from imitation is the information used: imitation requires observing another individual’s payoff; introspection requires only computing a hypothetical payoff from the current population composition.
Example: Introspection vs Imitation¶
In the citation game at state , a textbook-citing student using introspection computes:
Current payoff: (playing against 1 -player and 2 -players among the remaining 3 partners).
Hypothetical payoff if switching: (playing against the 2 -players and 1 -player).
The switching probability is the same as in the imitation example above, . In symmetric games with homogeneous populations the two dynamics coincide; differences emerge in asymmetric games or structured populations where who you observe versus who you are matters.
Definition: Best-Response Dynamics¶
Best-response dynamics is the deterministic limit of introspection dynamics as . At each step an individual switches to whichever strategy has the highest expected payoff against the current population:
In the infinite-population continuous-time limit, the population share of strategy evolves as Gilboa & Matsui, 1991:
Best-response dynamics is used in economic models where agents are fully rational and have perfect information about population composition. It always converges to a Nash equilibrium or cycles around one, but unlike replicator dynamics it can reach strict equilibria from any initial condition.
Definition: Wright–Fisher Process¶
The Wright–Fisher process models evolution in a population with non-overlapping generations of fixed size . Each generation is formed by sampling offspring independently from the previous generation, where strategy is chosen with probability proportional to its fitness:
Optionally, each offspring mutates to a uniformly chosen strategy with probability .
Unlike the Moran process, which replaces one individual at a time, the Wright–Fisher process replaces the entire population simultaneously. This makes it the natural model for organisms with discrete, synchronised generations (annual plants, insects, some microbes). The biological origins of this process, and of the Moran process, are discussed in The Biological Origins of Evolutionary Game Theory.
Example: One Generation of the Wright–Fisher Process¶
For the citation game at state with and (using exponential fitness ):
The probability that a randomly sampled offspring cites is:
The next generation follows a Binomial distribution, so for example .
Theorem: Mean-Field Limit¶
For all four dynamics (imitation, introspection, best-response, and Wright–Fisher) in the limit of large population size and weak selection (with held fixed), the expected change in strategy frequencies converges to the replicator equation Traulsen et al., 2005Hofbauer & Sigmund, 1998:
This result explains why replicator dynamics occupies a central place in evolutionary game theory: it is the universal mean-field limit shared by all these distinct microscopic update rules. Differences between dynamics matter most in small populations or at high selection intensity.
Exercises¶
Programming¶
The ludics library represents an
evolutionary game as a finite-population Markov chain and computes fixation
probabilities and stationary distributions exactly. It implements the Moran
process, Fermi imitation, and introspection dynamics directly, and its
transition-matrix builder accepts a custom update rule, which lets us add the
Wright–Fisher process as well.
Setting up the citation game¶
We work with the citation coordination game on a population of students. A state records each individual’s strategy (0 for textbook, 1 for preprint), and the fitness of an individual is its average payoff against the rest of the population.
import numpy as np
import ludics
payoff_matrix = np.array([[3, 0], [1, 2]]) # citation game: T = 0, P = 1
def citation_fitness(state, payoff_matrix, **kwargs):
"""Average payoff of each individual against all others."""
number_of_individuals = len(state)
return np.array([
np.mean([
payoff_matrix[state[individual], state[other]]
for other in range(number_of_individuals)
if other != individual
])
for individual in range(number_of_individuals)
])
state_space = ludics.get_state_space(N=4, k=2)/home/runner/work/gtb/gtb/.venv/lib/python3.14/site-packages/ludics/main.py:8: SyntaxWarning: "\i" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\i"? A raw string is also an option.
We have a state v \in S = [$v_1$, .... $v_n$] as the set of types of individuals in the population, so that $v_i$ is the type of individual i. |S| = $k^N$
/home/runner/work/gtb/gtb/.venv/lib/python3.14/site-packages/ludics/main.py:52: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
$\frac{\sum_{v_i = u_{i*}}{f(v_i)}}{\sum_{v_i}f(v_i)}$
/home/runner/work/gtb/gtb/.venv/lib/python3.14/site-packages/ludics/main.py:85: SyntaxWarning: "\p" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\p"? A raw string is also an option.
returns $\phi(a_i, a_j) = \frac{1}{1 + \exp({\frac{f(a_{i}) - f(a_{j})
/home/runner/work/gtb/gtb/.venv/lib/python3.14/site-packages/ludics/main.py:121: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
$\sum_{a_j=b_{i^*}}^N\frac{1}{N(N-1)}\phi(f_i(a) - f(a_j))$
/home/runner/work/gtb/gtb/.venv/lib/python3.14/site-packages/ludics/main.py:177: SyntaxWarning: "\s" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\s"? A raw string is also an option.
$\frac{1}{N}\frac{\sum_{a_{j} = b_{I(\textbf{a}, \textbf{b})}}f_j(\textbf{a})}{\sum_{k}f_k(\textbf{a})}\phi(\Delta(f_{I(\textbf{a,b})}))$
/home/runner/work/gtb/gtb/.venv/lib/python3.14/site-packages/ludics/main.py:234: SyntaxWarning: "\p" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\p"? A raw string is also an option.
$\frac{1}{N(m_j - 1)}\phi(f_i(a) - f_i(b))$
/home/runner/work/gtb/gtb/.venv/lib/python3.14/site-packages/ludics/main.py:300: SyntaxWarning: "\p" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\p"? A raw string is also an option.
will choose the higher fitness strategy in $\phi$
/home/runner/work/gtb/gtb/.venv/lib/python3.14/site-packages/ludics/main.py:784: SyntaxWarning: "\m" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\m"? A raw string is also an option.
strategies) array where $\mu_{ik}$ gives the probability of player $i$
Building each dynamic as a Markov chain¶
Moran, Fermi imitation, and introspection are built in. Wright–Fisher is not,
but because each of the offspring of a generation is drawn independently in
proportion to parental fitness, its transition probability factorises as a
product over offspring, and generate_transition_matrix accepts it as a custom
rule.
def wright_fisher_transition_probability(
source, target, fitness_function, selection_intensity, **kwargs
):
"""Wright–Fisher: each offspring is sampled independently, in proportion
to parental fitness (non-overlapping generations)."""
fitness = 1 + selection_intensity * fitness_function(source, **kwargs)
total_fitness = fitness.sum()
probability = 1.0
for offspring_type in target:
probability *= fitness[source == offspring_type].sum() / total_fitness
return probability
moran = ludics.generate_transition_matrix(
state_space, citation_fitness, ludics.compute_moran_transition_probability,
selection_intensity=1.0, payoff_matrix=payoff_matrix,
)
fermi = ludics.generate_transition_matrix(
state_space, citation_fitness, ludics.compute_fermi_transition_probability,
choice_intensity=1.0, payoff_matrix=payoff_matrix,
)
wright_fisher = ludics.generate_transition_matrix(
state_space, citation_fitness, wright_fisher_transition_probability,
selection_intensity=1.0, payoff_matrix=payoff_matrix,
)
introspection = ludics.generate_transition_matrix(
state_space, citation_fitness,
ludics.compute_introspection_transition_probability,
choice_intensity=1.0, number_of_strategies=2, payoff_matrix=payoff_matrix,
)Does the update rule matter?¶
The three absorbing dynamics, Moran, Fermi imitation, and Wright–Fisher, each end in fixation: every individual ends up citing either the textbook or the preprint. We read off the probability that a single preprint adopter eventually takes over, and it differs from one rule to the next, which is the central message of this chapter.
single_adopter = next(i for i, s in enumerate(state_space) if s.sum() == 1)
all_preprint = next(i for i, s in enumerate(state_space) if s.sum() == 4)
for name, matrix in [("Moran", moran), ("Fermi imitation", fermi),
("Wright-Fisher", wright_fisher)]:
absorption = ludics.get_absorption_probabilities(matrix, state_space)
pairs = np.array(absorption[single_adopter]).reshape(-1, 2)
fixation = next(p for index, p in pairs if int(index) == all_preprint)
print(f"{name}: fixation probability of one preprint adopter = {fixation:.4f}")Moran: fixation probability of one preprint adopter = 0.2342
Fermi imitation: fixation probability of one preprint adopter = 0.1656
Wright-Fisher: fixation probability of one preprint adopter = 0.1729
Introspection dynamics, by contrast, is ergodic: it never fixes but visits every state indefinitely, so the natural summary is its stationary distribution.
stationary = ludics.compute_steady_state(introspection)
print(
"Introspection: stationary probability of all-preprint =",
round(float(stationary[all_preprint]), 4),
)Introspection: stationary probability of all-preprint = 0.2857
Notable Research¶
The Fermi imitation rule used in this chapter was proposed and analysed by Traulsen et al., 2006, who showed that pairwise comparison dynamics reduces to the replicator equation in the large-population, weak-selection limit. This paper is foundational to the study of evolutionary dynamics in finite populations under social learning.
Introspection dynamics is a more recent addition to this family, introduced by Couto et al., 2022. Unlike imitation, introspection does not require observing a specific partner’s outcome, only reasoning about what would happen under an alternative strategy. This distinction becomes particularly important in asymmetric games and has applications to human behavioural experiments where direct comparison is not always possible.
Best-response dynamics has roots in the economic learning literature, tracing back to Gilboa & Matsui, 1991. Its relationship to replicator dynamics and its convergence properties in potential games are thoroughly analysed in Hofbauer & Sigmund, 1998.
The Wright–Fisher process predates the Moran process in the biological literature, originating in the foundational work of Fisher Fisher, 1930 and Wright Wright, 1931 on genetic drift. The key result that both processes converge to replicator dynamics in the large-population limit was established in Traulsen et al., 2005.
Conclusion¶
This chapter surveyed four update rules (imitation, introspection, best-response, and Wright–Fisher) as alternatives to the Moran process and replicator dynamics covered in preceding chapters. Together they form a landscape of evolutionary and learning models that share a common mean-field limit (the replicator equation) but differ in their finite-population and high-selection behaviour.
The choice of update rule is not merely a mathematical convention. It reflects an assumption about how real agents (biological organisms, humans, firms) actually change their behaviour: by copying successful peers, by rational introspection, by best-responding to the current environment, or through generational turnover. Understanding when these assumptions differ in their predictions is essential for applying evolutionary game theory to empirical settings.
Table 1 summarises the key concepts.
Table 1:Summary of learning and evolutionary dynamics
| Dynamic | Update mechanism | Finite population? | Mean-field limit |
|---|---|---|---|
| Replicator | Continuous frequency change proportional to relative payoff | No (infinite) | n/a (is the limit) |
| Moran | Birth proportional to fitness; death uniform | Yes | Replicator |
| Imitation | Fermi pairwise copying with selection intensity | Yes | Replicator |
| Introspection | Counterfactual switching via Fermi rule | Yes | Replicator |
| Best-response | Deterministic switch to highest-payoff strategy | No (or ) | Replicator |
| Wright–Fisher | Multinomial sampling proportional to fitness per generation | Yes | Replicator |
Solutions¶
- Gilboa, I., & Matsui, A. (1991). Social stability and equilibrium. Econometrica, 59(3), 859–867.
- Traulsen, A., Claussen, J. C., & Hauert, C. (2005). Coevolutionary dynamics: from finite to infinite populations. Physical Review Letters, 95(23), 238701.
- Hofbauer, J., & Sigmund, K. (1998). Evolutionary Games and Population Dynamics. Cambridge University Press.
- Traulsen, A., Nowak, M. A., & Pacheco, J. M. (2006). Pairwise comparison and selection temperature in evolutionary game dynamics. Journal of Theoretical Biology, 246(3), 522–529.
- Couto, M. C., Giaimo, S., & Hilbe, C. (2022). Introspection dynamics: a simple model of counterfactual learning in asymmetric games. New Journal of Physics, 24(6), 063033.
- Fisher, R. A. (1930). The Genetical Theory of Natural Selection. Clarendon Press.
- Wright, S. (1931). Evolution in Mendelian populations. Genetics, 16(2), 97–159.