line of best fit |
Ryan had already met with eHow.com success (though not mathematical success) with a prior article about slopes, so the boy apparently figured, "How different can this one be?" Clearly, however, Ryan was punching well above his weight this time, or it looks that way based on the rather... strange way he describes a line of best fit:
"...when the points do show a correlation, a line of best fit will show the extent of the connection. The sharper the slope of the line through the points, the greater the correlation between the points."Is there really a mathematical measure of sharpness (kurtosis, perhaps)? If so, we doubt it's applicable here. Whatever the case, Menezes goes on to inform his readers that,
"The [best fit] line's slope equals the difference between points' y-coordinates divided by the difference between their x-coordinates..."...which is at its core a bastardization of how to calculate the slope of a line. Oh, he goes on to describe how to use the coordinates of two points to calculate slope, all right. Ryan's bigger problem, however, is that in getting his BS (sure...) in Journalism, he neglected to learn how to generate a best-fit line, and probably didn't even know such a thing is possible!
What the OQ most likely wanted was to know a method – say, a linear least squares fit – for deriving the formula of the best fit line. Once that formula's in the form y = mx + b, the more numerate student will realize that the slope is m. But how to find that formula? Menezes is clueless.
We know, though: to calculate a linear least squares fit for a set of x,y points
- Calculate the mean of the x coordinates, X
- Calculate the mean of the y coordinates, Y
- Subtract X from each x coordinate (xi - X)
- Subtract Y from each y coordinate (yi - Y)
- Calculate the square of (xi - X)² for each point
- Calculate the product of (xi - X)*(yi - Y) for each point
- Sum all the products
- Sum all the squares
- Divide the sum of the products by the sum of the squares.
¹ Now known as Leaf Group, Demand Media Studios was the parent company of eHow. The initials gave rise to one of our favorite sayings, "You can't spell 'dumbass' without 'DMS'!"
copyright © 2017-2022 scmrak
MM - ALGEBRA
No comments:
Post a Comment