Caclulus III problem involving mean.

  • Thread starter Thread starter saintkickass
  • Start date Start date
  • Tags Tags
    Mean
saintkickass
Messages
4
Reaction score
0
http://i.imgur.com/DkYMylb.png, probably easier to understand than me trying to type it out.



so far I tried exapanding the (y_i - y(x_i))^2 and and then subbing in y_i = ax + b. This gives me part of the answer but I'm not sure if it's legal. I'm generally struggling to find a workable relationship between yi, y and y(bar), same for x.

If nothing else, I could use some clarification as to what the y is (y_i - y(x_i))^2. I thought maybe it was like f(x) but if that's not the case, what would it be if not y_i?

Thanks for your help.
 
Last edited:
Physics news on Phys.org
The problem is to find the equation of the straight line, y= ax+ b, that is "closest" (in the "least squares" sense) to the given point. That is what "y(x_i)" is: the value of that function at x_i. y(x_i)= ax_i+ b.

No, you do not substitute ax+ b for y_i. "y_i" is the given y value of the ith point.
 
saintkickass said:
http://i.imgur.com/DkYMylb.png, probably easier to understand than me trying to type it out.



so far I tried exapanding the (y_i - y(x_i))^2 and and then subbing in y_i = ax + b. This gives me part of the answer but I'm not sure if it's legal. I'm generally struggling to find a workable relationship between yi, y and y(bar), same for x.

If nothing else, I could use some clarification as to what the y is (y_i - y(x_i))^2. I thought maybe it was like f(x) but if that's not the case, what would it be if not y_i?

Thanks for your help.

It is saying that ##E(a,b) = \sum_{i=1}^n ( y_i - a - b x_i)^2.##
 
saintkickass said:
http://i.imgur.com/DkYMylb.png, probably easier to understand than me trying to type it out.
so far I tried exapanding the (y_i - y(x_i))^2 and and then subbing in y_i = ax + b. This gives me part of the answer but I'm not sure if it's legal. I'm generally struggling to find a workable relationship between yi, y and y(bar), same for x.

If nothing else, I could use some clarification as to what the y is (y_i - y(x_i))^2. I thought maybe it was like f(x) but if that's not the case, what would it be if not y_i?

Thanks for your help.

It is not asking you to find the line of best fit. Just expand ##E(a,b)## out, use the definition of ##\bar z## (for ##z## whatever variable you need) and see if you don't get the answer. (Also note that Ray inadvertently left off the ##\frac 1 n## in his formula above in post #3 ##E(a,b) =\color{red}{\frac 1 n} \sum_{i=1}^n ( y_i - a - b x_i)^2##).
 
Last edited:
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top