Tutorials › High-Dimensional Genomic Data Analysis › Boundary Estimates and Singular Fits

Mixed-Model GWAS, Relatedness and Inflation Diagnostics · Tutorial 248 of 795

Boundary Estimates and Singular Fits

Learn to interpret zero and near-zero variance-component estimates, recognize singular covariance structures, and check whether a boundary fit reflects the data or a model-fitting problem.

Advanced 12 min read

What You'll Learn

  • Distinguish a valid boundary estimate from an invalid covariance matrix.
  • Interpret zero and near-zero genetic variance estimates in a mixed model.
  • Use likelihood profiles, eigenvalues, and optimizer diagnostics to assess a fit.
  • Recognize how weak information differs from numerical or model-specification problems.
  • Compare boundary estimates with alternative covariance structures and fitting checks.
  • Explain why ordinary standard-error summaries can mislead near a parameter boundary.

Why Boundary Estimates Need Careful Interpretation

In a mixed-model GWAS, a variance component describes the amount of phenotype variation assigned to a specified random effect. For example, a genetic random effect can model covariance between individuals through a genomic relationship matrix. Its variance component must be nonnegative. Consequently, estimation can end at zero, the edge of the parameter space, rather than at a positive value in its interior.

A zero estimate is not automatically a software failure, nor does it prove that the corresponding biological effect is absent. It can mean that the observed data provide little information for separating that component from other sources of variation. A near-zero estimate can raise the same concern, especially when it changes substantially with small modeling or numerical choices. The task is to determine whether the boundary is a plausible feature of the fit, a symptom of weak information, or evidence of a computational or model-specification problem.

Definition: A boundary estimate is an estimate at the edge of the allowed parameter space. For a variance component \(v\geq 0\), an estimate \(\hat{v}=0\) is a boundary estimate. A singular covariance estimate is a fitted random-effect covariance matrix that is rank-deficient, or numerically close to rank-deficient. A zero variance component may produce a boundary estimate without implying that the model's full covariance matrix is invalid.

Model and Parameter-Space Constraints

Consider the one-component linear mixed model for a quantitative phenotype:

$$ y=X\beta+u+\varepsilon,\qquad u\sim N(0,\sigma_g^2K),\qquad \varepsilon\sim N(0,\sigma_e^2I). $$

Here \(y\) is the phenotype vector, \(X\) is the fixed-effect design matrix, \(\beta\) is a vector of fixed effects, \(K\) is a specified positive semidefinite genomic relationship matrix, and \(I\) is the identity matrix. The random genetic effect \(u\) and residual \(\varepsilon\) are assumed independent and normally distributed as shown. The variance parameters satisfy \(\sigma_g^2\geq 0\) and \(\sigma_e^2>0\). Thus the marginal covariance of \(y\) is

$$ V=\sigma_g^2K+\sigma_e^2I. $$

These constraints matter for interpretation. A negative value for \(\sigma_g^2\) is not a permissible variance estimate. When the restricted likelihood is maximized subject to the constraints, its maximum can occur at \(\hat{\sigma}_g^2=0\). If \(K\) is positive semidefinite and \(\sigma_e^2>0\), then \(V\) remains positive definite at this boundary: \(V=\sigma_e^2I\). Therefore, in this one-component model, a zero genetic variance estimate does not by itself make the phenotype covariance unusable.

The fitting method introduced in the earlier material on REML estimation of variance components maximizes the restricted likelihood over allowed parameter values. Near a boundary, ordinary summaries designed for parameters well inside their allowed range need extra care. In particular, an estimate divided by an approximate standard error does not, on its own, diagnose whether a boundary fit is meaningful or whether an interior estimate is well determined.

Why the Optimum Can Occur at Zero

Let \(\ell(v)\) be the restricted log-likelihood after accounting for other parameters, with \(v=\sigma_g^2\geq 0\). Suppose, for the moment, that \(\ell(v)\) is differentiable at zero. An interior maximum must have zero derivative. At a maximum on the left endpoint, however, the relevant comparison is between \(\ell(0)\) and values for small positive \(v\).

$$ \hat v=0\ \text{is a local maximum if}\quad \ell(h)\leq \ell(0)\ \text{for sufficiently small }h>0. $$

