Linear Algebra and Its Applications · Problem 3.3.41
Orthogonality — Gilbert Strang
Mathematics · weighted-least-squares
Problem
Find the weighted least-squares solution x^W to Ax=b:
A=111012b=011W=200010001.
Check that the projection Ax^W is still perpendicular (in the W-inner product!) to the error b−Ax^W.