 When the observations come from an exponential family and mild conditions are satisfied, least-squares estimates and maximum-likelihood estimates are identical.The method of least squares can also be derived as a method of moments estimator.The following discussion is mostly presented in terms of linear functions but the use of least squares is valid and practical for more general families of functions.