A Wishart matrix is the matrix of sums of squares and cross-products of a Gaussian sample. It is the basic random matrix of multivariate statistics: sample covariance matrices, likelihood-ratio tests and principal component analysis are all built on it (Muirhead 1982, ch. 3). Its eigenvalues, called latent roots, govern the spectrum of a sample covariance matrix. In random matrix theory the same object is the Laguerre orthogonal ensemble, and the exact eigenvalue law below is the starting point for smallest-eigenvalue and condition-number estimates (Edelman 1989; Edelman and Rao 2005).
Several statements already on the platform depend on this law and cannot be proved without it. Two examples are the smallest-eigenvalue bound GaussianMatrix.wishart_lambda_min_law_le (Gaussian Random Matrices series) and the large- milestones of the coherent backscattering mission, whose model uses a Laguerre ensemble of exactly this form.
Fix integers and a positive definite matrix . Let be a random matrix whose rows are independent, each distributed as the centred multivariate normal . The Wishart distribution is the law of
The matrix is symmetric, and for it is positive definite almost surely. Its latent roots are its eigenvalues, listed in decreasing order .
Two normalizations recur. The multivariate gamma function is
and Lebesgue measure on symmetric matrices is , the product of Lebesgue measures on the independent entries.
For and , the latent roots of have joint density on
and density zero elsewhere.
For real ,
the integral running over positive definite matrices. This is the normalization behind every Wishart density below.
Let be upper triangular with independent entries: with for , and for . Then for ,
The source states the converse reading: the triangular factor of has these independent entries. Because the factorization with positive diagonal is unique, the two readings are equivalent; the constructive one avoids a Cholesky factorization, which Mathlib does not provide.
For , the law has density with respect to
on positive definite , and zero elsewhere.
If a random positive definite matrix has a density with respect to that satisfies for every orthogonal , then its latent roots have density
on . Theorem 3.2.17 in the source holds for every density and integrates over the orthogonal group. For an invariant that integral equals , and this is the case the goal needs.
The goal is the classical eigenvalue law of the real Wishart matrix. With and it is the Laguerre ensemble with weight and no power of . Downstream it yields:
The milestones are reusable on their own. The density theorem converts any statement about into an integral over positive definite matrices. The invariant latent-root theorem applies to every orthogonally invariant ensemble of positive definite matrices, not just the Wishart one.
All three results have been proved in the literature for decades. None is formalized in Lean or in Mathlib. Mathlib has the multivariate normal distribution and the spectral theorem, but no change of variables to eigenvalues and eigenvectors. A complex Hermitian analogue (the GUE eigenvalue law) has been formalized on this platform inside the solution of SpikedWishart.Separated.gue_top_eigenvalue_cdf; the real symmetric case has not.
The central step is the Jacobian of the spectral decomposition , where is orthogonal and is diagonal. Lebesgue measure on symmetric matrices factors as times Lebesgue measure on the ordered eigenvalues times an invariant measure on the orthogonal group. The obvious argument differentiates the map . That requires a smooth chart of the orthogonal group and a measure on it, and the map is not injective: column signs of can be flipped, and eigenvalues can coincide. Making this precise in a measure-theoretic library is the real work. The constant is the volume of the orthogonal group under the invariant measure that arises, divided by to account for the sign ambiguity. It also has to be computed, either directly or by normalizing against a known integral.
The Wishart density itself also needs a change of variables, from the entries of to the entries of . The standard route goes through a triangular factorization of and independent chi-square variables.
Matrices. Real matrices are arrays Fin m → Fin m → ℝ, with the product σ-algebra; matrix algebra goes through Matrix.of. Rows of are elements of EuclideanSpace ℝ (Fin m), and is Mathlib's multivariateGaussian 0 Σ.
Degrees of freedom. is defined as the law of , so is a natural number. The source also allows real through the density; that extension is out of scope.
Lebesgue measure on symmetric matrices. symVolume m is the image of Lebesgue measure on the upper-triangular entries under symmetric completion. It is supported on symmetric arrays, so it is not Lebesgue measure on all entries.
Latent roots. latentRoots A lists the eigenvalues of a symmetric A in decreasing order, using Mathlib's eigenvalues₀. Its value on a non-symmetric array is ; that case has probability zero under every law in this mission.
Measurability of latent roots. The latent-root statements push measures forward along latentRoots, and a pushforward along a map that is not almost-everywhere measurable is the zero measure in Mathlib. The map is measurable (ordered eigenvalues are continuous on symmetric matrices, by Weyl's inequality), but Mathlib has no lemma about continuity or measurability of eigenvalues₀, so establishing it is part of the groundwork.
Densities. Densities are stated with withDensity. The orderings and positive definiteness appear as explicit indicators.
Chi variables. In the Bartlett construction, is the Euclidean norm of a standard Gaussian vector in (0-based index in Lean: ), which has the law; no chi-square distribution is defined separately.
Out of scope. The general Theorem 3.2.17 and Theorem 3.2.18, which integrate over Haar measure on the orthogonal group, and the hypergeometric-function form of the latent-root law for general .
Groundwork and reuse. Contributions that are welcome and reusable beyond this mission:
The β = 2 Jacobian machinery in the GUE solution mentioned above (a bordering induction over arrowhead matrices) is a template for the real case.
namespace MuirheadMST
open scoped Classical in
theorem wishart_latentRoots_density (m n : ℕ) (hmn : m ≤ n) (lam : ℝ) (hlam : 0 < lam) :
(wishart m n (lam • (1 : Matrix (Fin m) (Fin m) ℝ))).map latentRoots =
(volume : Measure (Fin m → ℝ)).withDensity fun l => ENNReal.ofReal
(if StrictAnti l ∧ ∀ i, 0 < l i then
Real.pi ^ ((m : ℝ) ^ 2 / 2) /
((2 * lam) ^ ((m : ℝ) * n / 2) * multivariateGamma m ((n : ℝ) / 2) *
multivariateGamma m ((m : ℝ) / 2)) *
Real.exp (-(∑ i, l i) / (2 * lam)) * (∏ i, l i ^ (((n : ℝ) - m - 1) / 2)) *
vandermondeProd l
else 0) := by sorry
end MuirheadMSTLet and . If , the latent roots of have joint density
on , and density elsewhere, with respect to Lebesgue measure on .
This is the eigenvalue law of the real Wishart matrix, known in random matrix theory as the Laguerre orthogonal ensemble. It underlies the exact distributions of the extreme eigenvalues and condition numbers of Gaussian matrices.
Formalization Note The latent roots are the eigenvalues of in decreasing order (latentRoots); the statement is an equality of measures on .
No open leaves. Every sub-goal is proved or awaiting decomposition.