Tutorials › Statistical Genetics › Pedigree-Based Covariance for Several Relatives

Pedigrees and Genetic Relatedness · Tutorial 77 of 989

Pedigree-Based Covariance for Several Relatives

Calculate kinship across a small pedigree, assemble the additive genetic covariance matrix, and interpret its diagonal and off-diagonal entries.

Beginner 9 min read

What You'll Learn

  • Apply pedigree recursion to calculate kinship for pairs in a small family
  • Distinguish kinship coefficients from additive genetic relationships
  • Assemble a symmetric relationship matrix in a stated individual order
  • Scale that matrix to obtain additive genetic covariances
  • Interpret diagonal and off-diagonal entries, including their units
  • Use the covariance matrix to calculate the variance of a weighted genetic value

From Pairwise Kinship to a Family-Wide Covariance Matrix

A pedigree can tell us how genetically related two people are, but analyses often need to account for several relatives at once. The natural summary is a matrix: each row and column represents one individual, and each entry records the additive genetic covariance for that pair. Constructing it carefully requires keeping track of two linked quantities: the kinship coefficient and the additive relationship.

This tutorial works through a small hypothetical family. All four founders are assumed to be unrelated to one another and noninbred, and there are no pedigree links outside the family shown. These assumptions make the arithmetic transparent; when founders are related or descendants are inbred, the same matrix principles apply, but the relevant kinship and diagonal values change.

Definition: The kinship coefficient \(\phi_{ij}\) for individuals \(i\) and \(j\) is the probability that one allele sampled at random from each individual at the same autosomal locus is identical by descent. The additive relationship between them is \(A_{ij}=2\phi_{ij}\). Under the standard pedigree model, the additive genetic covariance is \(\operatorname{Cov}(G_i,G_j)=2\phi_{ij}\sigma_A^2=A_{ij}\sigma_A^2\), where \(G_i\) is individual \(i\)'s additive genetic value and \(\sigma_A^2\) is the reference additive genetic variance.

For an individual \(i\), let \(F_i\) denote the inbreeding coefficient, which is the probability that the individual's two alleles at a locus are identical by descent. The kinship of an individual with themself is \(\phi_{ii}=(1+F_i)/2\). Thus the diagonal relationship is \(A_{ii}=1+F_i\), and the diagonal additive genetic covariance is \((1+F_i)\sigma_A^2\). An outbred individual has \(F_i=0\), so their diagonal relationship is 1.

A Small Pedigree and the Recursion

Let P and Q be unrelated founders who have two children, A and B. A has a child, C, with founder R; B has a child, D, with founder S. P, Q, R, and S are mutually unrelated and noninbred. A and B are full siblings; C and D are first cousins. Every individual in the pedigree is outbred.

For a nonfounder \(i\) with parents \(s_i\) and \(d_i\), kinship with a different individual \(j\) can be calculated by averaging the kinships of the two parents with \(j\): \(\phi_{ij}=\{\phi_{s_i j}+\phi_{d_i j}\}/2\). The parents transmit one allele each, so a randomly sampled allele from \(i\) comes from either parent with probability one-half. This recursion is applied in pedigree order, beginning with founders and previously calculated relatives.

The founders' unrelatedness gives \(\phi_{PQ}=\phi_{PR}=\phi_{PS}=\phi_{QR}=\phi_{QS}=\phi_{RS}=0\), and each founder has self-kinship \(1/2\). Because A and B share parents P and Q, their kinship is \(1/4\). They are noninbred, so \(\phi_{AA}=\phi_{BB}=1/2\).

Worked Example: Kinship Between the First Cousins

Calculate \(\phi_{CD}\), the kinship coefficient for cousins C and D. C's parents are A and R; D's parents are B and S.

First calculate the kinship between A and D using D's parents:

$$ \phi_{AD}=\frac{\phi_{AB}+\phi_{AS}}{2} =\frac{\frac{1}{4}+0}{2} =\frac{1}{8}. $$

The first term is \(1/4\) because A and B are full siblings. The second is zero because A and founder S are unrelated. Since R is also unrelated to D, \(\phi_{RD}=0\). Apply the recursion to C and D:

