Tutorials › Statistical Genetics › Uncertainty In Pairwise Relatedness Estimates

Relatedness and Kinship Estimation · Tutorial 168 of 989

Uncertainty In Pairwise Relatedness Estimates

Learn how marker contributions determine uncertainty in a pairwise relatedness estimate and how to compare estimates without confusing precision with evidence of a difference.

Intermediate 11 min read

What You'll Learn

  • Express a pairwise estimate as an average of locus-specific contributions
  • Derive the sampling variance of a standardized allele-copy contribution
  • Explain how marker count and allele frequency affect a standard error
  • Construct and interpret an approximate confidence interval for relatedness
  • Compare two estimates using the uncertainty of their difference
  • Identify when independence assumptions make a comparison unreliable

Why a Relatedness Estimate Has Uncertainty

A pairwise relatedness estimate is calculated from observed genetic markers, not from every possible genetic realization of the pair. If a different set of markers or allele copies had been observed, the estimate could differ. Its uncertainty therefore depends on how variable the marker-level contributions are and on how much independent information those markers provide.

A useful starting point is to treat an estimate as an average of contributions across markers. When contributions are independent and have a common variance, averaging more markers reduces sampling variance. When allele frequencies differ across markers, their contributions need not have the same variance: a marker with an allele frequency near zero or one can carry less stable information for a frequency-standardized calculation.

The exact variance depends on the estimator and its assumptions. The derivation below uses a simple allele-copy model to make the frequency dependence explicit. It is an illustration of the sampling-variance calculation, not a claim that every software estimator has this exact variance. In practice, uncertainty calculations should match the estimator, its inputs, and the marker-sampling assumptions.

Definition: Let \(Y_l\) be the contribution from marker \(l\) to a pairwise estimate, and let \(\theta\) be the target quantity that each contribution estimates on average. For \(M\) markers, an equally weighted estimate is \(\hat{\theta}=M^{-1}\sum_{l=1}^{M}Y_l\). Its sampling variance describes how much \(\hat{\theta}\) would vary over repeated samples under the stated model, and its standard error is the square root of that variance.

A Frequency-Sensitive Allele-Copy Contribution

Consider one allele copy from each of two individuals at a marker. Let \(A\) and \(B\) equal 1 when the allele copy carries the allele of interest and 0 otherwise. Suppose both copies have allele frequency \(p\), with \(0<p<1\). Define their standardized product as

$$ Y=\frac{(A-p)(B-p)}{p(1-p)}. $$

In this model, the target \(\theta\) is the correlation between the two allele-copy indicators:

$$ E(A)=E(B)=p,\qquad \operatorname{Corr}(A,B)=\theta. $$

Thus \(E[(A-p)(B-p)]=\theta p(1-p)\), so \(E(Y)=\theta\). The standardized product is centered and scaled so that its expectation targets the same \(\theta\) at each marker, even when marker frequencies differ.

The variance of \(Y\) depends on both \(p\) and \(\theta\). The following short derivation makes that dependence explicit. Write \(a=p(1-p)\). For a Bernoulli variable, \((A-p)^2=a+(1-2p)(A-p)\), and the same identity holds for \(B\). Taking expectations of the product of these squared terms gives

$$ E[(A-p)^2(B-p)^2] =a^2+(1-2p)^2E[(A-p)(B-p)] =a^2+(1-2p)^2\theta a. $$

Dividing by \(a^2\) gives \(E(Y^2)=1+\theta(1-2p)^2/[p(1-p)]\). Since \(E(Y)=\theta\), subtracting the squared mean yields

$$ \operatorname{Var}(Y) =1+\frac{\theta(1-2p)^2}{p(1-p)}-\theta^2. $$

This result is for the stated allele-copy model. It shows that, for a nonzero positive \(\theta\), the per-marker variance can become large when \(p\) is close to 0 or 1. At \(p=0.5\), the frequency-dependent term is zero. When \(\theta=0\), the variance in this model is 1 for every \(p\). These details matter: it is not correct to say that allele frequency always changes variance in the same way for every target or every estimator.

Combining Contributions Across Markers

Suppose the markers are independent under the sampling model, each contribution has expectation \(\theta\), and marker frequencies \(p_l\) are treated as known. For an equally weighted estimate, the variance of the average is the sum of the contribution variances divided by \(M^2\). The standard error is the square root:

