1. Regression and Inference

OLS as a Projection

Read coefficients as best linear summaries before asking whether variation is causal

OLS as a Projection

Least squares answers a geometric question

For a scalar regressor XX, the population linear projection

Y=α+βX+u,E[u]=E[Xu]=0Y=\alpha+\beta X+u, \qquad E[u]=E[Xu]=0

has slope

β=Cov(X,Y)Var(X).\beta=\frac{\operatorname{Cov}(X,Y)}{\operatorname{Var}(X)}.

It is the best mean-squared-error linear summary of YY using 11 and XX. This statement does not require the true conditional mean to be linear and does not make XX exogenous.

Small calculation

Prior score XXFirst-year credits YY
5042
6048
7055
8061
9069

Here Xˉ=70\bar X=70 and Yˉ=55\bar Y=55. The sample slope is

β^=i(XiXˉ)(YiYˉ)i(XiXˉ)2=0.67.\hat\beta=\frac{\sum_i(X_i-\bar X)(Y_i-\bar Y)} {\sum_i(X_i-\bar X)^2}=0.67.

Within this five-observation teaching sample, one score point is associated with about 0.67 additional credits. It is not evidence that manipulating the prior score would cause credits to rise.

Multiple regression is conditional projection

With scholarship receipt DD and pre-treatment controls XX,

Y=α+τD+Xβ+u.Y=\alpha+\tau D+X'\beta+u.

τ\tau compares observations with different DD after removing linear differences associated with XX. A causal interpretation requires that the residual treatment variation behaves as if unrelated to the relevant potential outcomes, plus treatment and outcome definitions, overlap and an appropriate functional form or estimand argument.

“Controlling for age and score” states a computation. It does not explain why all confounding paths are blocked.

Coefficients need units and support

Suppose log earnings are regressed on years of education:

log(Y)=α+0.08S+u.\log(Y)=\alpha+0.08S+u.

The exact percentage difference for one additional year is 100(e0.081)8.33%100(e^{0.08}-1)\approx8.33\%; “8%” is the small-coefficient approximation. This remains an association unless schooling variation is credibly exogenous.

Do not extrapolate a line estimated over 11–16 years of education to 25 years merely because the formula returns a number.

Residuals expose misspecification, not causality alone

Inspect residuals against:

  • fitted values and key regressors;
  • time, location and treatment status;
  • missingness and sample-selection indicators;
  • influential observations and support boundaries.

Patterns can reveal nonlinearity, changing variance or data errors. A flat residual plot cannot prove no unmeasured confounding.

What adding a variable changes

Adding a control can change τ^\hat\tau because it:

  1. removes confounded variation;
  2. improves precision;
  3. changes the population with complete data;
  4. forces comparisons within weak-overlap cells;
  5. conditions on a mediator or collider;
  6. changes the functional-form approximation.

The phrase “the effect is robust to controls” is incomplete without explaining which mechanism each control addresses.

Quick check

The scholarship coefficient falls from 0.10 to 0.04 after prior score is added. Does that prove the remaining 0.04 is causal?

Answer
No. The change is consistent with prior score explaining part of the raw association, but other confounding, measurement error, selection, functional form or bad-control problems may remain. Identification requires a design argument, not coefficient stability alone.

Next: FWL, Selection and Controls

Copyright © 2026