AI Glossary / Statistics and probability / Intermediate
Least squares estimate
Definition
A least squares estimate is a parameter value obtained by minimizing a sum of squared discrepancies between observed data and a specified model. In regression, these discrepancies are usually response residuals: observed y minus the model's predicted y. The estimate is the numerical result for one dataset; the estimator is the rule that produces such results across possible datasets. Least squares can estimate parameters in linear or nonlinear models, and the chosen weights, constraints and model form determine exactly which estimate is obtained.
What it means
The phrase describes an optimization criterion, not a guarantee that the resulting number equals the true parameter. Squaring prevents positive and negative residuals from canceling and gives larger discrepancies greater influence. A minimum identifies the best fit under the selected criterion and model class. Statistical properties such as unbiasedness, efficiency and uncertainty require additional assumptions about the data-generating process. Different model specifications or weighting schemes can yield different least squares estimates from the same observations without any arithmetic contradiction.
How it works
Write the model prediction as f(x; beta), where beta contains unknown parameters. Define the objective as the sum of [y - f(x; beta)] squared, with specified weights if applicable. Solve for a minimizing parameter vector. For a full-rank linear model, the normal equations characterize the solution, although stable numerical methods such as QR or singular-value decomposition are often preferable to explicitly inverting a matrix. Nonlinear models may require iterative optimization and checks for local minima. Examine residuals, rank and numerical conditioning before interpreting the result.
Three practical examples
- Calibration: estimate a slope and intercept connecting a reference input to an instrument response.
- Forecasting: estimate coefficients of a specified regression baseline from historical training data.
- Scientific modeling: fit parameters of a nonlinear response curve, recognizing that optimization convergence and scientific validity are separate issues. Each application needs an error model appropriate to the way its observations were collected.
Think of it this way
Think of adjusting the knobs of a model until the total squared mismatch is as small as possible. The estimate is the final knob setting; the estimation method is the adjustment rule. A well-adjusted set of knobs can still belong to the wrong model, and another dataset may lead to a different setting. Fit quality and uncertainty therefore answer different questions.
Worked example
Fit y = a + bx to the three observations (0,1), (1,2) and (2,4). The predictor mean is 1 and response mean is 7/3. The centered cross-product sum is 3 and the predictor squared-deviation sum is 2, giving b = 3/2. Then a = 7/3 - 3/2 = 5/6. Predictions are 5/6, 7/3 and 23/6; residuals are 1/6, -1/3 and 1/6. Their squared sum is 1/6. Holding the slope at 3/2 but changing the intercept to 1 raises the squared sum to 1/4. The fitted residuals sum to zero and their inner product with x is zero, satisfying the normal equations. The estimates 5/6 and 3/2 are sample results, not proof of the population intercept and slope. With only three observations, inferential conclusions would be especially dependent on assumptions.
Illustrative case study
In a fictional case, Summit Instruments estimates a calibration line from repeated reference measurements. An analyst reports the fitted slope as though it were exact. The team revises the report to distinguish the point estimate from its uncertainty and checks whether variability changes across the measurement range. It then compares ordinary and appropriately weighted fits using the actual measurement design. The final calibration record includes model form, units, data range and diagnostics, so later users can interpret the numbers in context.
Common misconceptions and mistakes
A least squares estimate does not require normally distributed errors merely to be computed. Normality can matter for particular likelihood interpretations and exact inferential procedures. Unbiasedness does not follow from minimization alone. If the design matrix is rank deficient, coefficient estimates can be nonunique even when fitted values are unique. A minimum training error does not imply low future prediction error. Changing units changes numerical coefficients, and measurement error in predictors can invalidate the usual interpretation of ordinary regression estimates.
Business use
Business reports should present least squares estimates alongside their purpose, units, model specification and relevant uncertainty. A coefficient used for prediction need not be a causal effect. Record how missing data, weights, constraints and unusual observations were handled. Check sensitivity to plausible alternatives and use validation for predictive decisions. When coefficients feed operational rules, assess whether extrapolation or changes in the input distribution could make their use unreliable. The estimate is one component of an evidence-based decision, not a complete decision rule.
People also ask
Is an estimate the same as an estimator?
No. The estimate is a realized value; the estimator is the data-dependent rule.
Can two coefficient vectors both be least squares estimates?
Yes, for example when predictors are exactly redundant and the solution is not identifiable.
Does the smallest residual sum prove the model is correct?
No. It only establishes optimal fit within the chosen model class and objective, assuming the optimization found the relevant minimum.
Check your understanding
What does the residual sum of zero establish in the example?
Answer: It is one normal-equation condition for an unconstrained ordinary linear least-squares fit with an intercept. It does not establish independent errors, correct functional form or a causal relationship. Those require separate reasoning and evidence.
Related terms
- Least squares regression
- Point estimate
- Residual
- Normal equations
- Weighted least squares
- estimator
- design matrix
- identifiability
- nonlinear least squares
Learn next
Learn how the normal equations arise by differentiating the squared-error objective. Then study rank deficiency, numerical conditioning and the distinction between parameter uncertainty and prediction uncertainty. Connect statistical assumptions to the properties claimed for an estimate.
More in Statistics and probability
- LDL, lower detection limit - LDL, or lower detection limit, describes a measurement method's ability to distinguish a low-level analyte or signal from background under stated conditions.
- Least absolute deviation regression - Least absolute deviation regression, often called least absolute deviations or LAD regression, estimates a model by minimizing the sum of absolute residuals...
- Least Angle Regression - Least Angle Regression, usually abbreviated LARS, is an algorithm that builds a piecewise-linear path of linear regression fits by progressively...
- Least-squares support vector machine - A least-squares support vector machine, or LS-SVM, is a kernel-based learning formulation that uses squared errors and equality constraints in place of the...
- Lepage test - The Lepage test is a two-sample rank test that combines evidence about location and scale differences.
- Leptokurtic - Leptokurtic describes a distribution whose kurtosis exceeds that of a normal distribution: Pearson kurtosis greater than 3, or excess kurtosis greater than...
Sources
NIST/SEMATECH e-Handbook, Least Squares: https://www.itl.nist.gov/div898/handbook/pmd/section4/pmd431.htm . NIST, Linear Least Squares Regression: https://www.itl.nist.gov/div898/handbook/pmd/section1/pmd141.htm . The three-observation calculation and fictional calibration case above are original examples.
Previous: Least-squares Analysis Next: Least-squares minimization