Least squares















































The result of fitting a set of data points with a quadratic function




Conic fitting a set of points using least-squares approximation


The method of least squares is a standard approach in regression analysis to approximate the solution of overdetermined systems, i.e., sets of equations in which there are more equations than unknowns. "Least squares" means that the overall solution minimizes 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.[1] 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 is usually credited to Carl Friedrich Gauss (1795),[2] but it was first published by Adrien-Marie Legendre (1805).[3]




Contents






  • 1 History


    • 1.1 Context


    • 1.2 The method




  • 2 Problem statement


  • 3 Limitations


  • 4 Solving the least squares problem


    • 4.1 Linear least squares


    • 4.2 Non-linear least squares


    • 4.3 Differences between linear and nonlinear least squares




  • 5 Regression analysis and statistics


  • 6 Weighted least squares


  • 7 Relationship to principal components


  • 8 Regularization


    • 8.1 Tikhonov regularization


    • 8.2 Lasso method




  • 9 See also


  • 10 References


  • 11 Further reading


  • 12 External links





History



Context


The method of least squares grew out of the fields of astronomy and geodesy, as scientists and mathematicians sought to provide solutions to the challenges of navigating the Earth's oceans during the Age of Exploration. The accurate description of the behavior of celestial bodies was the key to enabling ships to sail in open seas, where sailors could no longer rely on land sightings for navigation.


The method was the culmination of several advances that took place during the course of the eighteenth century:[4]



  • The combination of different observations as being the best estimate of the true value; errors decrease with aggregation rather than increase, perhaps first expressed by Roger Cotes in 1722.

  • The combination of different observations taken under the same conditions contrary to simply trying one's best to observe and record a single observation accurately. The approach was known as the method of averages. This approach was notably used by Tobias Mayer while studying the librations of the moon in 1750, and by Pierre-Simon Laplace in his work in explaining the differences in motion of Jupiter and Saturn in 1788.

  • The combination of different observations taken under different conditions. The method came to be known as the method of least absolute deviation. It was notably performed by Roger Joseph Boscovich in his work on the shape of the earth in 1757 and by Pierre-Simon Laplace for the same problem in 1799.

  • The development of a criterion that can be evaluated to determine when the solution with the minimum error has been achieved. Laplace tried to specify a mathematical form of the probability density for the errors and define a method of estimation that minimizes the error of estimation. For this purpose, Laplace used a symmetric two-sided exponential distribution we now call Laplace distribution to model the error distribution, and used the sum of absolute deviation as error of estimation. He felt these to be the simplest assumptions he could make, and he had hoped to obtain the arithmetic mean as the best estimate. Instead, his estimator was the posterior median.



The method





Carl Friedrich Gauss


The first clear and concise exposition of the method of least squares was published by Legendre in 1805.[5] The technique is described as an algebraic procedure for fitting linear equations to data and Legendre demonstrates the new method by analyzing the same data as Laplace for the shape of the earth. The value of Legendre's method of least squares was immediately recognized by leading astronomers and geodesists of the time.


In 1809 Carl Friedrich Gauss published his method of calculating the orbits of celestial bodies. In that work he claimed to have been in possession of the method of least squares since 1795. This naturally led to a priority dispute with Legendre. However, to Gauss's credit, he went beyond Legendre and succeeded in connecting the method of least squares with the principles of probability and to the normal distribution. He had managed to complete Laplace's program of specifying a mathematical form of the probability density for the observations, depending on a finite number of unknown parameters, and define a method of estimation that minimizes the error of estimation. Gauss showed that the arithmetic mean is indeed the best estimate of the location parameter by changing both the probability density and the method of estimation. He then turned the problem around by asking what form the density should have and what method of estimation should be used to get the arithmetic mean as estimate of the location parameter. In this attempt, he invented the normal distribution.


An early demonstration of the strength of Gauss's method came when it was used to predict the future location of the newly discovered asteroid Ceres. On 1 January 1801, the Italian astronomer Giuseppe Piazzi discovered Ceres and was able to track its path for 40 days before it was lost in the glare of the sun. Based on these data, astronomers desired to determine the location of Ceres after it emerged from behind the sun without solving Kepler's complicated nonlinear equations of planetary motion. The only predictions that successfully allowed Hungarian astronomer Franz Xaver von Zach to relocate Ceres were those performed by the 24-year-old Gauss using least-squares analysis.


