9512.net
甜梦文库
当前位置:首页 >> >>

The Method of Least Squares


The Method of Least Squares
Hervé Abdi1

1 Introduction
The least square methods (LSM) is probably the most popular technique in statistics. This is due to several factors. First, most common estimators can be casted within this framework. For example, the mean of a distribution is the value that minimizes the sum of squared deviations of the scores. Second, using squares makes LSM mathematically very tractable because the Pythagorean theorem indicates that, when the error is independent of an estimated quantity, one can add the squared error and the squared estimated quantity. Third, the mathematical tools and algorithms involved in LSM (derivatives, eigendecomposition, singular value decomposition) have been well studied for a relatively long time. LSM is one of the oldest techniques of modern statistics, and even though ancestors of LSM can be traced up to Greek mathematics, the ?rst modern precursor is probably Galileo (see Harper, 1974, for a history and pre-history of LSM). The modern approach was ?rst exposed in 1805 by the French mathematician Legendre in a now classic memoir, but this method is somewhat older because it turned out that, after the publication of Legendre’s memoir, Gauss (the famous German mathematician) contested Legen1 In: Neil Salkind (Ed.) (2007). Encyclopedia of Measurement and Statistics. Thousand Oaks (CA): Sage. Address correspondence to: Hervé Abdi Program in Cognition and Neurosciences, MS: Gr.4.1, The University of Texas at Dallas, Richardson, TX 75083–0688, USA E-mail: herve@utdallas.edu http://www.utd.edu/?herve

1

Hervé Abdi: The Method of Least Squares

dre’s priority. Gauss often did not published ideas when he though that they could be controversial or not yet ripe, but would mention his discoveries when others would publish them (the way he did, for example for the discovery of Non-Euclidean geometry). And in 1809, Gauss published another memoir in which he mentioned that he had previously discovered LSM and used it as early as 1795 in estimating the orbit of an asteroid. A somewhat bitter anteriority dispute followed (a bit reminiscent of the Leibniz-Newton controversy about the invention of Calculus), which, however, did not diminish the popularity of this technique. The use of LSM in a modern statistical framework can be traced to Galton (1886) who used it in his work on the heritability of size which laid down the foundations of correlation and (also gave the name to) regression analysis. The two antagonistic giants of statistics Pearson and Fisher, who did so much in the early development of statistics, used and developed it in different contexts (factor analysis for Pearson and experimental design for Fisher). Nowadays, the least square method is widely used to ?nd or estimate the numerical values of the parameters to ?t a function to a set of data and to characterize the statistical properties of estimates. It exists with several variations: Its simpler version is called ordinary least squares (OLS), a more sophisticated version is called weighted least squares (WLS), which often performs better than OLS because it can modulate the importance of each observation in the ?nal solution. Recent variations of the least square method are alternating least squares (ALS) and partial least squares (PLS).

2 Functional ?t example: regression
The oldest (and still the most frequent) use of OLS was linear regression, which corresponds to the problem of ?nding a line (or curve) that best ?ts a set of data points. In the standard formulation, a set of N pairs of observations {Yi , X i } is used to ?nd a function relating the value of the dependent variable (Y ) to the values of an independent variable (X ). With one variable and a

2

Hervé Abdi: The Method of Least Squares

linear function, the prediction is given by the following equation: ? Y = a + bX . (1)

This equation involves two free parameters which specify the intercept (a) and the slope (b) of the regression line. The least square method de?nes the estimate of these parameters as the values which minimize the sum of the squares (hence the name least squares) between the measurements and the model (i.e., the predicted values). This amounts to minimizing the expression: E=
i

? (Yi ? Yi )2 =
i

[Yi ? (a + bX i )]2

(2)

