Scenario
In quantitative trading and quantitative research, candidates are frequently evaluated on statistics modeling, specifically regarding Linear Regression.
Your Task
Let y∈Rn and X∈Rn×p with rank(X)=p. The Ordinary Least Squares (OLS) estimator is β^=(XTX)−1XTy.
(1) Prove that the residual vector e=y−Xβ^ is strictly orthogonal to the column space of X, i.e., XTe=0.
(2) Show that if X contains an intercept (constant column), the sum of residuals is exactly zero (∑i=1nei=0), and prove the total sum of squares decomposition TSS=ESS+RSS.
Constraints
- The design matrix X∈Rn×p has full column rank p<n.
- Disturbance terms satisfy standard zero-mean conditional homoskedasticity unless stated otherwise.