NLA-lib Explorer

Perturbation of a least-squares solution

Library · Result group

Theorem (IsLeastSquaresSolution.norm_sub_le). Perturbation of a least-squares solution. Let \mathbf{A} have full column rank and \|\mathbf{A}^{+}\|_2 \|\mathbf{E}\|_2 < 1. If \mathbf{x} solves the problem (\mathbf{A}, \mathbf{b}) and \mathbf{y} solves (\mathbf{A} + \mathbf{E}, \mathbf{b} + \mathbf{f}), then \begin{aligned} \|\mathbf{y} - \mathbf{x}\| &\le \|(\mathbf{A} + \mathbf{E})^{+}\|_2 \bigl(\|\mathbf{f}\| + \|\mathbf{E}\|_2 \|\mathbf{x}\| \\ &\qquad + \|\mathbf{A}^{+}\|_2 \|\mathbf{E}\|_2 \|\mathbf{b} - \mathbf{A}\mathbf{x}\|\bigr). \end{aligned} [GolubVanLoan2013, Theorem 5.3.1]; [Wedin1973]; [Higham2002, Theorem 20.1].

Headline (provisional)

Lean statement and details
NLAlib.IsLeastSquaresSolution.norm_sub_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 (pinv A) * specNorm E < 1) {b f : m → 𝕜} {x y : n → 𝕜}
  (hx : IsLeastSquaresSolution A b x) (hy : IsLeastSquaresSolution (A + E) (b + f) y) :
  ‖WithLp.toLp 2 (y - x)‖ ≤
    specNorm (pinv (A + E)) *
      (‖WithLp.toLp 2 f‖ + specNorm E * ‖WithLp.toLp 2 x‖ +
        specNorm (pinv A) * specNorm E * ‖WithLp.toLp 2 (b - A *ᵥ x)‖)

Full source on GitHub

Copy link

Other forms

Theorem (IsLeastSquaresSolution.norm_sub_le_of_le). 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].

Lean statement and details
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

Copy link