Suppose I have a line on which i have points in non-decreasing order. My intuition tells me that if I want to minimize the squared mean error on some subset of 3 (or other number) points, I would like to take 3 subsequent points, or rather check all 3-subsets of subsequent numbers on the line to find one with lowest square mean error. Suppose I have 4 points, and subset of points a, b, d, with c point in between points b and d. All points are in increasing order: a__b__c___d.
Now, I have square mean error for a, b, and d: f(a, b, d) = (a-m)^2 + (b-m)^2 + (d-m)^2, where m is arithmetic mean of the subset. My intuition tells me, that if I now choose subset a, b, and c, then f(a, b, c) < f(a, b, d).
HOW can I prove THIS? I tried to do it myself using geometry and using a lot of arithmetic but it is still elusive. Cannot also formulate the question on google to look for answer.