In 1810, after reading Gauss's work, Laplace, after proving the central limit theorem, used it to give a large sample justification for the method of least squares and the normal distribution. In 1822, Gauss was able to state that the least-squares approach to regression analysis is optimal in the sense that in a linear model where the errors have a mean of zero, are uncorrelated, and have equal variances, the best linear unbiased estimator of the coefficients is the least-squares estimator. 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.[6]



Problem statement


The objective consists of adjusting the parameters of a model function to best fit a data set. A simple data set consists of n points (data pairs) (xi,yi){displaystyle (x_{i},y_{i})!}(x_{i},y_{i})!, i = 1, ..., n, where xi{displaystyle x_{i}!}x_{i}! is an independent variable and yi{displaystyle y_{i}!}y_{i}! is a dependent variable whose value is found by observation. The model function has the form f(x,β){displaystyle f(x,beta )}f(x,beta ), where m adjustable parameters are held in the vector β{displaystyle {boldsymbol {beta }}}{boldsymbol {beta }}. The goal is to find the parameter values for the model that "best" fits the data. The fit of a model to a data point is measured by its residual, defined as the difference between the actual value of the dependent variable and the value predicted by the model:


ri=yi−f(xi,β).{displaystyle r_{i}=y_{i}-f(x_{i},{boldsymbol {beta }}).}r_{i}=y_{i}-f(x_{i},{boldsymbol  beta }).

The least-squares method finds the optimal parameter values by minimizing the sum, S{displaystyle S}S, of squared residuals:


S=∑i=1nri2.{displaystyle S=sum _{i=1}^{n}{r_{i}}^{2}.}{displaystyle S=sum _{i=1}^{n}{r_{i}}^{2}.}

An example of a model in two dimensions is that of the straight line. Denoting the y-intercept as β0{displaystyle beta _{0}}beta _{0} and the slope as β1{displaystyle beta _{1}}beta _{1}, the model function is given by f(x,β)=β0+β1x{displaystyle f(x,{boldsymbol {beta }})=beta _{0}+beta _{1}x}f(x,boldsymbol beta)=beta_0+beta_1 x. See linear least squares for a fully worked out example of this model.


A data point may consist of more than one independent variable. For example, when fitting a plane to a set of height measurements, the plane is a function of two independent variables, x and z, say. In the most general case there may be one or more independent variables and one or more dependent variables at each data point.



Limitations


This regression formulation considers only observational errors in the dependent variable (but the alternative total least squares regression can account for errors in both variables). There are two rather different contexts with different implications:



  • Regression for prediction. Here a model is fitted to provide a prediction rule for application in a similar situation to which the data used for fitting apply. Here the dependent variables corresponding to such future application would be subject to the same types of observation error as those in the data used for fitting. It is therefore logically consistent to use the least-squares prediction rule for such data.

  • Regression for fitting a "true relationship". In standard regression analysis that leads to fitting by least squares there is an implicit assumption that errors in the independent variable are zero or strictly controlled so as to be negligible. When errors in the independent variable are non-negligible, models of measurement error can be used; such methods can lead to parameter estimates, hypothesis testing and confidence intervals that take into account the presence of observation errors in the independent variables.[7] An alternative approach is to fit a model by total least squares; this can be viewed as taking a pragmatic approach to balancing the effects of the different sources of error in formulating an objective function for use in model-fitting.



Solving the least squares problem


The minimum of the sum of squares is found by setting the gradient to zero. Since the model contains m parameters, there are m gradient equations:


S∂βj=2∑iri∂ri∂βj=0, j=1,…,m,{displaystyle {frac {partial S}{partial beta _{j}}}=2sum _{i}r_{i}{frac {partial r_{i}}{partial beta _{j}}}=0, j=1,ldots ,m,}{displaystyle {frac {partial S}{partial beta _{j}}}=2sum _{i}r_{i}{frac {partial r_{i}}{partial beta _{j}}}=0, j=1,ldots ,m,}

