Weighted Euclidean inner product
ID: weighted-euclidean-inner-product
A symmetric positive-definite matrix defines an inner product on real coordinate vectors byFor diagonal , positive diagonal entries weight the squared coordinate errors. This is the finite-coordinate version of a weighted inner product; the positive-definite matrix example appears in Francis Narcowich, Inner Products and Norms, standard inner products, example 8.
For , the squared norm of is . A first-coordinate error of one costs as much as a second-coordinate error of two. The unit sphere is the ellipse , and orthogonality means . Thus “closest” and “perpendicular” depend on the chosen inner product. The orthogonal projection residual example shows how this changes a best approximation.
New to topics? Read the docs here!