GeneSuite
Documentation / Understand the methods

2. Prediction and uncertainty at supplied covariances

Advanced notes: contents · Abbreviations

1 Equivalent prediction systems

The covariance and mixed-equation representations describe the same known-covariance prediction problem (Henderson, 1975; Robinson, 1991).

Set

\[ B=(X^\top V^{-1}X)^{-1},\qquad P=V^{-1}-V^{-1}XB X^\top V^{-1}. \]

The known-covariance best linear unbiased estimator (BLUE) for fixed effects and best linear unbiased predictor (BLUP) for random effects are

\[ \hat\beta=BX^\top V^{-1}y,\qquad \hat u=KZ^\top Py. \]

Equivalently, solve \(C\hat x=b\), where

\[ C=\begin{bmatrix} X^\top R^{-1}X&X^\top R^{-1}Z\\ Z^\top R^{-1}X&Z^\top R^{-1}Z+K^{-1} \end{bmatrix},\quad b=\begin{bmatrix}X^\top R^{-1}y\\Z^\top R^{-1}y\end{bmatrix}. \]

Eliminating \(u\) connects the mixed-model equations to the marginal equations through the Woodbury identity:

\[ V^{-1}=R^{-1}-R^{-1}Z (K^{-1}+Z^\top R^{-1}Z)^{-1}Z^\top R^{-1}. \]

This is an algebraic equivalence, not a recommendation to form the matrices densely. Efficient implementations apply covariance/precision operators, exploit sparse structure and reuse factors across right-hand sides.

BLUP unbiasedness is unconditional over the random effects and residuals. It is not conditional unbiasedness for each realized breeding value. Under Gaussianity, known covariances and a flat prior for identifiable fixed effects, the mixed-model solution also equals the joint posterior mean and mode. Integrating over uncertain covariances generally changes that conclusion.

2 Prediction targets, PEV and uncertainty accounting

The distinctions between prediction error and coefficient uncertainty are central to BLUP (Robinson, 1991). Additional error from estimating covariance parameters is treated by Kackar and Harville (1984).

For a genetic contrast \(t=l^\top u\),

\[ \mathrm{PEV}(t)=l^\top(K-KZ^\top PZK)l. \]

For a target combining fixed and random coefficients, \(t=l_\beta^\top\beta+l_u^\top u\), set \(l=(l_\beta^\top,l_u^\top)^\top\). Under the known-covariance assumptions,

\[ E[(\hat t-t)^2]=l^\top C^{-1}l. \]

The mixed fixed/random blocks matter. Adding a fixed-effect variance to an animal PEV without their cross-covariance is generally incorrect. A new phenotypic observation may add residual variance and new random effects; if its residual is correlated with training records, the full joint covariance must be used rather than simply adding a scalar residual variance.

For a random contrast with nonzero prior variance \(l_u^\top K l_u\), its known-covariance reliability can be written \(1-\mathrm{PEV}(t)/(l_u^\top K l_u)\). Inbreeding changes animal-specific prior variances. Reliability of a contrast is not the average reliability of its constituent animals.

Exact selected solves, selected inverse calculations and stochastic uncertainty estimators are computational choices for a specified uncertainty target. They have different work and approximation properties. A stochastic preconditioner diagonal is not a stochastic PEV estimate; uncertainty controls must retain their own qualification limits. See prediction-error documentation.

3 Unknown and unobserved targets

For an unobserved random target \(u_*\), let \(K_{*u}=\operatorname{Cov}(u_*,u)\) and \(K_{**}=\operatorname{Var}(u_*)\). With the same fixed-effect treatment as above,

\[ \hat u_*=K_{*u}Z^\top Py,\qquad \operatorname{Var}(u_*-\hat u_*)=K_{**}-K_{*u}Z^\top PZK_{u*}. \]

