The general version of Hamilton’s rule

  1. Matthijs van Veelen  Is a corresponding author
  1. Department of Economics, Universiteit van Amsterdam, Netherlands
8 figures, 3 tables and 1 additional file

Figures

Two Price-like equations and two models.

In Model A, the number of offspring follows a binomial distribution with an expected number of offspring of α+β1pi. This means that the model can be summarized as wi=α+β1pi+εi (see Detailed Calculations 1.6 at the end of Appendix 1 for details). For the transition depicted in panels a and c, we generated an offspring generation using Model A, with α=1 and β1=1. Combining the Generalized Price equation in regression form with Model A includes choosing α^ and β^1 so that they minimize the sum of squared differences between wi and α^+β^1pi. In Model B, the number of offspring follows a binomial distribution with an expected number of offspring of α+β1pi+β2pi2, which means that wi=α+β1pi+β2pi2+εi. For the transition depicted in panels b and d, we generated an offspring generation using Model B, with α=1, β1=0, and β2=1. Combining the Generalized Price equation in regression form with Model B includes choosing α^, β^1, and β^2 so that they minimize the sum of squared differences between wi and α^+β^1pi+β^2pi2. Reproduction is asexual, so parents and their offspring are always identical, and E(wΔp)=0 by definition. For both of these models, we started with a population consisting of 2500 parents for each p-score, ranging from 0 to 1 in increments of 0.1. The four panels represent the four combinations of the two Price-like equations and the two datasets. The red lines in all panels represent the estimated fitnesses as a function of the p-score, as implied by the respective Price-like equations. The aim of this example is not to show that the estimated fitnesses from Price-like equation A match the data generated by Model A, and the estimated fitnesses from Price-like equation B match the data generated by Model B, but the estimated fitnesses from Price equation A do not match the data generated by Model B; that part is obvious. The purpose of this example, instead, is to illustrate that both Price-like equations remain identities, also when they are overspecified (panel c) or underspecified (panel b) with respect to the transition between parent and offspring population they are applied to. With underspecification, it is also visually clear that the estimated fitnesses do not match the data, even though Price-like equation A remains an identity, also when combined with data generated by Model B.

Figure 1—source data 1

Simulation data generated by a simple computer algorithm.

https://cdn.elifesciences.org/articles/105065/elife-105065-fig1-data1-v1.xlsx
Appendix 1—figure 1
Dependence on the parent population.

We assume that the population is infinitely large, so that the average fitness matches the expected values. On the left, a parent population, all members of which either have a p-score of 0 or a p-score of 12. With expected fitnesses belonging to these p-scores of 0 and 12, respectively, that results in a β of 1. On the right, a parent population, all members of which either have a p-score of 12, or a p-score of 1. With expected fitnesses belonging to these p-scores of 12 and 2, respectively, that results in a β of 3. In the literature, the dependence of the β on the parent population is sometimes referred to as dynamical insufficiency. That, however, is not what this is in this case, as here, this is really a symptom of misspecification. If the model that generated the data would have been linear (model A), then, absent the noise, the β would have been the same, regardless of the composition of the parent population. Dynamic (in)sufficiency is discussed in Section 6 of this appendix.

Appendix 1—figure 2
A graphical representation of the life cycle for the equilibrium state of the population.

Step 1: differential survival. All individuals in the parent generation with a p-score of 0 die, and half of those with a p-score of 1 do. None of the parents with a p-score of 12 die, so the heterozygote has the highest fitness. Step 2: mothers and fathers. Half of all surviving parents are female, and half are male. Step 3 and 4: random matching. The parents are randomly matched. Step 5: fair meiosis. In each pair, the offspring inherits one allele from either parent. Step 6: scaling up. Parent pairs have on average three kids.

Appendix 1—figure 3
Nested models and their Price-like equations.

There are different models, and each model has its own Price-like equation. These Price-like equations are general, in the sense that they can be written for any dataset, regardless of the underlying data generating process or, in a theory context, for any model. The terms in it, however, only have a meaningful interpretation if the data are generated by a model in the set that the Price-like equation belongs to. In line with the setup in this appendix, set A would represent models that are linear in the p-score (wi=α+β1,0pi). This is the set of models for which the regression coefficient in the original Price equation in regression form has a meaningful interpretation. Set B could consist of models that are quadratic in the p-score (wi=α+β1,0pi+β2,0pi2), set C could consist of models that also include a coefficient for the p-score to the power 3 (wi=α+β1,0pi++β2,0pi2+β3,0pi3), set D models that are linear in the p-score and the q-score (wi=α+β1,0pi+β0,1qi), and set E models that include an interaction term between the p-score and the q-score (wi=α+β1,0pi+β0,1qi+β1,1piqi). The Price-like equations for these different models are all different.

Appendix 2—figure 1
Symptoms of underspecification.

The red bars indicate frequencies of parents with a p-score of 0, and with 0, 1, …, 10 offspring for the example described in the text. The blue bars indicate frequencies of parents with a p-score of 1, and with 0, 1, …, 10 offspring. The composition of the parent population differs between the panels; in the top panel, 1 out of 4 parents has a p-score of 1; in the middle panel, this is 2 out of 4 parents; and in the bottom panel, it is 3 out of 4 parents. For the correctly specified model wi=α+βpi+εi, the red and the blue dotted lines indicate the values for α and for α+β, if those are chosen so as to minimize the sum of squared errors relative to the correct model. The α is the expected value of the number of offspring for parents with a p-score of 0, while α+β is the expected value of the number of offspring for parents with a p-score of and 1. The α and β that minimize the sum of squared errors do not depend on the composition of the population. For the mis-specified model wi=α+εi, the black dotted lines indicate the α’s for which the sum of squared errors is minimized. These do move around. The sum of squared errors when using the mis-specified model is also much larger at the minimum.

