The inverse-Wishart density and measure #
The inverse-Wishart law TauCeti.Probability.inverseWishartMeasure n S is the image of the Wishart
law of the
inverted scale, TauCeti.Probability.nonsingularWishartMeasure n S⁻¹, under matrix inversion.
Inversion is
totalized to zero on singular matrices, which is harmless: the source law lives on the
positive-definite cone, where inversion is a bijection.
Reading the density off the source law is the change of variables
TauCeti.map_symmetricInv_symmetricLebesgue, whose Jacobian weight (det B) ^ (-(p + 1)) combines
with the Wishart exponent (n - p - 1) / 2 at the inverted determinant to give the exponent
-((n + p + 1) / 2), while the scale determinant moves from the denominator of the Wishart
constant to the numerator.
Since the source law is zero outside the classical parameter range — a scale that is not positive
definite, or a degree at most p - 1 — so is the inverse-Wishart law, and positive definiteness of
S and of S⁻¹ are equivalent, so the two families are invalid on exactly the same parameters.
Main definitions #
TauCeti.Probability.inverseWishartPDFRealandTauCeti.Probability.inverseWishartPDF— the inverse-Wishart density, real- andℝ≥0∞-valued.TauCeti.Probability.inverseWishartMeasure— the inverse-Wishart law.
Main results #
TauCeti.Probability.inverseWishartMeasure_of_posDef— at a valid degree and scale the law is the density againstTauCeti.symmetricLebesgue, whileTauCeti.Probability.inverseWishartMeasure_of_not_posDefandTauCeti.Probability.inverseWishartMeasure_of_ledescribe the two invalid branches.TauCeti.Probability.isProbabilityMeasure_inverseWishartMeasure— at those parameters the law has total mass one.TauCeti.Probability.hasPDF_of_hasLaw_inverseWishartMeasureandTauCeti.Probability.rnDeriv_inverseWishartMeasure— an inverse-Wishart random matrix has a density againstTauCeti.symmetricLebesgue, and at those parameters the law's Radon–Nikodym derivative isTauCeti.Probability.inverseWishartPDF.TauCeti.Probability.ae_posDef_inverseWishartMeasure— the sampled matrix is positive definite almost everywhere.TauCeti.Probability.map_symmetricCongruence_inverseWishartMeasure— congruence by an invertible matrix carries the law of scaleSto the law of scaleC * S * Cᵀ.TauCeti.Probability.inverseWishartMeasure_zero— in dimension zero the law is the Dirac mass at the unique symmetric matrix, hence a probability measure.
References #
- R. J. Muirhead, Aspects of Multivariate Statistical Theory, Wiley, 1982, chapters 2 and 3.
The density #
The inverse-Wishart density of degree n and scale S, as a real-valued function of a
symmetric matrix: on the positive-definite cone it is
(det S) ^ (n / 2) * (det B) ^ (-((n + p + 1) / 2)) * exp (-trace (S * B⁻¹) / 2) divided by the
constant 2 ^ (n p / 2) * Γ_p(n / 2), and it vanishes off the cone.
Instances For
At a valid degree and scale the inverse-Wishart density is positive exactly on the positive-definite cone.
The ℝ≥0∞-valued inverse-Wishart density is ENNReal.ofReal of the real-valued one.
At a valid degree and scale the ℝ≥0∞-valued inverse-Wishart density is positive exactly on
the positive-definite cone.
The real-valued inverse-Wishart density is measurable jointly in its degree, its scale matrix and the point.
The ℝ≥0∞-valued inverse-Wishart density is measurable in the point.
The ℝ≥0∞-valued inverse-Wishart density is measurable jointly in its degree, its scale
matrix and the point.
The measure #
The inverse-Wishart law of real degree n and positive-definite scale S: the image of
the Wishart law of the inverted scale under matrix inversion. Mathlib's totalized inverse, which
is zero on singular matrices, is kept; the source law is carried by the positive-definite cone, on
which inversion is a bijection. Outside the classical parameter range the source law, and hence
this one, is zero.
Instances For
At a scale that is not positive definite the inverse-Wishart law is zero: the inverted scale is then not positive definite either, so the source Wishart law already vanishes.
The density theorem #
The inverse-Wishart law is a probability measure at exactly the parameters where a density
defines it: a positive-definite scale and a degree above p - 1.
The density of an inverse-Wishart random matrix #
A random symmetric matrix with an inverse-Wishart law has a density against
TauCeti.symmetricLebesgue, at every degree and scale: outside the classical parameter range the
law is zero, which trivially has one.
The density against TauCeti.symmetricLebesgue of a random symmetric matrix with an
inverse-Wishart law is TauCeti.Probability.inverseWishartPDF.
The Radon–Nikodym derivative of the inverse-Wishart law against
TauCeti.symmetricLebesgue is the inverse-Wishart density.
Congruence #
Congruence carries the inverse-Wishart law of scale S to the one of scale C * S * Cᵀ.
On the Wishart side the same change of scale is the congruence by the inverse transpose of C,
and inverting exchanges the two congruences.