Least Squares: fitting a line to a sequence of 2d-points

This is a simple implementation of the least squares method for lines,
described in a standard statistics textbook [larsen2006]. Given a sequence of
2d-points, this library computes the slope and intersect of a line
that best fits those points.

Here’s a quick-and-dirty example that shows how to use this package with
a tool like Racket’s plot graph-plotting libraries: