← Back to CoursesStatistics: PhD Level

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Linear Models, Regression, and Semiparametric Methods

Manual: General · Subject: Statistics

Analyze the geometry, inference, and extensions of linear regression and related semiparametric estimators.

Linear regression as projection

Model specification

The linear model is Y=Xβ+εY=X\beta+\varepsilon, where XX is the design matrix and ε\varepsilon has mean zero. Ordinary least squares solves β^=(XTX)−1XTY\hat\beta=(X^TX)^{-1}X^TY when XTXX^TX is invertible.

Geometry of least squares

OLS is the orthogonal projection of YY onto the column space of XX. This yields the normal equations XT(Y−Xβ^)=0X^T(Y-X\hat\beta)=0 and clarifies how collinearity affects estimation.

💡

Hat matrix

The fitted values are Y^=HY\hat Y=HY with H=X(XTX)−1XTH=X(X^TX)^{-1}X^T. The diagonal entries of HH measure leverage.

Inference and diagnostics

Standard errors and residuals

If ε∼N(0,σ2I)\varepsilon\sim N(0,\sigma^2 I), then β^\hat\beta is exactly normal. Heteroskedasticity, autocorrelation, and influential observations require robust variance estimators and diagnostic checks.

What does the hat matrix represent?

Why are robust standard errors needed?

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 p≫np\gg n settings.

Regularization toolkit

Ridge
Shrinks coefficients via an ℓ2\ell_2 penalty.
Lasso
Encourages sparsity via an ℓ1\ell_1 penalty.
Elastic net
Combines ℓ1\ell_1 and ℓ2\ell_2 penalties.
Double machine learning
Orthogonalizes nuisance estimation to enable valid inference.

Which penalty tends to produce sparse coefficient estimates?

What is one advantage of double machine learning?