NLA-lib Explorer

NLAlib.IsLeastSquaresSolution.norm_sub_le_of_le

Library · theorem

Relative perturbation of a least-squares solution. Let \mathbf{A} have full column rank, \|\mathbf{E}\|_2 \le \varepsilon \|\mathbf{A}\|_2, \|\mathbf{f}\| \le \varepsilon \|\mathbf{b}\| and \kappa(\mathbf{A}) \varepsilon < 1, and let \mathbf{x} solve the problem (\mathbf{A}, \mathbf{b}) and \mathbf{y} solve (\mathbf{A} + \mathbf{E}, \mathbf{b} + \mathbf{f}). Then \begin{aligned} \|\mathbf{y} - \mathbf{x}\| &\le \frac{\|\mathbf{A}^{+}\|_2}{1 - \kappa(\mathbf{A}) \varepsilon} \bigl(\varepsilon \|\mathbf{b}\| + \varepsilon \|\mathbf{A}\|_2 \|\mathbf{x}\| \\ &\qquad + \|\mathbf{A}^{+}\|_2 \varepsilon \|\mathbf{A}\|_2 \|\mathbf{b} - \mathbf{A}\mathbf{x}\|\bigr). \end{aligned} The last term carries \kappa(\mathbf{A})^2 when the residual is not small. [GolubVanLoan2013, Theorem 5.3.1]. Result: least-squares-perturbation

NLAlib.IsLeastSquaresSolution.norm_sub_le_of_le.{u_1, u_2, u_3} {𝕜 : Type u_1} [RCLike 𝕜]
  {m : Type u_2} {n : Type u_3} [Fintype m] [Fintype n] {A E : Matrix m n 𝕜}
  (hA : Function.Injective A.mulVec) {ε : ℝ} (hE : specNorm E ≤ ε * specNorm A)
  (hε : pseudoConditionNumber A * ε < 1) {b f : m → 𝕜} {x y : n → 𝕜}
  (hf : ‖WithLp.toLp 2 f‖ ≤ ε * ‖WithLp.toLp 2 b‖) (hx : IsLeastSquaresSolution A b x)
  (hy : IsLeastSquaresSolution (A + E) (b + f) y) :
  ‖WithLp.toLp 2 (y - x)‖ ≤
    specNorm (pinv A) / (1 - pseudoConditionNumber A * ε) *
      (ε * ‖WithLp.toLp 2 b‖ + ε * specNorm A * ‖WithLp.toLp 2 x‖ +
        specNorm (pinv A) * ε * specNorm A * ‖WithLp.toLp 2 (b - A *ᵥ x)‖)

Full source on GitHub

Import NLAlib.Matrix.Perturbation.LeastSquares.