Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Shrinkage with penalized likelihood

A covariance estimate can be singular or poorly conditioned when observations are few relative to dimension. Rescaling its determinant does not change its condition number, and cannot repair a singular matrix. A penalty toward a well-conditioned reference model instead changes the estimation objective. The upstream derivation credits Shi (2016), Generalized Hyperbolic Distributions and Related Topics, PhD thesis; see its bibliographic attribution.

This note derives a complete-data KL penalty and its effect on the GH EM update. Read the exponential-family core and IG duality for the coordinate maps and divergence orientation.

Penalized likelihood and the EM surrogate

Let XX be observed and YY hidden in a regular exponential family

f(x,y;θ)=h(x,y)exp{θ,t(x,y)ψ(θ)},η=ψ(θ).f(x,y;\theta)=h(x,y)\exp\{\langle\theta,t(x,y)\rangle-\psi(\theta)\}, \qquad \eta=\nabla\psi(\theta).

Choose a reference parameter θ0\theta_0 with finite expectation vector η0\eta_0. Here the word prior means a target distribution in the model, not necessarily a Bayesian prior over parameters. The joint-law divergence is

DKL(fθ0(X,Y)fθ(X,Y))=ψ(θ)ψ(θ0)η0,θθ0=Dψ(θθ0).D_{\mathrm{KL}}(f_{\theta_0}(X,Y)\Vert f_\theta(X,Y)) =\psi(\theta)-\psi(\theta_0)-\langle\eta_0,\theta-\theta_0\rangle =D_\psi(\theta\Vert\theta_0).

For independent observations x1,,xnx_1,\ldots,x_n, maximize

J(θ)=1nj=1nlogfX(xj;θ)τDψ(θθ0),τ0.J(\theta)=\frac1n\sum_{j=1}^n\log f_X(x_j;\theta) -\tau D_\psi(\theta\Vert\theta_0),\qquad \tau\geq0.

The likelihood is observed-data, while the penalty compares complete-data laws on a fixed latent coordinate. This distinction matters for GH scale nonidentifiability: an equivalent marginal representation can have a different penalty if the reference model is held fixed.

At iterate θk\theta_k, define

η^k=1njEθk[t(X,Y)X=xj],Qτ(θθk)=1njEθk[logf(xj,Y;θ)xj]τDψ(θθ0).\begin{aligned} \widehat\eta_k&=\frac1n\sum_j \mathbb E_{\theta_k}[t(X,Y)\mid X=x_j],\\ Q_\tau(\theta\mid\theta_k)&=\frac1n\sum_j \mathbb E_{\theta_k}[\log f(x_j,Y;\theta)\mid x_j] -\tau D_\psi(\theta\Vert\theta_0). \end{aligned}

The penalized EM identity is

J(θk+1)J(θk)=Qτ(θk+1θk)Qτ(θkθk)+1njDKL ⁣(fθk(Yxj)fθk+1(Yxj)).\begin{aligned} J(\theta_{k+1})-J(\theta_k) &=Q_\tau(\theta_{k+1}\mid\theta_k)-Q_\tau(\theta_k\mid\theta_k)\\ &\quad+\frac1n\sum_jD_{\mathrm{KL}}\!\left( f_{\theta_k}(Y\mid x_j)\Vert f_{\theta_{k+1}}(Y\mid x_j)\right). \end{aligned}

Consequently, an M-step that increases this surrogate increases JJ, whenever these quantities are finite. It need not increase the unpenalized likelihood or reach a global maximum.

Shrunk sufficient statistics

Discarding terms independent of the candidate θ\theta, the M-step becomes

θk+1arg maxθ{θ,η^k+τη0(1+τ)ψ(θ)}.\theta_{k+1}\in\operatorname*{arg\,max}_\theta \{\langle\theta,\widehat\eta_k+\tau\eta_0\rangle -(1+\tau)\psi(\theta)\}.

It is therefore the ordinary expectation-to-parameter problem at

η~k=η^k+τη01+τ.\widetilde\eta_k=\frac{\widehat\eta_k+\tau\eta_0}{1+\tau}.

For an attained interior maximum of a full minimal family, ψ(θk+1)=η~k\nabla\psi(\theta_{k+1})=\widetilde\eta_k. For a curved family, such as factor analysis, the same penalized-surrogate derivation holds with θ=θ(u)\theta=\theta(u), but the constrained maximizing map replaces full ambient moment matching.

Because JJ uses an average likelihood, the reference has the weight of nprior=τnn_{\mathrm{prior}}=\tau n pseudo-observations. For a fixed prior sample size as nn grows, use τ=nprior/n\tau=n_{\mathrm{prior}}/n. A fixed τ\tau retains a fixed proportion of shrinkage instead.

