Caclulus III problem involving mean.

  • Thread starter Thread starter saintkickass
  • Start date Start date
  • Tags Tags
    Mean
Click For Summary

Homework Help Overview

The discussion revolves around a Calculus III problem involving the least squares method to find the equation of a straight line, specifically in the context of minimizing the sum of squared differences between given points and the line represented by the equation y = ax + b.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss expanding the expression (y_i - y(x_i))^2 and substituting y_i with ax + b. There is uncertainty about the legality of this substitution and the relationship between y_i, y, and y(bar). Questions arise regarding the definition of y in the context of the problem.

Discussion Status

Some participants clarify that y(x_i) represents the value of the line at x_i, while y_i refers to the given y value of the ith point. There is an indication that expanding the expression E(a,b) could lead to further understanding, and some guidance is provided regarding the definition of variables involved.

Contextual Notes

There is mention of a potential misunderstanding regarding the goal of the problem, with some participants noting that it is not explicitly asking for the line of best fit but rather to expand the expression and utilize definitions related to the variables.

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 "[itex]y(x_i)[/itex]" is: the value of that function at [itex]x_i[/itex]. [itex]y(x_i)= ax_i+ b[/itex].

No, you do not substitute [itex]ax+ b[/itex] for [itex]y_i[/itex]. "[itex]y_i[/itex]" 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:

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
9
Views
2K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K