NLA-lib Explorer

NLAlib.mul_variance_trace_conjTranspose_mul_mul_of_hasLaw_haarFrame

Library · theorem

The variance of a Haar compression, multiplied out: for an n \times k Haar frame \mathbf{Q}, \lvert k \rvert \le \lvert n \rvert, and real symmetric \mathbf{A}, (\lvert n \rvert - 1)\lvert n \rvert^2(\lvert n \rvert + 2)\, \operatorname{Var}\operatorname{tr}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}) = 2\lvert k \rvert(\lvert n \rvert - \lvert k \rvert)\bigl(\lvert n \rvert \|\mathbf{A}\|_{\mathsf{F}}^2 - (\operatorname{tr} \mathbf{A})^2\bigr)\,. Every dimension, including \lvert n \rvert = 1 (both sides vanish); the divided form is NLAlib.variance_trace_conjTranspose_mul_mul_of_hasLaw_haarFrame. From invariance and the fourth moment of a projected sphere vector. [Epperly2023, Uniform on the Real Sphere], there the case \lvert k \rvert = 1.

NLAlib.mul_variance_trace_conjTranspose_mul_mul_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) {A : Matrix n n ℝ} (hA : A.IsHermitian) :
  (↑(Fintype.card n) - 1) * ↑(Fintype.card n) ^ 2 * (↑(Fintype.card n) + 2) *
      Var[fun ω ↦ ((X ω)ᴴ * A * X ω).trace; μ] =
    2 * ↑(Fintype.card k) * (↑(Fintype.card n) - ↑(Fintype.card k)) *
      (↑(Fintype.card n) * frobNorm A ^ 2 - A.trace ^ 2)

Full source on GitHub

Import NLAlib.RandomMatrix.Haar.Moments.