$$ \operatorname{Var}(\hat{\theta}) =\frac{1}{M^2}\sum_{l=1}^{M}\operatorname{Var}(Y_l), \qquad SE(\hat{\theta})= \sqrt{\frac{1}{M^2}\sum_{l=1}^{M}\operatorname{Var}(Y_l)}. $$

If all markers have the same variance \(v\), this simplifies to \(\operatorname{Var}(\hat{\theta})=v/M\) and \(SE(\hat{\theta})=\sqrt{v/M}\). Thus, under independence and equal per-marker information, multiplying the marker count by four halves the standard error. This square-root relationship is not a guarantee that any particular collection of four times as many markers will have four times the information: the marker contributions must also satisfy the assumed independence and variance conditions.

Worked Example: More Markers and a Smaller Standard Error

Suppose a hypothetical pair has target \(\theta=0.25\), and all markers have \(p=0.5\). Assume the standardized allele-copy model above, known allele frequencies, independent markers, and equal weighting. Compare the standard errors from 100 and 400 markers.

At \(p=0.5\), \((1-2p)^2=0\). The per-marker variance is therefore

$$ v=1+\frac{0.25(0)^2}{0.5(0.5)}-(0.25)^2 =1-0.0625=0.9375. $$

For \(M=100\), the estimated variance and standard error are

$$ \operatorname{Var}(\hat{\theta})=\frac{0.9375}{100}=0.009375, \qquad SE(\hat{\theta})=\sqrt{0.009375}=0.09682. $$

For \(M=400\), the corresponding calculations are

$$ \operatorname{Var}(\hat{\theta})=\frac{0.9375}{400}=0.002344, \qquad SE(\hat{\theta})=\sqrt{0.002344}=0.04841. $$

The marker count is multiplied by four, and the standard error is divided by two, as predicted. This comparison relies on the stated assumptions; it does not establish that any real data set with 400 markers has this standard error.

Worked Example: Different Allele Frequencies, Different Contributions to Uncertainty

Now suppose a hypothetical estimate averages 100 independent markers: 50 have \(p=0.5\), and 50 have \(p=0.1\). Let \(\theta=0.25\) at all markers. Assume the same allele-copy model and known frequencies. Calculate the standard error and compare it with the 100-marker estimate in the previous example.

For the 50 markers with \(p=0.5\), the variance is \(0.9375\), as calculated above. For \(p=0.1\), \(p(1-p)=0.09\) and \((1-2p)^2=0.64\), so

$$ v_{0.1} =1+\frac{0.25(0.64)}{0.09}-0.0625 =2.7153. $$

The total variance of the average is the sum of the 50 variances of each type, divided by \(100^2\):

$$ \operatorname{Var}(\hat{\theta}) =\frac{50(0.9375)+50(2.7153)}{100^2} =\frac{182.64}{10000} =0.01826. $$

Therefore \(SE(\hat{\theta})=\sqrt{0.01826}=0.1351\). This is larger than \(0.09682\), the standard error for 100 markers all at \(p=0.5\). Under this model and positive \(\theta\), the markers at \(p=0.1\) have higher per-marker variance, so their contributions make the average less precise. This example does not say that all low-frequency markers are uninformative; it demonstrates how frequency affects this particular standardized contribution under its stated assumptions.

Confidence Intervals and Their Interpretation

When the estimate is approximately normally distributed around \(\theta\), an approximate 95% confidence interval is \(\hat{\theta}\pm1.96SE(\hat{\theta})\). This approximation is more plausible when many independent contributions are averaged and no small number of contributions dominates the total variance. It can be poor for a small marker count, strongly skewed contributions, or estimates constrained to a limited range.

The interval procedure has a repeated-sampling interpretation: if the assumptions hold and the same method is used across repeated samples, approximately 95% of intervals constructed this way cover the fixed target \(\theta\). It is not a statement that there is a 95% probability that the fixed target lies in this particular interval.

Worked Example: An Approximate Interval for a Pairwise Estimate

Suppose a hypothetical analysis gives \(\hat{\theta}=0.24\) with \(SE(\hat{\theta})=0.08\). Assume the standard error reflects the relevant sampling variation, and that a normal approximation is reasonable. The approximate 95% interval is

$$ 0.24\pm1.96(0.08) =0.24\pm0.1568 =(0.0832,\ 0.3968). $$