and since ri=yi−f(xi,β){displaystyle r_{i}=y_{i}-f(x_{i},{boldsymbol {beta }})}r_i=y_i-f(x_i,boldsymbol beta), the gradient equations become


2∑iri∂f(xi,β)∂βj=0, j=1,…,m.{displaystyle -2sum _{i}r_{i}{frac {partial f(x_{i},{boldsymbol {beta }})}{partial beta _{j}}}=0, j=1,ldots ,m.}-2sum _{i}r_{i}{frac  {partial f(x_{i},{boldsymbol  beta })}{partial beta _{j}}}=0, j=1,ldots ,m.

The gradient equations apply to all least squares problems. Each particular problem requires particular expressions for the model and its partial derivatives.



Linear least squares



A regression model is a linear one when the model comprises a linear combination of the parameters, i.e.,


f(x,β)=∑j=1mβj(x),{displaystyle f(x,beta )=sum _{j=1}^{m}beta _{j}phi _{j}(x),}f(x,beta )=sum _{{j=1}}^{m}beta _{j}phi _{j}(x),

where the function ϕj{displaystyle phi _{j}}phi _{j} is a function of x{displaystyle x}x.


Letting


Xij=ϕj(xi),{displaystyle X_{ij}=phi _{j}(x_{i}),}{displaystyle X_{ij}=phi _{j}(x_{i}),}

we can then see that in that case the least square estimate (or estimator, in the context of a random sample), β{displaystyle {boldsymbol {beta }}} boldsymbol beta is given by


β^=(XTX)−1XTy.{displaystyle {boldsymbol {hat {beta }}}=(X^{T}X)^{-1}X^{T}{boldsymbol {y}}.}{displaystyle {boldsymbol {hat {beta }}}=(X^{T}X)^{-1}X^{T}{boldsymbol {y}}.}

For a derivation of this estimate see Linear least squares (mathematics).



Non-linear least squares



There is, in some cases, a closed-form solution to a non-linear least squares problem – but in general there is not. In the case of no closed-form solution, numerical algorithms are used to find the value of the parameters β{displaystyle beta }beta that minimizes the objective. Most algorithms involve choosing initial values for the parameters. Then, the parameters are refined iteratively, that is, the values are obtained by successive approximation:


βjk+1=βjk+Δβj,{displaystyle {beta _{j}}^{k+1}={beta _{j}}^{k}+Delta beta _{j},}{beta _{j}}^{{k+1}}={beta _{j}}^{k}+Delta beta _{j},

where a superscript k is an iteration number, and the vector of increments Δβj{displaystyle Delta beta _{j}}Delta beta _{j} is called the shift vector. In some commonly used algorithms, at each iteration the model may be linearized by approximation to a first-order Taylor series expansion about βk{displaystyle {boldsymbol {beta }}^{k}}{boldsymbol  beta }^{k}:


f(xi,β)=fk(xi,β)+∑j∂f(xi,β)∂βj(βj−βjk)=fk(xi,β)+∑jJijΔβj.{displaystyle {begin{aligned}f(x_{i},{boldsymbol {beta }})&=f^{k}(x_{i},{boldsymbol {beta }})+sum _{j}{frac {partial f(x_{i},{boldsymbol {beta }})}{partial beta _{j}}}left(beta _{j}-{beta _{j}}^{k}right)\&=f^{k}(x_{i},{boldsymbol {beta }})+sum _{j}J_{ij},Delta beta _{j}.end{aligned}}}{displaystyle {begin{aligned}f(x_{i},{boldsymbol {beta }})&=f^{k}(x_{i},{boldsymbol {beta }})+sum _{j}{frac {partial f(x_{i},{boldsymbol {beta }})}{partial beta _{j}}}left(beta _{j}-{beta _{j}}^{k}right)\&=f^{k}(x_{i},{boldsymbol {beta }})+sum _{j}J_{ij},Delta beta _{j}.end{aligned}}}

The Jacobian J is a function of constants, the independent variable and the parameters, so it changes from one iteration to the next. The residuals are given by


