Tutorials › High-Dimensional Genomic Data Analysis › Method-of-Moments Estimation of Genomic Relatedness

Population Structure, Ancestry and Relatedness · Tutorial 117 of 795

Method-of-Moments Estimation of Genomic Relatedness

Learn how averaging standardized cross-products estimates additive genomic relatedness, how to distinguish it from kinship, and how to assess uncertainty across loci.

Intermediate 11 min read

What You'll Learn

  • Define the standardized genotype and pairwise method-of-moments estimator.
  • Derive why the expected standardized cross-product equals additive relatedness.
  • Distinguish an additive relationship estimate from a kinship coefficient.
  • Calculate an estimate and its sampling uncertainty from hypothetical genotype data.
  • Identify how linkage and model violations affect variability and interpretation.
  • Compare the estimator with pedigree and likelihood-based approaches.

From Standardized Genotypes to Relatedness

A genomic relationship matrix summarizes how similar individuals are across a set of genetic variants. Its off-diagonal entries are averages of standardized genotype cross-products. The method-of-moments perspective gives those averages a statistical interpretation: under a specified allele-frequency and inheritance model, their expectation is a pairwise additive relationship parameter. This interpretation also makes clear what the estimate depends on, and why its precision is limited by the number and dependence of the loci used.

The earlier material on genomic relationship matrices introduced the construction. Here the focus is its moment derivation and sampling variability. The key assumptions are that genotypes are coded consistently, the allele frequencies used for standardization are appropriate for the model, and the loci provide the dependence structure accounted for in the uncertainty calculation.

Definition: At locus \(l\), let \(X_{il}\in\{0,1,2\}\) be the number of copies of a consistently coded allele carried by individual \(i\), and let \(p_l\) be that allele's reference frequency. Define the standardized genotype \(Z_{il}=(X_{il}-2p_l)/\sqrt{2p_l(1-p_l)}\), for \(0<p_l<1\). For a pair \(i,j\) observed at \(M\) loci, the method-of-moments estimate of their additive genomic relationship is \(\hat A_{ij}=M^{-1}\sum_{l=1}^{M}Z_{il}Z_{jl}\).

This is a method-of-moments estimator because it equates an observed sample moment—the average standardized cross-product—to its model expectation. It is not a count of shared alleles at every locus, nor does one pairwise estimate have to fall in a particular pedigree category. Finite samples can produce estimates below zero or above one.

Why the Cross-Product Estimates Relatedness

State the model before interpreting the average. For each locus, suppose the two genotypes have the same allele-frequency baseline \(p_l\), with \(E(X_{il})=E(X_{jl})=2p_l\) and \(\operatorname{Var}(X_{il})=\operatorname{Var}(X_{jl})=2p_l(1-p_l)\). Define \(A_{ij}\) as their additive relationship parameter under the model, so that \(\operatorname{Cov}(X_{il},X_{jl})=2p_l(1-p_l)A_{ij}\). For a non-inbred individual, the corresponding diagonal parameter is \(A_{ii}=1\); in the presence of inbreeding it is \(A_{ii}=1+F_i\), where \(F_i\) is the inbreeding coefficient. The off-diagonal parameter is twice the kinship coefficient: \(A_{ij}=2\phi_{ij}\).

The covariance assumption expresses the link between shared inheritance and correlated allele dosage. It is a model statement, not a guarantee for arbitrary samples: ancestry differences or a mismatched frequency baseline can also induce genotype covariance. Under the stated model, standardization gives the moment directly.

$$ E(Z_{il}Z_{jl}) =\frac{E[(X_{il}-2p_l)(X_{jl}-2p_l)]}{2p_l(1-p_l)} =\frac{\operatorname{Cov}(X_{il},X_{jl})}{2p_l(1-p_l)} =A_{ij}. $$

Averaging over loci preserves the expectation when the same relationship parameter applies across the analyzed loci: \(E(\hat A_{ij})=A_{ij}\). Thus the estimator is unbiased under this model, conditional on the frequencies used and the selected loci. If the target is kinship rather than additive relationship, the corresponding estimate is \(\hat\phi_{ij}=\hat A_{ij}/2\) for a distinct pair. These two scales should not be confused.

