NLAlib.variance_quadForm_eq_hermitianPart_of_hasLaw_rademacherVector
Library · theorem
Hutchinson's variance with a Rademacher probe, any real matrix: \operatorname{Var}(\mathbf{x}^{\mathsf{T}}\mathbf{A}\mathbf{x}) = 2 (\|\mathbf{H}\|_{\mathsf{F}}^2 - \sum_i \mathbf{A}_{i,i}^2) for a \mathbf{v}ector \mathbf{x} of independent random signs and any real \mathbf{A} with symmetric part \mathbf{H} = \tfrac{1}{2}(\mathbf{A} + \mathbf{A}^{\mathsf{T}}) (which has the diagonal of \mathbf{A}). [Epperly2023, Real-Valued Test Vectors].
NLAlib.variance_quadForm_eq_hermitianPart_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 ℝ) :
Var[fun ω ↦ quadForm A (x ω); μ] = 2 * (frobNorm (hermitianPart A) ^ 2 - ∑ i, A i i ^ 2)Import NLAlib.Probability.QuadraticForm.Moments.