Skip to content

Transformed Likelihoods Inherit Conjugacy

Several of the models in this library look like independent discoveries (Rayleigh, Maxwell-Boltzmann, Nakagami, Frechet, half-normal) yet they all end up with a Gamma prior and a Gamma posterior. This is not a coincidence: it follows from a general transformation result.

The result

Fink (1997), section 1.2, proves that a one-to-one transformation of the data preserves the conjugate prior family. If \(y = g(x)\) is one-to-one with Jacobian \(|g'(x)|\), then

\[ \prod_{i=1}^n p(y_i \mid \theta) \left|g'(x_i)\right| \propto \prod_{i=1}^n p(y_i \mid \theta) \]

up to factors that do not involve \(\theta\). The kernel in \(\theta\) is unchanged, so the same prior family is conjugate for the transformed data.

Two caveats from the same section: a many-to-one transformation or a reparameterization of the data yields a mixture of conjugate priors rather than a single conjugate prior, and the result is about the prior family, not about the predictive staying in a simple form.

Why the power-transform family is Gamma

Each of these densities is a power transformation of an exponential or normal kernel in disguise. With \(t_i = x_i^c\) for a known \(c\), the likelihood as a function of the rate-like parameter \(\theta\) is

\[ L(\theta) \propto \theta^{k n} \exp \left( -\theta \sum_{i=1}^n t_i \right) \]

which is exactly the Gamma likelihood kernel. The rows of the table below are all instances of this pattern, and the library's models for them differ only in the known power and the sufficient statistic.

Likelihood Transformation Sufficient statistic Model
Exponential \(t_i = x_i\) x_total exponential_gamma
Rayleigh \(t_i = x_i^2\) x2_total rayleigh_gamma
Maxwell-Boltzmann \(t_i = x_i^2\) x2_total maxwell_gamma
Nakagami (known \(m\)) \(t_i = x_i^2\) x2_total nakagami_known_shape
Weibull (known \(\beta\)) \(t_i = x_i^\beta\) x_beta_total weibull_inverse_gamma_known_shape
Frechet (known \(\alpha\)) \(t_i = x_i^{-\alpha}\) x_inverse_alpha_total frechet_known_shape

The Frechet case is the same story with the power pointing the other way: the density

\[ f(x \mid \alpha, \lambda) = \alpha \lambda^\alpha x^{-(\alpha + 1)} \exp \left( -\lambda x^{-\alpha} \right) \]

is an exponential kernel in \(\lambda\) once \(t_i = x_i^{-\alpha}\) is absorbed into the sufficient statistic, so the Gamma prior on \(\lambda\) is conjugate.

A niche case not covered

The generalized inverse Gaussian prior appears in the Wikipedia conjugate-prior table (note 7) as the conjugate mixing prior for a normal variance-mean mixture. It is a niche specialization that this library does not cover; it would only become relevant if GIG-mixed models were added.

References

  • Fink, D. (1997), "A Compendium of Conjugate Priors", section 1.2.
  • Wikipedia, Conjugate prior, continuous likelihood table, note 7.

Comments