NLA-lib Explorer

NLAlib.variance_hutchpp_of_hasLaw_rademacherMatrix

Library · theorem

General form: sizes are index types

The exact variance of Hutch++ with a sign residual test matrix: if the sketch test matrix \mathbf{S} is almost everywhere measurable and the n \times \ell residual test matrix \mathbf{G}, \ell \ge 1, has independent uniformly random signs as entries and is independent of \mathbf{S}, then for every real square \mathbf{A}, with \mathbf{H} = \tfrac12(\mathbf{A} + \mathbf{A}^{\mathsf{T}}) and \mathbf{\Delta}_{\mathbf{H}} = (\mathbf{I} - \mathbf{P}_{\mathbf{A}\mathbf{S}})\mathbf{H} (\mathbf{I} - \mathbf{P}_{\mathbf{A}\mathbf{S}}), \operatorname{Var}[\mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G})] = \frac{2}{\ell}\, \mathbb{E}\Bigl[\|\mathbf{\Delta}_{\mathbf{H}}\|_{\mathsf{F}}^2 - \sum_i (\mathbf{\Delta}_{\mathbf{H}})_{i,i}^2\Bigr]\,. At most the Gaussian variance NLAlib.variance_hutchpp_of_hasLaw_gaussianMatrix; with a Gaussian \mathbf{S} it is the exact variance of [MeyerMuscoMuscoWoodruff2021, Algorithm 3] as printed. The sign law is stated on the rows of \mathbf{G}^{\mathsf{H}}, the columns of \mathbf{G}. [Epperly2023, Real-Valued Test Vectors]; there for Girard–Hutchinson alone. Result: hutchpp-variance

NLAlib.variance_hutchpp_of_hasLaw_rademacherMatrix.{u_1, u_3, u_4, u_5} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {s : Type u_4} {t : Type u_5} [Fintype n]
  [Fintype s] [Fintype t] [DecidableEq n] [Nonempty t] (A : Matrix n n ℝ) {S : Ω → Matrix n s ℝ}
  {G : Ω → Matrix n t ℝ} (hS : AEMeasurable S μ)
  (hG : HasLaw (fun ω ↦ (G ω)ᴴ) (rademacherMatrix t n) μ) (hSG : S ⟂ᵢ[μ] G) :
  Var[fun ω ↦ hutchpp A (S ω) (G ω); μ] =
    2 / ↑(Fintype.card t) *
      ∫ (ω : Ω),
        frobNorm
              ((1 - rangeProjector (A * S ω)) * hermitianPart A * (1 - rangeProjector (A * S ω))) ^
            2 -
          ∑ i,
            ((1 - rangeProjector (A * S ω)) * hermitianPart A * (1 - rangeProjector (A * S ω))) i
                i ^
              2 ∂μ

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlus.

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.