ri=yi−fk(xi,β)−k=1mJikΔβk=Δyi−j=1mJijΔβj.{displaystyle r_{i}=y_{i}-f^{k}(x_{i},{boldsymbol {beta }})-sum _{k=1}^{m}J_{ik},Delta beta _{k}=Delta y_{i}-sum _{j=1}^{m}J_{ij},Delta beta _{j}.}{displaystyle r_{i}=y_{i}-f^{k}(x_{i},{boldsymbol {beta }})-sum _{k=1}^{m}J_{ik},Delta beta _{k}=Delta y_{i}-sum _{j=1}^{m}J_{ij},Delta beta _{j}.}

To minimize the sum of squares of ri{displaystyle r_{i}}r_{i}, the gradient equation is set to zero and solved for Δβj{displaystyle Delta beta _{j}}Delta beta _{j}:


2∑i=1nJij(Δyi−k=1mJikΔβk)=0,{displaystyle -2sum _{i=1}^{n}J_{ij}left(Delta y_{i}-sum _{k=1}^{m}J_{ik},Delta beta _{k}right)=0,}{displaystyle -2sum _{i=1}^{n}J_{ij}left(Delta y_{i}-sum _{k=1}^{m}J_{ik},Delta beta _{k}right)=0,}

which, on rearrangement, become m simultaneous linear equations, the normal equations:


i=1n∑k=1mJijJikΔβk=∑i=1nJijΔyi(j=1,…,m).{displaystyle sum _{i=1}^{n}sum _{k=1}^{m}J_{ij}J_{ik},Delta beta _{k}=sum _{i=1}^{n}J_{ij},Delta y_{i}qquad (j=1,ldots ,m).}{displaystyle sum _{i=1}^{n}sum _{k=1}^{m}J_{ij}J_{ik},Delta beta _{k}=sum _{i=1}^{n}J_{ij},Delta y_{i}qquad (j=1,ldots ,m).}

The normal equations are written in matrix notation as


(JTJ)Δβ=JTΔy.{displaystyle mathbf {(J^{T}J),Delta {boldsymbol {beta }}=J^{T},Delta y} .,}{displaystyle mathbf {(J^{T}J),Delta {boldsymbol {beta }}=J^{T},Delta y} .,}

These are the defining equations of the Gauss–Newton algorithm.



Differences between linear and nonlinear least squares



  • The model function, f, in LLSQ (linear least squares) is a linear combination of parameters of the form f=Xi1β1+Xi2β2+⋯{displaystyle f=X_{i1}beta _{1}+X_{i2}beta _{2}+cdots }f = X_{i1}beta_1 + X_{i2}beta_2 +cdots The model may represent a straight line, a parabola or any other linear combination of functions. In NLLSQ (nonlinear least squares) the parameters appear as functions, such as β2,eβx{displaystyle beta ^{2},e^{beta x}}beta^2, e^{beta x} and so forth. If the derivatives f/∂βj{displaystyle partial f/partial beta _{j}}partial f /partial beta_j are either constant or depend only on the values of the independent variable, the model is linear in the parameters. Otherwise the model is nonlinear.

  • Algorithms for finding the solution to a NLLSQ problem require initial values for the parameters, LLSQ does not.

  • Like LLSQ, solution algorithms for NLLSQ often require that the Jacobian can be calculated. Analytical expressions for the partial derivatives can be complicated. If analytical expressions are impossible to obtain either the partial derivatives must be calculated by numerical approximation or an estimate must be made of the Jacobian.

  • In NLLSQ non-convergence (failure of the algorithm to find a minimum) is a common phenomenon whereas the LLSQ is globally concave so non-convergence is not an issue.

  • NLLSQ is usually an iterative process. The iterative process has to be terminated when a convergence criterion is satisfied. LLSQ solutions can be computed using direct methods, although problems with large numbers of parameters are typically solved with iterative methods, such as the Gauss–Seidel method.

  • In LLSQ the solution is unique, but in NLLSQ there may be multiple minima in the sum of squares.

  • Under the condition that the errors are uncorrelated with the predictor variables, LLSQ yields unbiased estimates, but even under that condition NLLSQ estimates are generally biased.


