section_path: Scientific work/Theory of errors
section_name: Theory of errors
paragraph_text: Theory of errors
  
  Gauss likely used the method of least squares for calculating the orbit of Ceres to minimize the impact of measurement error. The method was published first by Adrien-Marie Legendre in 1805, but Gauss claimed in Theoria motus (1809) that he had been using it since 1794 or 1795. In the history of statistics, this disagreement is called the "priority dispute over the discovery of the method of least squares". Gauss proved that the method has the lowest sampling variance within the class of linear unbiased estimators under the assumption of normally distributed errors (Gauss–Markov theorem), in the two-part paper Theoria combinationis observationum erroribus minimis obnoxiae (1823).
  
  In the first paper he proved Gauss's inequality (a Chebyshev-type inequality) for unimodal distributions, and stated without proof another inequality for moments of the fourth order (a special case of Gauss-Winckler inequality). He derived lower and upper bounds for the variance of sample variance. In the second paper, Gauss described recursive least squares methods. His work on the theory of errors was extended in several directions by the geodesist Friedrich Robert Helmert to the Gauss-Helmert model.
  
  Gauss also contributed to problems in probability theory that are not directly concerned with the theory of errors. One example appears as a diary note where he tried to describe the asymptotic distribution of entries in the continued fraction expansion of a random number uniformly distributed in (0,1). He derived this distribution, now known as the Gauss-Kuzmin distribution, as a by-product of the discovery of the ergodicity of the Gauss map for continued fractions. Gauss's solution is the first-ever result in the metrical theory of continued fractions.