Linear Models, Regression, and Semiparametric Methods
Linear regression as projection
Model specification
The linear model is , where is the design matrix and has mean zero. Ordinary least squares solves when is invertible.
Geometry of least squares
OLS is the orthogonal projection of onto the column space of . This yields the normal equations and clarifies how collinearity affects estimation.
Hat matrix
The fitted values are with . The diagonal entries of measure leverage.
Inference and diagnostics
Standard errors and residuals
If , then is exactly normal. Heteroskedasticity, autocorrelation, and influential observations require robust variance estimators and diagnostic checks.
What does the hat matrix represent?
The hat matrix maps the observed response to fitted values via orthogonal projection.
Correct answer: Projection onto the fitted subspace
Why are robust standard errors needed?
Classical OLS standard errors rely on restrictive error assumptions.
Correct answer: They protect inference when the variance of the errors is misspecified or heteroskedastic.
Semiparametric and high-dimensional regression
Modern extensions
Semiparametric methods combine parametric structure with nonparametric nuisance components. High-dimensional regression uses penalization such as the lasso, ridge, elastic net, debiased lasso, and double machine learning to handle settings.
Regularization toolkit
Which penalty tends to produce sparse coefficient estimates?
The penalty of the lasso can drive some coefficients exactly to zero.
Correct answer: Lasso
What is one advantage of double machine learning?
Orthogonalization reduces sensitivity to nuisance estimation error.
Correct answer: It can provide valid inference for a low-dimensional target parameter while flexibly estimating high-dimensional nuisance functions.