An animal without a phenotype can therefore receive a prediction through relationships. For an independent new environmental level with no connecting information, its random-effect prediction is zero and its prior uncertainty remains. A future phenotype with a nonzero fixed-effect design row requires the joint fixed/random target calculation, including cross terms.

4 Contrasts and connectedness

For two breeding values, \(\mathrm{PEV}(a_i-a_j)=\mathrm{PEV}(a_i)+ \mathrm{PEV}(a_j)-2\mathrm{PEC}_{ij}\), where PEC denotes prediction-error covariance. Two animals can each have modest marginal reliability while their within-family contrast is relatively precise, or appear individually precise while a poorly connected between-group contrast remains uncertain.

Report the uncertainty of the actual selection or comparison target. Rankings and differences between populations cannot be assessed from a list of marginal PEVs alone. Simultaneous ranking uncertainty is also a different question from one-animal marginal intervals.

5 Prediction after covariance estimation

The two-stage uncertainty problem is studied by Kackar and Harville (1984); fully Bayesian integration is a different inferential construction (Sorensen and Gianola, 2002).

Substituting \(\hat\theta\) into the BLUP and PEV formulas produces empirical predictions and conditional plug-in uncertainty. It does not propagate all uncertainty in \(\hat\theta\). Parametric bootstrap and full Bayesian analysis can address broader uncertainty under their respective assumptions, but they have different targets, computational costs and calibration requirements.

A Gaussian conditional interval for a breeding value is not automatically a frequentist confidence interval with exact coverage after model selection, variance estimation or selection of the animals being reported.

5.1 Prediction when the representation is learned

Let \(\psi\) collect measurement, feature or loading parameters and let \(\theta\) collect covariance parameters, with \(\mathcal D\) denoting all analysis data. In a fully specified Bayesian joint model, the law of total variance gives

\[ \operatorname{Var}(t\mid\mathcal D) =E_{\theta,\psi\mid\mathcal D} [\operatorname{Var}(t\mid\mathcal D,\theta,\psi)] +\operatorname{Var}_{\theta,\psi\mid\mathcal D} [E(t\mid\mathcal D,\theta,\psi)]. \]

A plug-in calculation conditions on one learned representation and generally omits the second term. This posterior identity is not an automatic frequentist PEV correction; calibration under an empirical fitting procedure needs its own assessment (Kackar and Harville, 1984; Sorensen and Gianola, 2002).

For annotation-informed prediction, uncertainty concerns learned marker shrinkage as well as covariance parameters. For phenomics it may also concern calibration, trajectories and latent scores. Specify whether the target is a transmissible genetic value or a future phenotype conditional on candidate measurements. The model progressions in functional information and phenomics make those choices explicit.

NoteImplementation in gsuite

Fixed-covariance prediction is available through the standalone solve task and development R model interfaces. Selected pedigree PEV and reliability use retained direct factors; standalone selected contrasts and packed genetic uncertainty have their own exact/stochastic controls. Availability is target- and route-specific. These outputs condition on supplied or fitted covariances; they do not implement the full learned-representation uncertainty decomposition developed above.

Next: variance-component estimation.

6 References

Henderson, C. R. (1975). Best Linear Unbiased Estimation and Prediction under a Selection Model. Biometrics, 31(2), 423–447. https://doi.org/10.2307/2529430.
Kackar, R. N., and Harville, D. A. (1984). Approximations for Standard Errors of Estimators of Fixed and Random Effects in Mixed Linear Models. Journal of the American Statistical Association, 79(388), 853–862. https://doi.org/10.1080/01621459.1984.10477102.
Robinson, G. K. (1991). That BLUP is a Good Thing: The Estimation of Random Effects. Statistical Science, 6(1), 15–32. https://doi.org/10.1214/ss/1177011926.
Sorensen, D., and Gianola, D. (2002). Likelihood, Bayesian, and MCMC Methods in Quantitative Genetics. Springer New York. https://doi.org/10.1007/b98952.