These differences must be considered whenever the solution to a nonlinear least squares problem is being sought.



Regression analysis and statistics


The method of least squares is often used to generate estimators and other statistics in regression analysis.


Consider a simple example drawn from physics. A spring should obey Hooke's law which states that the extension of a spring y is proportional to the force, F, applied to it.


y=f(F,k)=kF{displaystyle y=f(F,k)=kF!}y=f(F,k)=kF!

constitutes the model, where F is the independent variable. To estimate the force constant, k, a series of n measurements with different forces will produce a set of data, (Fi,yi), i=1,…,n{displaystyle (F_{i},y_{i}), i=1,dots ,n!}(F_i, y_i), i=1,dots,n!, where yi is a measured spring extension. Each experimental observation will contain some error. If we denote this error ε{displaystyle varepsilon }varepsilon , we may specify an empirical model for our observations,


yi=kFi+εi.{displaystyle y_{i}=kF_{i}+varepsilon _{i}.,} y_i = kF_i + varepsilon_i. ,

There are many methods we might use to estimate the unknown parameter k. Noting that the n equations in the m variables in our data comprise an overdetermined system with one unknown and n equations, we may choose to estimate k using least squares. The sum of squares to be minimized is


S=∑i=1n(yi−kFi)2.{displaystyle S=sum _{i=1}^{n}(y_{i}-kF_{i})^{2}.}{displaystyle S=sum _{i=1}^{n}(y_{i}-kF_{i})^{2}.}

The least squares estimate of the force constant, k, is given by


k^=∑iFiyi∑iFi2.{displaystyle {hat {k}}={frac {sum _{i}F_{i}y_{i}}{sum _{i}F_{i}^{2}}}.}{displaystyle {hat {k}}={frac {sum _{i}F_{i}y_{i}}{sum _{i}F_{i}^{2}}}.}

Here it is assumed that application of the force causes the spring to expand and, having derived the force constant by least squares fitting, the extension can be predicted from Hooke's law.


In regression analysis the researcher specifies an empirical model. For example, a very common model is the straight line model which is used to test if there is a linear relationship between dependent and independent variable. If a linear relationship is found to exist, the variables are said to be correlated. However, correlation does not prove causation, as both variables may be correlated with other, hidden, variables, or the dependent variable may "reverse" cause the independent variables, or the variables may be otherwise spuriously correlated. For example, suppose there is a correlation between deaths by drowning and the volume of ice cream sales at a particular beach. Yet, both the number of people going swimming and the volume of ice cream sales increase as the weather gets hotter, and presumably the number of deaths by drowning is correlated with the number of people going swimming. Perhaps an increase in swimmers causes both the other variables to increase.


In order to make statistical tests on the results it is necessary to make assumptions about the nature of the experimental errors. A common (but not necessary) assumption is that the errors belong to a normal distribution. The central limit theorem supports the idea that this is a good approximation in many cases.



  • The Gauss–Markov theorem. In a linear model in which the errors have expectation zero conditional on the independent variables, are uncorrelated and have equal variances, the best linear unbiased estimator of any linear combination of the observations, is its least-squares estimator. "Best" means that the least squares estimators of the parameters have minimum variance. The assumption of equal variance is valid when the errors all belong to the same distribution.

  • In a linear model, if the errors belong to a normal distribution the least squares estimators are also the maximum likelihood estimators.


However, if the errors are not normally distributed, a central limit theorem often nonetheless implies that the parameter estimates will be approximately normally distributed so long as the sample is reasonably large. For this reason, given the important property that the error mean is independent of the independent variables, the distribution of the error term is not an important issue in regression analysis. Specifically, it is not typically important whether the error term follows a normal distribution.


In a least squares calculation with unit weights, or in linear regression, the variance on the jth parameter,
denoted var⁡^j){displaystyle operatorname {var} ({hat {beta }}_{j})}operatorname {var}({hat  {beta }}_{j}), is usually estimated with


