Frontiers reaches 6.4 on Journal Impact Factors

Original Research ARTICLE

Front. Ecol. Evol., 29 July 2014 |

Generalizations of Hamilton's rule applied to non-additive public goods games with random group size

  • Behavioural and Evolutionary Theory Lab, Department of Computer Science, Kroto Research Institute, University of Sheffield, Sheffield, UK

Inclusive fitness theory has been described as being limited to certain special cases of social evolution. In particular some authors argue that the theory can only be applied to social interactions having additive fitness effects, and involving only pairs of individuals. This article takes an elegant formulation of non-additive public goods games from the literature, and shows how the two main generalizations of Hamilton's rule can be applied to such games when group sizes are random. In doing so inclusive fitness theory is thus applied to a very general class of social dilemmas, thereby providing further evidence for its generality. Interestingly, one of the two predominant versions of Hamilton's rule is found to be mathematically easier to apply to the scenario considered, despite both necessarily giving equivalent predictions.

1. Introduction

Over the decades since its conception, inclusive fitness theory has been the subject of much misunderstanding. Two particular recurrent misunderstandings are considered in this article. First, that inclusive fitness theory cannot deal with non-additive fitness effects, which arise when the total fitness effect on social partners of their combined behavior is more, or less, than a simple sum of the fitness effects associated with those behaviors (e.g., van Veelen, 2009; Nowak et al., 2010; Traulsen, 2010). Second, that inclusive fitness theory can only deal with pairwise social interactions (e.g., Nowak et al., 2010). Hamilton's rule has, however, seen two main generalizations. Both of these are due to D. C. Queller, who originally extended Hamilton's rule with an additional term to account for non-additive fitnesses (Queller, 1985), and subsequently directly generalized Hamilton's rule in its original form by expressing fitnesses of types in terms of underlying genes rather than in terms of phenotypes (Queller, 1992a). This article has three main goals; first to generalize Queller's rule (Queller, 1985), following a hint in Queller (1992a), to deal with arbitrary interaction group sizes. Second, to apply both Queller's rule (Queller, 1985) and the generalization of Hamilton's rule (Queller, 1992a) to non-additive public-goods games (Motro, 1991; Hauert et al., 2006; Archetti and Scheuring, 2012) in groups of random size, thereby showing how inclusive fitness theory is applicable to pairwise additive interactions. Third and finally, to compare the mathematical tractability of the two alternative methods of incorporating non-additivity in inclusive fitness theory.

2. Hamilton's Rule

To re-introduce Hamilton's rule I shall use the Price equation approach to modeling selection of any kind (Price, 1970), and apply it to a public-goods game. The Price equation shows that the inter-generational response to selection on some trait, assuming faithful transmission on average, is given by

ΔE(G)Cov(G,W),    (1)

where G and W are random variables for, respectively, the value of the trait in question and individual fecundity, and ΔE(G) is the change in expected value of the trait within the population from one generation to the next. Thus, the change in the expected value of the trait due to selection is proportional to the covariance between trait value and fecundity of individuals. Now consider a model of fecundity in a “public-goods” game, in which donators (G = 1) pay a cost c to contribute a benefit b which is divided equally among the N members of their group, where N is a random variable and so groups can be of different size. Allowing variable group size will allow a more general result, and address claims that inclusive fitness theory is only applicable to pairwise interactions (van Veelen, 2009; Nowak et al., 2010) (this assumption was also relaxed in Queller, 1992a; see also Marshall, 2010a, 2011; Gardner et al., 2011). In this public-goods game, non-donators (G = 0) pay no cost, but receive a share of any group benefits provided by donators in their group including themselves. Note that donation and non-donation phenotypes are unconditionally expressed. Then fecundity is

W=GNBGC,    (2)

where G′ is the absolute frequency of donators in the group, excluding G, B = b is the benefit of receiving aid, and C = cb/N is the cost of providing it. Capital letters B and C denote the benefit and cost required for Hamilton's rule, while lowercase b and c represent payoffs arising from interactions; as is well known, the two are not necessarily the same (Grafen, 2006). Since benefits are shared by their donors, note that donation in a public goods game is personally beneficial, and hence not altruistic, whenever b/N > c. If we substitute Equation (2) into Equation (1), then solve for when donation receives positive selection, assuming C and B are uncorrelated with G and G′, respectively, we obtain

(Cov(G,G/N)Var(G))E(B)E(C)>0,    (3)