If the right derivative exists, this condition implies \(\ell'(0)\leq 0\): moving a small distance into the allowed parameter space does not improve the objective. To see the sign, write the right derivative as the limit of \([\ell(h)-\ell(0)]/h\) for positive \(h\). Each numerator is nonpositive near zero, and each denominator is positive, so the limit cannot be positive. This is a boundary version of the usual first-order condition; it does not require the optimizer to have failed.

The same reasoning also explains why an unconstrained numerical estimate can be misleading. A calculation that temporarily permits \(v<0\) may locate a maximum at a negative value. That value is outside the model's parameter space. If the constrained likelihood is highest at zero, the appropriate constrained estimate is zero—not the negative estimate, and not an arbitrary small positive replacement.

Worked Example: A Genetic Variance Estimate at Zero

Suppose a hypothetical REML fit for a quantitative phenotype reports \(\hat{\sigma}_g^2=0\) and \(\hat{\sigma}_e^2=1.20\) phenotype-units squared. The fitting output gives restricted log-likelihoods of \(-118.42\) at \(\sigma_g^2=0\), \(-118.45\) at \(0.01\), and \(-118.61\) at \(0.05\). An unconstrained diagnostic calculation places its maximum at \(-0.03\).

The allowed values satisfy \(\sigma_g^2\geq 0\), so \(-0.03\) cannot be reported as a variance estimate. Among the displayed allowed values, the log-likelihood is largest at zero: \(-118.42>-118.45>-118.61\). In particular, moving from zero to \(0.01\) changes the log-likelihood by \(-118.45-(-118.42)=-0.03\), a decrease. The constrained estimate is therefore at the boundary, consistent with the profile values shown.

The fitted covariance is \(V=1.20I\), because the estimated genetic component is zero. This is a valid positive-definite covariance matrix. The result says that this fit assigns no estimated variance to the modeled genetic random effect; it does not establish that genetic effects are absent in the population. The likelihood profile and other diagnostics are needed to judge how informative the data are about small positive values.

Distinguishing Weak Information from a Fitting Problem

A boundary estimate may be statistically plausible yet weakly informed. If the restricted likelihood is nearly flat from zero through a range of small positive values, the data do not sharply distinguish those values. In contrast, a sharp maximum at zero with a clear decline as the component increases is stronger evidence that zero is the best-fitting value within the specified model. Neither pattern alone answers every scientific question, but the profile makes the numerical and inferential situation more visible than the point estimate alone.

A fitting problem is more likely when the result is unstable across starting values, the optimizer reports nonconvergence, the objective changes materially with tighter tolerances, or the estimated covariance matrix has negative eigenvalues when it should be positive semidefinite. A nearly flat profile can also make optimization difficult: many parameter values have almost the same objective, so small numerical perturbations may move the reported estimate without meaningfully changing fit.

  • Inspect the constrained profile. Evaluate the objective at zero and at small positive values. Check whether the optimizer's reported point is actually the best value found among feasible parameter values.
  • Check optimization behavior. Review convergence messages, gradient or score diagnostics where available, sensitivity to starting values, and stability under tighter tolerances.
  • Check covariance structure. Confirm that the relationship matrix and fitted covariance matrices have the required symmetry and positive-semidefinite properties, up to numerical precision.
  • Check model specification and data. Verify that phenotype and genotype records align, that covariates and observations are handled as intended, and that the covariance structure corresponds to the intended random effect.
  • Compare carefully specified fits. A simpler covariance structure may be useful as a diagnostic comparison, but changing the model changes what the variance components mean.

Worked Example: A Near-Zero Estimate with a Flat Profile

In a second hypothetical analysis, the fitted genetic variance is \(\hat{\sigma}_g^2=0.004\) phenotype-units squared. The restricted log-likelihood at this estimate is \(-90.98\); it is \(-91.02\) at zero and \(-91.04\) at \(0.020\), with variance values again in phenotype-units squared.

The log-likelihood differences from the fitted value are

$$ \ell(0)-\ell(0.004)=-91.02-(-90.98)=-0.04, \qquad \ell(0.020)-\ell(0.004)=-91.04-(-90.98)=-0.06. $$

The corresponding twice-log-likelihood differences are \(2(0.04)=0.08\) and \(2(0.06)=0.12\). These small changes show that the displayed profile is fairly flat across zero and positive values up to \(0.020\). The point estimate is positive, but the data shown do not sharply distinguish it from zero or from other small values. It would be a mistake to interpret \(0.004\) as strong evidence for a precisely measured nonzero component.

This calculation is a diagnostic comparison, not a confidence interval or a test. Near a boundary, routine large-sample reference approximations may not apply in their usual form. A formal interval or test requires a method justified for the particular model and inferential goal; the profile values alone should not be given a confidence-level interpretation.

Singular Fits with Multiple Random Effects

The term singular fit is especially useful when a model estimates a covariance matrix for several random effects. For example, suppose a model has random intercept and random slope effects with covariance matrix

$$ G= \begin{pmatrix} \tau_0^2 & \tau_{01}\\ \tau_{01} & \tau_1^2 \end{pmatrix}. $$

A valid covariance matrix must be positive semidefinite. For this two-effect case, that requires nonnegative diagonal entries and \(\tau_0^2\tau_1^2-\tau_{01}^2\geq 0\). If the determinant is zero, at least one eigenvalue is zero and the matrix is singular: the fitted random effects vary only in a lower-dimensional direction. A very small eigenvalue indicates a near-singular fit, subject to the scale of the matrix and the numerical tolerances used.

Worked Example: Checking a Random-Effect Covariance Matrix

Suppose a hypothetical model reports random-intercept variance \(0.16\), random-slope variance \(0.09\), and intercept-slope covariance \(0.12\), in the corresponding squared or product units. The estimated matrix is

$$ \hat G= \begin{pmatrix} 0.16&0.12\\ 0.12&0.09 \end{pmatrix}. $$

Its determinant is \(0.16(0.09)-(0.12)^2=0.0144-0.0144=0\), so it is singular. The implied correlation is \(0.12/(\sqrt{0.16}\sqrt{0.09})=0.12/(0.4\times0.3)=1\). The eigenvalues are \(0\) and \(0.25\), since they sum to the trace \(0.16+0.09=0.25\) and have product equal to the determinant \(0\).

Thus, the fitted covariance structure places the random effects on a single line rather than allowing independent variation in two directions. This is a feature to investigate: the data may not support estimating both directions, or the specified random-effect structure may be unnecessarily complex. It is not enough to say that the fit has failed; examine convergence, eigenvalues, and whether a simpler structure is scientifically defensible.

Choosing a Diagnostic Response

Different checks answer different questions. The following comparison helps keep a boundary estimate, a numerical warning, and a model change distinct.

ApproachWhat it helps establishMain caution
Constrained likelihood profileWhether zero or nearby feasible values fit almost as well as the reported estimateA flat profile indicates weak discrimination, not necessarily an optimizer defect
Convergence and sensitivity checksWhether the result is stable to starting values and numerical settingsConvergence alone does not establish that the model is well specified
Covariance eigenvalue checkWhether a multi-effect covariance estimate is singular or nearly singularNear-singularity depends on scale and numerical tolerance; inspect the eigenstructure in context
Simpler covariance modelWhether a less complex structure yields stable estimation and an interpretable fitIt changes the model and should be justified, not selected only to avoid an inconvenient estimate

A useful report gives the estimated component and its units, states whether it is at or near a boundary, and summarizes the checks that support the interpretation. If a multi-effect covariance is singular, identify the near-zero eigenvalue or boundary correlation rather than treating the word “singular” as a complete diagnosis.

Common Mistake and Limitations

Wrong reasoning: “The genetic variance estimate is zero, so there is no genetic variation in the population,” or “the software must have failed because the estimate is on the boundary.” Both conclusions go beyond the fit. The correction is to say that the constrained model estimated the component at zero for these data, then assess the likelihood profile, information available for the component, and numerical diagnostics. A boundary estimate can be valid while still being weakly informative.

Boundary diagnostics do not resolve every modeling concern. The conclusion depends on the assumed relationship matrix, fixed-effect specification, distributional assumptions, and covariance structure. A well-behaved optimizer cannot compensate for a misspecified model, and a singular estimate does not by itself identify which alternative model is appropriate. The estimates should be interpreted as features of the fitted model, with their assumptions made explicit.

Key takeaway: A zero variance component is an allowed constrained estimate, not automatically a failure. Use the likelihood profile to assess information near the boundary, optimization checks to assess numerical stability, and covariance eigenvalues to diagnose singular random-effect structures.

Check Your Understanding

For each problem, decide what the reported result does and does not establish.

  1. A constrained fit gives \(\hat{\sigma}_g^2=0\), while the residual variance estimate is positive. Is the phenotype covariance necessarily singular? Explain.
  2. A profile log-likelihood is \(-50.00\) at zero and \(-50.01\) at the fitted value \(0.003\). Calculate the twice-log-likelihood difference and interpret it as a diagnostic.
  3. A two-effect covariance estimate has determinant \(0\) and nonnegative diagonal entries. What does this imply about its rank and eigenvalues?
  4. An optimizer returns a negative genetic variance in an unconstrained calculation, but the model requires \(\sigma_g^2\geq0\). What estimate can be reported, and what should be checked next?

Solutions. (1) No. With \(K\) positive semidefinite and \(\sigma_e^2>0\), the fitted covariance is \(V=\sigma_e^2I\), which is positive definite. The genetic component is at its boundary, but the phenotype covariance need not be singular. (2) The difference is \(2[-50.00-(-50.01)]=2(0.01)=0.02\). The displayed log-likelihoods are nearly equal, so this profile comparison indicates little discrimination between zero and the fitted small positive value; it is not, by itself, a confidence interval or formal test. (3) The covariance matrix is singular: its rank is less than two and at least one eigenvalue is zero. With nonnegative diagonal entries and determinant zero, it is positive semidefinite if its other covariance constraints are satisfied. (4) The negative value is inadmissible. Refit or evaluate the objective under the constraint, and check the constrained profile, convergence, starting-value sensitivity, and model specification before interpreting a zero boundary estimate.

Clinical Biostats