Skip to main content

Kin Selection: the Moran Model

GitHub code
Kin selection is the first of Nowak's five mechanisms for the evolution of cooperation. Cooperation spreads when the benefit delivered to a recipient, weighted by genetic relatedness, exceeds the private cost paid by the actor — Hamilton's rule: rB>CrB > C.

What Counts as Kin Selection Here​

The site's definition of kin selection, its goal (kin selection in a full ecological setting) and the stepwise table of what has and has not been achieved are on their own page: Kin Selection: Definition and Progress. In short: a result counts only if helping has a real net cost to the helper, the benefit goes to relatives by descent (own offspring included), and helping spreads from rare against a registered control. The Moran model on this page has a fixed population size and its spread from rare is weak altruism, so it is step 1 there, a warm-up; the kin selection ladder below supplies steps 2 to 5. That table also lists two published models: Kanwal and Gardner (2022) as a reference row (tested from no helping and met, consistent with kin selection among non-offspring relatives, with a fixed population size), and Mitteldorf and Wilson (2000), tested and not met.

Robust initiator. Of the five Nowak mechanisms, kin selection is the most biologically robust initiator of cooperation from rare. It works because offspring inherit the parent's cooperative trait and stay nearby — automatically clustering cooperators together. This spatial proximity is a trivial consequence of reproduction itself, requiring no additional biological conditions. Other mechanisms that also spread cooperation from rare (direct reciprocity with a spatial scaffold) depend on partner stability and memory that are not automatically given. The Nowak Mechanisms overview maps this distinction across all five mechanisms. One qualification: in the spread-from-rare runs here, a helper keeps part of its own benefit, so helping has no net direct cost (weak altruism); help with a real net cost to the helper did not spread in this model (see Later tests). By this site's own definition, which requires a real net cost, that spread is therefore step 1 of the stepwise table, a warm-up, not kin selection itself. In models with energy, limited food and births into free space, this robustness is narrower; see The Ladder in Detail on the progress page.

How It Is Implemented Here​

Relatedness is operationalised through lineage labels. Every site carries an inherited lineage identifier. The positive routing kernel assigns higher weight to same-lineage neighbors than to other-lineage neighbors:

Kj→i+∝{wsameif lineagej=lineageiwotherotherwiseK^+_{j \to i} \propto \begin{cases} w_{\text{same}} & \text{if lineage}_j = \text{lineage}_i \\ w_{\text{other}} & \text{otherwise} \end{cases}

with row normalization applied afterward. Because offspring inherit the parent's lineage label, cooperator clusters accumulate same-lineage neighbors over time, which progressively recirculates more of the cooperative benefit back toward cooperators — the positive feedback that makes cooperation viable.

One Step​

One full synchronous kin-selection update runs as follows. All sites update simultaneously.

Kin Selection Simulation Step
One synchronous grid update from step t to step t + 1 under kin-selection routing.
1

Start from the current grid state

Each site stores one cooperation trait hh and one inherited lineage label.

↓
2

Compute cooperative output and private cost

Bi+=Bplus⋅hi,Ci=Cscale⋅hiB_i^+ = B_{\text{plus}} \cdot h_i, \qquad C_i = C_{\text{scale}} \cdot h_i

↓
3

Build the kin-weighted routing kernel

Assign raw weight wsamew_{\text{same}} to same-lineage neighbors and wotherw_{\text{other}} to other-lineage neighbors, then row-normalize:

wij={wsameif lineagei=lineagejwotherotherwiseKij+=wij∑kwikw_{ij} = \begin{cases} w_{\text{same}} & \text{if } \text{lineage}_i = \text{lineage}_j \\ w_{\text{other}} & \text{otherwise} \end{cases} \qquad K_{ij}^+ = \frac{w_{ij}}{\sum_k w_{ik}}

↓
4

Accumulate lineage-weighted receipts

Each site sums the kin-weighted share of cooperative benefit received from its neighbors:

Ri+=∑jKji+⋅Bj+R_i^+ = \sum_j K_{ji}^+ \cdot B_j^+

↓
5

Compute site fitness

Wi=w0+Ri+−CiW_i = w_0 + R_i^+ - C_i

Baseline fitness w0w_0 dampens selection intensity.

↓
6

Sample a local parent by softmax over fitness, copy trait and lineage

Parent selection is restricted to the site's local neighborhood. The offspring inherits trait hh (with small Gaussian mutation) and lineage label — same-lineage clusters grow when cooperators reproduce locally.

Display 1: One synchronous kin-selection update from step t to step t + 1.

Production

Each site produces cooperative output and pays a private cost proportional to its trait:

Bi+=Bplus⋅hiB_i^+ = B_{\text{plus}} \cdot h_i

Ci=Cscale⋅hiC_i = C_{\text{scale}} \cdot h_i

Kernel construction

For each producer ii, a raw routing weight wijw_{ij} is assigned to each neighbor jj based on lineage match, then row-normalized so weights sum to 1:

wij={wsameif lineagei=lineagejwotherotherwisew_{ij} = \begin{cases} w_{\text{same}} & \text{if } \text{lineage}_i = \text{lineage}_j \\ w_{\text{other}} & \text{otherwise} \end{cases}

Kij+=wij∑kwikK_{ij}^+ = \frac{w_{ij}}{\sum_k w_{ik}}

Routing

Each site receives the lineage-weighted share of every neighbor's production:

Ri+=∑jKji+⋅Bj+R_i^+ = \sum_j K_{ji}^+ \cdot B_j^+

Fitness score

Wi=w0+Ri+−CiW_i = w_0 + R_i^+ - C_i

Local replacement

Each site samples a parent from its local neighborhood via softmax over WW. The offspring inherits the parent's trait hh (with small Gaussian mutation) and lineage label. Because the lineage label is inherited, same-lineage clusters grow when local cooperators outcompete their neighbors — the feedback that sustains cooperation.

Variable definitions:

  • hih_i is site ii's cooperation trait in [0, 1]
  • Bi+B_i^+ is the cooperative benefit produced by site ii
  • CiC_i is the private cost paid by site ii
  • Kij+K_{ij}^+ is the normalized routing weight from producer ii to recipient jj
  • Ri+R_i^+ is the total routed benefit received by site ii
  • WiW_i is the fitness score used for local replacement
  • w0w_0 is the fixed baseline fitness shared by all sites, which dampens selection intensity

Worked Example​

Consider a focal site ii with four von Neumann neighbors, two same-lineage (A) and two other-lineage (B):

SiteLineageTrait hh
iiA0.8
j1j_1A0.7
j2j_2A0.6
j3j_3B0.9
j4j_4B0.5
Display 2: Worked example: trait values and lineage assignments for focal site ii and its four von Neumann neighbors.

Production

Bi+=1.0×0.8=0.80,Ci=0.2×0.8=0.16B_i^+ = 1.0 \times 0.8 = 0.80, \qquad C_i = 0.2 \times 0.8 = 0.16

Outgoing kernel row for site ii

Raw weights: wsame=0.8w_{\text{same}} = 0.8 for j1,j2j_1, j_2; wother=0.2w_{\text{other}} = 0.2 for j3,j4j_3, j_4. Row sum = 2.00, so normalized weights are 0.40 for same-lineage and 0.10 for other-lineage.

What ii sends

i→j1: 0.80×0.40=0.32i→j3: 0.80×0.10=0.08i \to j_1: \ 0.80 \times 0.40 = 0.32 \qquad i \to j_3: \ 0.80 \times 0.10 = 0.08

Same-lineage neighbors receive 4× more benefit than other-lineage neighbors.

What ii receives (assuming symmetric neighborhood structure)

Ri+=0.7×0.40⏟j1+0.6×0.40⏟j2+0.9×0.10⏟j3+0.5×0.10⏟j4=0.66R_i^+ = \underbrace{0.7 \times 0.40}_{j_1} + \underbrace{0.6 \times 0.40}_{j_2} + \underbrace{0.9 \times 0.10}_{j_3} + \underbrace{0.5 \times 0.10}_{j_4} = 0.66

Fitness

Wi=1.0+0.66−0.16=1.50W_i = 1.0 + 0.66 - 0.16 = 1.50

Why kinship helps

If ii were surrounded by four other-lineage neighbors with the same traits, all incoming weights would be 0.10:

Ri+=(0.7+0.6+0.9+0.5)×0.10=0.27,Wi=1.0+0.27−0.16=1.11R_i^+ = (0.7 + 0.6 + 0.9 + 0.5) \times 0.10 = 0.27, \qquad W_i = 1.0 + 0.27 - 0.16 = 1.11

The lineage cluster raises fitness from 1.11 to 1.50 — a difference that compounds over many steps as same-lineage cooperators expand together.

Key Parameters​

ParameterDefaultRole
kin_weight_same_lineage0.8Routing weight toward same-lineage neighbors
kin_weight_other_lineage0.2Routing weight toward other-lineage neighbors
B_plus_scale1.0Scales cooperative benefit produced per unit trait
C_scale0.2Private cost per unit trait
Display 3: Key parameters controlling kin-selection routing weights and payoff scaling.

Hamilton's rule maps onto these parameters as r≈wsame/(wsame+wother)r \approx w_{\text{same}} / (w_{\text{same}} + w_{\text{other}}), B=B = B_plus_scale, C=C = C_scale.

Simulation Results​

The Nowak Mechanisms overview reports kin selection as Yes for both spread from rare and maintenance. This page demonstrates both and shows exactly how the mechanism operates.

Scripts: utils/proof_of_mechanism.py and well_mixed/utils/proof_of_mechanism.py. 5 seeds per scenario, 1000 steps each. Success threshold: mean final cooperation trait ≥ 0.60.

Step 1 — Maintenance: cooperation holds when common​

Starting cooperation trait ≈ 0.90 (high), default kin bias (same-lineage weight 0.8, other-lineage weight 0.2), B/C=5B/C = 5.

Result: 5/5 seeds successful. Mean final trait = 0.984.

Cooperation not only persists but rises slightly as the Moran process filters out low-trait agents. The kin-weighted routing recirculates benefit preferentially back toward same-lineage cooperators, creating a fitness premium that fully offsets the private cost. Hamilton's rule (rB>CrB > C) is met and the population locks into near-maximum cooperation.

Step 2 — Spread from rare: kin selection enables invasion​

Starting cooperation trait ≈ 0.05 (rare), same kin bias and B/CB/C as above.

Result: 5/5 seeds successful. Mean final trait = 0.872.

From a starting frequency of 5%, cooperation spreads to 87% on average across seeds. Offspring inherit the parent's lineage and stay local, automatically clustering same-lineage cooperators together. The kin-biased routing then preferentially recirculates benefit within those clusters, accelerating their growth. The ablation below isolates how much each component contributes.

Step 3 — Ablations: what breaks the mechanism​

ScenarioSuccess rateMean traitInterpretation
maintenance_common_start5 / 50.984Maintenance confirmed. Kin-biased routing locks cooperation near maximum.
spread_from_rare_kin_bias5 / 50.872Spread from rare confirmed. Cooperation invades reliably from 5% with kin bias.
no_kin_bias_ablation (spatial)1 / 50.488Equal kin weights on the same spatial grid — network reciprocity alone. Spread is partial and stochastic at this run length (1/5, against 5/5 with the kin bias); in later, longer tests uniform routing caught up. Spatial structure supported spread in these tests, faster with the kin bias.
well_mixed_control (kin preference, no kin proximity)0 / 50.006Fully connected population — kin preference active but offspring scattered globally, so no kin proximity. Indistinguishable from the no-kin-bias control (0.005). Consistent with kin proximity (provided automatically by local reproduction) being what makes the effect work in this model.
below_hamiltons_rule (spatial)0 / 50.008B/C=0.25B/C = 0.25 (rBrB < CC). Cooperation collapses from 90% to near zero — Hamilton's rule boundary confirmed within the spatial model.
Display 4: Proof-of-mechanism results. 5 seeds per scenario, 1000 steps. Success = mean final trait ≥ 0.60.

What the ablations show. The no-kin-bias ablation removes lineage weighting while keeping local reproduction, leaving only the spatial assortment from offspring proximity. The result — 1/5 seeds, mean 0.488 — is the baseline from local reproduction alone. Kin-biased routing raised that to 5/5 at this run length by preferentially recirculating benefit within same-lineage clusters, including back to the helper itself; later, longer tests found uniform routing also spreading (see Later tests below). The well-mixed control shows the other side: kin preference without kin proximity produced no detectable effect (0/5, mean 0.006 — identical to the no-kin-bias well-mixed control at 0.005). Kin proximity — automatically provided by local reproduction — was required in the tested controls (well-mixed 0/5 here; global-competitor replacement 1/20 in the later tests); kin-biased routing made spread faster on top of it, without being separated from the extra self-return it brings.

Why kin bias speeds up spread: the self-routing advantage​

The cluster-growth story — cooperators form patches, patches expand — explains maintenance. It does not explain why the kin-biased arm formed patches more reliably than spatial structure alone at the proof's run length. A lone cooperator on the grid surrounded entirely by other-lineage defectors would seem to gain little from kin routing.

The key is the self-routing term. Because self is always same-lineage and the neighbourhood includes self, the kernel routes approximately 50% of a cooperator's own output back to itself (Ki→i+=wsame/(wsame+4⋅wother)=0.8/1.6=0.5K^+_{i \to i} = w_\text{same} / (w_\text{same} + 4 \cdot w_\text{other}) = 0.8 / 1.6 = 0.5 when all spatial neighbours are other-lineage). Fitness for that lone cooperator becomes:

Wi=1+0.5⋅hi⋅Bplus−0.2⋅hi=1+0.3hi>1W_i = 1 + 0.5 \cdot h_i \cdot B_\text{plus} - 0.2 \cdot h_i = 1 + 0.3 h_i > 1

here with the default benefit scale Bplus=1B_\text{plus} = 1 and cost 0.2⋅hi0.2 \cdot h_i.

Even before a cluster forms, a lone cooperator on the spatial grid already outcompetes local defectors. Network reciprocity without kin bias lacks this: a lone cooperator with uniform routing gets back 0.2·h of its own benefit, exactly its cost, so it gains nothing on net and its fate is left to drift until a cluster forms. This is consistent with the kin-biased arm's faster early spread: it reached 5/5 in the proof run, against network reciprocity's stochastic 1/5, plausibly by shortening the vulnerable solo-cooperator phase; uniform routing was slower but later also spread (see below). In a well-mixed population this advantage disappears: the self-routing benefit is diffused across 575 neighbours rather than concentrated in a local neighbourhood, and the local kin-bias advantage is absent in the well-mixed control.

Later tests: self-benefit and speed​

Later matched tests (20 runs per arm, 2026-11-19) qualify the 1/5 versus 5/5 contrast above. Label-biased routing spread in 14/20 runs at 1000 steps, uniform routing in 3/20; but by 3000 steps uniform routing had also spread in 20/20 runs, as far as label-biased routing. So the label-biased arm spread faster, and these tests do not separate the bias from the extra self-return it brings; in the arm with self removed from routing (which also changes how the benefit is distributed), label-biased routing failed in 0/20 runs. With uniform routing, a lone helper keeps 0.2·h of its own benefit, exactly its cost; with the label bias it keeps 0.5·h. Where helping had a net direct cost at some number of related neighbours, it failed in every arm (0/20). The spread in this model is therefore consistent with weak altruism (no net direct cost to the helper) in a population where offspring stay near their parents; there was no sign of kin discrimination making costly helping pay. Details: the caveat in the Moran kin-selection README and the ladder's RESULTS.md (steps 0-0c).

Live simulation​

Both grids below start from the same random initial state — roughly 5% cooperators, 18 lineages, kin bias 0.8/0.2. Left satisfies Hamilton's rule (B/C=5B/C = 5, rB>CrB > C). Right violates it (B/C=0.2B/C = 0.2, rB<CrB < C) — cost swamps benefit even with kin-biased routing. Press Play to watch spatial kin clusters grow on the left and collapse on the right. Press Reset to start a new random configuration.

SpeedStep 0
Hamilton's rule satisfied (B/C = 5)
Cooperation: 5.0%
Hamilton's rule violated (B/C = 0.2)
Cooperation: 5.0%
Defector (trait 0)
Cooperator (trait 1)
Display 5: Live kin-selection comparison. Both grids start from the same random initial state (~5% cooperators, 18 lineages, kin bias 0.8/0.2). Left: Hamilton's rule satisfied (B/C=5B/C = 5, rBrB > CC — cooperation spreads). Right: Hamilton's rule violated (B/C=0.2B/C = 0.2, rBrB < CC — cooperation collapses).

From the Moran model to an ecological model​

How far kin selection has been taken from this Moran model towards an ecological model is tracked in one place, on Kin Selection: Definition and Progress: the stepwise table, the kin selection ladder in detail (The Ladder in Detail), the earlier ecological kin-selection model, the step-5 restart, an external check and test of Kanwal and Gardner (2022) (met, consistent with kin selection among non-offspring relatives, fixed population size), Mitteldorf and Wilson's (2000) empty-site model, tested against the definition on 2026-11-25 (not met: costly help did not spread from rare), and step 5 in a ported empty-site island model after Alizon and Taylor (2008), met three times (2026-11-25/26), after which the kin line paused.

Kin cues: the ethnocentrism model​

The models above track lineage directly. Real organisms usually cannot see relatedness; at most they see a cue that tends to go with it. Hammond and Axelrod's (2006) ethnocentrism model is a simple test case. Agents on a 51×51 torus have an inherited colour (one of four) and two inherited flags: help neighbours of the same colour or not, and help neighbours of another colour or not. Helping costs the helper 0.01 and gives the neighbour 0.03 in chance to reproduce; offspring are placed next to the parent, and agents die at random (10% per tick), which keeps empty space available. In the original model, ethnocentrics (who help only their own colour) become the most common strategy, at about three quarters of the population.

We ported the NetLogo version of the model (Wilensky 2003) to Python, checked it against the NetLogo runs (nine experiments, no clear difference), and added a pedigree so the relatedness of neighbours can be measured. Six pre-registered experiments followed, with 30 runs per condition (60 in the last). The model's inner loops were later compiled with Numba, which made a run 4 to 8 times faster (about 0.5–0.8 s instead of 3.4 s for a 2,000-tick run on the 51×51 grid). The random draws happen in the same order as before, so every committed run reproduces exactly, and all results below are unchanged.

ExperimentWhat happened
Who is helped (standard model)Same-colour neighbours were usually kin: 90% shared a founder (the immigrant their line descends from), against 18% of different-colour neighbours, and 43% of same-colour neighbour pairs were at most two births apart (parent and offspring, siblings, or grandparent and grandchild). Colour worked as a strong but imperfect cue of descent.
Random colour: children get a random colour, so colour no longer tracks descentEthnocentrics fell from 75.5% to 12.9% of the population; strategies that help regardless of colour became more common. How often help was given hardly changed (77% vs 76% of meetings), while neighbours remained related through local birth (70% shared a founder).
Random colour with own-colour meetings approximately matched: children get a random colour, but one colour is drawn far more often, so about 80% of meetings are with the own colour, as with inherited colourEthnocentrics made up 32.4% of the population, against 75.5% with inherited colour and 12.9% with uniform random colour. So most of the fall under random colour remained when the mean own-colour meeting share was approximately matched (80% vs 81% of ethnocentrics’ neighbours). Altruists were again the most common strategy.
Lower viscosity: offspring placed anywhere in the world with probability dCooperation fell as d rose: with random colour from 76% to 4% of meetings at d = 1. Inherited colour did not prevent this: at d = 1 both colour rules gave about 4%, with egoists at about 90%. At intermediate dispersal inherited colour went with more cooperation (45% vs 29% at d = 0.25; descriptive only).
Shuffle: with random colour, at the end of every tick the agents swap places at random among the occupied cells, so neighbours who meet share a founder only as often as under random mixing; offspring are still born next to their parentFounder sharing among neighbours who meet fell to the level of random mixing (from 0.64 above it to 0.00). Cooperation fell from 76% to 11% of meetings, and egoists rose from 8% to 76% of the population. The drop was in which strategies existed, not in whom they met: each strategy still met its own colour 25% of the time. Shuffling a tenth of the cells per tick already brought cooperation down to 22% (descriptive only).
Hamilton's-rule prediction: one colour, so helping is a single inherited trait; relatedness r first measured without selection at four shuffle levels, then the benefit set so that r × benefit / cost = kRelatedness measured in advance predicted whether helpers became more or less common than without selection in all 8 cells far from the threshold (k = 0.5 and 2), across relatedness from 0.79 to 0.23. Near the threshold (k = 0.8 and 1.25), 6 of 8 cells went the predicted way and 2 were unclear; none went the opposite way (Display 7).
Display 6: Kin cues in the ethnocentrism model (Experiment 104 settings, 30 runs per condition; 60 in the Hamilton's-rule test). Blue: the pre-registered expectation was met (for the Hamilton's-rule test, the main hypothesis; the near-threshold one was inconclusive); red: the test that the colour cue can stand in for local birth was not met. Details and all numbers are in the module's RESULTS.md.

What this adds to the picture above. In this model, cooperation was highest when offspring stayed near their parents, so that neighbours were often related, as in the viscosity results above. With inherited colour acting as a cue of descent, help went to same-colour neighbours, who were closer kin while offspring stayed local. At full dispersal, inherited colour did not produce more cooperation than random colour: egoists of the same colour could collect help from ethnocentrics they settled next to, and cooperation fell to about 4% of meetings under both colour rules. Random colour also made same-colour meetings rarer (25% instead of 80%); bringing the average own-colour meeting share back to about 80% with still-random colour restored only part of the ethnocentric share (32% instead of 76%). Two limits apply. That third experiment matches the average meeting share, not the colour structure (one dominant colour rather than four local colour clusters), so it narrows this confound rather than removing it. The dispersal experiment changes relatedness together with how often births are blocked, how large the population grows and whom agents meet.

The shuffle experiment addresses that last limit. It keeps local birth and leaves the occupied cells occupied at each shuffle, but brings founder sharing among neighbours who meet down to the random-mixing level. Cooperation then collapsed as it did under full dispersal. Of these experiments, it is the clearest test of whether removing spatial assortment lowers cooperation. The result is consistent with cooperation being supported by assortment through local birth (the kin-selection reading). It still does not show that relatedness alone is the cause. Because strategies are inherited, neighbours also stop sharing strategies, and that cannot be separated from shared descent here. Competition among relatives for nearby empty cells changes too, and the population shrank (from about 1,620 to 870) as cooperation fell.

The last experiment asks a sharper question: not only whether helping depends on relatedness, but whether Hamilton's rule, r × benefit > cost, predicts the direction of change in the share of helpers on either side of the threshold. With one colour, helping is a single inherited trait. Relatedness r among neighbours who meet was measured first in runs without selection, at four shuffle levels, and the benefit was then set so that r × benefit / cost = k. The rule predicts that helpers become more common than in the neutral runs when k > 1, and less common when k < 1.

k = r × benefit / costr = 0.79 (no shuffle)r = 0.51r = 0.35r = 0.23
0.5−0.11−0.11−0.14−0.16
0.8−0.05−0.07−0.07−0.10
1.25+0.04+0.05+0.03+0.01
2+0.17+0.21+0.19+0.16
Display 7: Hamilton's-rule prediction test in the one-colour ethnocentrism model: share of helpers in the last 100 ticks minus the share without selection at the same relatedness (60 runs per cell). Blue: the predicted direction, with p < 0.01; white: unclear. No cell went the opposite way. Details in section 7 of the module's RESULTS.md.

Far from the threshold the prediction held at every relatedness level. Near it, it held at the two higher relatedness levels and was unclear, but not reversed, at the two lower ones. The descriptive crossing of the helper-share difference (interpolated from the four k values) lay slightly above k = 1 and rose as relatedness fell, from about 1.02 to 1.21. This supports the pre-registered quantitative benchmark: relatedness measured in advance, with the raw payoffs, predicted the direction of the late-run change in the share of helpers far from the threshold. Two limits remain. In a lattice model like this, kin selection and spatial (network) reciprocity are two descriptions of the same process, so no result here can favour one over the other. And why the crossing lies above 1 and rises with shuffling was not tested. Relatedness under selection was somewhat lower than without it, which could explain the rise; competition among relatives for empty cells is another possible, untested contributor.

Hamilton's rule in a minimal sibling model​

The models above test kin selection in lattices and ecologies, where it is hard to tell the helper's own return, the benefit to relatives and local structure apart. As a clean reference, a minimal model checks the rule itself where it is exact: costly help to siblings, with kin association built in and global competition. It follows Primer's sibling alarm-call simulation (2021), rebuilt from the video's transcript.

Each generation, every puddle of n siblings visits a random tree; on one in four trees a predator waits. One random sibling notices it. A coward runs and survives while the other n − 1 are eaten; an altruist sounds the alarm, saving the other n − 1, and is eaten itself with probability c. Survivors win homes by lottery and found the next generation (asexual: clones; sexual: two parents, each child copying one of them). So the benefit is b = n − 1 saved siblings, the cost is c, and the relatedness by descent is r = 1 (asexual) or r = ½ (sexual). The expected one-generation change in the altruist allele's frequency f is then exactly a·f(1 − f)·(b·r − c)/D (a = attack probability, D = expected survivors per puddle), so its sign is the sign of b·r − c.

A tempting shortcut uses p, the probability that a sibling carries the altruist allele, in place of r. At a 50/50 start p = 0.75, so the shortcut predicts spread in cells where Hamilton's rule predicts loss. The registered test (pre-registered before any code) separates the two.

Reproduction, n, cb·r − cShortcut b·p − cRuns up / down (200 generations)One-generation change: predicted / realised
sexual, 3, 0.80+0.20+0.7040 / 0+0.0047 / +0.0045
sexual, 3, 0.90+0.10+0.6039 / 1+0.0024 / +0.0022
sexual, 3, 1.000+0.5022 / 180 / +0.0000
sexual, 2, 0.30+0.20+0.4540 / 0+0.0068 / +0.0068
sexual, 2, 0.40+0.10+0.3540 / 0+0.0034 / +0.0031
sexual, 2, 0.500+0.2522 / 180 / +0.0003
sexual, 2, 0.60−0.10+0.151 / 39−0.0035 / −0.0036
sexual, 2, 0.70−0.20+0.050 / 40−0.0070 / −0.0066
asexual, 2, 0.80+0.20+0.2040 / 0+0.0070 / +0.0067
asexual, 2, 1.000024 / 160 / +0.0003
Display 8: Hamilton's rule in the sibling alarm-call model (500 puddles, start 50/50; 40 runs of 200 generations and 4,000 one-generation runs per cell). Bold: the cells where the shortcut with p predicts spread and Hamilton's rule predicts loss. Every registered test held; details in the module's RESULTS.md.

Altruism spread wherever b·r − c was positive, drifted without direction where it was 0, and was lost where it was negative, including the two cells where the shortcut predicts spread. The measured relatedness between an alarm-sounder and the siblings it saved was 0.500 in every sexual cell, while the share of those siblings carrying the allele was 0.75: saving copies that are not identical by descent does not change the allele's share of a capped population. The realised one-generation change matched the exact expression in every cell. This is a demonstration under the conditions where the rule is exact, with kin association built in and competition global; it says nothing about when relatives meet or compete in an ecology, which is what the ladder tests.

In Plain Terms​

Read together with the ladder results on the progress page, the results suggest that cooperation spread most reliably when the benefit came back to the helper or to its own offspring; costly help to other relatives spread only under narrower conditions. This fits the wider pattern described on the Evolved Cooperation page.

  • Moran model. In the tested runs, helping spread from rare when the helper kept enough of its own benefit to cover its cost (weak altruism). Help with a real net cost to the helper failed in every tested arm (0/20 runs). In the stepwise table this is step 1, a warm-up, not kin selection.
  • Beyond the Moran model. Costly help to neighbours, care for one's own young and the free-space step (not reached on the lattice; met three times in a ported empty-site island model, 2026-11-25/26, after which the kin line paused) are summarised on Kin Selection: Definition and Progress, with the ladder in detail there.
  • Kin cues. In the ethnocentrism model, ethnocentrics (who help only their own colour) were much more common when colour tracked shared descent: 75.5% of the population, against 12.9% with random colour. How often help was given hardly changed (77% vs 76% of meetings). These comparisons do not rule out every other difference.

So, on this evidence, living among relatives went with cooperation spreading mainly where the benefit came back to the helper or its own young. These designs do not fully separate the helper's own return from the benefit to relatives or from local structure, and these are abstract models: read this as a tentative pointer, not a settled law.

See Also​

  • Spatial Altruism — Mitteldorf & Wilson's (2000) baseline, no-harshness/no-disease case is a concrete historical instance of exactly the "stochastic 1/5" scenario named above in Why kin bias speeds up spread: a lone cooperator recaptures 1/5 of its own benefit purely because it is one of five participants in its own neighbourhood lottery, with no lineage bias at all. That paper derives its own viability threshold, b > 5c, from precisely this relatedness coefficient — Hamilton's rule rB > C with r = 1/5 gives b/5 > c, i.e. b > 5c. Where this page's kin bias, by explicitly routing benefit toward same-lineage neighbours (and back to the helper), coincided with 5/5 success at the proof run's duration (later tests showed uniform routing could catch up), Spatial Altruism's harsher, higher-density variants achieve a comparable reliability boost through a different route entirely — differential group/patch density rather than lineage-biased routing — which is also why that page's own "See Also" section treats it as closer to Group Selection than to Kin Selection once harshness and disease are turned on.

References​