The interval is approximately 0.0832 to 0.397 on the scale of \(\theta\). Under the model and repeated-sampling interpretation, the method has about 95% coverage. The interval expresses uncertainty about this pair’s target relatedness; it does not assign a probability to the target being inside the observed interval. Nor does an interval alone identify a pedigree relationship: that interpretation requires the estimator’s scale, assumptions, and relevant benchmarks.

Comparing Two Estimates

To compare two pairwise estimates, focus on their difference and its standard error. Let \(\hat{\theta}_1\) and \(\hat{\theta}_2\) estimate targets \(\theta_1\) and \(\theta_2\). The variance of their difference is

$$ \operatorname{Var}(\hat{\theta}_1-\hat{\theta}_2) =\operatorname{Var}(\hat{\theta}_1)+\operatorname{Var}(\hat{\theta}_2) -2\operatorname{Cov}(\hat{\theta}_1,\hat{\theta}_2). $$

If the estimates are independent, the covariance is zero, so the standard error of the difference is the square root of the sum of their variances. If they are dependent, that shortcut is not justified. For example, two pairs that share an individual may have correlated estimates; a comparison then needs a covariance estimate or a method that accounts for their dependence.

Worked Example: Comparing Two Independent Pairwise Estimates

Suppose two hypothetical, independent pairs have estimates \(0.24\) and \(0.08\), with standard errors \(0.08\) and \(0.06\), respectively. Assume their estimates are independent and approximately normal. Estimate the difference \(\theta_1-\theta_2\), calculate its standard error, and form an approximate 95% interval.

The estimated difference is \(0.24-0.08=0.16\). Independence gives

$$ SE(\hat{\theta}_1-\hat{\theta}_2) =\sqrt{0.08^2+0.06^2} =\sqrt{0.0064+0.0036} =\sqrt{0.0100} =0.10. $$

The approximate 95% interval for the difference is

$$ 0.16\pm1.96(0.10) =0.16\pm0.196 =(-0.036,\ 0.356). $$

The interval includes zero. Under the assumptions used for this calculation, the observed difference does not provide strong evidence at the two-sided 5% level that the two target quantities differ. It does not show that the targets are equal: the interval also includes differences that are positive and potentially substantial. The interpretation is about a difference in the relatedness-estimate scale, not about a causal effect.

Assumptions and Common Pitfalls

A standard error is only as useful as the model behind it. In the variance derivation and examples, the allele frequency is treated as known, contributions have the stated expectation, and markers are independent. The resulting uncertainty does not automatically include error from estimating allele frequencies, missing genotypes, genotype calling, or violations of the model. Those sources require additional methods or assumptions.

The independent-marker calculation also cannot be used unchanged when marker contributions are correlated. In general, the variance of an average includes covariance terms:

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

A calculation that omits nonzero covariance may understate or overstate uncertainty, depending on its sign and size. Likewise, when comparing two estimates, overlapping confidence intervals are not themselves a direct test of the difference; the relevant calculation uses the uncertainty of the difference, including covariance when necessary.

  • Mistake: assuming more markers always reduce uncertainty by exactly \(1/\sqrt{M}\). That rate follows for independent contributions with comparable variance. Unequal variances or correlated contributions change the calculation.
  • Mistake: treating allele frequency as irrelevant after standardization. Standardization can equalize the expected contribution, but it does not ensure equal variances. The derived formula shows frequency dependence for positive \(\theta\).
  • Mistake: comparing two point estimates without their uncertainty. A larger estimate is not automatically meaningfully different. Calculate the standard error of the difference and interpret an interval or test in context.
  • Mistake: treating a confidence interval as a probability statement about a fixed target. The 95% describes the long-run coverage of the procedure under its assumptions.
Key takeaway: Pairwise-estimate precision depends on both the number of informative independent marker contributions and their variance. For comparing estimates, quantify uncertainty in their difference, and account for dependence whenever the estimates are not independent.

Check Your Understanding

Use the assumptions stated in the tutorial when a question does not provide additional information.

  1. If independent markers have a common contribution variance, what happens to the standard error when the marker count is multiplied by four?
  2. For the standardized allele-copy contribution, what feature of the variance formula makes allele frequency relevant when \(\theta\) is positive?
  3. Why can an estimate based on many markers still have a larger standard error than another estimate based on the same number of markers?
  4. Two pairwise estimates share an individual. Why may the standard error of their difference not equal the square root of the sum of their variances?
  5. State the repeated-sampling interpretation of an approximate 95% confidence interval.
Clinical Biostats