Everyone knows full siblings are related by one half and cousins by one eighth. Fewer people know what that number actually is. In Hamilton’s rule relatedness is not a fraction of shared pedigree; it is a regression coefficient, the slope of a recipient’s genotype on an actor’s (Grafen 1985). This post estimates relatedness that way in base R, recovers the familiar pedigree values, and shows why the same pair of animals can have different relatedness depending on who you compare them against.
Why the reference population matters
A regression is always relative to a mean, and for relatedness that mean is the population you measure deviations from. This is not a technicality: it decides the number. Two animals that share half their genes relative to their local group can be almost unrelated relative to the whole species, if the local group is already inbred, or highly related relative to a diverse global pool. The r in Hamilton’s rule is the relatedness among the individuals who actually interact and compete, measured against the population they are drawn from, not an absolute biological constant.
This is where a common confusion starts. In a small, viscous population everyone is somewhat related in absolute terms, which seems to predict rampant altruism. But if those same relatives are also each other’s competitors, the relevant relatedness against the competitive neighbourhood can be near zero, and altruism gains nothing. Getting the reference wrong is one of the main ways a kin selection analysis goes astray, which the checking post takes up directly.
An honest limit
The regression estimate is only as good as the sample of pairs and the marker set behind the genotypes, and it inherits the usual regression frailties: rare alleles give noisy slopes, and population structure that you have not accounted for inflates apparent relatedness between individuals who merely come from similar backgrounds. That last point is the same shared-ancestry problem that drives phylogenetic regression: correlated genotypes can reflect common descent rather than the local kinship the model intends. Relatedness is a clean idea and a slippery measurement, and the slipperiness is all about choosing the right comparison.
References
Grafen A 1985. A geometric view of relatedness. Oxford Surveys in Evolutionary Biology 2:28-89
Queller DC, Goodnight KF 1989. Evolution 43(2):258-275 (10.1111/j.1558-5646.1989.tb04226.x)
Hamilton WD 1964. Journal of Theoretical Biology 7(1):1-16 (10.1016/0022-5193(64)90038-4)