Economics•Chapter 2•4 min read•Updated September 24, 2026

Econometrics — Simple Regression and Least Squares

O
OiyoContributor
2/4

Econometrics — OLS Is a Calculation That Draws a Line Through Means, Not a Cause

In the simple regression Y=β0+β1X+UY = \beta_0 + \beta_1 X + U, OLS chooses the (β0,β1)(\beta_0, \beta_1) that minimizes the sum of squared residuals. For that to match the ATE of chapter 1, XX and UU must be uncorrelated. This chapter pins down the calculation first and leaves what that assumption does to the next chapter.

1. The slope comes from the normal equations

For a sample of nn observations, fit so that ∑u^i=0\sum \hat u_i = 0 and ∑Xiu^i=0\sum X_i \hat u_i = 0. This means the mean of the residuals is zero and the residuals have zero sample covariance with XX.

OLS slope
β^1=Cov^(X,Y)/Var^(X)\hat\beta_1 = \widehat{\mathrm{Cov}}(X,Y) / \widehat{\mathrm{Var}}(X)
How much Y deviates from its mean when X does, divided by how spread out X is. Without variation in X, the division is impossible.
Intercept
β^0=Yˉ−β^1Xˉ\hat\beta_0 = \bar Y - \hat\beta_1 \bar X
The regression line passes through the sample means.

If years of schooling are 12, 14 and 16 and wages (in units of 10,000 won) are 280, 320 and 390, then Xˉ=14\bar X=14 and Yˉ=330\bar Y=330. The sum of cross-deviations is (−2)(−50)+0+(2)(60)=220(-2)(-50)+0+(2)(60)=220 and the sum of squared deviations of XX is 8, so the sample covariance is 110 and the sample variance 4 (both divided by n−1n-1). Then β^1=220/8=27.5\hat\beta_1=220/8=27.5 (275,000 won per year) and β^0=330−27.5×14=−55\hat\beta_0=330-27.5×14=-55. Covariance and variance must be divided by the same denominator. The intercept is negative because zero years of schooling is extrapolated outside the sample; it is better not to interpret it.

2. R² is a share of fit, not proof that the model is right

Coefficient of determination
R2=1−SSR/SSTR^2 = 1 - SSR/SST
SSR is the sum of squared residuals and SST the total sum of squares of Y. Adding variables never lowers R².

Saying that education explains 40% of the variation in wages means that, in this sample, the education regression line accounts for that share of the total sum of squares. If omitted ability moves wages through education, R² can rise while the causal interpretation gets worse.

What OLS guarantees and what it does not
GuaranteedNot guaranteed
Residuals ⊥ X in the sampleU ⊥ X in the population
Passes through the meansEconomic meaning of the intercept
Best linear approximation to the conditional mean (under assumptions)Treatment effect

3. Residuals are not the unobserved error U

The residual u^\hat u is what is left over from the estimated regression. UU is the disturbance when the model is true. If the model is misspecified, u^\hat u may be small while UU has no meaning. If the scatter plot is curved and a straight line is drawn, residuals bunch on one side. What is needed then is not more variables but a new functional form.

Check your understanding

Does standardizing XX change β^1\hat\beta_1? Yes. Dividing XX by its standard deviation sXs_X turns the slope into β^1sX\hat\beta_1 s_X. In the example of section 1, sX=2s_X=2, so the standardized slope is 55 (550,000 won), the change in Y per standard deviation of X. It differs from 27.5 in the original units, but it describes the same relationship in different units.

References

O

Oiyo

Editorial Desk

The OIYO editorial desk researches money, law, lifestyle, and self-understanding topics against primary sources and public statistics. Every piece carries source notes and is reviewed on a regular cycle for accuracy and usefulness.