$$ \phi_{CD}=\frac{\phi_{AD}+\phi_{RD}}{2} =\frac{\frac{1}{8}+0}{2} =\frac{1}{16}=0.0625. $$

Therefore, the probability that one randomly sampled allele from C and one from D are identical by descent is \(0.0625\) at a locus under this pedigree model. Their additive relationship is twice that value, \(A_{CD}=1/8=0.125\).

Assembling the Relationship Matrix

Choose and state an individual order before filling a matrix. Here the order is A, B, C, D, used for both rows and columns. Each diagonal entry is \(1+F_i=1\), because all four individuals are noninbred. Each off-diagonal entry is twice the corresponding kinship coefficient. For example, \(A_{AC}=2\phi_{AC}\), and \(A_{CD}=2\phi_{CD}\).

Worked Example: Filling the Matrix for Four Relatives

Calculate the remaining pairwise values and assemble the additive relationship matrix. A is the parent of C, and B is the parent of D, so \(\phi_{AC}=\phi_{BD}=1/4\). For example:

$$ \phi_{AC}=\frac{\phi_{AA}+\phi_{AR}}{2} =\frac{\frac{1}{2}+0}{2} =\frac{1}{4}. $$

For A and D, the recursion gives \(\phi_{AD}=(\phi_{AB}+\phi_{AS})/2=1/8\). By the same reasoning, \(\phi_{BC}=1/8\). The full-sibling pair has \(\phi_{AB}=1/4\), and the cousin pair has \(\phi_{CD}=1/16\), as calculated above. Doubling each kinship value and placing the same value in the corresponding transposed entry gives:

$$ \mathbf{A}= \begin{pmatrix} 1 & \frac{1}{2} & \frac{1}{2} & \frac{1}{4}\\ \frac{1}{2} & 1 & \frac{1}{4} & \frac{1}{2}\\ \frac{1}{2} & \frac{1}{4} & 1 & \frac{1}{8}\\ \frac{1}{4} & \frac{1}{2} & \frac{1}{8} & 1 \end{pmatrix}. $$

For instance, the entry in row C and column D is \(1/8\), while the entry in row D and column C is also \(1/8\). The matrix is symmetric because covariance is symmetric. Its diagonal entries are 1 because the individuals are not inbred; the off-diagonal entries encode their pairwise additive relationships. The matrix order matters: if the individuals are reordered, the rows and columns must be reordered together.

Scaling to Obtain Additive Genetic Covariance

The relationship matrix is dimensionless. To obtain additive genetic covariances in the units of genetic value squared, multiply every entry by the reference variance \(\sigma_A^2\). This relies on the standard additive pedigree model: alleles are transmitted according to Mendelian inheritance, the pedigree correctly captures the relevant identity by descent, and the covariance attributed to relatedness is the additive genetic covariance. The formula does not, by itself, include shared environmental effects or other sources of covariance.

In matrix notation, if \(\mathbf{G}=(G_A,G_B,G_C,G_D)^\mathsf{T}\), then:

$$ \operatorname{Cov}(\mathbf{G})=\sigma_A^2\mathbf{A}. $$

In particular, \(\operatorname{Var}(G_i)=(1+F_i)\sigma_A^2\). For two different individuals, \(\operatorname{Cov}(G_i,G_j)=2\phi_{ij}\sigma_A^2\). A positive covariance indicates that the additive genetic values tend to vary in the same direction under this model; it does not imply that one individual's genes cause the other's outcome.

Worked Example: Converting a Kinship Value to Covariance

Suppose the reference additive genetic variance is \(\sigma_A^2=12\) genetic-value-units squared. Calculate the additive genetic covariance between cousins C and D.

Their kinship is \(\phi_{CD}=1/16\), so their additive relationship is \(2\phi_{CD}=1/8\). Therefore:

$$ \operatorname{Cov}(G_C,G_D) =2\phi_{CD}\sigma_A^2 =\frac{1}{8}\times 12 =1.5 $$

