Proving Equivalence of Arithmetic Mean and Least Square Criterion

  • Thread starter Thread starter kreil
  • Start date Start date
  • Tags Tags
    Analysis
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
12 replies · 3K views
Science Advisor
Insights Author
Messages
665
Reaction score
68

Homework Statement



Show that the calculation of an arithmetic mean for a given set of values y1,y2...yn is equivalent to fitting the line y=y_av to the data under the least square criterion

Homework Equations



distance between the data points and the best fit curve:
[tex]d(y_n,f(x))= \Sigma_{i=1}^{n}(y_i-f(x_i,a_1,a_2,...,a_n))^2[/tex]

arithmetic mean of a set of values y_n:
[tex]y_av= \frac{1}{n} \Sigma_{i=1}^{n}y_i[/tex]

The Attempt at a Solution



I need help getting started please!
 
Physics news on Phys.org
In your distance formula, just put f=y_av. Now how would you minimize d with respect to y_av?
 
kreil said:
set the partial derivative equal to zero?

Absolutely. What do you get?
 
i was thinking maybe distribute the sum, but i don't know how the -2 helps, since I am trying to get the formula in the form of the arithmetic mean
 
how is this:

[tex]\frac{d(R^2)}{dy_{av}}= -2 \Sigma_{i=1}^n(y_i-y_{av})=0 \implies \Sigma_{i=1}^n(y_i-y_{av})=0 \implies \Sigma_{i=1}^ny_i=\Sigma_{i=1}^ny_{av}=y_{av}[/tex]
 
The sum from 1 to n of y_av is NOT = y_av.
 
That's what you are trying to prove, right?