A coherent GH target

Use ϑ0=(μ0,γ0,Σ0,p0,a0,b0)\vartheta_0=(\mu_0,\gamma_0,\Sigma_0,p_0,a_0,b_0) for the classical reference parameters, reserving θ0\theta_0 for natural coordinates. The construction is X=μ0+γ0Y+YL0ZX=\mu_0+\gamma_0Y+\sqrt Y L_0Z, with L0L0=Σ0L_0L_0^\top=\Sigma_0, ZZ standard normal independent of YY, and YGIG(p0,a0,b0)Y\sim\operatorname{GIG}(p_0,a_0,b_0). The conditioning notation uses W=YW=Y, β=γ\beta=\gamma, and, in one dimension, σ2=Σ\sigma^2=\Sigma.

For a0,b0>0a_0,b_0>0, put M0(s)=E0[Ys]M_0(s)=\mathbb E_0[Y^s]. The GIG moments give

M0(s)=(b0a0)s/2Kp0+s(a0b0)Kp0(a0b0),l0=M0(0),u0=M0(1),v0=M0(1).M_0(s)=\left(\frac{b_0}{a_0}\right)^{s/2} \frac{K_{p_0+s}(\sqrt{a_0b_0})}{K_{p_0}(\sqrt{a_0b_0})}, \qquad l_0=M_0'(0),\quad u_0=M_0(-1),\quad v_0=M_0(1).

In the same order as the batch E-step, the reference vector has six blocks:

η0,1=l0,η0,2=u0,η0,3=v0,η0,4=μ0+γ0v0,η0,5=μ0u0+γ0,η0,6=Σ0+μ0μ0u0+γ0γ0v0+μ0γ0+γ0μ0.\begin{aligned} \eta_{0,1}&=l_0,&\eta_{0,2}&=u_0,&\eta_{0,3}&=v_0,\\ \eta_{0,4}&=\mu_0+\gamma_0v_0,\\ \eta_{0,5}&=\mu_0u_0+\gamma_0,\\ \eta_{0,6}&=\Sigma_0+\mu_0\mu_0^\top u_0+\gamma_0\gamma_0^\top v_0 +\mu_0\gamma_0^\top+\gamma_0\mu_0^\top. \end{aligned}

Apply (7) to all six blocks and then use the ordinary GH M-step. This is a convex combination of whole statistic vectors, not separate fits to the six moments. At gamma or inverse-gamma boundaries, check that every reference and posterior moment needed by the chosen model is finite.

What the covariance penalty does

The normal-block covariance is affine in the sixth block when the first five blocks are fixed. Under uniform shrinkage, those other blocks also change, moving the fitted location, skew vector, and mixing parameters. Thus uniform joint-KL shrinkage is not generally just (Σ^+τΣ0)/(1+τ)(\widehat\Sigma+\tau\Sigma_0)/(1+\tau).

To isolate the distinction, fix the first five statistics and let the sixth block be s6s_6. Suppose its normal-block update gives dispersion Σ\Sigma. A compatible target sixth block is

s6,0=s6Σ+Σ0.s_{6,0}=s_6-\Sigma+\Sigma_0.

Shrinking only this block yields

Σ~=Σ+τΣ01+τ.\widetilde\Sigma=\frac{\Sigma+\tau\Sigma_0}{1+\tau}.

If Σ\Sigma is positive semidefinite, Σ0\Sigma_0 positive definite, and τ>0\tau>0, then λmin(Σ~)τλmin(Σ0)/(1+τ)>0\lambda_{\min}(\widetilde\Sigma)\geq \tau\lambda_{\min}(\Sigma_0)/(1+\tau)>0. This is a statement about a compatible normal-block update, not a proof that arbitrary per-statistic weights correspond to one KL penalty. The latter can also violate moment feasibility.

The EM update framework derives composition with running rules and separates scalar KL shrinkage from more general blockwise regularization. Online EM discusses decreasing and forgetting schedules. Implementation choices and supported targets remain in the full upstream design.

Source and adaptation

Adapted from xshi19/normix, docs/theory/shrinkage.md, at revision 763bb3608920661a012cf089888d349fbf680aad (2026-09-13 import). Copyright (c) 2020 xshi19. Licensed under MIT. The pinned source records the original version. Notation, mathematical qualifications, and links were adapted for this site. Package interfaces, fitter recipes, and executable cells are omitted; no upstream benchmark or formal-proof verification is claimed.

MIT permission notice

MIT License

Copyright (c) 2020 xshi19

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.