NLAlib.variance_trace_conjTranspose_mul_mul_eq_hermitianPart_of_hasLaw_haarFrame
Library · theorem
The variance of a Haar compression of any real matrix: for an n \times k Haar frame \mathbf{Q}, \lvert k \rvert \le \lvert n \rvert, \lvert n \rvert \ge 2, and any real \mathbf{A} with symmetric part \mathbf{H} = \tfrac{1}{2}(\mathbf{A} + \mathbf{A}^{\mathsf{T}}), \operatorname{Var}\operatorname{tr}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}) = \frac{2\lvert k \rvert(\lvert n \rvert - \lvert k \rvert)} {(\lvert n \rvert - 1)\lvert n \rvert(\lvert n \rvert + 2)} \Bigl(\|\mathbf{H}\|_{\mathsf{F}}^2 - \frac{(\operatorname{tr} \mathbf{A})^2}{\lvert n \rvert} \Bigr)\,: the trace of a compression sees only \mathbf{H} (NLAlib.trace_conjTranspose_mul_hermitianPart_mul), and NLAlib.variance_trace_conjTranspose_mul_mul_of_hasLaw_haarFrame applies to it. [Epperly2023, Real-Valued Test Vectors], there \lvert k \rvert = 1.
NLAlib.variance_trace_conjTranspose_mul_mul_eq_hermitianPart_of_hasLaw_haarFrame.{u_1, u_2, u_3}
{Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {k : Type u_3} [Fintype n]
[Fintype k] {X : Ω → Matrix n k ℝ} [DecidableEq k] (hX : HasLaw X (haarFrame n k) μ)
(hk : Fintype.card k ≤ Fintype.card n) (hn : 1 < Fintype.card n) (A : Matrix n n ℝ) :
Var[fun ω ↦ ((X ω)ᴴ * A * X ω).trace; μ] =
2 * ↑(Fintype.card k) * (↑(Fintype.card n) - ↑(Fintype.card k)) /
((↑(Fintype.card n) - 1) * ↑(Fintype.card n) * (↑(Fintype.card n) + 2)) *
(frobNorm (hermitianPart A) ^ 2 - A.trace ^ 2 / ↑(Fintype.card n))Import NLAlib.RandomMatrix.Haar.Moments.