Theorem (IsIsotropic.integral_quadForm). Hutchinson's identity: for an isotropic probe \mathbf{x}, the quadratic form \mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x} is an unbiased estimator of \operatorname{tr}\mathbf{A}: \mathbb{E}[\mathbf{x}^{\mathsf{H}}\mathbf{A}\mathbf{x}] = \operatorname{tr}\mathbf{A}. [Epperly2023, Unbiasedness]; there for the averaged Girard–Hutchinson estimator, here one probe.
Headline
Lean statement and details
NLAlib.IsIsotropic.integral_quadForm.{u_1, u_2, u_3} {Ω : Type u_1} {mΩ : MeasurableSpace Ω}
{μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {n : Type u_3} [DecidableEq n] {x : Ω → n → 𝕜}
[Fintype n] (hx : IsIsotropic x μ) (A : Matrix n n 𝕜) : ∫ (ω : Ω), quadForm A (x ω) ∂μ = A.trace