var⁡^j)=σ2([XTX]−1)jj≈Sn−m([XTX]−1)jj,{displaystyle operatorname {var} ({hat {beta }}_{j})=sigma ^{2}([X^{T}X]^{-1})_{jj}approx {frac {S}{n-m}}([X^{T}X]^{-1})_{jj},}{displaystyle operatorname {var} ({hat {beta }}_{j})=sigma ^{2}([X^{T}X]^{-1})_{jj}approx {frac {S}{n-m}}([X^{T}X]^{-1})_{jj},}

where the true error variance σ2 is replaced by an estimate based on the minimised value of the sum of squares objective function S. The denominator, n − m, is the statistical degrees of freedom; see effective degrees of freedom for generalizations.


Confidence limits can be found if the probability distribution of the parameters is known, or an asymptotic approximation is made, or assumed. Likewise statistical tests on the residuals can be made if the probability distribution of the residuals is known or assumed. The probability distribution of any linear combination of the dependent variables can be derived if the probability distribution of experimental errors is known or assumed. Inference is particularly straightforward if the errors are assumed to follow a normal distribution, which implies that the parameter estimates and residuals will also be normally distributed conditional on the values of the independent variables.



Weighted least squares



A special case of generalized least squares called weighted least squares occurs when all the off-diagonal entries of Ω (the correlation matrix of the residuals) are null; the variances of the observations (along the covariance matrix diagonal) may still be unequal (heteroscedasticity).



Relationship to principal components


The first principal component about the mean of a set of points can be represented by that line which most closely approaches the data points (as measured by squared distance of closest approach, i.e. perpendicular to the line). In contrast, linear least squares tries to minimize the distance in the y{displaystyle y}y direction only. Thus, although the two use a similar error metric, linear least squares is a method that treats one dimension of the data preferentially, while PCA treats all dimensions equally.



Regularization








Tikhonov regularization



In some contexts a regularized version of the least squares solution may be preferable. Tikhonov regularization (or ridge regression) adds a constraint that β2{displaystyle |beta |^{2}}|beta|^2, the L2-norm of the parameter vector, is not greater than a given value. Equivalently, it may solve an unconstrained minimization of the least-squares penalty with αβ2{displaystyle alpha |beta |^{2}}alpha|beta|^2 added, where α{displaystyle alpha }alpha is a constant (this is the Lagrangian form of the constrained problem). In a Bayesian context, this is equivalent to placing a zero-mean normally distributed prior on the parameter vector.



Lasso method


An alternative regularized version of least squares is Lasso (least absolute shrinkage and selection operator), which uses the constraint that β{displaystyle |beta |}{displaystyle |beta |}, the L1-norm of the parameter vector, is no greater than a given value.[8][9][10] (As above, this is equivalent to an unconstrained minimization of the least-squares penalty with αβ{displaystyle alpha |beta |}{displaystyle alpha |beta |} added.) In a Bayesian context, this is equivalent to placing a zero-mean Laplace prior distribution on the parameter vector.[11] The optimization problem may be solved using quadratic programming or more general convex optimization methods, as well as by specific algorithms such as the least angle regression algorithm.


One of the prime differences between Lasso and ridge regression is that in ridge regression, as the penalty is increased, all parameters are reduced while still remaining non-zero, while in Lasso, increasing the penalty will cause more and more of the parameters to be driven to zero. This is an advantage of Lasso over ridge regression, as driving parameters to zero deselects the features from the regression. Thus, Lasso automatically selects more relevant features and discards the others, whereas Ridge regression never fully discards any features. Some feature selection techniques are developed based on the LASSO including Bolasso which bootstraps samples,[12] and FeaLect which analyzes the regression coefficients corresponding to different values of α{displaystyle alpha }alpha to score all the features.[13]


The L1-regularized formulation is useful in some contexts due to its tendency to prefer solutions where more parameters are zero, which gives solutions that depend on fewer variables.[8] For this reason, the Lasso and its variants are fundamental to the field of compressed sensing. An extension of this approach is elastic net regularization.