which is a version of Hamilton's rule (Hamilton, 1964, 1970), the classic result of inclusive fitness theory. In this version of Hamilton's rule relatedness (the covariance ratio in inequality 3) can be interpreted as a regression coefficient quantifying the degree of association between an individual's genetic trait, and the relative frequency of donators in their group, excluding themselves. Costs and benefits of donation are averaged across the population; in this case E(B) = b and E(C) = c − E(b/N). Note that group size N appears in the relatedness coefficient, rather than in the benefit B, since G′ and N are not generally independent, and hence cannot easily be separated in the covariance calculations.

It has been claimed that Hamilton's rule gives valid predictions only when fitnesses are additive (or when selection is weak) (Traulsen, 2010; van Veelen, 2009; Nowak et al., 2010). In fact, these are not new claims and they have been addressed previously in the literature, as reviewed most recently in Marshall (2011), Gardner et al. (2011). One approach, due to D. C. Queller, extends Hamilton's to deal with, among other refinements, non-additive interactions (Queller, 1985). Queller's original example of this was presented using a “synergistic” term for interactions in pairs, so fecundity becomes

W=G*bGc+GG*d,    (4)

where G* is the genotype of the opponent (0 or 1 for non-donator or donator, respectively, just as for G), and d is the deviation from additivity, with d < 0 capturing diminishing returns from donation, d > 0 capturing positively synergistic donation effects, and d = 0 recovering additive donation. Equation (4) can be substituted into Equation (1) and re-arranged to give an extended version of Hamilton's rule (cf. Marshall, 2010b) showing that donation is favored when

(Cov(G,G*)Var(G)) bc+d Cov(G,GG*)Var(G)>0,    (5)

where the left-hand-side of the inequality is the original regression formulation of genetic relatedness (e.g., Hamilton, 1970), and the right-hand side a modification of the familiar cost-benefit ratio from Hamilton's rule (Hamilton, 1964). However, as pointed out by Queller himself (Queller, 1985), the synergistic term and hence Queller's rule will have to change according to the size of interaction groups. Subsequently others have shown that if there are no restrictions on the payoff matrix, even for interactions with the same group size the rule could have to change from case to case (van Veelen, 2011). Both these points seem to limit the potential of such a rule as a general evolutionary principle, and appear especially problematic for the public-goods game we considered above with variable group sizes. Queller's rule has been generalized for larger group sizes, and applied to social evolution in bacteria (Smith et al., 2010). In the next section we shall see an alternative, very simple, generalization of Queller's rule that avoids the problems just identified.

3. Queller's Rule Generalized

By extending the original treatment of non-additivity (Queller, 1985) outlined in the previous section, we can see that there is in fact a general and concise inclusive-fitness rule for non-additive interactions. To see this, we capture all deviations from interaction additivity in a single random variable D, which can depend on G and G′/N. This approach was mentioned in passing by Queller, when describing a general approach to dealing with correlated characters (Queller, 1992a). So fecundity in our original public-goods game is now extended from Equation (2) to be

W=GNBGC+D.    (6)

Substituting Equation (6) into Equation (1) and rearranging into a similar form to inequality (3) gives

(Cov(G,G/N)Var(G))E(B)E(C)+βDG>0,    (7)

where βDG is the coefficient of a linear regression of D on G, βDG = Cov(G, D)/Var(G), or in other words the extent to which individual type predicts receipt of non-additive payoffs (cf. Queller, 1992a), and similarly βG′/N, G is the coefficient of the linear regression of G′/N on G, which is genetic relatedness as described above. Thus, inclusive fitness theory still admits a general rule dealing with non-additive interactions, regardless of interaction structure, by considering the sign and magnitude of the association between social traits and synergistic effects encountered, as captured in a single regression coefficient. Note that since D is a random variable, it could incorporate any complexity in non-additive effects (cf. van Veelen, 2011) while allowing inequality 7 to remain valid. Note also that this version of Queller's rule is derived in terms of genes for unconditionally expressed traits, however an equivalent derivation in terms of conditionally-expressed phenotypes is also possible (Queller, 1992a). In the case where focal individual's genetic value (G) is used as the predictors in the regression βDG, and generally, then regression theory guarantees that any residuals from the regression model will be uncorrelated with that predictor; this is important as it enables a quantitative genetics separation between selection coefficients and heritability coefficients (Queller, 1992b; Birch and Marshall, 2014). The generality given by the form of condition 7 comes at a cost however, if we are interested in causal explanations for evolutionary change (Marshall, 2015). In particular, although partners' genetic values are clearly causally-linked to receipt of non-additive fitness effects, the regression coefficient βDG does not include G′/N as a predictor.