Worked Example: Calculating a Pairwise Estimate

Consider two hypothetical individuals at four loci, each with \(p_l=0.5\). For this frequency, the standardizing denominator is \(\sqrt{2(0.5)(0.5)}=\sqrt{0.5}\approx0.7071\). Suppose their standardized genotypes are \(Z_i=(1.414,1.414,1.414,0)\) and \(Z_j=(1.414,1.414,-1.414,0)\). These values are compatible with dosages 2 or 0 at loci with frequency 0.5, and dosage 1 at the fourth locus.

The four standardized cross-products are \(2.000, 2.000, -2.000,\) and \(0\). Therefore, \(\hat A_{ij}=(2+2-2+0)/4=0.500\). On the kinship scale, \(\hat\phi_{ij}=0.500/2=0.250\). This small panel illustrates the arithmetic, not a precise relationship classification: four loci provide very little information.

Sampling Variability Across Loci

An estimate varies because the observed cross-product at each locus varies around its expectation. Let \(Y_l=Z_{il}Z_{jl}\), so \(\hat A_{ij}=M^{-1}\sum_lY_l\). If loci are independent and have a common variance, then \(\operatorname{Var}(\hat A_{ij})=\operatorname{Var}(Y_l)/M\). More generally, when loci are independent but variances differ, the variance is \(M^{-2}\sum_l\operatorname{Var}(Y_l)\). Independence is an assumption about the analyzed loci, not a consequence of standardizing genotypes.

A useful approximation follows if the standardized genotype pair at each locus is jointly normal, with means zero, variances one, and correlation \(A_{ij}\). For a bivariate normal pair, the fourth-moment identity gives \(E(Z_{il}^2Z_{jl}^2)=1+2A_{ij}^2\). Subtracting the squared product mean yields \(\operatorname{Var}(Y_l)=1+A_{ij}^2\). Hence, for \(M\) independent loci,

$$ \operatorname{SE}(\hat A_{ij}) \approx \sqrt{\frac{1+A_{ij}^2}{M}}. $$

Genotypes are discrete, so joint normality is an approximation, especially at a small number of loci or at very low allele frequencies. A practical alternative is to estimate the across-locus standard deviation of the observed products and divide it by \(\sqrt{M}\), provided the loci are sufficiently independent. This empirical calculation reflects variation in the actual panel, but it does not fix bias caused by a wrong model or an unsuitable frequency baseline.

Worked Example: Approximate Standard Error and Interval

Suppose a hypothetical analysis uses \(M=1{,}000\) approximately independent loci and obtains \(\hat A_{ij}=0.25\). Using the normal-product approximation and substituting the estimate for the unknown \(A_{ij}\),

\(\widehat{\operatorname{SE}}=\sqrt{(1+0.25^2)/1{,}000}=\sqrt{1.0625/1{,}000}=\sqrt{0.0010625}\approx0.0326\).

A rough 95% normal interval is \(0.25\pm1.96(0.0326)\), or approximately \((0.186,0.314)\). Under the model and independence approximation, this procedure is designed to cover the additive relationship parameter in about 95% of repeated panels. It is not a statement that the fixed parameter has a 95% probability of lying in this particular interval. On the kinship scale, divide the estimate, standard error, and interval endpoints by two.

Dependence, Diagnostics, and Failure Modes

Linkage disequilibrium can make nearby loci dependent. In that case, the variance includes covariance terms:

$$ \operatorname{Var}(\hat A_{ij}) =\frac{1}{M^2}\left\{\sum_{l=1}^{M}\operatorname{Var}(Y_l) +2\sum_{l<k}\operatorname{Cov}(Y_l,Y_k)\right\}. $$

Positive covariance generally increases uncertainty relative to the independent-locus calculation. Standardizing each locus does not remove this dependence. A useful diagnostic is to compare uncertainty estimates under different reasonable, pre-specified LD-pruning or block-based approaches and check whether conclusions depend heavily on the chosen set of loci. The number of genotyped variants alone can overstate the amount of independent information.

