Least squares

noun plural a method of fitting a curve to a set of points representing statistical data in such a way that the sum of the squares of the distances of the points from the curve is a minimum

Merriam-Webster's Collegiate Dictionary