Tutorials › Statistical Genetics › Method-Of-Moments Estimation From Allele Sharing

Relatedness and Kinship Estimation · Tutorial 163 of 989

Method-Of-Moments Estimation From Allele Sharing

Learn how centered genotype products estimate pairwise kinship, why each marker is scaled by its allele-frequency variance, and how to interpret worked estimates.

Intermediate 9 min read

What You'll Learn

  • Define pairwise kinship using the average IBD probability across cross-person allele-copy pairs.
  • Derive the expected centered genotype product at one biallelic locus.
  • Construct a pooled method-of-moments estimator across loci.
  • Calculate estimates for hypothetical unrelated and first-degree pairs.
  • Explain why allele-frequency variance affects each marker’s contribution.
  • Recognize why finite-sample estimates can be negative or differ from pedigree expectations.

From Allele Counts to Pairwise Kinship

Two people can carry the same allele at a marker because they inherited copies from a shared ancestor or because the allele is common in the population. A pairwise kinship estimator uses the allele frequency to account for this background sharing. Its basic signal is the product of the two people’s centered allele counts: counts above the population expectation tend to occur together more often for related pairs.

Here, \(G_{il}\) is the number of copies of a specified allele carried by person \(i\) at biallelic locus \(l\), so \(G_{il}\) is 0, 1, or 2. Let \(p_l\) be that allele’s frequency in the reference population and let \(q_l=1-p_l\). The centered count is \(G_{il}-2p_l\), since the expected count under the population allele frequency is \(2p_l\). The earlier material on genotype coding and allele-frequency inputs establishes this count convention.

Definition: The pairwise kinship coefficient \(\phi_{ij}\) is the probability that one allele copy sampled at random from person \(i\) and one sampled at random from person \(j\) are identical by descent (IBD). Equivalently, it is the average IBD probability over the four possible cross-person allele-copy pairs. It is not the IBD probability for each one of those four fixed pairs.

This distinction matters for pedigrees. For full siblings with unrelated, non-inbred parents, the maternal-to-maternal and paternal-to-paternal copy pairs each have IBD probability \(1/2\); the two opposite-parent pairs have probability 0. Their average is \((1/2+1/2+0+0)/4=1/4\), so the siblings’ kinship coefficient is \(1/4\). The probability can differ across fixed copy pairs even though their average defines \(\phi_{ij}\).

Why Centered Counts Carry a Kinship Signal

Consider one locus and temporarily omit the locus subscript. Write \(A_{ia}\) for the indicator that allele copy \(a\) of person \(i\) carries the specified allele, where \(a\) is 1 or 2. Then \(G_i=A_{i1}+A_{i2}\). Each allele-copy indicator has population mean \(p\). For a particular cross-person pair of copies \(a,b\), let \(f_{ab}\) be the probability that those two copies are IBD.

Under the population model used for this moment, an IBD pair shares the same ancestral allele, which carries the specified allele with probability \(p\). If the pair is not IBD, the two copies are independent draws with allele frequency \(p\). Therefore,

$$ E[A_{ia}A_{jb}] =f_{ab}p+(1-f_{ab})p^2, \qquad \operatorname{Cov}(A_{ia},A_{jb}) =E[A_{ia}A_{jb}]-p^2 =f_{ab}p(1-p). $$

The covariance formula applies to that particular copy pair and uses its own IBD probability \(f_{ab}\). Now expand the centered genotype product. Since \(G_i-2p=(A_{i1}-p)+(A_{i2}-p)\), its product with the corresponding quantity for person \(j\) is the sum of four centered copy-pair products. Taking expectations adds their four covariances:

$$ \begin{aligned} E[(G_i-2p)(G_j-2p)] &=\sum_{a=1}^{2}\sum_{b=1}^{2} E[(A_{ia}-p)(A_{jb}-p)]\\ &=\sum_{a=1}^{2}\sum_{b=1}^{2}f_{ab}p(1-p)\\ &=4\phi_{ij}p(1-p). \end{aligned} $$