See also




  • Adjustment of observations

  • Bayesian MMSE estimator


  • Best linear unbiased estimator (BLUE)


  • Best linear unbiased prediction (BLUP)

  • Gauss–Markov theorem


  • L2 norm

  • Least absolute deviation

  • Measurement uncertainty

  • Orthogonal projection

  • Proximal gradient methods for learning

  • Quadratic loss function

  • Root mean square

  • Squared deviations




References





  1. ^ Charnes, A.; Frome, E. L.; Yu, P. L. (1976). "The Equivalence of Generalized Least Squares and Maximum Likelihood Estimates in the Exponential Family". Journal of the American Statistical Association. 71 (353): 169–171. doi:10.1080/01621459.1976.10481508..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}


  2. ^ Bretscher, Otto (1995). Linear Algebra With Applications (3rd ed.). Upper Saddle River, NJ: Prentice Hall.


  3. ^ Stigler, Stephen M. (1981). "Gauss and the Invention of Least Squares". Ann. Stat. 9 (3): 465–474. doi:10.1214/aos/1176345451.


  4. ^ Stigler, Stephen M. (1986). The History of Statistics: The Measurement of Uncertainty Before 1900. Cambridge, MA: Belknap Press of Harvard University Press. ISBN 978-0-674-40340-6.


  5. ^ Legendre, Adrien-Marie (1805), Nouvelles méthodes pour la détermination des orbites des comètes [New Methods for the Determination of the Orbits of Comets] (in French), Paris: F. Didot


  6. ^ Aldrich, J. (1998). "Doing Least Squares: Perspectives from Gauss and Yule". International Statistical Review. 66 (1): 61–81. doi:10.1111/j.1751-5823.1998.tb00406.x.


  7. ^ For a good introduction to error-in-variables, please see Fuller, W. A. (1987). Measurement Error Models. John Wiley & Sons. ISBN 978-0-471-86187-4.


  8. ^ ab Tibshirani, R. (1996). "Regression shrinkage and selection via the lasso". Journal of the Royal Statistical Society, Series B. 58 (1): 267–288. JSTOR 2346178.


  9. ^ Hastie, Trevor; Tibshirani, Robert; Friedman, Jerome H. (2009). The Elements of Statistical Learning (second ed.). Springer-Verlag. ISBN 978-0-387-84858-7. Archived from the original on 2009-11-10.


  10. ^ Bühlmann, Peter; van de Geer, Sara (2011). Statistics for High-Dimensional Data: Methods, Theory and Applications. Springer. ISBN 9783642201929.


  11. ^ Park, Trevor; Casella, George (2008). "The Bayesian Lasso". Journal of the American Statistical Association. 103 (482): 681–686. doi:10.1198/016214508000000337.


  12. ^ Bach, Francis R (2008). "Bolasso: model consistent lasso estimation through the bootstrap". Proceedings of the 25th International Conference on Machine Learning: 33–40. doi:10.1145/1390156.1390161. ISBN 9781605582054.


  13. ^ Zare, Habil (2013). "Scoring relevancy of features based on combinatorial analysis of Lasso with application to lymphoma diagnosis". BMC Genomics. 14: S14. doi:10.1186/1471-2164-14-S1-S14. PMC 3549810. PMID 23369194.




Further reading








  • Björck, Å. (1996). Numerical Methods for Least Squares Problems. SIAM. ISBN 978-0-89871-360-2.


  • Kariya, T.; Kurata, H. (2004). Generalized Least Squares. Hoboken: Wiley. ISBN 978-0-470-86697-9.


  • Luenberger, D. G. (1997) [1969]. "Least-Squares Estimation". Optimization by Vector Space Methods. New York: John Wiley & Sons. pp. 78–102. ISBN 978-0-471-18117-0.


  • Rao, C. R.; Toutenburg, H.; et al. (2008). Linear Models: Least Squares and Alternatives. Springer Series in Statistics (3rd ed.). Berlin: Springer. ISBN 978-3-540-74226-5.


  • Wolberg, J. (2005). Data Analysis Using the Method of Least Squares: Extracting the Most Information from Experiments. Berlin: Springer. ISBN 978-3-540-25674-8.



External links



  • Media related to Least squares at Wikimedia Commons









這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()