Each diagonal entry of an inverse Wishart matrix is a reciprocal chi-square:
ProvedGaussianMatrix.inverse_wishart_diag_lawLet and let be a standard Gaussian matrix, i.e. its entries are independent random variables. Let be the associated Wishart matrix and fix a row index . Then the -th diagonal entry of has the law of the reciprocal of a chi-square variable with degrees of freedom:
Equivalently, , where is the -th row of and is the orthogonal projector onto the span of the other rows. The proof combines the Schur-complement formula for a diagonal entry of an inverse, the fact that the other rows are almost surely linearly independent, and the rotation invariance of the Gaussian row , which is independent of the other rows (Fubini over rows).
This identifies the law of each summand in ; together with bounds for reciprocal chi-square variables it yields tail bounds for the Frobenius norm of a pseudo-inverted Gaussian matrix.
Formalization Note. Laws are push-forward measures on (Measure.map). Lean's matrix inverse is total ( for singular ) and , so both maps are defined everywhere; the singular events are null. The hypothesis is needed: for the natural-number expression would equal , whereas is then singular.
import Definitions.Def_GaussianMatrix_basic open MeasureTheory ProbabilityTheory open scoped Matrix
namespace GaussianMatrix
theorem inverse_wishart_diag_law {r k : ℕ} (hrk : r ≤ k) (i : Fin r) :
Measure.map (fun G : Fin r → Fin k → ℝ => (Matrix.of G * (Matrix.of G)ᵀ)⁻¹ i i)
(gaussianMatrix r k)
= Measure.map (fun x : Fin (k - r + 1) → ℝ => (∑ j, x j ^ 2)⁻¹)
(Measure.pi fun _ : Fin (k - r + 1) => gaussianReal 0 1) := by sorry
end GaussianMatrix