 This result is known as the Gauss–Markov theorem.The idea of least-squares analysis was also independently formulated by the American Robert Adrain in 1808.In the next two centuries workers in the theory of errors and in statistics found many different ways of implementing least squares.