NLA-lib Explorer

NLAlib.norm_sub_sketchAndProject_sq

Library · theorem

Pythagoras for one step: for every reference point \mathbf{x}_\star, with \mathbf{P} = \mathbf{P}_{(\mathbf{S}\mathbf{A})^{\mathsf{H}}} the projector onto the row space of \mathbf{S}\mathbf{A} and \mathbf{x}^{+} = \mathsf{sketchAndProject}(\mathbf{A}, \mathbf{S}, \mathbf{b}, \mathbf{x}), \|\mathbf{x}_\star - \mathbf{x}^{+}\|^2 = \|\mathbf{x}_\star - \mathbf{x}\|^2 - \|\mathbf{P}(\mathbf{x}_\star - \mathbf{x})\|^2 + \|(\mathbf{S}\mathbf{A})^{+}\mathbf{S}(\mathbf{b} - \mathbf{A}\mathbf{x}_\star)\|^2\,. For a consistent system and a solution \mathbf{x}_\star the last term vanishes. [GowerRichtarik2015, proof of Theorem 4.6], there for a consistent system.

NLAlib.norm_sub_sketchAndProject_sq.{u_1, u_2, u_3, u_4} {𝕜 : Type u_1} [RCLike 𝕜] {k : Type u_2}
  {m : Type u_3} {n : Type u_4} [Fintype k] [Fintype m] [Fintype n] (A : Matrix m n 𝕜)
  (S : Matrix k m 𝕜) (b : m → 𝕜) (x xs : n → 𝕜) :
  ‖WithLp.toLp 2 (xs - sketchAndProject A S b x)‖ ^ 2 =
    ‖WithLp.toLp 2 (xs - x)‖ ^ 2 - ‖WithLp.toLp 2 (rangeProjector (S * A)ᴴ *ᵥ (xs - x))‖ ^ 2 +
      ‖WithLp.toLp 2 (pinv (S * A) *ᵥ S *ᵥ (b - A *ᵥ xs))‖ ^ 2

Full source on GitHub

Import NLAlib.Regression.SketchAndProject.