The first clear and concise exposition of the method of least squares is attributed to French mathematician Adrien-Marie Legendre (1805), but Charles Friedrich Gauss, a German mathematician, claimed to have used the method since 1794 and published a more complete exposition than Legendre in 1809. Whether you side with Legendre or Gauss, least squares definitely has a long history.