Show that the best least squares fit to a set of measurements by a horizontal line y = (where is a constant) is their average:

Other than that I need to use normal equations and that this is a problem concerning orthogonality, I am completely stuck and have no idea how to proceed. Can anyone help? Thanks.

(Headbang)