Second moment of a diagonal entry of the inverse Wishart matrix:
ProvedGaussianMatrix.inverse_wishart_diag_sq_momentgaussianinverse-wishartmomentsrandom-matriceswishart
Let be natural numbers with , let have independent entries, and let be the corresponding (real, identity-covariance) Wishart matrix with degrees of freedom. For every index the squared diagonal entry is integrable and
Indeed , where is the -th row and the projector onto the span of the other rows, and conditionally on those rows the squared residual is ; the claim is then with . This is the diagonal term in the second-moment formulas and .
Formalization Note. Lean's matrix inverse is total ( for singular ); since is almost surely invertible this does not affect the value. The hypothesis is exactly the integrability threshold.
Preamble
import Definitions.Def_GaussianMatrix_basic open MeasureTheory ProbabilityTheory open scoped Matrix
Formal statement
namespace GaussianMatrix
theorem inverse_wishart_diag_sq_moment {r k : ℕ} (hrk : r + 4 ≤ k) (i : Fin r) :
Integrable (fun G : Fin r → Fin k → ℝ => (Matrix.of G * (Matrix.of G)ᵀ)⁻¹ i i ^ 2)
(gaussianMatrix r k) ∧
∫ G, (Matrix.of G * (Matrix.of G)ᵀ)⁻¹ i i ^ 2 ∂(gaussianMatrix r k)
= 1 / (((k : ℝ) - r - 1) * ((k : ℝ) - r - 3)) := by sorry
end GaussianMatrixSource
standard fact (second moments of the inverse Wishart matrix): for , ; see A. K. Gupta and D. K. Nagar, Matrix Variate Distributions, Chapman & Hall/CRC 2000, Thm. 3.4.3, and D. von Rosen, Moments for the inverted Wishart distribution, Scand. J. Statist. 15 (1988) 97–109; cf. R. J. Muirhead, Aspects of Multivariate Statistical Theory, Wiley 1982, Sec. 3.2 (theorem numbers from memory). This is the case .