3D Subspace Orthogonal Projection & Regression Line Lab
Synchronize 3D column-space projection p = A x̂ with 2D least-squares data fitting.
Project an unreachable vector b orthogonally onto Column Space C(A) so the residual e = b - Âx is perpendicular.
Linear regression, GPS trilateration, Kalman filter measurement updates, and sensor calibration all solve overdetermined systems Ax ≈ b by dropping the shortest perpendicular from b to C(A).
When noisy measurements make inconsistent, how does orthogonality pick the unique best approximation inside ?
If lies outside , the closest point inside drops a perpendicular error vector orthogonal to every column of , minimizing .
Requiring yields the symmetric normal equations , powered by the inner products, norms, and Cauchy–Schwarz bounds explored formally in Chapter 2.2.4.
When an overdetermined data vector b lies outside the Column Space plane C(A), how do we find the unique closest vector p = A x̂ inside C(A)?
Click or slide three experimental samples (tᵢ, yᵢ) in 2D data space while watching b ∈ ℝ³ cast its orthogonal shadow p = A x̂ onto C(A) in 3D.
If all tᵢ coincide, columns become linearly dependent (AᵀA is singular) and slope d is undetermined; next, Module 2.3 reveals eigenvalues, diagonalization, and SVD.
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
The shortest distance from an unreachable target to drops orthogonally onto the subspace plane.
Setting converts an unsolvable system into a square symmetric system.
Idempotency () and symmetry () ensure projecting an already projected vector leaves it unchanged.
Subtracting each earlier orthogonal direction leaves only the component strictly perpendicular to .
Scaling each turns inside normal equations into the identity matrix, giving projection directly with zero inversion!
In Chapter 2.2.4, we generalize dot products and lengths to weighted real and complex spaces bounded universally by Cauchy–Schwarz.
Synchronize 3D column-space projection p = A x̂ with 2D least-squares data fitting.
Least-Squares & Column-Space Geometry
Fit to three observations in 2D and watch the target vector project orthogonally onto .
Orthogonal shadow minimizes residual distance .
Click anywhere on the plane to move Sample #2; vertical segments equal .
1. Normal Equations Matrix
2. Optimal Solution & Projection
3. Left-Nullspace Orthogonality
Since , every column dot product with vanishes identically: