A log-partition function connects three descriptions of an exponential family: classical distribution parameters, natural coordinates, and expected sufficient statistics. This note develops that connection for normal and GIG laws, then explains its role in GH estimation. The IG entry on exponential families provides the foundational definitions and regularity assumptions.
One potential, two derivative identities¶
For a fixed carrier and statistic , write
Work on the nonempty open interior of the finite natural-parameter domain. Under these conditions differentiation of the normalizer gives
The score is . Thus density normalization, expectation coordinates, and Fisher information come from the same potential. Minimality makes positive definite; a redundant statistic vector instead gives a singular covariance. These identities do not claim that every distribution, or every marginal of an exponential family, is itself such a family.
Classical parameters such as or express features of the model directly. Their map to natural coordinates is family-specific. Expectation coordinates express moments; their map back to the model depends on whether those moments lie in .
Likelihood and Bregman inversion¶
For independent observations, reduce the data to . Maximizing average log likelihood is then equivalent to minimizing
If an interior solution exists, its gradient equation is . For a minimal family it is the unique solution. Define the Bregman divergence
With , . This explains the term Bregman inversion. It does not guarantee existence: boundary empirical moments can place the likelihood supremum outside the finite natural-parameter domain.
Where the dual map exists, the Legendre conjugate obeys
The duality entry develops the geometric interpretation and its domain limits. For a constrained subfamily , stationarity is instead ; matching all ambient moments is usually too strong.
Multivariate normal example¶
For with precision , use and the vector/trace inner product. Then
and completing the square gives
The expectation coordinates and inverse map are
This inversion is analytical. Symmetric matrix statistics have only independent entries; off-diagonal duplicates should not be treated as independent natural coordinates when discussing minimality or Fisher rank.
GIG example¶
For the GIG density,
and
Its gradient is the log, inverse, and first moment of ; its Hessian is their covariance matrix. The inversion is a three-parameter convex problem in natural coordinates after a single reduction of the data. Evaluation of the potential and its derivatives still involves Bessel functions. Strict convexity does not imply a well-conditioned Hessian near a degenerating law.
Reparameterizing constrained coordinates can help maintain feasibility but can alter convexity. If with Jacobian , then
The extra term vanishes at a stationary point, but matters during optimization. This is one reason the gradient-descent comparison must distinguish the objective from the coordinates and numerical method.
From complete data to EM¶
For a joint exponential family , replace the empirical statistic by the posterior average
The M-step again minimizes (3), now with . For GH, the normal block can be recovered analytically and the GIG block by moment inversion. The mixture architecture describes why the complete-data and observed-data laws play different roles; the EM note supplies the actual posterior formulas.
This adaptation retains the mathematical potential and coordinate maps from the source design note. Class layouts, backend choices, and solver recipes remain in the upstream design, solver discussion, and package API.
Source and adaptation¶
Rewritten as a mathematical note from xshi19/normix, docs/design/exponential_family.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; API recipes, executable package cells, and notebook
plots are omitted. No upstream benchmark execution or formal-proof verification
is claimed for this adaptation.
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.