MathCastle
Linear AlgebraChallengeOrthogonality & Least Squares

Orthogonality & Least Squares · Challenge problem

Find the constant cc minimizing the total squared error (c−1)2+(c−3)2+(c−5)2(c-1)^2 + (c-3)^2 + (c-5)^2 — the least-squares fit of a horizontal line to the data 1,3,51, 3, 5.