The final equality follows from the definition \(\phi_{ij}=(f_{11}+f_{12}+f_{21}+f_{22})/4\). In the full-sibling example above, the four covariances are \(p(1-p)/2\), \(0\), \(0\), and \(p(1-p)/2\). Their sum is \(p(1-p)\), which equals \(4\phi_{ij}p(1-p)\) when \(\phi_{ij}=1/4\). Thus the genotype-product identity is about the sum of the four copy-pair covariances, not a claim that each covariance equals \(\phi_{ij}p(1-p)\).

Key result: At a biallelic locus with allele frequency \(p\), under the stated population model, \(E[(G_i-2p)(G_j-2p)]=4\phi_{ij}p(1-p)\). The allele-frequency variance \(p(1-p)\) sets the expected scale of the centered genotype product.

Deriving the Pooled Method-of-Moments Estimator

At locus \(l\), the centered product is \(C_{ijl}=(G_{il}-2p_l)(G_{jl}-2p_l)\). The result just derived gives \(E[C_{ijl}]=4\phi_{ij}p_lq_l\). Method of moments equates an observed moment to its model expectation. Summing over a set of \(m\) loci gives an observed total \(\sum_l C_{ijl}\) and an expected total \(4\phi_{ij}\sum_l p_lq_l\). Solving this equation for the unknown kinship coefficient gives the pooled estimator:

$$ \widehat{\phi}_{ij} = \frac{\displaystyle\sum_{l=1}^{m} (G_{il}-2p_l)(G_{jl}-2p_l)} {\displaystyle 4\sum_{l=1}^{m}p_lq_l}. $$

This moment equation requires allele-frequency inputs with \(p_lq_l>0\) for at least some included loci, so the denominator is positive. A locus fixed for either allele has \(p_lq_l=0\) and supplies no expected centered-product signal under this model. The formula pools loci by summing their raw centered products and their corresponding frequency variances; it does not give every locus the same scale regardless of frequency.

The key assumptions for interpreting this expectation are that the allele-frequency inputs describe the population from which the relevant ancestral alleles are drawn, and that non-IBD copies are independent draws from that population at the locus. The allele is coded consistently across people, and the genotype counts represent the two allele copies at a biallelic locus. Population differences or a mismatched frequency input can change the centering and hence the expected product. The moment identity itself does not require loci to be independent. Dependence between loci does, however, affect how much information a set of markers provides; the point estimate alone does not quantify its uncertainty.

The estimator targets \(\phi_{ij}\), the kinship coefficient as defined above. A different convention sometimes reports a relationship coefficient equal to \(2\phi_{ij}\). Keep the target explicit when comparing numbers: for example, a first-degree pair has expected kinship \(1/4\), corresponding to \(2\phi_{ij}=1/2\) under that alternative scale.

Worked Example: A Hypothetical Unrelated Pair

Suppose four hypothetical, independent markers each have \(p_l=0.5\), so \(2p_l=1\) and \(4p_lq_l=1\) at every marker. The observed allele counts are:

Marker\(G_{il}\)\(G_{jl}\)\((G_{il}-1)(G_{jl}-1)\)
102-1
2001
320-1
4221

The numerator is \(-1+1-1+1=0\). The denominator is \(4(0.25+0.25+0.25+0.25)=4\). Therefore,

$$ \widehat{\phi}_{ij}=\frac{0}{4}=0. $$

The estimate is zero for this particular hypothetical data set, consistent with the population expectation for an unrelated pair. It does not establish that the pair is unrelated: it is a finite-marker estimate, and a different realization could produce a positive or negative value.

Worked Estimates for Related Pairs

For a parent and child, the kinship coefficient is \(1/4\): one of the parent’s two copies is transmitted to the child, and the average IBD probability across the four cross-person copy pairs is \(1/4\). Full siblings with unrelated, non-inbred parents also have expected kinship \(1/4\), as the copy-pair calculation above shows. These are pedigree expectations; a marker-based estimate varies with the observed genotypes.

Worked Example: A Hypothetical First-Degree Pair

