[vox-tech] OT - Finding slope of a line, with lots of points

Matt Roper vox-tech@lists.lugod.org
Fri, 21 Mar 2003 14:17:18 -0800


I think you're referring to linear regression -- try doing a Google
search on that and you should find lots of algorithms and
implementations.


Matt

On Fri, Mar 21, 2003 at 03:52:35PM -0600, Jay Strauss wrote:
> Sorry, I already googled, but can't find what I'm looking for.
> 
> I remember back in science class (must have been Chem), we'd do experiments
> and plot a bunch of points on graph paper.  Then we'd fudge a line that went
> thru the points (trying to get equal numbers of points on one side of the
> line as the other), and that was our "expected" slope.
> 
> Is there some formula or algorithm for doing this with a computer? (I'll do
> it in Perl)  Or where, under what topic would I go a googling?
> 
> Thank
> Jay
> 
> _______________________________________________
> vox-tech mailing list
> vox-tech@lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech

-- 

*************************************************
* Matt Roper <matt@mattrope.com>                *
* http://www.mattrope.com                       *
* PGP Key: http://www.mattrope.com/mattrope.asc *
*************************************************