Second moment of an off-diagonal entry of the inverse Wishart matrix: ,
ProvedGaussianMatrix.inverse_wishart_offdiag_sq_momentgaussianinverse-wishartmomentsrandom-matriceswishart
Let , let have independent entries and . For distinct indices the squared entry is integrable and
Writing for the matrix of the rows other than , for the regression coefficients of on those rows and for the squared residual, one has (with the position of row in ). Conditionally on , and are independent, and , so the claim follows from and . This is the term in .
Formalization Note. Lean's matrix inverse returns on singular input; is a.s. invertible. Integrability is part of the conclusion.
Preamble
import Definitions.Def_GaussianMatrix_basic open MeasureTheory ProbabilityTheory open scoped Matrix
Formal statement
namespace GaussianMatrix
theorem inverse_wishart_offdiag_sq_moment {r k : ℕ} (hrk : r + 4 ≤ k) (i j : Fin r) (hij : i ≠ j) :
Integrable (fun G : Fin r → Fin k → ℝ => (Matrix.of G * (Matrix.of G)ᵀ)⁻¹ i j ^ 2)
(gaussianMatrix r k) ∧
∫ G, (Matrix.of G * (Matrix.of G)ᵀ)⁻¹ i j ^ 2 ∂(gaussianMatrix r k)
= 1 / (((k : ℝ) - r) * ((k : ℝ) - r - 1) * ((k : ℝ) - r - 3)) := by sorry
end GaussianMatrixSource
standard fact (second moments of the inverse Wishart matrix): for , ; A. K. Gupta and D. K. Nagar, Matrix Variate Distributions, Chapman & Hall/CRC 2000, Thm. 3.4.3; D. von Rosen, 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 .