Tutorials › Statistical Genetics › KING-Robust Kinship Estimation

Relatedness and Kinship Estimation · Tutorial 166 of 989

KING-Robust Kinship Estimation

Derive the KING-robust estimator and apply it to hypothetical genotype counts when population allele frequencies are uncertain.

Intermediate 10 min read

What You'll Learn

  • Define the genotype-count terms used by the KING-robust estimator
  • Derive how its counts reflect sharing zero, one, or two alleles IBD
  • Calculate a pairwise estimate without supplying population allele frequencies
  • Interpret estimates in relation to pedigree kinship benchmarks
  • Identify assumptions, limitations, and a common counting error

Why Use a Frequency-Robust Estimator?

Pairwise kinship is a measure of how likely alleles sampled from two individuals at the same locus are identical by descent (IBD), meaning they descend from the same ancestral allele. Earlier material on identity by state (IBS) and IBD distinguishes shared alleles by sequence from alleles shared through ancestry. Many genomic estimators use allele frequencies to distinguish these ideas. In a cohort with uncertain or heterogeneous ancestry, however, choosing a suitable frequency reference can be difficult.

The KING-robust estimator instead uses observed genotype patterns within each pair. In particular, it combines the count of loci where both people are heterozygous with the count where they have opposite homozygotes, and scales that contrast by their total heterozygote count. Its advantage is that it does not require an external allele-frequency estimate. “Robust” does not mean assumption-free or immune to every effect of population structure; it describes the estimator’s reduced dependence on shared frequency inputs.

Definition and Genotype Counts

Consider a pair of individuals genotyped at the same set of biallelic markers. At each marker, code genotypes by the number of copies of one designated allele: 0, 1, or 2. A genotype coded 1 is heterozygous; genotypes 0 and 2 are the two homozygotes. The choice of which allele is coded 1 or 2 does not change whether a genotype is heterozygous or whether two genotypes are opposite homozygotes.

Definition: Across the markers included for a pair, let \(N_{\mathrm{HetHet}}\) be the number at which both individuals are heterozygous; \(N_{\mathrm{IBS0}}\) the number at which one is homozygous for one allele and the other is homozygous for the alternative allele; and \(N_{\mathrm{Het},i}\) and \(N_{\mathrm{Het},j}\) the numbers of heterozygous genotypes for individuals \(i\) and \(j\), respectively. The KING-robust pairwise kinship estimate is $$ \widehat{\phi}_{ij}^{\,\mathrm{KING}} = \frac{N_{\mathrm{HetHet}} - 2N_{\mathrm{IBS0}}} {N_{\mathrm{Het},i}+N_{\mathrm{Het},j}}. $$

The numerator is a contrast: opposite homozygotes subtract twice as much as jointly heterozygous genotypes add. The denominator puts that contrast on a scale determined by how often the pair’s genotypes are heterozygous. This form uses genotype counts, not a separately estimated allele frequency \(p\).

Why the Allele-Sharing Contrast Estimates Kinship

The basis for the estimator can be seen at one biallelic locus. Let the allele frequencies in the population supplying the alleles be \(p\) and \(q=1-p\). For this justification, assume random mating in that population, and that when a pair shares no allele IBD at the locus, their allele draws are independent. Let \(k_0\), \(k_1\), and \(k_2\) be the probabilities that the pair shares zero, one, or two alleles IBD at the locus, so \(k_0+k_1+k_2=1\). The kinship coefficient is $$ \phi_{ij}=\frac{k_1}{4}+\frac{k_2}{2}. $$ This definition counts the probability that one allele sampled from each person is IBD: one shared allele contributes probability \(1/4\), while two shared alleles contribute probability \(1/2\).

Conditional on sharing zero alleles IBD, the two genotypes are independent. Each is heterozygous with probability \(2pq\), so the probability both are heterozygous is \(4p^2q^2\). The probability of opposite homozygotes is \(p^2q^2+q^2p^2=2p^2q^2\). Conditional on sharing one allele IBD, the shared allele is the same for both people. If that allele has frequency \(p\), each person must independently inherit the other allele, of frequency \(q\), to be heterozygous; the probability is \(q^2\). If the shared allele has frequency \(q\), the corresponding probability is \(p^2\). Averaging over the shared allele gives \(pq^2+qp^2=pq\). Opposite homozygotes are impossible in this state because the pair has a shared allele. Conditional on sharing two alleles IBD, their genotypes match, so both are heterozygous with probability \(2pq\), and opposite homozygotes are again impossible.

Derivation: Combining the three IBD states gives $$ P(\mathrm{HetHet})=4k_0p^2q^2+k_1pq+2k_2pq, \qquad P(\mathrm{IBS0})=2k_0p^2q^2. $$ Therefore, $$ P(\mathrm{HetHet})-2P(\mathrm{IBS0}) =k_1pq+2k_2pq =4pq\left(\frac{k_1}{4}+\frac{k_2}{2}\right) =4pq\phi_{ij}. $$ Each person’s marginal probability of being heterozygous is \(2pq\), so the expected sum of their heterozygote indicators is \(4pq\). Thus the expected numerator is \(4pq\phi_{ij}\), and the expected denominator is \(4pq\). Their ratio is \(\phi_{ij}\) when \(0<p,q<1\).

This argument explains the frequency cancellation: both parts of the ratio carry the same factor \(4pq\). It also shows why the jointly heterozygous probability in the one-allele-IBD state is \(pq\), not \(p^2+q^2\). For instance, when \(p=q=1/2\), the probability that both are heterozygous in that state is \(1/4\).

