Topic
Ordinary Least Squares
Courses
Courses whose questions include this topic tag.
Questions
This topic is tagged for 4 questions
-
Spring 2026 • Question 5
(20 points) Consider the linear model \[ Y = \mathbf {X}\beta + \epsilon , \qquad \epsilon \sim \mathcal {N}_{n}(0, \sigma ^{2}I_{n}), \] where \(\mathbf {X}\) is an \(n \times p\) design matrix with \(n > p\) and \(\operatorname {rank}(\mathbf {X}) = p\). Let \[ H = \mathbf {X}(\mathbf {X}^{\top }\mathbf {X})^{-1}\mathbf {X}^{\top } \] denote the hat matrix and \(\hat {Y} = HY\) the ordinary least squares (OLS) fitted values.
- Show that \(H\) is a projection matrix by verifying that it is symmetric and idempotent.
- Let \(e = Y - \hat {Y}\) be the residual vector. Show that \(\hat {Y} \perp e\), i.e. \(\hat {Y}\) is orthogonal to \(e\).
-
(Ridge regression) For \(\lambda > 0\), ridge regression fitted values are \[ \hat {Y}^{\mathrm {RR}} = S_{\lambda }Y, \qquad S_{\lambda } = \mathbf {X}(\mathbf {X}^{\top }\mathbf {X} + \lambda I_{p})^{-1}\mathbf {X}^{\top }. \]
Let \(\mathbf {X} = UDV^{\top }\) denote the singular value decomposition of \(\mathbf {X}\), where \(U \in \mathbb {R}^{n \times p}\) and \(V \in \mathbb {R}^{p \times p}\) have orthonormal columns, and \[ D = \operatorname {diag}(d_{1}, \ldots , d_{p}), \qquad d_{j} > 0. \]
Recall that the ridge regression fitting operator can be written as \[ S_{\lambda } = \sum _{j=1}^{p} \frac {d_{j}^{2}}{d_{j}^{2} + \lambda } u_{j}u_{j}^{\top }, \] where \(u_{j}\) denotes the \(j\)th column of \(U\).
- Is \(S_{\lambda }\) a projection matrix? Briefly justify your answer.
- Describe how the eigenvalues of \(S_{\lambda }\) depend on \(\lambda \), and what happens as \(\lambda \to 0\) and as \(\lambda \to \infty \).
- In term of bias and/or variance, explain the advantage of ridge regression in comparison to OLS.
-
Spring 2010 • Question 10
Derive, using only first principles, the least-squares estimators of the slope and the intercept of a linear regression problem. What can you say about the optimality properties of those estimators?
-
1993 • Question 7
Let \(Y_i=\alpha^{i/n}+\epsilon_i\), \(1\leq i\leq n\). We assume that \(\epsilon_1,\epsilon_2,\ldots,\epsilon_n\) are independent, identically distributed random variables with \(E\epsilon_i=0\), \(0<\sigma^2=\operatorname{var}\epsilon_i<\infty\) and \(E\epsilon_i^4<\infty\). **(a)** Find the least-squares estimator for \(\alpha\). **(b)** Show that the estimator is asymptotically normal. **(c)** Find an estimator for \(\sigma^2\).
-
1993 • Question 7
Let \(Y_i=\alpha ^{i/n}+\epsilon _i\), \(1\le i\le n\). We assume that \(\epsilon _1,\epsilon _2,\ldots ,\epsilon _n\) are independent, identically distributed random variables with \(\E \epsilon _i=0\), \(0<\sigma ^2=\operatorname {Var}\epsilon _i<\infty \) and \(\E \epsilon _i^4<\infty \).
(a) Find the least-squares estimator for \(\alpha \).
(b) Show that the estimator is asymptotically normal.
(c) Find an estimator for \(\sigma ^2\).