DEFINITION
A statistical technique used in regression analysis. The sum of squares is a mathematical approach to determining the dispersion of data points. In a regression analysis, the goal is to determine how well a data series can be fitted to a function which might help to explain how the data series was generated. The sum of squares is used as a mathematical way to find the function which best fits (varies least) from the data.In order to determine the sum of squares the distance between each data point and the line of best fit is squared and then all of the squares are summed up. The line of best fit will minimize this value.
INVESTOPEDIA EXPLAINS
There are two methods of regression analysis which use the sum of squares: the linear least squares method and the nonlinear least squares method. Least squares refers to the fact that the regression function minimizes the sum of the squares of the variance from the actual data points. In this way, it is possible to draw a function which statistically provides the best fit for the data. A regression function can either be linear (a straight line) or nonlinear (a curving line).RELATED TERMS

Line Of Best Fit
A straight line drawn through the center of a group of data points plotted on ... 
Least Squares Method
A statistical technique to determine the line of best fit for a model. The least ... 
Residual Sum Of Squares  RSS
A statistical technique used to measure the amount of variance in a data set ... 
Stepwise Regression
The stepbystep iterative construction of a regression model that involves ... 
Hedonic Regression
A method used to determine the value of a good or service by breaking it down ... 
Autoregressive
A stochastic process used in statistical calculations in which future values ... 
Regression
A statistical measure that attempts to determine the strength of the relationship ... 
Multiple Linear Regression  MLR
A statistical technique that uses several explanatory variables to predict the ... 
Compound Annual Growth Rate  CAGR
The yearoveryear growth rate of an investment over a specified period of time. ... 
MeanVariance Analysis
The process of weighing risk against expected return. Mean variance analysis ...
Related Articles

Investing Basics
Calculating Beta: Portfolio Math For ...

Investing Basics
Regression Basics For Business Analysis

Options & Futures
Bettering Your Portfolio With Alpha ...

Active Trading
The Linear Regression Of Time and Price

Budgeting
The P/E Ratio: A Good MarketTiming ...

Personal Finance
What are the odds of getting a perfect ...

Technical Indicators
What's the difference between Bollinger ...

Bonds & Fixed Income
Accelerating Returns With Continuous ...

Fundamental Analysis
Calculating Covariance For Stocks

Investing Basics
Seven Market Anomalies Investors Should ...