108 views
0 0 votes

Consider the least squares regression model, $\hat{\mathbb{Y}}=\mathbb{X} \theta$. Assume that $\mathbb{X}$ and $\mathbb{Y}$ refer to the design matrix and true response vector for our training data.
Let $\hat{\gamma}$ be the parameter vector that minimizes mean squared error without regularization. Specifically:

$$
\hat{\gamma}=\arg \min _\gamma \frac{1}{n}\|\mathbb{Y}-\mathbb{X} \gamma\|_2^2
$$


Let $\hat{\beta}$ be the parameter vector that minimizes mean squared error with $L_2$ regularization, using a non-negative regularization hyperparameter $\lambda$ (i.e. ridge regression). Specifically:

$$
\hat{\beta}=\arg \min _\beta \frac{1}{n}\|\mathbb{Y}-\mathbb{X} \beta\|_2^2+\lambda \sum_{j=1}^p \beta_j^2
$$

Assume that our design matrix $\mathbb{X}$ contains a column of all ones. The sum of the residuals of our model $\hat{Y}=\mathbb{X} \hat{\beta}$ is $\qquad$

 

  1. equal to 0
  2. not necessarily equal to 0

(Please enter 0 for A and 1 for B)

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
1 1 answer
191
191 views
GO Classes asked Mar 17, 2025
191 views
Suppose you're using $L2$ regularization on a least squares objective. Some value $\lambda^*$ will give you the best test error among all possible $\lambda$. You train yo...
0 0 votes
1 1 answer
205
205 views
GO Classes asked Mar 17, 2025
205 views
We are solving a least-squares linear regression problem without regularization. Suppose that the following twoweight matrices both have the same cost: $W1 = \begin{bmatr...
0 0 votes
1 1 answer
136
136 views
GO Classes asked Mar 17, 2025
136 views
Which of the following statements are true about Lasso and ridge regression?Both ridge regression and Lasso are methods used to reduce overfitting that might occur in sta...
0 0 votes
0 0 answers
117
117 views
GO Classes asked Mar 17, 2025
117 views
Ridge regression can shrink all coefficients to exactly O if the regularization parameter $\lambda$ is large enough.Please enter 1 for True and 0 for False.