As an example of the general applicability of Queller's rule (7), let us consider a formalization of the non-additive public-goods game for arbitrary group size (Hauert et al., 2006); based on earlier work (Motro, 1991) this formulation captures the major classes of social interaction, from the additive donation game, to the non-additive Prisoner's Dilemma and Snowdrift games (Hauert et al., 2006). In the notation of this letter, payoff for an individual in a group is defined as

W=b(1wGwG)N(1w)Gc,    (8)

where w is a parameter controlling additivity, with w < 1 leading to diminishing returns from additional donators, and w > 1 leading to positive synergistic effects when multiple donators interact. Payoff additivity is recovered when w = 1, as shown by application of l'Hôpital's rule to Equation (8) to give expected costs and benefits as occur in condition 3 (Marshall, 2015).

Let us add further detail to the non-additive model of Hauert et al. (2006) by considering arbitrarily-sized groups, formed by a process of aggregation. Specifically, let us consider groups that aggregate around individuals according to a geometric process with parameter a, so that an individual or group is joined by another individual with probability a, and with probability 1 − a the group does not grow further. Each new member of a group could be one of two types, either donator or non-donator. Let us introduce an assortment parameter α that gives the probability that new members joining the group are of the same type as the founder member, while with probability 1 − α they are drawn according to the frequencies of the two types within the population. Once groups are formed, all individuals either donate to the public good or not according to their type, and the public good produced is shared equally amongst all group members. To analyse social evolution in this scenario we need to calculate all the component parts of inequality (7); this is done in Appendix B. Substituting these into inequality (7) gives conditions for donation to spread in the population under additive (w = 1) and non-additive (w ≠ 1) interactions, as described in Appendix B. Taking the additive case first, the condition for donation to receive positive selection is

(α(a(a1)ln(1a))a)  b(c+b(1a) ln (1a)/a)>0.    (9)

The first coefficient in inequality (9) is the genetic relatedness coefficient of Hamilton's rule, multiplied by the expected benefit from donation E(B) = b. By inspection, this relatedness coefficient is positive whenever α > 0 and 0 < a < 1, since it is known that a/(a − 1) < ln(1 − a) for 0 < a < 1. This has a natural interpretation, in that genetic relatedness in Hamilton's rule is positive for this scenario whenever there is a possibility for finite groups larger than 1 to form (0 < a < 1), and there is positive assortment between the type of founding members and of joining members (α > 0). Note that this genetic relatedness is that of the founder individual to the rest of the group. Relatedness within groups formed by aggregation is not necessarily the same between all members of the group. A general calculation of relatedness within such groups is substantially more complicated and is beyond the scope of the present article, but for illustrative purposes the simpler calculation presented is sufficient.

