What Is Ordinary Least Squares and Why Does It Minimize Squared Errors? (Econometrics Tutoring NYC)

Econometrics tutoring and OLS explanation in New York City

What Is Ordinary Least Squares and Why Does It Minimize Squared Errors?

Ordinary least squares (OLS) is the core method used to estimate linear regression models. The estimator chooses coefficients that minimize the total squared distance between predicted values and observed outcomes.

Send Your Regression Question

If you are stuck on regression derivations, coefficient interpretation, or econometrics problem sets, send the exact regression problem directly to the tutor.

Best for: graduate econometrics homework, regression derivations, OLS proofs, matrix algebra in regression, and empirical research projects.

Ordinary least squares (OLS) is the most widely used method for estimating linear regression models. The estimator chooses the regression coefficients that minimize the sum of squared residuals between the observed values of the dependent variable and the values predicted by the model.

What Is Ordinary Least Squares?

Consider the linear regression model

\[ Y_i = \beta_0 + \beta_1 X_i + u_i \]

The predicted value of \(Y_i\) is

\[ \hat{Y}_i = \hat{\beta}_0 + \hat{\beta}_1 X_i \]

The difference between observed and predicted values is called the residual:

\[ e_i = Y_i – \hat{Y}_i \]

Answer First

The OLS estimator minimizes the sum of squared residuals

\[ \sum_{i=1}^{n} e_i^2 \]

Squaring the residuals ensures that positive and negative deviations do not cancel each other out and places larger penalties on larger prediction errors.

Derivation of the OLS Estimator

The least squares problem can be written as

\[ \min_{\beta_0,\beta_1} \sum_{i=1}^{n} (Y_i – \beta_0 – \beta_1 X_i)^2 \]

Taking derivatives with respect to the parameters and setting them equal to zero produces the normal equations.

Solving the system yields the familiar estimator:

\[ \hat{\beta}_1 = \frac{Cov(X,Y)}{Var(X)} \]

and

\[ \hat{\beta}_0 = \bar{Y} – \hat{\beta}_1 \bar{X} \]

Intuition

OLS chooses the regression line that fits the data as closely as possible by minimizing the squared vertical distance between the observed data points and the regression line.

The squared-error criterion also produces convenient mathematical properties and leads to estimators with desirable statistical properties.

Common Exam Mistakes

  • Confusing residuals with error terms.
  • Forgetting that OLS minimizes squared errors rather than absolute errors.
  • Misinterpreting the coefficient formula.
  • Ignoring assumptions required for unbiased estimation.

Why This Matters

OLS forms the foundation of econometrics and statistical modeling. Many modern estimation techniques extend the least squares framework or rely on similar optimization principles.

Final Summary

Ordinary least squares estimates regression coefficients by minimizing the sum of squared residuals between observed and predicted values. This approach produces estimators with useful mathematical properties and serves as the basis for many statistical and econometric models.