Worked Example: Allowing for Correlated Locus Products

For a hypothetical panel of \(M=100\) loci, suppose each product \(Y_l\) has variance \(1.0625\), and each of the 99 adjacent pairs has covariance \(0.20\), with all other covariances zero. This is a simplified dependence pattern used to show the calculation.

The independent-locus variance would be \(100(1.0625)/100^2=0.010625\), giving \(SE=\sqrt{0.010625}\approx0.1031\). Including the adjacent-pair terms gives \(\operatorname{Var}(\hat A_{ij})=[100(1.0625)+2(99)(0.20)]/100^2=145.85/10{,}000=0.014585\). Thus \(SE=\sqrt{0.014585}\approx0.1208\). Ignoring this positive dependence would make the estimate appear more precise than it is.

Several checks help distinguish noisy estimates from a problematic analysis. Confirm that allele coding is aligned across individuals, that the same reference frequency and standardization are used for both members of a pair, and that loci with \(p_l=0\) or \(p_l=1\) are excluded because the denominator is zero. Inspect the distribution of locus-wise products: a few extreme values can dominate an average, and a very small panel can yield unstable estimates. Unexpectedly high relationships across many pairs may signal shared ancestry structure or a frequency-model mismatch rather than close pedigree relationships. Estimates outside familiar pedigree values are not, by themselves, proof of an error; the estimator measures a noisy genome-wide moment.

What the Estimate Does—and Does Not—Say

The estimator is attractive because it is simple, fast, and directly tied to an expectation. It can summarize genomic similarity for many pairs without assigning each pair to a pre-specified family category. Its interpretation is nevertheless conditional: the relationship scale depends on the allele-frequency reference, the genetic model, and the loci included. The next material on allele-frequency choices develops one important consequence of that dependence; here, the practical point is to state the baseline and avoid treating the estimate as an absolute, model-free quantity.

ApproachWhat it usesMain consideration
Standardized cross-product momentsAverage genotype products across lociSimple and computationally efficient; uncertainty depends on locus variability and dependence.
Pedigree relationshipRecorded family links and inheritance expectationsProvides an expectation from a specified pedigree; does not capture all realized genomic variation or errors in pedigree records.
Likelihood-based relatednessA probability model for observed genotypes under candidate relationship parametersCan use more of the genotype distribution, but relies on its model and can require more computation.

A moment estimate should therefore not be converted mechanically into a label such as “siblings” or “unrelated.” Different pairs can have similar estimates, and finite-genome variation, dependence, ancestry, and model assumptions affect the observed value. The standard error quantifies sampling variation only to the extent that its assumptions are credible; it does not account automatically for systematic bias.

Key takeaway: Under a shared allele-frequency baseline and the stated covariance model, the expected standardized cross-product is the additive relationship \(A_{ij}\). Averaging those products gives a method-of-moments estimate; its uncertainty depends on both the variation of locus-wise products and their dependence.

Check Your Understanding

Answer each question, then compare with the solutions below.

  1. If a pair has \(\hat A_{ij}=0.40\), what is the corresponding estimate on the kinship scale?
  2. For 400 independent loci, use the normal-product approximation at \(A_{ij}=0\) to calculate the standard error.
  3. Why can linkage disequilibrium make the independent-locus standard error too small?
  4. What does an estimate below zero imply about the method-of-moments calculation?

Solutions. (1) \(\hat\phi_{ij}=0.40/2=0.20\), because the off-diagonal additive relationship is twice kinship. (2) \(\operatorname{SE}\approx\sqrt{(1+0^2)/400}=0.0500\). (3) Correlated products contribute covariance terms to the variance of the average; if those terms are positive, omitting them understates uncertainty. (4) It is a possible finite-panel estimate and does not automatically indicate a calculation error; interpret it in light of sampling variation and model assumptions rather than truncating it without justification.

Clinical Biostats