Why a Genetic Covariance Matrix Must Be Valid
When several traits are analysed together, their additive genetic variances and covariances are collected in a matrix. The matrix does more than summarize pairwise relationships: it must describe a coherent joint distribution of genetic effects. If its entries imply that some linear combination of those effects has negative variance, it cannot be a valid covariance matrix, even if each entry looks plausible on its own.
This tutorial develops the key validity condition, positive semidefiniteness, and shows how it constrains both variances and genetic correlations. These checks apply to the population covariance matrix and are also useful when evaluating estimates assembled or fitted from data.
For any coefficient vector \(\mathbf{a}\), the scalar \(\mathbf{a}^\mathsf{T}\mathbf{g}\) is a linear combination of genetic effects. Its variance is
A variance cannot be negative, so \(\mathbf{G}\) must be PSD. If some nonzero linear combination has exactly zero variance, the matrix is singular but can still be PSD. Thus, singularity alone does not make a covariance matrix invalid.
The Pairwise Bound on Genetic Correlation
For two traits with positive genetic variances, write their genetic covariance matrix as
Here \(\sigma_{g,1}^{2}\) and \(\sigma_{g,2}^{2}\) are the genetic variances, and \(\sigma_{g,12}\) is their genetic covariance. The genetic correlation is defined, when both variances are positive, by
The correlation is dimensionless; the covariance has the product of the two traits’ genetic-effect units. The bound on \(r_g\) follows directly from requiring \(\mathbf{G}_2\) to be PSD.
To see the condition, the diagonal entries must be nonnegative because each is a variance. The determinant of the two-trait matrix must also be nonnegative for it to be PSD. That determinant condition gives the covariance bound, and division by the positive product of genetic standard deviations gives the correlation bound.
Equality corresponds to a singular two-trait matrix: one nonzero linear combination of the effects has zero variance. In that case the genetic effects are perfectly linearly related at the covariance level. A valid correlation can therefore equal \(1\) or \(-1\); validity does not require a strict inequality.
Worked Example: Checking a Two-Trait Estimate
Suppose a hypothetical analysis estimates genetic variances of \(4\ \mathrm{unit}_1^2\) and \(9\ \mathrm{unit}_2^2\), with genetic covariance \(5\ \mathrm{unit}_1\mathrm{unit}_2\). Check the pairwise bound and calculate the genetic correlation.
The product of the variances is \(4(9)=36\), while the squared covariance is \(5^2=25\). Since \(25\leq 36\), the two-trait matrix is PSD. Its genetic correlation is
The estimate is within the required interval \([-1,1]\). It represents a positive genetic association: higher genetic effects for one trait tend to accompany higher genetic effects for the other under this model. It does not establish a causal effect of one trait on the other.
Validity for More Than Two Traits
For a multi-trait matrix, checking each genetic variance and each pairwise correlation is necessary, but it is not sufficient. All traits must be jointly compatible: every linear combination must have nonnegative variance. For a symmetric matrix, this is equivalent to having no negative eigenvalues. In three dimensions, PSD can also be checked by verifying that all principal minors are nonnegative: the three diagonal entries, the three \(2\times2\) principal determinants, and the full determinant.
A useful distinction is that the leading-principal-minor test, which checks only the top-left \(1\times1\), \(2\times2\), and full-size determinants, establishes positive definiteness when all are strictly positive. For a general PSD check, do not substitute that strict test for checking all principal minors or the eigenvalues.
Worked Example: A Valid Three-Trait Covariance Matrix
Consider this hypothetical genetic covariance matrix. The first two traits have genetic-effect units \(u_1\) and \(u_2\); the third has units \(u_3\).
The diagonal entries are positive. The leading principal minors are
and the full determinant is
All three leading principal minors are strictly positive, so Sylvester’s criterion establishes that this matrix is positive definite, and therefore PSD. The three pairwise genetic correlations are also within bounds:
The correlations are dimensionless; the covariance entries have the corresponding products of trait units. The positive-definiteness check goes beyond confirming that the three pairwise correlations are individually admissible.
Worked Example: Pairwise-Admissible Correlations That Fail Jointly
Suppose a hypothetical three-trait analysis reports variances of \(1\) for all traits and pairwise correlations \(r_{g,12}=0.9\), \(r_{g,13}=0.9\), and \(r_{g,23}=-0.9\). Each correlation lies between \(-1\) and \(1\). The assembled correlation matrix is
Its \(2\times2\) principal determinants are all \(1-0.9^2=0.19>0\), but its full determinant is
The negative determinant means the matrix is not PSD. For a direct variance check, take \(\mathbf{a}=(-9,9,1)^\mathsf{T}\). Then
This would be a negative variance, which is impossible. The three pairwise correlations cannot all describe one joint genetic covariance structure, despite each being within its individual pairwise bound.
What Invalid Estimates Can Indicate
The population genetic covariance matrix must be PSD, but estimated entries need not satisfy the constraint if estimation is performed without enforcing it. Sampling variability can push an estimated covariance beyond the pairwise bound, and separately estimated pairwise quantities can fail the joint multi-trait constraints. Such an estimate is not evidence that the underlying genetic correlation is genuinely outside \([-1,1]\); it signals that the estimates, considered together, do not form a valid covariance matrix.
Worked Example: A Noisy Covariance Estimate Outside the Bound
Suppose an unconstrained hypothetical analysis estimates genetic variances of \(1.00\) and \(1.20\), and a genetic covariance of \(1.15\). The maximum covariance magnitude allowed by these variances is
The estimated covariance \(1.15\) exceeds this bound. Equivalently, its implied correlation is
The estimated matrix is not PSD. In a finite sample, this can arise from estimation noise, especially when genetic variances or cross-trait covariance are imprecisely estimated. It can also reflect combining estimates that were not obtained under one joint covariance model. The invalid estimate should be diagnosed, not interpreted as a biological correlation greater than one.
Model constraints affect how this problem appears. A joint model may restrict its fitted covariance matrix to the PSD cone, preventing an inadmissible fitted matrix. One way to construct a PSD matrix is \(\mathbf{G}=\mathbf{L}\mathbf{L}^\mathsf{T}\). For a \(q\times k\) matrix \(\mathbf{L}\), this construction is PSD because \(\mathbf{a}^\mathsf{T}\mathbf{G}\mathbf{a}=\|\mathbf{L}^\mathsf{T}\mathbf{a}\|^2\geq0\). It is PD if and only if \(\mathbf{L}\) has full row rank; for a square \(\mathbf{L}\), this means it is nonsingular. If \(\mathbf{L}\) is rank-deficient, the result is singular PSD. When \(k<q\), it cannot have full row rank, so the resulting \(q\times q\) matrix is necessarily singular.
A constrained fit can land on the boundary, where one or more eigenvalues are zero. This may reflect a true lower-dimensional covariance structure, limited information, or the effect of the constraint; a boundary estimate is not automatically an error. Conversely, a PSD estimate is not proof that the model is correctly specified or that the data are informative. Validity is a necessary mathematical check, not a complete assessment of fit.
Practical Validation and Common Pitfalls
A useful diagnostic sequence is to check symmetry and the diagonal variances, inspect pairwise bounds, and then assess the full matrix using its eigenvalues or the appropriate principal minors. Small negative eigenvalues can arise from numerical rounding, so distinguish a tiny computational discrepancy from a materially negative eigenvalue and report the tolerance used. If an estimate is invalid, inspect how the entries were obtained, their uncertainty, and whether the fitting procedure constrained the entire matrix jointly.
Confirm the matrix is symmetric and its diagonal entries, which are genetic variances, are nonnegative.
For positive variances, verify \(\sigma_{g,ij}^2\leq\sigma_{g,i}^2\sigma_{g,j}^2\), or equivalently that each pairwise genetic correlation lies in \([-1,1]\).
Inspect all eigenvalues or use a correct PSD criterion. Pairwise-valid entries do not guarantee a valid multi-trait matrix.
Review estimation uncertainty, separate versus joint estimation, numerical precision, and whether the model imposed PSD constraints. Do not interpret an invalid matrix as a valid covariance structure.
Common mistake: “Every estimated pairwise genetic correlation is between \(-1\) and \(1\), so the multi-trait matrix must be valid.” The correction is that those bounds check only two-trait submatrices. Joint validity requires nonnegative variance for every linear combination of all traits; a full-matrix check is still necessary.
Check Your Understanding
Try these questions using the definitions and checks developed above.
- Why does the variance of every linear combination of genetic effects imply that the genetic covariance matrix is PSD?
- A two-trait estimate has genetic variances \(2\) and \(8\), and covariance \(5\). Is its covariance matrix PSD, and what is its genetic correlation?
- Why can pairwise correlations that all lie between \(-1\) and \(1\) still yield an invalid three-trait covariance matrix?
- What does it mean for a covariance matrix to be singular but PSD? Is singularity alone evidence of invalidity?
- If \(\mathbf{G}=\mathbf{L}\mathbf{L}^\mathsf{T}\) and \(\mathbf{L}\) is a \(3\times2\) matrix, can \(\mathbf{G}\) be positive definite? Explain using rank.