NLA-lib Explorer

Girard–Hutchinson variance: Rademacher probe

Library · Result group

Theorem (variance_quadForm_of_hasLaw_rademacherVector). Hutchinson's variance with a Rademacher probe. \operatorname{Var}(\mathbf{x}^{\mathsf{T}}\mathbf{A}\mathbf{x}) = 2 (\|\mathbf{A}\|_{\mathsf{F}}^2 - \sum_i \mathbf{A}_{i,i}^2) for a vector \mathbf{x} of independent random signs and real symmetric \mathbf{A}; any real \mathbf{A} is NLAlib.variance_quadForm_eq_hermitianPart_of_hasLaw_rademacherVector. Optimality among independent, centred real coordinates of variance one with a common finite fourth moment is NLAlib.variance_quadForm_le_of_hasLaw_rademacherVector. [Epperly2023, Real-Valued Test Vectors].

Headline

Lean statement and details
NLAlib.variance_quadForm_of_hasLaw_rademacherVector.{u_1, u_2} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} [Fintype n] {x : Ω → n → ℝ}
  (hx : HasLaw x (rademacherVector n) μ) {A : Matrix n n ℝ} (hA : A.IsHermitian) :
  Var[fun ω ↦ quadForm A (x ω); μ] = 2 * (frobNorm A ^ 2 - ∑ i, A i i ^ 2)

Full source on GitHub

Copy link