NLA-lib Explorer

NLAlib.integral_frobNorm_sub_mul_sketchAndSolve_sq_of_hasLaw_gaussianMatrix

Library · theorem

General form: sizes are index types

Exact mean squared residual of Gaussian sketch-and-solve: for a standard Gaussian p \times m sketch \mathbf{S} and r = \operatorname{rank}\mathbf{A} with r + 2 \le p, <!-- value gaussianProjectionFactor r p --> \mathbb{E}\|\mathbf{B} - \mathbf{A}\,\mathsf{sketchAndSolve}(\mathbf{A}, \mathbf{S}, \mathbf{B}) \|_{\mathsf{F}}^2 = \Bigl(1 + \frac{r}{p - r - 1}\Bigr)\min_{\mathbf{Y}} \|\mathbf{B}-\mathbf{A}\mathbf{Y}\|_{\mathsf{F}}^2\,, the minimum being \|(\mathbf{I}-\mathbf{P}_{\mathbf{A}})\mathbf{B}\|_{\mathsf{F}}^2. Its integrand is that of NLAlib.integral_frobNorm_one_sub_obliqueProjector_mul_sq_of_hasLaw_gaussianMatrix at \mathbf{X} = \mathbf{A} (NLAlib.mul_sketchAndSolve), whose integrability companion applies. [EpperlyWebber2026, Theorem 2.1 (Gaussian)]; real case, \alpha_{\mathbb{R}} = 1; first proved by Bartan and Pilanci, as EW report. Result: sketch-and-solve-expected-error

NLAlib.integral_frobNorm_sub_mul_sketchAndSolve_sq_of_hasLaw_gaussianMatrix.{u_1, u_2, u_3, u_4,
    u_5}
  {Ω : Type u_1} {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {m : Type u_2} {n : Type u_3}
  {p : Type u_4} {r : Type u_5} [Fintype m] [Fintype n] [Fintype p] [Fintype r] [DecidableEq m]
  {S : Ω → Matrix p m ℝ} (hS : HasLaw S (gaussianMatrix p m) μ) {A : Matrix m n ℝ}
  (hA : A.rank + 2 ≤ Fintype.card p) (B : Matrix m r ℝ) :
  ∫ (ω : Ω), frobNorm (B - A * sketchAndSolve A (S ω) B) ^ 2 ∂μ =
    gaussianProjectionFactor A.rank (Fintype.card p) * frobNorm ((1 - rangeProjector A) * B) ^ 2

Full source on GitHub

Import NLAlib.Regression.SketchAndSolve.

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.