Why Select Regularization by Held-Out Likelihood?
Covariance regularization controls a trade-off. Strong shrinkage can stabilize noisy estimates but miss real dependence; weak shrinkage or entrywise thresholding can preserve structure but also retain sampling noise. A tuning parameter should therefore be judged by how well its covariance estimate describes observations not used to construct it. Held-out Gaussian log-likelihood makes that comparison directly, provided the candidate covariance matrices are positive definite.
The procedure is simple to state: estimate several covariance matrices using a training sample, score each with an independent validation sample, and choose the candidate with the largest validation log-likelihood. The score is a data-dependent selection rule, not a guarantee that the selected matrix is closest under every loss. Its interpretation also depends on the Gaussian model used for scoring.
A common candidate set is a finite grid of estimates \(\hat\Sigma_\lambda\) indexed by a shrinkage parameter \(\lambda\), a thresholding parameter \(\tau\), or both. Each candidate must be positive definite, because the Gaussian density requires an inverse and a positive determinant. If thresholding produces a matrix that is not positive definite, use a specified positive-definite repair before scoring it; otherwise its Gaussian log-likelihood is not defined.
Deriving the Validation Criterion
Define the validation scatter matrix around the known mean by $$ S_{\mathrm{val}}=\frac{1}{m}\sum_{i=1}^m (X_i-\mu)(X_i-\mu)^\mathsf{T}. $$ For any square matrix \(A\) and vector \(z\), the scalar \(z^\mathsf{T}Az\) equals \(\operatorname{tr}(Azz^\mathsf{T})\). Applying this identity to each validation residual gives $$ \sum_{i=1}^m (X_i-\mu)^\mathsf{T}C^{-1}(X_i-\mu) =m\,\operatorname{tr}(C^{-1}S_{\mathrm{val}}). $$ Consequently, $$ \frac{1}{m}\ell_{\mathrm{val}}(C) =-\frac{1}{2}\left[p\log(2\pi)+\log\det(C) +\operatorname{tr}(C^{-1}S_{\mathrm{val}})\right]. $$ The term \(p\log(2\pi)\) is identical for every candidate. Thus maximizing held-out log-likelihood is equivalent to minimizing $$ Q_{\mathrm{val}}(C)=\log\det(C)+\operatorname{tr}(C^{-1}S_{\mathrm{val}}). $$ This matrix expression summarizes both parts of the score: the determinant term penalizes diffuse covariance estimates, while the trace term assesses how well the candidate's inverse covariance fits the validation scatter.
The equivalence follows directly from the derived score: the omitted factor \(-1/2\), the factor \(m\), and the constant involving \(p\) do not depend on the candidate, so none can change its ranking. This also means the full score can be calculated from \(S_{\mathrm{val}}\) without retaining the validation observations individually, as long as the chosen centering is the same.
Worked Example: Selecting a Variance in One Dimension
Suppose the known mean is zero, and four independent validation residuals are \(1,-1,\sqrt{2},-\sqrt{2}\). Their squared values sum to \(1+1+2+2=6\), so the validation scatter is \(S_{\mathrm{val}}=6/4=1.5\). Compare candidate variances \(C=0.5,1,2\).
In one dimension, \(Q_{\mathrm{val}}(C)=\log(C)+S_{\mathrm{val}}/C\). For \(C=0.5\), this is \(\log(0.5)+1.5/0.5=-0.6931+3=2.3069\). For \(C=1\), it is \(0+1.5=1.5\). For \(C=2\), it is \(\log(2)+1.5/2=0.6931+0.75=1.4431\).
The smallest criterion is \(1.4431\), so the variance \(2\) receives the largest held-out log-likelihood among these three candidates. This conclusion is about their relative fit to this validation sample; it does not establish that \(2\) is the population variance.
What Population Quantity Does the Score Target?
Conditional on the training data, a trained candidate \(C\) is fixed. If the validation observations are independent draws from \(N_p(\mu,\Sigma)\), then \(E[S_{\mathrm{val}}]=\Sigma\). Therefore the conditional expected criterion, apart from a candidate-independent constant, is $$ E[Q_{\mathrm{val}}(C)\mid \text{training data}] =\log\det(C)+\operatorname{tr}(C^{-1}\Sigma). $$ This expectation gives a precise population interpretation of the selection rule.
Proof. For \(X\sim N_p(\mu,\Sigma)\), the expected negative log-likelihood under covariance \(C\) is $$ E_\Sigma[-\log f_C(X)] =\frac{1}{2}\left[p\log(2\pi)+\log\det(C) +E_\Sigma\{(X-\mu)^\mathsf{T}C^{-1}(X-\mu)\}\right]. $$ The quadratic expectation equals \(\operatorname{tr}(C^{-1}\Sigma)\), by the same trace identity used for validation scatter. Subtract the expected negative log-likelihood under covariance \(\Sigma\). The result is one half of the expression in braces in the theorem.
To establish its sign, let \(A=\Sigma^{1/2}C^{-1}\Sigma^{1/2}\), which is positive definite, with eigenvalues \(a_1,\ldots,a_p>0\). Then \(\operatorname{tr}(C^{-1}\Sigma)=\sum_{j=1}^p a_j\), and \(\log\det(C)-\log\det(\Sigma)=-\log\det(A)=-\sum_{j=1}^p\log(a_j)\). The expression in braces is therefore $$ \sum_{j=1}^p \left(a_j-\log(a_j)-1\right)\geq 0, $$ since \(a-\log(a)-1\geq 0\) for \(a>0\), with equality only at \(a=1\). Equality for the sum requires every eigenvalue of \(A\) to equal one, so \(A=I\), which implies \(C=\Sigma\). Thus the expected log score is maximized uniquely at the true covariance. \(\square\)
This theorem identifies the population target of the Gaussian score, not a guarantee about a particular finite validation sample or a restricted candidate set. In practice, the candidate closest to \(\Sigma\) under this likelihood criterion may differ from the one closest under Frobenius loss or operator-norm loss.
Worked Example: Comparing Two Diagonal Candidates
Suppose the validation scatter is \(S_{\mathrm{val}}=\operatorname{diag}(2,0.5)\). Compare an isotropic candidate \(C_A=\operatorname{diag}(1.25,1.25)\), a candidate \(C_B=\operatorname{diag}(2,0.5)\), and \(C_C=\operatorname{diag}(2.5,0.5)\). All three are positive definite.
For a diagonal matrix, the log determinant is the sum of the log diagonal entries, and the trace term is the sum of the corresponding validation variances divided by the candidate variances. For \(C_A\), \(Q_{\mathrm{val}}(C_A)=2\log(1.25)+2/1.25+0.5/1.25 =0.4463+1.6+0.4=2.4463\).
For \(C_B\), \(Q_{\mathrm{val}}(C_B)=\log(2)+\log(0.5)+2/2+0.5/0.5 =0+1+1=2\). For \(C_C\), \(Q_{\mathrm{val}}(C_C)=\log(2.5)+\log(0.5)+2/2.5+0.5/0.5 =\log(1.25)+0.8+1=0.2231+1.8=2.0231\).
The selected candidate is \(C_B\), since its criterion \(2\) is the smallest. The isotropic estimate pays a larger log-determinant cost, while \(C_C\) has a larger trace contribution than \(C_B\). The comparison uses the complete criterion rather than just matching individual diagonal entries.
Comparing Shrinkage and Thresholding
For shrinkage and thresholding, the same calculation applies once each tuning value produces a positive-definite matrix. For example, one can form candidates by shrinking off-diagonal entries toward zero or by thresholding them and then applying a fixed positive-definite repair. The validation set chooses among the resulting matrices; it does not determine which regularization family is appropriate in every setting.
Worked Example: Selecting Between Shrinkage and Thresholding
Consider validation scatter \(S_{\mathrm{val}}=\begin{pmatrix}1&0.6\\0.6&1\end{pmatrix}\). Compare three positive-definite candidates with unit diagonal and common off-diagonal entry \(r\): thresholded \(C_0\) with \(r=0\), shrinkage \(C_{0.3}\) with \(r=0.3\), and a less-regularized candidate \(C_{0.8}\) with \(r=0.8\). Each candidate has eigenvalues \(1-r\) and \(1+r\), which are positive for the three stated values of \(r\).
For \(C_r=\begin{pmatrix}1&r\\r&1\end{pmatrix}\), \(\log\det(C_r)=\log(1-r^2)\) and \(C_r^{-1}=(1-r^2)^{-1}\begin{pmatrix}1&-r\\-r&1\end{pmatrix}\). Multiplication by the validation scatter gives \(\operatorname{tr}(C_r^{-1}S_{\mathrm{val}})=2(1-0.6r)/(1-r^2)\).
At \(r=0\), the criterion is \(Q_{\mathrm{val}}(C_0)=\log(1)+2=2\). At \(r=0.3\), it is \(\log(0.91)+2(0.82)/0.91=-0.0943+1.8022=1.7079\). At \(r=0.8\), it is \(\log(0.36)+2(0.52)/0.36=-1.0217+2.8889=1.8672\).
The shrinkage candidate \(C_{0.3}\) has the lowest criterion, so it is selected from this set. The fully thresholded candidate loses some validation dependence, while the candidate with a larger off-diagonal entry incurs a larger trace penalty. These values illustrate a comparison, not a universal preference for shrinkage over thresholding.
Conditions, Interpretation, and Common Pitfalls
The derivations assume that validation observations are independent of the data used to fit the candidates and follow the Gaussian model being scored. Independence ensures that, conditional on the training data, the candidate matrices are fixed while the validation observations still have the stated distribution. If the mean is unknown and estimated from the training sample, one can score validation observations using that training-only estimate. The criterion formula still holds with residuals centered at the estimate, but conditional on training, their expected scatter includes a contribution from mean-estimation error. The clean population result above uses the known common mean.
A frequent mistake is to select the parameter with the smallest validation error under one criterion and then claim it must be best under all covariance losses. The correction is to name the target: held-out Gaussian likelihood ranks candidates by \(\log\det(C)+\operatorname{tr}(C^{-1}S_{\mathrm{val}})\), whereas another loss can rank them differently. Another pitfall is to report the maximized validation score as an unbiased estimate of the selected model's future performance. Because the same validation observations were used to choose the winner, its score is subject to selection optimism. Use an independent test sample, or an appropriate resampling design, for a less selection-biased final assessment.
Check Your Understanding
Work through these questions using the definitions and criterion above.
- Why must each covariance candidate be positive definite for its Gaussian log-likelihood to be defined?
- Show how the sum of validation quadratic forms becomes \(m\,\operatorname{tr}(C^{-1}S_{\mathrm{val}})\).
- For a fixed candidate set, why can the constant \(p\log(2\pi)\) be omitted when selecting the covariance matrix?
- What population quantity does the expected Gaussian validation score target when the mean is known and the model is correct?
- Why can the largest validation score among many candidates overstate the selected candidate's performance on new data?