Appendix 2—figure 2
Fitnesses for Model 2.

On the left, r=0, and the likelihood of being matched with a cooperator is the same for cooperators and defectors, and equal to the frequency of cooperators. On the right, r=14 , where the probability of being matched with a cooperator is 14+34fC for cooperators, and 34fC for defectors, where fC is the frequency of cooperators.

Appendix 2—figure 3
Fitnesses for Model 3.

On the left,,r=0 and on the right, r=14. The lines are still straight, but no longer parallel.

Appendix 2—figure 4
Applying the Generalized Price equation for Model 2 to Model 3.

For this figure, we chose Model 3 with δ1,0=2, δ1,1=0, and δ1,1=3. The red lines are γ^1,0 (the lower one), and γ^0,1 (the higher one), which, when applied to Model 2, would have been the effect on the individual itself and the effect on the partner. The average effect on the individual itself is the lower unbroken blue line, which is accompanied by the average effect for the defectors (the dashed line below it) and the average effect for cooperators (the dashed line immediately above it). The average effect on the partner is the higher unbroken blue line, which is accompanied by the average effect for the defectors (the dashed line immediately below it) and the average effect for cooperators (the dashed line above it).

Tables

Table 1
Three rules and three models.

This table gives all combinations of the three rules and the three models discussed in the example. All rules indicate the direction of selection correctly for all models. Yellow indicates a combination of a rule and a model, where the rule is more general than is needed for the model. This leads to one or more b’s being 0. These are relatively harmless overspecifications. Red indicates a combination of a rule and a model, where the rule is not general enough (underspecified) for the model. This leads to b’s and c’s that depend on the population state. Terms that depend on the population state are abbreviated as follows: r=r0,1=Cov(p,q)Var(p), r1,1=Cov(p,pq)Var(p), sb=Cov(p,q)Cov(p,pq)Cov(q,pq)Var(p)(Cov(p,q))2Var(p)Var(q), and sc=Cov(p,pq)Var(q)Cov(p,q)Cov(q,pq)(Cov(p,q))2Var(p)Var(q) (see Detailed Calculations 2.3 at the end of Appendix 2 for calculations). Rule 1 is the standard rule for non-social evolution for linear non-social traits. Rule 2 is the classical Hamilton’s rule. Rule 3 is Queller’s rule (Queller, 1985), which is a rule that allows for an interaction effect. Rule 1 is nested in Rule 2, which is nested in Rule 3, which can be nested in more general rules as well.

Model 1:Model 2:Model 3:
α+β1,0piα+β1,0pi+β0,1qiα+β1,0pi+β0,1qi+β1,1piqi
Rule 1:
0>cc=β1,0(β1,0+r0,1β0,1)(δ1,0+r0,1β0,1+r1,1β1,1)
Rule 2:
rb>cc=β1,0β1,0β1,0+scβ1,1
b=0β0,1β0,1+sbβ1,1
Rule 3:
r0,1b0,1+r1,1b1,1>cc=β1,0β1,0β1,0
b0,1=0β0,1β0,1
b1,1=00β1,1
Appendix 1—table 1
Four transitions and the values for the terms in the Price equation.

This is an overview of all terms that are in the different versions of the Price equation.

Parent 1Parent 2w¯Δp¯β^1,0Cov(p,w)ϑ^1,0Cov(p,v)
Transition 1011212114112
Transition 20332
123341312
Transition 32132161141916
Transition 42352110114125110
Average123273011471225730
Appendix 2—table 1
Three rules and three models.

This table shows all combinations of the three rules and the three models. All rules indicate the direction of selection correctly for all models. Yellow indicates a combination of a rule and a model, where the rule is more general than is needed for the model. This leads to one or more b’s being 0. Red indicates a combination of a rule and a model, where the rule is not general enough for the model. This leads to one or more b’s and c’s that depend on the population state. Terms that depend on the population state are abbreviated as follows: r=r0,1=Cov(p,q)Var(p), r1,1=Cov(p,pq)Var(p), sb=Cov(p,q)Cov(p,pq)Cov(q,pq)Var(p)(Cov(p,q))2Var(p)Var(q), and sc=Cov(p,pq)Var(q)Cov(p,q)Cov(q,pq)(Cov(p,q))2Var(p)Var(q). Rule 1 is the standard rule for non-social traits. Rule 2 is the classical Hamilton’s rule. Rule 3 is a rule that allows for an interaction effect. An appropriate name for this rule would be Queller’s rule (Queller, 1985). This rule can in turn be nested in a sequence of ever more general rules if we allow for p- and q-scores that are not restricted to be binary.

Model 1:Model 2:Model 3:
α+βpiα+γ1,0pi+γ0,1qiα+δ1,0pi+δ0,1qi+δ1,1piqi
Rule 1:
0>cc=βγ1,0+r0,1γ0,1δ1,0+r0,1δ0,1+r1,1δ1,1
Rule 2:
rb>cc=βγ1,0δ1,0+scδ1,1
b=0γ0,1δ0,1+sbδ1,1
Rule 3:
r0,1b0,1+r1,1b1,1>cc=βγ1,0δ1,0
b0,1=0γ0,1δ0,1
b1,1=00δ1,1

Additional files

Download links

A two-part list of links to download the article, or parts of the article, in various formats.

Downloads (link to download the article as PDF)

Open citations (links to open the citations from this article in various online reference manager services)

Cite this article (links to download the citations from this article in formats compatible with various reference manager tools)

  1. Matthijs van Veelen
(2025)
The general version of Hamilton’s rule
eLife 14:RP105065.
https://doi.org/10.7554/eLife.105065.3