Considering the non-additive case next, as shown in Appendix B selection for donation occurs when (having moved to the equivalent, for altruism, r > c/b form of Hamilton's rule)

α(a(a1)ln(1a))a>c+b(1a)ln(1a)/ab  g1a(1g)(aα+(a1+α(1a))ln (1a)  (a1)(wln[1+a(α(1w)+g(α1)(w1)1)]α(1w)+g(α1)(w1)1ln[1+a(g(α1)(w1)1)]g(α1)(w1)1)(w1)).    (10)

By comparison with inequality 9, condition (10) is seen to be an extension of Hamilton's rule for the additive scenario, with the last term corresponding to (a simplification of) the synergistic term of Queller's generalized rule, that captures the deviation from payoff additivity occurring in this particular model [− βDG/E(B) in inequality 7]. Thus, the generalization of Queller's rule (7) is shown to be applicable to a very general class of social interactions, non-additive public-goods games with random group sizes; such interactions are of great biological relevance, since social behavior in groups of unpredictable size occurs very frequently, such as in the formation of stalk and fruiting body by Dictyostelium (Strassmann et al., 2000) or the production of siderophores by bacteria (West and Buckling, 2003), and diminishing returns from or synergy of social behavior are likely to be much more common than strictly additive interactions.

4. Hamilton's Rule Generalized

Although, as demonstrated above, Queller's rule can be applied to non-additive interactions in groups of more than two, to some it may seem insufficiently “inclusive fitness-like,” since it introduces an additional parameter beyond the original relatedness, cost and benefit of Hamilton's rule. However, Hamilton's rule can also incorporate non-additive interactions directly, without needing to be extended beyond these three fundamental parameters. This point was first made in Queller (1992a), which noted that Hamilton's rule fails to be accurate when applied to non-additive interactions only when payoffs are expressed in terms of phenotypes, rather than the underlying genotypes. The solution is to construct a model of fecundity in terms of the underlying genotypes, using what Queller referred to as the “genic” model. This is achieved by deriving the costs and benefits in Hamilton's rule by, respectively, a partial regression of fecundity on an individual's genotype, and on those of their social partners (Queller, 1992a; Gardner et al., 2007, 2011). This yields an elegant version of Hamilton's rule with all its parameters being regression coefficients,

βWG.G/N+β(G/N)GβW(G/N).G>0,    (11)

where βXY.Z is the partial regression of X on Y, holding Z constant (Queller, 1992a). Thus, the coefficients βWG.G′/N and βW(G′/N).G correspond, respectively, to the cost to the actor of donation (−c in Hamilton's original formulation) and the benefit to the recipient of donation (b in Hamilton's original formulation) (Queller, 1992a).

Condition 11 is a fully general version of Hamilton's rule for a public goods game. It does, however, have some potential shortcomings. First, there is no guarantee that the separation condition, which predicts when a decomposition of response to selection into selection and heritability coefficients can be achieved, will be satisfied (Queller, 1992a,b). Second, non-additive fitness effects are split between social partners (e.g., Gardner et al., 2011), which may raise issues in some eyes over the proper causal attribution of fitness effects. Leaving aside these issues, to illustrate the generality of inequality (11) we can apply it to the particular non-additive public-goods scenario with random group sizes presented above, just as it has already been applied to non-additive pairwise interactions (Gardner et al., 2007, 2011). This is achieved by taking a linear model of fecundity (Queller, 1992a; Gardner et al., 2007, 2011)

W^=E(W)+βWG·G/N(GE(G))           +βW(G/N)·G(G/NE(G/N)).    (12)

Note that using a linear model of fecundity does not assume that the relationship between fecundity and the genotypes of self and social partners is itself linear (Okasha, 2006; Gardner et al., 2011). Now, to derive the correct cost and benefit for Hamilton's rule, even in the presence of non-additive effects, we determine the partial regression coefficients that minimize the error of the model in predicting actual fecundities, with error defined as the sum of the squared residuals as for standard linear regression (Gardner et al., 2007, 2011). Thus, the error to be minimized is

E((W^W)2)    (13)

Expression (13) is instantiated for the public-goods scenario described above in Appendix C. Unfortunately, a closed-form solution, and hence differentiation and minimization, of this appears to be intractable, as described in that same Appendix. Fortunately an alternative approach can be taken, calculating the partial regression coefficients directly from variances and covariances of the relevant random variables (e.g., Gardner et al., 2011). This is done in online Supplementary Material. The resulting partial regression expressions for cost and for benefit are very large and complicated, and hence are shown only in online Supplementary Material. However, substituting these and the regression definition of relatedness into condition 11 leads to the same answer as the Queller's rule approach (condition 10), as shown in online Supplementary Material.

5. Discussion

This letter has shown how two inclusive-fitness-based rules for analysing social evolution can be applied to a model of non-additive public goods interactions in groups of varying and arbitrary size. This is useful on two counts. First, it has been observed that social interactions in groups of variable size have neglected by theorists, and that variance in group size needs to be taken account of in analysing social interactions within genetically unrelated groups (Peña, 2012). Second, the analyses presented here address criticisms that inclusive fitness cannot actually deal with non-additive interactions or interactions in groups larger than two which, although previously shown to be incorrect (as reviewed in Marshall, 2011 and Gardner et al., 2011) have recently resurfaced (Traulsen, 2010; van Veelen, 2009; Nowak et al., 2010). It has also been claimed that such rules must change from case to case (van Veelen, 2011), that these rules fail to separate “population structure” (i.e., relatedness, and trait frequencies) from “fitness effects” (i.e., costs and benefits of donation) (van Veelen, 2009), and that therefore inclusive fitness theory is of limited applicability (Nowak et al., 2011). The results of this letter illustrate how the generalized rules for social evolution need not change from case to case in anything other than their details; this is no different to how the details of any selective rule change according to the scenario they are applied to, whether that be the group-selection rule that donation spreads when between-group selection exceeds within-group selection, or even the general evolutionary rule that a trait spreads in a population when it is positively associated with reproduction. Regarding the separation of details of the population from the fitness effects of costs and benefits, it has been pointed out elsewhere that this is a general feature of models of frequency-dependent selection, rather than being peculiar to rules derived from inclusive fitness theory (Marshall, 2011).

It is of interest to conclude by considering the success of the two inclusive-fitness rules as applied to the scenario considered here. While both yield the same answer in this social evolutionary scenario the first of these, Queller's generalized extension of Hamilton's rule (Queller, 1992a) proves mathematically much easier to work with. In contrast, Hamilton's rule with fitness effects correctly defined in terms of genes rather than phenotypes (Queller, 1992a; Gardner et al., 2007, 2011) gives mathematically much more complicated expressions for the cost and benefit terms, and for still more complicated social scenarios it is reasonable to expect that it may prove mathematically intractable, while an approach using Queller's rule is still afforded. It is crucially important to note, however, that such a breakdown would not mean that Hamilton's rule is not a valid evolutionary principle for such a scenario, and therefore is not a general evolutionary principle; rather it would reflect the relative power of the mathematical techniques we can apply to such analyses. However, the results of this article do illustrate that an approach based on extending Hamilton's rule to deal separately with non-additive interaction effects can prove easier to apply, at least in some social scenarios.

Conflict of Interest Statement

The author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.


I thank Geoff Wild and Corina Tarnita for comments on an earlier version of this manuscript.

Supplementary Material

The Supplementary Material for this article can be found online at:


Archetti, M., and Scheuring, I. (2012). Review: game theory of public goods in one-shot social dilemmas without assortment. J. Theor. Biol. 299, 9–20. doi: 10.1016/j.jtbi.2011.06.018

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Birch, J., and Marshall, J. A. R. (2014). Queller's separation condition explained and defended. Am. Nat. (in press).

Gardner, A., West, S. A., and Barton, N. H. (2007). The relation between multilocus population genetics and social evolution theory. Am. Nat. 169, 207–226. doi: 10.1086/510602

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Gardner, A., West, S. A., and Wild, G. (2011). The genetical theory of kin selection. J. Evol. Biol. 24, 1020–1043. doi: 10.1111/j.1420-9101.2011.02236.x

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Grafen, A. (2006). Various remarks on Lehmann and Keller's article. J. Evol. Biol. 19, 1397–1399. doi: 10.1111/j.1420-9101.2006.01161.x

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Hamilton, W. D. (1964). The genetical evolution of social behaviour I and II. J. Theor. Biol. 7, 1–52. doi: 10.1016/0022-5193(64)90038-4

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Hamilton, W. D. (1970). Selfish and spiteful behaviour in an evolutionary model. Nature 228, 1218–1220. doi: 10.1038/2281218a0

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Hauert, C., Michor, F., Nowak, M. A., and Doebeli, M. (2006). Synergy and discounting of cooperation in social dilemmas. J. Theor. Biol. 239, 195–202. doi: 10.1016/j.jtbi.2005.08.040

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Marshall, J. A. R. (2010a). Queller's rule OK: comment on van veelen when inclusive fitness is right and when it can be wrong. J. Theor. Biol. 270, 185–188. doi: 10.1016/j.jtbi.2010.07.015

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Marshall, J. A. R. (2010b). Ultimate causes and the evolution of altruism. Behav. Ecol. Sociobiol. 65, 503–512. doi: 10.1007/s00265-010-1110-1

CrossRef Full Text

Marshall, J. A. R. (2011). Group selection and kin selection: formally equivalent approaches. Trends Ecol. Evol. 26, 325–332. doi: 10.1016/j.tree.2011.04.008

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Marshall, J. A. R. (2015). Social Evolution and Inclusive Fitness Theory: An Introduction. Princeton, NJ: Princeton University Press.

Motro, U. (1991). Co-operation and defection: playing the field and the ESS. J. Theor. Biol. 151, 145–154. doi: 10.1016/S0022-5193(05)80358-3

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Nowak, M. A., Tarnita, C. E., and Wilson, E. O. (2010). The evolution of eusociality. Nature 466, 1057–1062. doi: 10.1038/nature09205

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Nowak, M. A., Tarnita, C. E., and Wilson, E. O. (2011). Nowak et al. reply. Nature 471, E9–E10. doi: 10.1038/nature09836

CrossRef Full Text

Okasha, S. (2006). Evolution and the Levels of Selection. Oxford: Oxford University Press. doi: 10.1093/acprof:oso/9780199267972.001.0001

CrossRef Full Text

Peña, J. (2012). Group-size diversity in public goods games. Evolution 66, 623–636. doi: 10.1111/j.1558-5646.2011.01504.x

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Price, G. R. (1970). Selection and covariance. Nature 227, 520–521. doi: 10.1038/227520a0

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Queller, D. (1985). Kinship, reciprocity and synergism in the evolution of social behaviour. Nature 318, 366–367. doi: 10.1038/318366a0

CrossRef Full Text

Queller, D. C. (1992a). A general model for kin selection. Evolution 46, 376–380. doi: 10.2307/2409858

CrossRef Full Text

Queller, D. C. (1992b). Quantitative genetics, inclusive fitness, and group selection. Am. Nat. 139, 540–558. doi: 10.1086/285343

CrossRef Full Text

Smith, J., Van Dyken, J. D., and Zee, P. C. (2010). A generalization of Hamilton's rule for the evolution of microbial cooperation. Science 328, 1700–1703. doi: 10.1126/science.1189675

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Strassmann, J. E., Zhu, Y., and Queller, D. C. (2000). Altruism and social cheating in the social amoeba Dictyostelium discoideum. Nature 408, 965–967. doi: 10.1038/35050087

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Traulsen, A. (2010). Mathematics of kin- and group-selection: formally equivalent? Evolution 64, 316–323. doi: 10.1111/j.1558-5646.2009.00899.x

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

van Veelen, M. (2009). Group selection, kin selection, altruism and cooperation: when inclusive fitness is right and when it can be wrong. J. Theor. Biol. 259, 589–600. doi: 10.1016/j.jtbi.2009.04.019

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

van Veelen, M. (2011). A rule is not a rule if it changes from case to case: a reply to Marshall's comment. J. Theor. Biol. 270, 189–195. doi: 10.1016/j.jtbi.2010.11.011

CrossRef Full Text

West, S. A., and Buckling, A. (2003). Cooperation, virulence and siderophore production in bacterial parasites. Proc. R. Soc. London B Biol. Sci. 270, 37–44. doi: 10.1098/rspb.2002.2209

Pubmed Abstract | Pubmed Full Text | CrossRef Full Text

Appendix A


Simplifications and solutions were performed with the symbolic algebra functions Simplify and FullSimplify of Mathematica version from Wolfram Research (see online Supplementary Material).

Appendix B

Queller's Rule for a Non-Additive Public-Goods Game

Hauert et al. present an elegant formalization of non-additive public-goods games with arbitrary group size (Hauert et al., 2006). In the notation of this article, payoff for an individual in a group is defined by Equation (8).

We wish to express the deviation from payoff additivity in Equation (8) in terms of a single random variable D, as used in Equation (6), thereby separating additive from non-additive effects. This can be done by solving for equivalence between Equations (8) and (6), i.e., by solving

b(1wG+G)N(1w)Gc=GNBGC+D    (14)

for D, with B = b and C = cb/N as described in the main text.

Now we model the process of group aggregation described in the main text. The (co)variances we need to calculate are Var(G), Cov(G, G′/N), and Cov(G, D). In general, Cov(X, Y) = E(XY) − E(X)E(Y). The expectations we require for Cov(G, G′/N) can be calculated from the definitions of the geometric and binomial distribution as

E(G)E(GN)=gn=0((1a)an)  (gi=0ni(ni)(g(1α)+α)i((1g)(1α))nin+1  +(1g)i=0ni(ni)(g(1α))i((1g)(1α)+α)nin+1),    (15)


E(GGN)=gn=0((1a)an)  i=0ni(ni)(g(1α)+α)i((1g)(1α))nin+1,    (16)


E(G2)=g,    (17)


E(G)2=g2.    (18)

To calculate average cost of donation in the additive case

E(C)=cE(bN)    (19)

we also require the expectation of the reciprocal of group size

E(1N)=(1a)ln(1a)a.    (20)

Substituting these into inequality (3) yields [provided Var(G) ≠ 0, i.e., 0 < g < 1] the condition for donation to receive positive selection in an additive public-goods game, inequality 9 in the main text. Simplifications were performed with the symbolic algebra functions of Mathematica (Wolfram Research), as described in the Appendix; see online Supplementary Material.

Moving on to the non-additive public-goods game, as well as Cov(G, G′/N) and Var(G), from the generalized version of Queller's rule (7) we now need to calculate

Cov(G,D)=b1w(Cov(G,1N)Cov(G,wGwGN))                           b(Cov(G,GN)+Cov(G,GN)).    (21)

The first covariance in the rhs is zero, since G and N are independent in this scenario. Also, since G and N are independent, Cov(G, G/N) simplifies to Var(G)E(1/N). The expectations for the last covariance are given above in Equations (15) and (16). The relevant expectations for Cov(G, wG wG/N) are

E(G)E(wGwGN)=gn=0((1a)an)  (gi=0n(ni)(g(1α)+α)i((1α)(1g))niwi+1n+1  +(1g)i=0n(ni)(g(1α))i((1g)(1α)+α)niwin+1)    (22)


E(GwGwGN)=gn=0(an(1a))  (i=0n(ni)((1α)g+α)i((1α)(1g))niwi+1)n+1.    (23)

Substituting all of the above into inequality (7) and simplifying yields the condition for donation to receive positive selection, inequality (10) in the main text.

Appendix C

Hamilton's Rule for a Non-Additive Public-Goods Game

As described in the main text, Hamilton's rule can also be directly applied to non-additive interactions, by correctly defining costs and benefits in terms of the partial regression coefficients minimizing the error of a linear model of fitness Equations (12, 13). For the particular scenario described in the main text, Equation (13) becomes

E((W^W)2)=n=0((1a)an)×  (gi=0n(ni)(g(1α)+α)i((1g)(1α))ni×  (E(W)+βWG.G/N(1g)+βW(G/N).G  (in+1E(GN))+cb(1wi+1)(n+1)(1w))2+  (1g)i=0n(ni)(g(1α))i((1g)(1α)+α)ni×  (E(W)+βWG.G/N(0g)+βW(G/N).G  (in+1E(GN))b(1wi)(n+1)(1w))2),    (24)


E(W)=n=0((1a)an)  (gi=0n(ni)(g(1α)+α)i((1g)(1α))ni  (b(1wi+1)(n+1)(1w)c)  +(1g)i=0n(ni)(g(1α))i((1g)(1α)+α)ni  (b(1wi))(n+1)(1w))    (25)

The standard procedure for linear regression is to differentiate an expression such as Equation (24) wrt to the partial regression coefficients, so that the minimizing values for them can be found, or to derive the regression coefficients directly from covariances and variances of the random variables concerned. Unfortunately since simplification to a closed-form solution of Equation (24) appears intractable (using the methods described in Appendix A no solution was found within a reasonable amount of time—30 min on a 2GHz 64-bit Intel Core i5-equipped laptop—indicating either that the simplification is not possible or, if it is possible that the process and result of simplification are almost certainly much more complicated than the equivalent simplification for Queller's rule [resulting in Equation (10)], the former approach does not seem feasible in this particular case. Instead we use the fact that the partial regression coefficients of Equation (12) can be calculated directly from (co)variances (e.g., Gardner et al., 2011) as

βWG.G/N=βWGβW(G/N)β(G/N)G1ρG(G/N)2,    (26)


βW(G/N).G=βW(G/N)βWGβG(G/N)1ρG(G/N)2.    (27)

The above definitions are calculated in the online Supplementary Material for the non-additive public goods scenario in the main text, and substituted into condition 11 to give the same condition for selection of donation as that derived using the Queller's rule approach (10).

Keywords: Queller's rule, non-additivity, public goods game, Prisoner's Dilemma, Snowdrift game, random group size

Citation: Marshall JAR (2014) Generalizations of Hamilton's rule applied to non-additive public goods games with random group size. Front. Ecol. Evol. 2:40. doi: 10.3389/fevo.2014.00040

Received: 01 May 2014; Accepted: 09 July 2014;
Published online: 29 July 2014.

Edited by:

Sasha Raoul Xola Dall, University of Exeter, UK

Reviewed by:

Ryan L. Earley, University of Alabama, USA
Lauren Johanna Nicole Brent, University of Exeter, UK
David Queller, Washington University in St. Louis, USA

Copyright © 2014 Marshall. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: James A. R. Marshall, Department of Computer Science, Kroto Research Institute, University of Sheffield, Broad Lane, Sheffield S3 7HQ, UK e-mail: