Linear least squares

least squares approximation of linear functions to data