The inverse of a Wishart matrix appears wherever a covariance matrix is estimated and then inverted: precision matrices, regression coefficients, Hotelling's , and portfolio weights built from a sample covariance (Muirhead 1982, §3.2.3; Bodnar, Mazur and Okhrin). The basic exact fact about such inverses is that projecting onto directions and inverting again returns a Wishart matrix with fewer degrees of freedom. The same fact gives the law of , the chi-square law of , and the exact distributions behind the expected error of randomized low-rank approximation (Halko, Martinsson and Tropp 2011, Appendix A).
This mission is the second in a series on Muirhead's book. It uses the definitions of the first mission, Aspects of Multivariate Statistical Theory I: Latent Roots of a Wishart Matrix.
Fix integers and a positive definite matrix . Let be a random matrix whose rows are independent vectors. The Wishart distribution is the law of
For the matrix is positive definite almost surely, so exists almost surely.
A matrix of size is partitioned as
with of size (the first rows and columns) and of size . Its Schur complement is , and is defined from in the same way.
If with , and is a matrix of rank , then
If and is a matrix of rank , then
If with , partitioned as above, then
and is independent of . Theorem 3.2.10 also describes the joint law of and ; the milestone covers the law of and its independence, which is the part the goal needs.
The goal is the exact distribution of every inverse projection of a Wishart matrix, for any covariance and any full-rank projection. Special cases include:
On this platform, the , case is already proved as GaussianMatrix.inverse_wishart_diag_law; the goal generalizes it to every and every . It is also the input to the asymptotic-independence milestones of the coherent backscattering mission, whose amplitudes reduce to inverse-Wishart projections.
All three results are classical and proved in the source. None is formalized in Lean or Mathlib, which has the multivariate normal distribution but no Wishart distribution and no Schur-complement distribution theory.
The congruence theorem follows from the data-matrix definition once one shows that the rows of are independent . That is a statement about linear images of Gaussian vectors, routine on paper and not yet in the library in this form.
The partitioned theorem is the core. The obvious approach regresses the first columns of on the last columns. Conditionally on the last columns, the residual is Gaussian in an -dimensional complement, and is its Gram matrix. Making "conditionally on" precise needs either disintegration of the Gaussian law or an explicit orthogonal change of coordinates that depends measurably on the last columns. Both are fiddly, and the degrees of freedom come from the dimension of that complement.
The goal then needs a reduction: extend to an invertible matrix and identify as a Schur complement of a transformed Wishart matrix. Along the way one must control the almost-sure invertibility of and of the blocks.
Shared definitions. Matrices, the Wishart law and come from the first mission's definitions file MuirheadMST_Wishart. Real matrices are arrays Fin m → Fin m → ℝ; the Wishart law is the law of , so degrees of freedom are natural numbers.
Blocks. A second definitions file provides block11, block12, block21, block22 and the Schur complement schur11 for matrices of size k + l, the first indices forming the top-left block.
Inverses. Matrix inverses are Mathlib's ⁻¹, which returns for a singular matrix. The statements rely on the inverse only where it exists almost surely (, positive definite, of full row rank).
Independence. The partitioned theorem states independence as an equality of laws: the joint law of and is the product of the two marginals.
Trivializations ruled out. The rank hypothesis on and positive definiteness of exclude the degenerate cases in which Mathlib's conventions would make both sides point masses.
Groundwork and reuse. Contributions that are welcome and reusable beyond this mission:
The platform's GaussianMatrix results (residual_law, regression_residual_indep, schur_diag_inv, block_law) cover special cases and are a template.
namespace MuirheadMST
theorem wishart_inv_projection (m n k : ℕ) (hmn : m ≤ n) (S : Matrix (Fin m) (Fin m) ℝ)
(hS : S.PosDef) (C : Matrix (Fin k) (Fin m) ℝ) (hC : C.rank = k) :
(wishart m n S).map (fun A => Matrix.of.symm ((C * (Matrix.of A)⁻¹ * C.transpose)⁻¹)) =
wishart k (n - m + k) (C * S⁻¹ * C.transpose)⁻¹ := by sorry
end MuirheadMSTLet with and positive definite, and let be a matrix of rank . Then
Inverting a Wishart matrix, projecting onto directions and inverting again gives a Wishart matrix with fewer degrees of freedom. Special cases include the law for and the chi-square law of (Muirhead, Theorem 3.2.12).
Formalization Note Matrix inverses are Mathlib's ⁻¹ (zero for a singular matrix); for the matrices inverted are invertible almost surely.
No open leaves. Every sub-goal is proved or awaiting decomposition.