http://www.perlmonks.org?node_id=455540


in reply to Least Squares in Perl

If you are after linear regression, the Statistics::LineFit module would be a good choice. Check it's examples for usage.
_______
Code is untested unless explicitly stated
mlh2003