NLAlib.variance_girardHutchinson_sqrt_smul_of_hasLaw_haarFrame
Library · theorem
The Girard–Hutchinson estimator with orthonormal probes: with the test matrix \sqrt{\lvert n \rvert}\,\mathbf{Q} for an n \times k Haar frame \mathbf{Q}, with k nonempty, 1 \le \lvert k \rvert \le \lvert n \rvert, \lvert n \rvert \ge 2, and real symmetric \mathbf{A}, \operatorname{Var}\bigl[\mathsf{girardHutchinson}(\mathbf{A}, \sqrt{\lvert n \rvert}\,\mathbf{Q})\bigr] = \frac{2\lvert n \rvert(\lvert n \rvert - \lvert k \rvert)} {\lvert k \rvert(\lvert n \rvert - 1)(\lvert n \rvert + 2)} \Bigl(\|\mathbf{A}\|_{\mathsf{F}}^2 - \frac{(\operatorname{tr}\mathbf{A})^2}{\lvert n \rvert} \Bigr)\,. The probes are uniform on the sphere of radius \sqrt{\lvert n \rvert} but not independent; the factor (\lvert n \rvert - \lvert k \rvert)/(\lvert n \rvert - 1) against k independent sphere probes is the gain from orthogonality, and the estimate is exact at \lvert k \rvert = \lvert n \rvert. From NLAlib.variance_trace_conjTranspose_mul_mul_of_hasLaw_haarFrame. [Epperly2023, Uniform on the Real Sphere], there \lvert k \rvert = 1.
NLAlib.variance_girardHutchinson_sqrt_smul_of_hasLaw_haarFrame.{u_1, u_3, u_5} {Ω : Type u_1}
{mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} [Fintype n] {k : Type u_5} [Fintype k]
[DecidableEq k] [Nonempty k] {X : Ω → Matrix n k ℝ} (hX : HasLaw X (haarFrame n k) μ)
(hk : Fintype.card k ≤ Fintype.card n) (hn : 1 < Fintype.card n) {A : Matrix n n ℝ}
(hA : A.IsHermitian) :
Var[fun ω ↦ girardHutchinson A (√↑(Fintype.card n) • X ω); μ] =
2 * ↑(Fintype.card n) * (↑(Fintype.card n) - ↑(Fintype.card k)) /
(↑(Fintype.card k) * (↑(Fintype.card n) - 1) * (↑(Fintype.card n) + 2)) *
(frobNorm A ^ 2 - A.trace ^ 2 / ↑(Fintype.card n))Import NLAlib.Estimation.Trace.GirardHutchinson.