Consider four hypothetical markers with \(p_l=0.5\) at each marker. Suppose the allele counts for two people are \(G_i=(0,1,1,1)\) and \(G_j=(0,1,1,1)\). Each marker has \(2p_l=1\) and contributes 1 to the denominator \(4p_lq_l\). The centered products are:

  • Marker 1: \((0-1)(0-1)=1\).
  • Markers 2, 3, and 4: \((1-1)(1-1)=0\) at each marker.

Thus the numerator is 1 and the denominator is \(4\). The resulting estimate is

$$ \widehat{\phi}_{ij}=\frac{1}{4}=0.25. $$

This hypothetical observed estimate equals the pedigree expectation of \(1/4\) for a first-degree pair. The arithmetic illustrates the estimator, not a rule that every first-degree pair must have this estimate in a finite data set.

Worked Example: Scaling Contributions at Different Allele Frequencies

Now consider two hypothetical markers with different allele frequencies. At marker 1, \(p_1=0.5\), \(G_{i1}=2\), and \(G_{j1}=2\). The centered product is \((2-1)(2-1)=1\), and \(4p_1q_1=1\). At marker 2, \(p_2=0.2\), \(G_{i2}=0\), and \(G_{j2}=1\). The centered product is \((0-0.4)(1-0.4)=(-0.4)(0.6)=-0.24\), and \(4p_2q_2=4(0.2)(0.8)=0.64\).

The pooled numerator is \(1-0.24=0.76\), and its denominator is \(1+0.64=1.64\). Therefore,

$$ \widehat{\phi}_{ij}=\frac{0.76}{1.64}=0.4634. $$

The first marker contributes a positive product and the second a negative one; their effects are combined on the scale of their respective \(4p_lq_l\) values. The result is a hypothetical estimate, not a conclusion that this pair has a particular pedigree relationship. With only two markers, observed products can depart substantially from their expectation.

What the Estimate Can and Cannot Say

For a related pair, the expected centered products are positive under the stated model, while for an unrelated pair with \(\phi_{ij}=0\), their expectation is zero. Individual products can nevertheless be negative. In the pooled estimator, positive and negative contributions can produce \(\widehat{\phi}_{ij}<0\), and sampling variation can also produce estimates above a familiar pedigree benchmark. These values are possible for an unconstrained moment estimator; they are not probabilities and need not lie between 0 and 1.

Allele frequency determines the expected scale because \(p_lq_l\) is largest at \(p_l=0.5\) and approaches zero as an allele becomes rare or nearly fixed. A centered product at a common-allele marker and the same-sized product at a rare-allele marker therefore do not have the same expected moment scale. The denominator accounts for that difference in the pooled equation. This is why substituting an arbitrary frequency, or centering at a value inconsistent with the population, can distort the estimate.

The estimate is a measure of pairwise IBD sharing under a population model; it does not show that one person’s genotype caused the other’s, and it does not by itself identify a specific pedigree. A useful first check is to confirm the target, allele coding, and frequency inputs before interpreting a numerical result.

Common mistake: “Each of the four cross-person allele-copy pairs has IBD probability \(\phi_{ij}\), so each covariance is \(\phi_{ij}p_lq_l\).” This is generally false. The four fixed-pair probabilities can differ. Use \(f_{ab}p_lq_l\) for the covariance of a particular pair, then sum all four covariances; their sum is \(4\phi_{ij}p_lq_l\). Also, do not treat a finite-sample estimate of zero as proof of unrelatedness or an estimate outside the usual pedigree range as a probability.

Check Your Understanding

Use the definitions and moment relationship in this tutorial to answer the following questions.

  1. For a full-sibling pair with cross-copy IBD probabilities \(1/2, 1/2, 0, 0\), calculate the kinship coefficient and explain why no fixed-copy probability equals that average.
  2. At one locus, \(p=0.3\) and \(\phi_{ij}=0.1\). What is the expected centered genotype product?
  3. Why can a pooled moment estimate be negative even though kinship is defined using probabilities?
  4. What is the denominator contribution \(4p_lq_l\) when \(p_l=0.5\), and when \(p_l=0.1\)?
  5. Does the pooled estimator target \(\phi_{ij}\) or \(2\phi_{ij}\) as defined here? State the expected kinship for a parent–child pair.
Clinical Biostats