(where E stands for “error" which is the quantity to be minimized). The estimation of the parameters is obtained using basic results from calculus and, speci?cally, uses the property that a quadratic expression reaches its minimum value when its derivatives vanish. Taking the derivative of E with respect to a and b and setting them to zero gives the following set of equations (called the normal equations): ?E = 2N a + 2b X i ? 2 Yi = 0 (3) ?a and ?E = 2b X i2 + 2a X i ? 2 Yi X i = 0 . (4) ?b Solving the normal equations gives the following least square estimates of a and b as: a = M Y ? bM X (5) (with M Y and M X denoting the means of X and Y ) and b= (Yi ? M Y )(X i ? M X ) (X i ? M X )2 . (6)

OLS can be extended to more than one independent variable (using matrix algebra) and to non-linear functions.

3

Hervé Abdi: The Method of Least Squares

2.1 The geometry of least squares
OLS can be interpreted in a geometrical framework as an orthogonal projection of the data vector onto the space de?ned by the independent variable. The projection is orthogonal because the predicted values and the actual values are uncorrelated. This is illustrated in Figure 1, which depicts the case of two independent variables (vectors x1 and x2 ) and the data vector (y), and shows ? that the error vector (y ? y) is orthogonal to the least square (? ) esy timate which lies in the subspace de?ned by the two independent variables.

y x1 y y_^ ^ y x2

Figure 1: The least square estimate of the data is the orthogonal

projection of the data vector onto the independent variable subspace.

4

Hervé Abdi: The Method of Least Squares

2.2 Optimality of least square estimates
OLS estimates have some strong statistical properties. Speci?cally when (1) the data obtained constitute a random sample from a well-de?ned population, (2) the population model is linear, (3) the error has a zero expected value, (4) the independent variables are linearly independent, and (5) the error is normally distributed and uncorrelated with the independent variables (the so-called homoscedasticity assumption); then the OLS estimate is the best linear unbiased estimate often denoted with the acronym “BLUE" (the 5 conditions and the proof are called the Gauss-Markov conditions and theorem). In addition, when the Gauss-Markov conditions hold, OLS estimates are also maximum likelihood estimates.

2.3 Weighted least squares
The optimality of OLS relies heavily on the homoscedasticity assumption. When the data come from different sub-populations for which an independent estimate of the error variance is available, a better estimate than OLS can be obtained using weighted least squares (WLS), also called generalized least squares (GLS). The idea is to assign to each observation a weight that re?ects the uncertainty of the measurement. In general, the weight w i , assigned to the i th observation, will be a function of the variance of this observation, denoted σ2 . A straightforward weighting schema i is to de?ne w i = σ?1 (but other more sophisticated weighted schi emes can also be proposed). For the linear regression example, WLS will ?nd the values of a and b minimizing: Ew =
i

? w i (Yi ? Yi )2 =
i

w i [Yi ? (a + bX i )]2 .

(7)

2.4 Iterative methods: Gradient descent
When estimating the parameters of a nonlinear function with OLS or WLS, the standard approach using derivatives is not always possible. In this case, iterative methods are very often used. These methods search in a stepwise fashion for the best values of the estimate. Often they proceed by using at each step a linear approx5

Hervé Abdi: The Method of Least Squares

imation of the function and re?ne this approximation by successive corrections. The techniques involved are known as gradient descent and Gauss-Newton approximations. They correspond to nonlinear least squares approximation in numerical analysis and nonlinear regression in statistics. Neural networks constitutes a popular recent application of these techniques

3 Problems with least squares, and alternatives
Despite its popularity and versatility, LSM has its problems. Probably, the most important drawback of LSM is its high sensitivity to outliers (i.e., extreme observations). This is a consequence of using squares because squaring exaggerates the magnitude of differences (e.g., the difference between 20 and 10 is equal to 10 but the difference between 202 and 102 is equal to 300) and therefore gives a much stronger importance to extreme observations. This problem is addressed by using robust techniques which are less sensitive to the effect of outliers. This ?eld is currently under development and is likely to become more important in the next future.

References
[1] Abdi, H., Valentin D., Edelman, B.E. (1999) Neural networks. Thousand Oaks: Sage. [2] Bates, D.M. & Watts D.G. (1988). Nonlinear regression analysis and its applications. New York: Wiley [3] Greene, W.H. (2002). Econometric analysis. New York: Prentice Hall. [4] Harper H.L. (1974–1976). The method of least squares and some alternatives. Part I, II, II, IV, V, VI. International Satistical Review, 42, 147–174; 42, 235–264; 43, 1–44; 43, 125–190; 43, 269–272; 44, 113–159; [5] Nocedal J. & Wright, S. (1999). Numerical optimization. New York: Springer.

6

Hervé Abdi: The Method of Least Squares

[6] Plackett, R.L. (1972). The discovery of the method of least squares. Biometrika, 59, 239–251. [7] Seal, H.L. (1967). The historical development of the Gauss linear model. Biometrika, 54, 1–23.

7



更多相关文章:
The Method of Least Squares.pdf
The Method of Least Squares - The least square methods (LSM) is probably the most popular techniq...
...versiongauss and the method of least squares_图....ppt
Gauss’ treatment of error Gauss’ derivation of the method of least squares Gauss’ derivation by modern matrix notation Gauss-Markov theorem Limitations of...
最小二乘法MethodLeastSquares.pdf
最小二乘法MethodLeastSquares - The Method of Least Squares Steven J. Miller? Mathematics Department Br...
The Least Squares Estimation Method.pdf
The Least Squares Estimation Method_数学_自然科学_专业资料 暂无评价|0人阅读|0次下载|举报文档 The Least Squares Estimation Method_数学_自然科学_专业资料。...
MethodLeastSquares.pdf
MethodLeastSquares - The Method of Least Squares Steven J. Miller? Mathematics Department Brown U...
6.1 Least Squares Method (双语)_图文.pdf
L????{ Page 1 of 27 Go Back Full Screen Close Quit 6.1.1 Least Squares Method ???{ (6.1.1) De?nition 6.1.1 The set of functions ...
Least squares and least norm in Matlab.pdf
The least-squares approximate solution of Ax = y is given by xls = (AT...The simplest method is to use the backslash operator : xls=A\y; If A ...
method of moments.pdf
Note that this case is only one of the many cases for which the method of moment estimation approach is applicable. For example, least squares and two...
...Evolution Method in Least Squares Fitting of Som....pdf
Least Squares Fitting 7页 免费 The Method of Least Squa... 7页 免费 Least-Squares+Fitting+of... 3页 免费 6.1 Least Squares Metho... 暂无评价 27...
The Approximation Power of Moving Least-Squares_免....pdf
The Approximation Power of Moving Least-Squares Abstract. A general method for near-best approximations to functionals on R d, using scattered-data informati...
...simulation and the method of conditional least squares_....pdf
Grid--based simulation and the method of conditional least squares_专业资料。This paper is concerned with the use of simulation to compute the conditional ...
Least Squares Best Fit Element.pdf
1.2.Least Squares Best Fit Element The application of least square criteria...So the alternative method using singular value decomposition is used to solve...
...method for nonlinear least squares curve-.pdf
The Levenberg-Marquardt method for nonlinear least squares curve-?tting problems c Henri P. Gavin Department of Civil and Environmental Engineering Duke ...
The Stress Intensity Factor of Opening Mode Determi....pdf
Finally, the obtained displacement within the elastic range was used to evaluate SIF using the method of least-squares. Some key issues were considered ...
Least-Squares (Model Fitting) Algorithms.pdf
Least Squares Definition Large-Scale Least Squares Levenberg-Marquardt Method Least Squares Definition Least squares, in general, is the problem of finding a...
Direct Least Squares Fitting of Ellipses_图文.pdf
Direct Least Squares Fitting of Ellipses_其它语言学习_外语学习_教育专区。...This paper introducesa new fittingmethod that combines the advantages of:...
Least-squares fitting of data by rational functions Levy's ....pdf
Least-squares fitting of data by rational functions Levy's method 最小二乘最小二乘隐藏>> bythenumbers By the Numbers April 2010 we can thinkkof=as ...
General Least-Squares Smoothing and Differentiation by ....pdf
General Least-Squares Smoothing and Differentiation by the Convolution (Savitzky-Golay) Method Peter A. Gorry Department of Chemistry, University of Manchester...
2. Least Squares Dummy Variable Regression 3. Panel....pdf
The feasible generalized least squares (FGLS) method is used to estimate ...Table 3. Three Approaches of Least Squares Dummy Variable Models LSDV1: ...
Bayes Least Squares- Gaussian Scale Mixtures (BLS-GSM).pdf
we presented an extension of the original Bayes Least Squares - Gaussian Scale...However, that method had some problems: a) it could not compensate for ...
更多相关标签:

All rights reserved Powered by 甜梦文库 9512.net

copyright ©right 2010-2021。
甜梦文库内容来自网络,如有侵犯请联系客服。zhit325@126.com|网站地图