NLA Visualizations

Conditioning of LSE I

Geometry of the Normal Equations

Formulation

Ax=bA\mathbf{x}=\mathbf{b}
y^=A(AA)1Ab\mathbf{\hat{y}} = A(A^*A)^{-1}A^*\mathbf{b}
κby^=δy^/y^δb/b=1cosθ\kappa_{b \mapsto \hat{y}} = \frac{||\delta \hat{y}|| / ||\hat{y}||}{||\delta b|| / ||b||} = \frac{1}{\cos \theta}

Core Idea

This visualization shows how b\mathbf{b} is projected onto the plane defined by AA, and why the sensitivity to perturbations scales like 1cosθ\frac{1}{\cos\theta}.

  • Normalize b=1||\mathbf{b}|| = 1
  • Then y^=cosθ||\mathbf{\hat{y}}|| = \cos\theta
  • As θ90\theta \to 90^\circ, cosθ\cos\theta becomes small
  • So the sensitivity 1cosθ\frac{1}{\cos\theta} blows up

Geometric Controls

45°

Angle between b and its projection .

45°

Direction of the perturbation δb within Span(A).

||ŷ|| = cos(θ)
0.7071
Sensitivity = 1/cos(θ)
1.4142
Click & drag to rotate camera