Data & Analytics
Least Squares Criterion
A statistical method used to find the line of best fit in a regression analysis.
01
■ definition
About
Least Squares Criterion
The least squares criterion is the rule used to fit a regression line: choose the line that minimises the sum of the squared residuals, where a residual is the difference between an observed value and the value the line predicts. Formally, minimise SSE = Σ(yᵢ − ŷᵢ)² over all data points. Squaring means large errors are penalised far more heavily than small ones, and positive and negative errors cannot cancel each other out.
For a simple regression ŷ = a + bx, applying the criterion gives exact formulas: the slope is b = Σ(xᵢ − x̄)(yᵢ − ȳ) ÷ Σ(xᵢ − x̄)², and the intercept is a = ȳ − b x̄. For example, with points (1, 2), (2, 3), and (3, 5), the slope is 3 ÷ 2 = 1.5 and the intercept is about 0.33, giving ŷ = 0.33 + 1.5x and a sum of squared residuals of about 0.167. The fitted line always passes through the point of averages (x̄, ȳ).
02
■ real-world examples
How It Plays Out in Practice
The least squares criterion is the rule used to fit a regression line: choose the line that minimises the sum of the squared residuals, where a residual is the difference between an observed value and the value the line predicts. Formally, minimise SSE = Σ(yᵢ − ŷᵢ)² over all data points. Squaring means large errors are penalised far more heavily than small ones, and positive and negative errors cannot cancel each other out.
For a simple regression ŷ = a + bx, applying the criterion gives exact formulas: the slope is b = Σ(xᵢ − x̄)(yᵢ − ȳ) ÷ Σ(xᵢ − x̄)², and the intercept is a = ȳ − b x̄. For example, with points (1, 2), (2, 3), and (3, 5), the slope is 3 ÷ 2 = 1.5 and the intercept is about 0.33, giving ŷ = 0.33 + 1.5x and a sum of squared residuals of about 0.167. The fitted line always passes through the point of averages (x̄, ȳ).
03
■ key takeaways
What to Remember
◆
The least squares criterion fits a line by minimising the sum of the squared differences between observed and predicted values.
◆
Squaring the residuals penalises large errors disproportionately and stops positive and negative errors from cancelling out.
◆
For simple regression the criterion produces exact formulas for the slope and intercept, so no trial and error is needed.
◆
The method is sensitive to outliers, because one extreme observation contributes a very large squared error to the total.
04
■ breaking it down
Understanding Least Squares Criterion
01
The Criterion Itself
The criterion is a single number — the sum of squared residuals — attached to any candidate line. The best-fitting line is simply the one with the smallest value, which turns line-fitting into a well-defined minimisation problem.
02
The Resulting Formulas
Solving the minimisation gives the slope as the covariance of x and y divided by the variance of x, and the intercept from the means. The solution is unique whenever x takes more than one distinct value.
03
Why Squares Are Used
Squaring makes the mathematics smooth and solvable, treats over- and under-prediction symmetrically, and weights big misses heavily. Using absolute errors instead leads to a different, harder-to-compute fit.
04
Sensitivity to Outliers
Because errors are squared, a single outlier can pull the fitted line noticeably toward itself. Analysts check for influential points before trusting a least squares fit on real business data.
05
■ why it matters
The Importance of
Least Squares Criterion
Least squares is the engine inside most of the forecasting and analysis tools businesses rely on, from sales trend lines in spreadsheets to demand models and cost estimation. The criterion matters because it defines what 'best fit' means: every regression output a manager reads — a growth rate, a cost behaviour estimate, a marketing response figure — is the answer to this minimisation. Knowing that the fit minimises squared errors explains both its strengths and its known weakness with outliers, and helps decision-makers judge when a trend line deserves confidence and when the data behind it needs cleaning first.
did you know
The method of least squares was first published by Adrien-Marie Legendre in 1805. Carl Friedrich Gauss later wrote that he had been using the method since 1795 and set out its statistical foundations in 1809, a priority dispute that historians still note when the method's origins are described.
06
■ strategies
Applying Least Squares Soundly
The criterion always returns a line; the analyst's job is to make sure the line deserves to be believed.
01
Plot the Data First
Draw the scatter of points before fitting anything. A plot reveals curvature, clusters, and extreme points that the fitted coefficients alone will never show.
02
Check for Outliers
Identify observations far from the pattern and verify them for recording errors. One wrong figure can drag a least squares line well away from the bulk of the data.
03
Confirm the Relationship's Shape
Least squares fits a straight line whether or not the underlying relationship is straight. If the pattern curves, transform the data or choose a different model form.
04
Report Fit Alongside the Line
Quote a measure of fit, such as R-squared, with the slope and intercept. A precisely fitted line through widely scattered data still predicts poorly.
05
Test the Model on New Data
Hold back recent observations and check how well the fitted line predicts them. A model that only explains the data it was built on has limited planning value.
06
Revisit the Fit Periodically
Refit the line as new data arrives and compare the coefficients over time. A drifting slope is itself information about a changing market or cost structure.
07
■ summary
The Bottom Line
The least squares criterion defines the best-fitting regression line as the one minimising the sum of squared residuals, SSE = Σ(yᵢ − ŷᵢ)². It yields exact formulas for slope and intercept, underpins ordinary least squares regression throughout business analytics, and is known to be sensitive to outliers because squaring magnifies large errors. Used with plotted data and fit statistics, it turns scattered observations into a defensible summary of a relationship.
■ related service
Need help turning your business data into forecasts you can actually rely on for planning?
Regression results are only as good as the data checks behind them, and a fitted line can mislead when outliers or curved patterns go unexamined. Intenovate helps clients structure their reporting data, question model outputs, and build forecasting routines that support planning decisions.
%20(1).png)










