Factor analysis for generalized hyperbolic distributions
Factor analysis replaces a full dispersion matrix by
Σ=FF⊤+D, where F∈Rd×r, r<d, and
D is a positive-definite diagonal matrix. This reduces the covariance
parameter count and gives a latent-factor representation. Related mixture
models are studied by Tortora, McNicholas, and Browne in
2013, A Mixture of Generalized Hyperbolic Factor Analyzers.
Here we derive the single-component GH factor model used in the pinned note.
with Y,Z,ε mutually independent. Z denotes standard-normal
factor noise; the scalar mixing variable Y is W in the
conditioning note. In one dimension,
γ=β and Σ=σ2. The classical parameters are
u=(μ,γ,F,D,p,a,b); θ(u) below denotes their natural-coordinate
embedding.
where LGIG is the GIG log likelihood,
using the order (logY,Y−1,Y) throughout. The fixed standard-normal
term −21tr(s10) and parameter-independent
normalizing constants are omitted from LFA.
Assume s10 is invertible and the two location/skew equations below
have a nonsingular coefficient matrix. Eliminating F from the normal
equations gives the following auxiliary quantities:
Here s7 is d×r, so q4,q5 are d-vectors.
The source transpose on s7 in these two expressions is corrected to
make the products dimensionally consistent. The parameter updates are:
Integrating (2) over z gives the ordinary GH joint law of
(X,Y) with dispersion Σ=FF⊤+D and conditional covariance
Cov(X∣Y)=YΣ.
Therefore the conditional distribution of Y given X is:
Given i.i.d. samples x1,…,xn and current parameters
uk=(μk,γk,Fk,Dk,pk,ak,bk), the E-step
computes all ten sufficient statistics. The first six are the same as the
standard EM algorithm (see (7)):
The first six blocks agree with the Batch 1 order
(logY,Y−1,Y,X,X/Y,XX⊤/Y); the source factor note puts the first
three in a different order. The remaining blocks record posterior factor
cross moments. Matrix pairings use traces, or equivalently independent
symmetric coordinates, as in the
exponential-family core.
The displayed normal-block updates solve a weighted regression with diagonal
residual dispersion. They require a nonsingular regressor moment matrix and
strictly positive updated residual variances. Zero diagonal entries put the
optimum on a boundary; blindly inverting that update is invalid. The GIG
block remains a constrained numerical maximization, so the full M-step is
not generally closed form. Under exact posteriors and an improving M-step,
the usual EM ascent argument
applies to the observed likelihood.
FF⊤+D is positive definite when D is, but factor structure alone
does not give a uniform condition-number bound. Orthogonal rotations
F↦FO, O⊤O=Ir, leave Σ unchanged; individual loading
columns are therefore not identified without further conventions. The GH
mixing-scale ambiguity also remains. Neither ambiguity establishes any new
Fisher-curvature or research-gauge formula.
This is a curved family: fitting its normal block is a constrained
maximization, not inversion of arbitrary ambient moments. Running sufficient
statistics can still be used with a suitable constrained M-step; see
online EM for curved families.
Penalized shrinkage is a separate way to regularize
estimation. The mathematical EM framework
explains how aggregation and parameter recovery fit together; package
interfaces remain in the
upstream design.
Adapted from xshi19/normix, docs/theory/factor_analysis.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.