The covariance is \(1.5\) genetic-value-units squared. Each cousin has variance \(12\) genetic-value-units squared because each is noninbred. The covariance matrix for A, B, C, and D is \(12\mathbf{A}\); for example, its C,D and D,C entries are both \(1.5\).

Using the Matrix for a Combined Genetic Value

A matrix is useful because it supports calculations involving more than one relative. For a vector of weights \(\mathbf{w}\), the variance of the weighted sum \(\mathbf{w}^\mathsf{T}\mathbf{G}\) is \(\mathbf{w}^\mathsf{T}\operatorname{Cov}(\mathbf{G})\mathbf{w}\). The weights might represent an average, a difference, or another specified combination of genetic values. This formula uses both diagonal variances and off-diagonal covariances; ignoring the latter generally gives the wrong variance for related individuals.

Worked Example: Variance of the Cousins' Average

Using \(\sigma_A^2=12\), calculate the variance of the average genetic value \((G_C+G_D)/2\). Each cousin has variance 12, and their covariance is 1.5.

For any two random variables, the variance of a sum includes twice their covariance. Thus:

$$ \operatorname{Var}\left(\frac{G_C+G_D}{2}\right) =\frac{1}{4}\left\{\operatorname{Var}(G_C)+\operatorname{Var}(G_D) +2\operatorname{Cov}(G_C,G_D)\right\} $$

Substituting the values:

$$ \operatorname{Var}\left(\frac{G_C+G_D}{2}\right) =\frac{1}{4}\{12+12+2(1.5)\} =\frac{27}{4} =6.75. $$

The variance of the cousins' average genetic value is \(6.75\) genetic-value-units squared. If their covariance had been omitted, the calculation would instead give \(24/4=6\), understating the variance because the cousins' genetic values are positively covarying.

Why the Covariance Matrix Matters

Many statistical models for related individuals use a covariance matrix to represent dependence due to shared ancestry. A separate pairwise calculation can be enough for one comparison, but a matrix gives a consistent account of all selected individuals at once. It also makes it possible to calculate uncertainty for weighted combinations and to specify the genetic component of a model without treating relatives as genetically independent.

The matrix entries describe additive genetic covariance, not necessarily the total covariance of measured traits. If relatives also share an environment, their observed traits may covary for that reason as well. That additional source must be represented separately in a model; it should not be silently added to the pedigree-based genetic covariance.

Key takeaway: Calculate the kinship coefficients for the chosen individuals, double them to obtain off-diagonal additive relationships, and use \(1+F_i\) for each diagonal. Multiply the relationship matrix by \(\sigma_A^2\) to obtain additive genetic covariances, keeping the individual order fixed across rows and columns.

Common Mistakes

  • Using kinship as if it were the additive relationship. The cousin kinship here is \(1/16\), but their additive relationship is \(2\phi_{CD}=1/8\). The covariance formula uses the doubled value.
  • Putting the kinship coefficient directly on the diagonal. A noninbred individual's self-kinship is \(1/2\); their diagonal additive relationship is \(2\phi_{ii}=1\), not \(1/2\).
  • Changing row order without changing column order. Every row and column must refer to the same declared individual order, or the entries will describe the wrong pairs.
  • Ignoring covariance when combining relatives. The variance of a sum includes twice the pairwise covariance. Treating related individuals as independent drops that term.
  • Calling the genetic covariance the total trait covariance. Pedigree-based additive covariance does not automatically include shared environment or other causes of dependence.

Check Your Understanding

Use the family and assumptions stated above to answer these questions.

  1. What is the additive relationship between full siblings A and B, and what is their additive genetic covariance if \(\sigma_A^2=12\)?
  2. Why is the diagonal relationship for C equal to 1 in this pedigree?
  3. What does the C,D entry of the covariance matrix represent, and what are its units when \(\sigma_A^2=12\)?
  4. If the individuals are reordered from A, B, C, D to C, D, A, B, what must be done to the rows and columns?
  5. Why would a variance calculation for an average of relatives be incomplete if it used only the diagonal entries?
Clinical Biostats