Originally posted by: DrPizza
Again, google how to do a least squares regression manually...
Once upon a time, a long time ago (at least 15 or 20 years), we weren't allowed to use calculators to do least squares regression. It was a typical high school problem, and not a difficult one at that. Google how to do it...
Originally posted by: abeal2
if i have a bunch of data where they are scattered but will fit in a best fit line, how do i find the slope of it?
Originally posted by: abeal2
if i have a bunch of data where they are scattered but will fit in a best fit line, how do i find the slope of it?
Originally posted by: scott
Originally posted by: abeal2
if i have a bunch of data where they are scattered but will fit in a best fit line, how do i find the slope of it?
If your line is straight then it's change in y divided by change in x, like Kevin1211 & FallenHero said [on a straight line it doesn't matter how far apart the 2 points are, slope is the same regardless];
(y2 - y1) / (x2 - x1).
If your line is curved then it's the 1st derivative of the line's equation.
Originally posted by: DrPizza
Originally posted by: scott
Originally posted by: abeal2
if i have a bunch of data where they are scattered but will fit in a best fit line, how do i find the slope of it?
If your line is straight then it's change in y divided by change in x, like Kevin1211 & FallenHero said [on a straight line it doesn't matter how far apart the 2 points are, slope is the same regardless];
(y2 - y1) / (x2 - x1).
If your line is curved then it's the 1st derivative of the line's equation.
Except, unless the equation of the line is known (in which case, it'd be silly to calculate the slope manually by picking two points), if the points are relatively close together, a small error in measuring either point will lead to a larger error on the slope. i.e. lines in the real world, based on data, rarely go through "nice" points like they did in algebra class. Points farther apart will result in less uncertainty for the actual slope.
Originally posted by: abeal2
if i have a bunch of data where they are scattered but will fit in a best fit line, how do i find the slope of it?
Originally posted by: chuckywang
Originally posted by: abeal2
if i have a bunch of data where they are scattered but will fit in a best fit line, how do i find the slope of it?
It all depends on what you mean by "best fit".
As with any mathematical question, you have to be precise in your problem description.
Originally posted by: scott
Originally posted by: chuckywang
Originally posted by: abeal2
if i have a bunch of data where they are scattered but will fit in a best fit line, how do i find the slope of it?
It all depends on what you mean by "best fit".
As with any mathematical question, you have to be precise in your problem description.
Text
As you know, "best fit line" is a term of art in mathemagic land.Originally posted by: chuckywang
< words cut >
What? It's an essential question if he wants to solve this problem.