Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Statistics›Ordinary Least Squares (OLS)
Regression model

Ordinary Least Squares (OLS)

Ordinary Least Squares Regression · Also known as: OLS, OLS regression, linear least squares, classical linear regression, least squares estimation

Ordinary Least Squares (OLS) is the canonical method for estimating the parameters of a linear regression model by minimizing the sum of squared differences between observed and predicted values. First published by Adrien-Marie Legendre in 1805 and independently developed by Carl Friedrich Gauss (who claimed priority from 1795), OLS is provably optimal under the Gauss-Markov theorem: given its assumptions, it yields the Best Linear Unbiased Estimator (BLUE) of the regression coefficients.

ScholarGate
  1. Regression model
  2. v1
  3. 4 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Ordinary Least Squares
Generalized Least SquaresInstrumental Variables i…Lasso RegressionMultiple Linear Regressi…Ridge RegressionRobust RegressionSimple Linear RegressionWeighted Least Squares

When to use it

Use OLS when the outcome variable is continuous and you hypothesize a linear relationship between it and one or more predictors. The method is appropriate under the classical linear regression assumptions: (1) the true model is linear in the parameters; (2) the predictor matrix X has full column rank (no perfect multicollinearity); (3) the errors have zero conditional mean E(ε | X) = 0 (exogeneity); (4) errors are homoskedastic with constant variance σ²; and (5) errors are uncorrelated across observations. Under these five conditions, the Gauss-Markov theorem guarantees that OLS is BLUE. If errors are also normally distributed, exact t- and F-inference follows in finite samples. Violations of homoskedasticity call for heteroskedasticity-robust standard errors or Weighted Least Squares; serial correlation calls for feasible GLS; endogeneity calls for Instrumental Variables or Two-Stage Least Squares.

Strengths & limitations

Strengths
  • Closed-form analytical solution — no iterative optimization is required, making computation fast and numerically stable.
  • Optimal under the Gauss-Markov conditions: BLUE among all linear unbiased estimators.
  • Coefficient estimates have a direct causal/associational interpretation as marginal effects, holding other predictors constant.
  • Rich inferential toolkit: t-tests, F-tests, confidence intervals, and R² all follow naturally from the OLS framework.
  • Universal availability in every statistical software package and transparent enough to audit by hand for small systems.
Limitations
  • Assumes a correctly specified linear functional form; nonlinear relationships require transformations or nonlinear models.
  • Sensitive to outliers and high-leverage observations because squared errors magnify the influence of extreme points.
  • Inefficient and standard errors are incorrect under heteroskedasticity or autocorrelation unless corrections are applied.
  • Produces biased and inconsistent estimates when predictors are endogenous (correlated with the error term).
  • Coefficient estimates are unstable and difficult to interpret when predictors are highly collinear.

Frequently asked

What does the Gauss-Markov theorem actually guarantee?

Under five classical assumptions — linearity, full rank X, zero conditional mean errors, homoskedasticity, and uncorrelated errors — the Gauss-Markov theorem proves that the OLS estimator has the smallest variance among all estimators that are both linear in y and unbiased. This is the 'BLUE' property. It does not require the errors to be normally distributed; that additional assumption is needed only for exact finite-sample t- and F-inference.

When should I use robust standard errors instead of conventional OLS standard errors?

When the homoskedasticity assumption is in doubt — that is, when the variance of the errors may differ across observations — conventional OLS standard errors are incorrect, even though the coefficient estimates β̂ remain consistent. Heteroskedasticity-robust (White) standard errors correct the estimated covariance matrix without requiring a specific model for the variance. They are now routinely used in applied econometrics as a precaution even when heteroskedasticity is not strongly suspected.

How is OLS different from Maximum Likelihood Estimation (MLE) for a linear model?

When the errors are assumed to be independent and identically distributed as Normal(0, σ²), the OLS estimator of β is identical to the MLE. OLS does not require the normality assumption to obtain the point estimates; it only requires it for exact distributional results in small samples. MLE for non-normal error distributions (e.g. logistic, Poisson) yields different estimating equations and requires iterative optimization rather than the OLS closed form.

What is the difference between OLS and Weighted Least Squares (WLS)?

OLS treats all observations equally. WLS generalizes this by assigning a weight wᵢ to each observation, minimizing Σwᵢ(yᵢ − xᵢᵀβ)². WLS is the appropriate estimator when the error variances are known to differ proportionally across observations (heteroskedasticity with a known structure), or when observations represent aggregates with different reliabilities. Under the Gauss-Markov framework, WLS is more efficient than OLS in the presence of heteroskedasticity.

Sources

  1. Legendre, A.-M. (1805). Nouvelles méthodes pour la détermination des orbites des comètes. Firmin Didot, Paris. [Appendix: Sur la Méthode des moindres quarrés, pp. 72–80.] link ↗
  2. Gauss, C. F. (1809). Theoria Motus Corporum Coelestium in Sectionibus Conicis Solem Ambientium. Perthes & Besser, Hamburg. link ↗
  3. Wooldridge, J. M. (2019). Introductory Econometrics: A Modern Approach (7th ed.). Cengage Learning. ISBN: 978-1337558860
  4. Greene, W. H. (2018). Econometric Analysis (8th ed.). Pearson. ISBN: 978-0134461366

How to cite this page

ScholarGate. (2026, June 3). Ordinary Least Squares Regression. ScholarGate. https://scholargate.app/en/statistics/ordinary-least-squares

Related methods

Generalized Least SquaresInstrumental Variables in Health ResearchLasso RegressionMultiple Linear RegressionRidge RegressionRobust RegressionSimple Linear RegressionWeighted Least Squares

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Generalized Least SquaresStatistics↔ compare
  • Instrumental Variables in Health ResearchHealth Economics↔ compare
  • Lasso RegressionMachine learning↔ compare
  • Multiple Linear RegressionStatistics↔ compare
  • Ridge RegressionMachine learning↔ compare
  • Robust RegressionStatistics↔ compare
  • Simple Linear RegressionStatistics↔ compare
  • Weighted Least SquaresStatistics↔ compare
Compare side by side →

Referenced by

Generalized Least SquaresWeighted Least Squares

Similar methods

OLS RegressionWeighted Least SquaresGeneralized Least SquaresLinear Regression (ML)Robust OLSSimple Linear RegressionMultiple Linear RegressionRobust Regression

Related reference concepts

Least Squares StatisticsSimple Linear RegressionMultiple Linear RegressionMultivariate Multiple RegressionMaximum Likelihood EstimationLeast-Squares Approximation

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Ordinary Least Squares (Ordinary Least Squares Regression). Retrieved 2026-07-21 from https://scholargate.app/en/statistics/ordinary-least-squares · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Adrien-Marie Legendre (1805); Carl Friedrich Gauss (1809)
Year
1805
Family
Regression model
Type
Linear parameter estimation
Estimator
BLUE (Best Linear Unbiased Estimator)
Outcome
continuous
Parametric
Yes
Distribution
Normal (residuals)
Optimality
Gauss-Markov theorem
Related methods
Generalized Least SquaresInstrumental Variables in Health ResearchLasso RegressionMultiple Linear RegressionRidge RegressionRobust RegressionSimple Linear RegressionWeighted Least Squares
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account