Why Do We Square Errors in Least Squares Regression?

AI Thread Summary
In least squares regression, errors are squared to ensure that both positive and negative deviations from the regression line contribute positively to the total error, allowing for accurate minimization. This method focuses on minimizing the sum of squared errors between the regression line and data points. The least squares estimators for the parameters of the line are considered the best unbiased estimators under the assumption of normally distributed errors, as supported by the Gauss-Markov theorem. Additionally, the normality condition can be relaxed with a large number of observations. Understanding these principles is crucial for effective line fitting in engineering problems.
likephysics
Messages
638
Reaction score
4
You must have used it couple of times while solving an engineering problem. For example in line fitting, why do we have to square?
Can't we just pass the line thru the max number of points. Can someone explain.
Thanks in advance.
 
Engineering news on Phys.org
The whole point is to minimize the error between the regression line and the individual datum points. The term "least squares" comes from the fact that you are taking the sum of the squared error terms. The terms are squared so that the error, either positive or negative, becomes a positive term (it needs to be positive because you are looking at the ditance from a point to a line).
 
The LS estimators of the parameters a and b in the line y = a.x + b are also the best unbiased estimators if x and y are assumed to have proper values with a normally distributed errors. See the ' Gauss-Markov theorem'. If you have a large number of of readings for x and y then the normal error distribution condition can be relaxed.
 
Hi all, I have a question. So from the derivation of the Isentropic process relationship PV^gamma = constant, there is a step dW = PdV, which can only be said for quasi-equilibrium (or reversible) processes. As such I believe PV^gamma = constant (and the family of equations) should not be applicable to just adiabatic processes? Ie, it should be applicable only for adiabatic + reversible = isentropic processes? However, I've seen couple of online notes/books, and...
Thread 'How can I find the cleanout for my building drain?'
I am a long distance truck driver, but I recently completed a plumbing program with Stratford Career Institute. In the chapter of my textbook Repairing DWV Systems, the author says that if there is a clog in the building drain, one can clear out the clog by using a snake augur or maybe some other type of tool into the cleanout for the building drain. The author said that the cleanout for the building drain is usually near the stack. I live in a duplex townhouse. Just out of curiosity, I...
I have an engine that uses a dry sump oiling system. The oil collection pan has three AN fittings to use for scavenging. Two of the fittings are approximately on the same level, the third is about 1/2 to 3/4 inch higher than the other two. The system ran for years with no problem using a three stage pump (one pressure and two scavenge stages). The two scavenge stages were connected at times to any two of the three AN fittings on the tank. Recently I tried an upgrade to a four stage pump...
Back
Top