The derivation is a ratio-of-expectations justification, not a claim that the expectation of every finite-sample ratio equals the true kinship exactly. Across loci with differing frequencies, the expected numerator and denominator both accumulate contributions proportional to \(4p_\ell q_\ell\); when kinship is consistent across the included loci, this common weighting supports the same target ratio. A finite marker set produces a noisy estimate.

Worked Applications

Worked Example: Calculating Kinship From Pairwise Counts

Suppose a hypothetical pair has genotypes at 1,000 markers. The counts are \(N_{\mathrm{HetHet}}=240\), \(N_{\mathrm{IBS0}}=20\), \(N_{\mathrm{Het},i}=400\), and \(N_{\mathrm{Het},j}=360\). Calculate the KING-robust estimate.

Substitute the counts into the estimator: $$ \widehat{\phi}_{ij}^{\,\mathrm{KING}} =\frac{240-2(20)}{400+360} =\frac{200}{760} =0.2632. $$ The hypothetical pair’s estimated kinship is 0.2632. This is near the familiar pedigree benchmark of 0.25 for a parent–offspring or full-sibling pair, but the estimate alone does not establish which relationship applies. Sampling variation, data quality, and other features of the pair can affect the result.

Worked Example: A Smaller Estimate With More Opposite Homozygotes

For a second hypothetical pair, suppose \(N_{\mathrm{HetHet}}=90\), \(N_{\mathrm{IBS0}}=20\), \(N_{\mathrm{Het},i}=190\), and \(N_{\mathrm{Het},j}=210\) across the markers used. The numerator subtracts twice the opposite-homozygote count: $$ \widehat{\phi}_{ij}^{\,\mathrm{KING}} =\frac{90-2(20)}{190+210} =\frac{50}{400} =0.1250. $$ The estimated kinship is 0.1250, the usual pedigree benchmark for a second-degree relationship. It is a screening estimate, not a unique identification of a pedigree relationship: different relationship paths can have the same expected kinship.

Worked Example: No External Allele Frequency Is Needed

Imagine that population allele frequencies are uncertain for a hypothetical pair, but genotype-count summaries are available at 200 markers: \(N_{\mathrm{HetHet}}=44\), \(N_{\mathrm{IBS0}}=6\), \(N_{\mathrm{Het},i}=80\), and \(N_{\mathrm{Het},j}=84\). No value of \(p\) is required: $$ \widehat{\phi}_{ij}^{\,\mathrm{KING}} =\frac{44-2(6)}{80+84} =\frac{32}{164} =0.1951. $$ The estimate is 0.1951. It falls between the common 0.25 and 0.125 pedigree benchmarks, so it should not be assigned to one relationship category from this calculation alone. Its practical value here is that it can be computed from the pair’s genotype patterns without first selecting a reference panel to supply allele frequencies.

Assumptions, Interpretation, and Use

The derivation relies on a biallelic genotype at each locus, appropriate genotype calls, and the stated random-mating and allele-draw model for its frequency-based justification. The practical estimator also assumes that the markers used provide informative, comparable observations for the two people. If a locus is nearly monomorphic, it contributes little expected heterozygosity, and therefore little information to this contrast. If the total heterozygote count in the denominator is zero, the estimator is undefined; a denominator close to zero makes the estimate unstable.

KING-robust is useful when population allele frequencies are uncertain, because users do not need to plug in a single set of estimated frequencies for the cohort. However, the label should not be read as “unaffected by ancestry.” Population structure can change genotype-pattern distributions, and a pair’s ancestry composition and marker set can still influence observed counts. The estimator is not a substitute for checking data quality or interpreting pairwise estimates in the study’s population context.

For a relationship screen, the estimate is typically compared with expected kinship levels, not treated as a definitive pedigree label. A value near a familiar benchmark can prioritize a pair for review, while additional evidence is needed to resolve the relationship. An estimated value can also be negative: the numerator may be negative when twice the IBS0 count exceeds the jointly heterozygous count. This does not represent a negative probability of IBD; it is a finite-sample estimate that can arise from the contrast.

Common Mistakes

  • Using \(p^2+q^2\) for both-heterozygous probability when one allele is shared IBD. Conditional on a shared allele of frequency \(p\), both nonshared alleles must be the other allele, giving probability \(q^2\). Averaging over the shared allele gives \(pq^2+qp^2=pq\), not \(p^2+q^2\).
  • Subtracting IBS0 only once. The estimator’s numerator is \(N_{\mathrm{HetHet}}-2N_{\mathrm{IBS0}}\). Omitting the factor of 2 changes the estimator and its calibration.
  • Calling an estimate a relationship diagnosis. A value near a pedigree benchmark is consistent with that expected level of kinship, but it does not uniquely identify a pedigree.
  • Interpreting “robust” as “immune to population structure.” The estimator avoids requiring external frequency inputs, but context and data quality still matter.
Key takeaway: KING-robust estimates pairwise kinship from the contrast between jointly heterozygous and opposite-homozygote counts, scaled by the pair’s heterozygote counts. Its allele-sharing derivation explains why the frequency factor cancels, while its assumptions and finite-sample uncertainty still require careful interpretation.

Check Your Understanding

Answer these questions using the definitions and derivation above.

  1. A pair has \(N_{\mathrm{HetHet}}=75\), \(N_{\mathrm{IBS0}}=10\), and heterozygote counts 150 and 170. Calculate its KING-robust estimate.
  2. Conditional on sharing one allele IBD, explain why the probability that both individuals are heterozygous is \(pq\).
  3. Why does the derivation give zero probability of opposite homozygotes when the pair shares one allele IBD?
  4. What does a KING-robust estimate near 0.25 suggest, and why is that not enough to identify a particular pedigree relationship?
  5. What does the term “robust” mean here, and name one limitation it does not remove.
Clinical Biostats