| Method Of Least Squares |
Shopping Least |
Articles about Least Squares |
Website Links For Squares |
Information AboutMethod Of Least Squares |
| CATEGORIES ABOUT LEAST SQUARES | |
| optimization | |
| single equation methods econometrics | |
| mathematical and quantitative methods economics | |
|
A related method is the Least Mean Squares (LMS) method. It occurs when the number of measured data is 1 and the Gradient Descent method is used to minimize the squared residual. LMS is known to minimize the expectation of the squared residual, with the smallest number of operations per iteration). However, it requires a large number of iterations to converge. Furthermore, many other types of optimization problems can be expressed in a least squares form, by either minimizing Energy or maximizing Entropy . 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 key to enabling ships to sail in open seas where before sailors had to rely on land sightings to determine the positions of their ships.
The method itself ]] In 1795 , Carl Friedrich Gauss , at the age of 18, is credited with developing the fundamentals of the basis for least-squares analysis. However, as with many of his discoveries, he did not publish them. The strength of his method was demonstrated in 1801, when it was used to predict the future location of the newly discovered asteroid Ceres . On January 1st , 1801 , the Italian astronomer Giuseppe Piazzi had discovered the asteroid Ceres and had been able to track its path for 40 days before it was lost in the glare of the sun. Based on this data, it was desired to determine the location of Ceres after it emerged from behind the sun without solving the complicated Kepler's Nonlinear Equations of planetary motion. The only predictions that successfully allowed the Hungarian astronomer Franz Xaver Von Zach to relocate Ceres were those performed by the 24-year-old Gauss using least-squares analysis. However, Gauss did not publish the method until 1809 , when it appeared in volume two of his work on celestial mechanics, ''Theoria Motus Corporum Coelestium in sectionibus conicis solem ambientium''. The idea of least-squares analysis was independently formulated by the Frenchman Adrien-Marie Legendre in 1805 and the American Robert Adrain in 1808 . In 1829 , 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 estimators of the coefficients is the least-squares estimators. This result is known as the Gauss-Markov Theorem . PROBLEM STATEMENT The objective consists of adjusting a model function to best fit a data set. The chosen model function has adjustable parameters. The data set consist of n points with . The model function has the form , where is the dependent variable, are the independent variables, and are the model adjustable parameters. We wish to find the parameter values such that the model best fits the data according to a defined error criterion. The least sum square method minimizes the sum square error equation with respect to the adjustable parameters . For an example, the data is height measurements over a surface. We choose to model the data by a plane with parameters for plane mean height, plane tip angle, and plane tilt angle. The model equation is then , the independent variables are , and the adjustable parameters are . SOLVING THE LEAST SQUARES PROBLEM Least square optimization problems can be divided into linear and non-linear problems. The linear problem has a closed form solution. The optimization problem is said to be a linear optimization problem if the first order partial derivatives of ''S'' with respect to the parameters results in a set of equations that is linear in the parameter variables. The general, non-linear, unconstrained Optimization problem has no closed form solution. In this case recursive methods, such as Newton's Method , combined with the Gradient Descent method, or specialized methods for least squares analysis, such as the Gauss-Newton Algorithm or the Levenberg-Marquardt Algorithm can be used. LEAST SQUARES AND REGRESSION ANALYSIS In Regression Analysis , one replaces the relation : by : where the noise term ε is a Random Variable with mean zero. Note that we are assuming that the values are exact, and all the errors are in the values. Again, we distinguish between Linear Regression , in which case the function ''f'' is linear in the parameters to be determined (e.g., ''f''(''x'') = ''ax''2 + ''bx'' + ''c''), and Nonlinear Regression . As before, linear regression is much simpler than nonlinear regression. (It is tempting to think that the reason for the name ''linear regression'' is that the graph of the function ''f''(''x'') = ''ax'' + ''b'' is a line. But fitting a curve like ''f''(''x'') = ''ax''2 + ''bx'' + ''c'' when estimating ''a'', ''b'', and ''c'' by least squares, is an instance of ''linear'' regression because the vector of least-square estimates of ''a'', ''b'', and ''c'' is a Linear Transformation of the vector whose components are ''f''(''x''''i'') + ε''i''. Parameter estimates By recognizing that the regression model is a system of linear equations we can express the model using data matrix X, ''target'' vector '''Y''' and parameter vector . The ''i''th row of X and '''Y''' will contain the ''x'' and ''y'' value for the ''i''th data sample. Then the model can be written as : which when using pure matrix notation becomes : where ε is normally distributed with expected value 0 (i.e., a column vector of 0s) and variance σ2 ''I''''n'', where ''In'' is the ''n''×''n'' identity matrix. The Least-squares Estimator for is : (where ''X''T is the transpose of ''X'') and the sum of squares of residuals is : One of the properties of least-squares is that the matrix is the orthogonal projection of ''Y'' onto the column space of ''X''. The fact that the matrix ''X''(''X''T''X'')−1''X''T is a Symmetric Idempotent matrix is incessantly relied on in proofs of theorems. The linearity of as a function of the vector ''Y'', expressed above by saying : is the reason why this is called "linear" regression. Nonlinear regression uses nonlinear methods of estimation. The matrix ''In'' − ''X'' (''X''T ''X'')−1 ''X''T that appears above is a symmetric idempotent matrix of rank ''n'' − 2. Here is an example of the use of that fact in the theory of linear regression. The finite-dimensional with ''n''−2 degrees of freedom. Regression parameters can also be estimated by Bayesian methods. This has the advantages that
Suppose that in the linear regression : we know from domain knowledge that alpha can only take one of the values {−1, +1} but we do not know which. We can build this information into the analysis by choosing a prior for alpha which is a discrete distribution with a probability of 0.5 on −1 and 0.5 on +1. The posterior for alpha will also be a discrete distribution on {−1, +1}, but the probability weights will change to reflect the evidence from the data. In modern computer applications, the actual value of is calculated using the QR Decomposition or slightly more fancy methods when is near singular. The code for the MATLAB \ function is an excellent example of a robust method. Summarizing the data We sum the observations, the squares of the ''X''s and the products ''XY'' to obtain the following quantities. : : : : Estimating beta (the slope) We use the summary statistics above to calculate , the estimate of β. : Estimating alpha (the intercept) We use the estimate of β and the other statistics to estimate α by: : A consequence of this estimate is that the regression line will always pass through the "center" . LIMITATIONS Least squares estimation for linear models is notoriously non-robust to Outliers . If the distribution of the outliers is skewed, the estimates can be biased. In the presence of any outliers, the least squares estimates are inefficient and can be extremely so. When outliers occur in the data, methods of Robust Regression are more appropriate. REFERENCES
SEE ALSO
EXTERNAL LINKS
|
|
|