Least squares

The method of least squares is a standard approach in regression analysis to approximate the solution of overdetermined systems (sets of equations in which there are more equations than unknowns) by minimizing the sum of the squares of the residuals made in the results of every single equation.
The most important application is in data fitting. The best fit in the least-squares sense minimizes the sum of squared residuals (a residual being: the difference between an observed value, and the fitted value provided by a model). When the problem has substantial uncertainties in the independent variable (the x variable), then simple regression and least-squares methods have problems; in such cases, the methodology required for fitting errors-in-variables models may be considered instead of that for least squares.
Least-squares problems fall into two categories: linear or ordinary least squares and nonlinear least squares, depending on whether or not the residuals are linear in all unknowns. The linear least-squares problem occurs in statistical regression analysis; it has a closed-form solution. The nonlinear problem is usually solved by iterative refinement; at each iteration the system is approximated by a linear one, and thus the core calculation is similar in both cases.
Polynomial least squares describes the variance in a prediction of the dependent variable as a function of the independent variable and the deviations from the fitted curve.
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. Also, by iteratively applying local quadratic approximation to the likelihood (through the Fisher information), the least-squares method may be used to fit a generalized linear model.
The least-squares method was officially discovered and published by Adrien-Marie Legendre (1805), though it is usually also co-credited to Carl Friedrich Gauss (1795) who contributed significant theoretical advances to the method and may have previously used it in his work.

View More On Wikipedia.org
  • 154

    Greg Bernhardt

    A PF Singularity From USA
    • Messages
      19,443
    • Media
      227
    • Reaction score
      10,021
    • Points
      1,237
  • 2

    artiny

    A PF Quark
    • Messages
      7
    • Reaction score
      0
    • Points
      1
  • 1

    Mesud1

    A PF Quark
    • Messages
      2
    • Reaction score
      0
    • Points
      1
  • 1

    tom8

    A PF Atom
    • Messages
      19
    • Reaction score
      0
    • Points
      31
  • 1

    synMehdi

    A PF Atom 29 From City of the Dead...
    • Messages
      38
    • Reaction score
      0
    • Points
      32
  • 1

    ChiPi

    A PF Quark
    • Messages
      2
    • Reaction score
      0
    • Points
      1
  • 1

    jonjacson

    A PF Cell
    • Messages
      447
    • Reaction score
      38
    • Points
      103
  • 1

    psie

    A PF Quark
    • Messages
      122
    • Reaction score
      12
    • Points
      8
  • 1

    Daniel Petka

    A PF Molecule
    • Messages
      124
    • Reaction score
      12
    • Points
      63
  • 1

    Schnurmann

    A PF Quark 34 From Freiburg
    • Messages
      3
    • Reaction score
      0
    • Points
      1
  • 1

    freshcoast

    A PF Atom
    • Messages
      185
    • Reaction score
      1
    • Points
      26
  • 1

    Samuel Williams

    A PF Atom From Cape Town
    • Messages
      20
    • Reaction score
      3
    • Points
      36
  • 1

    Jeffack

    A PF Atom
    • Messages
      14
    • Reaction score
      0
    • Points
      31
  • Back
    Top