2
$\begingroup$

I have been reading around ridge regression and have come across two forms of $\hatβ$ in textbooks. Am I correct in believing that $(X^TX+\lambda I)^{-1} X^TY$ is the same as $RSS + \sum_{j=1}^{p} \beta_j^2$? Also, if they are equivalent, how is the best way to picture this?

$\endgroup$
3
  • $\begingroup$ Have a look here: stats.stackexchange.com/questions/69205/…, especially here: stats.stackexchange.com/a/266986/224077 $\endgroup$
    – Peter
    Commented Dec 18, 2022 at 11:30
  • 2
    $\begingroup$ I believe $\hat{\beta}$ is $(X^TX+\lambda I)^{-1}X^T Y$ (you forgot to transpose the last $X$). $\endgroup$
    – Peter
    Commented Dec 18, 2022 at 11:31
  • 1
    $\begingroup$ I wouldn't believe any equation in which varying $\lambda$ can alter the left hand side but $\lambda$ does not appear on the right hand side. $\endgroup$
    – whuber
    Commented Dec 18, 2022 at 21:22

1 Answer 1

3
$\begingroup$

The first term is $\hat\beta$ itself, the second term is the objective function that is minimised by it (so the second one is not $\hat\beta$, although required to define it). In fact it's not exactly the objective function, as factor $\lambda$ is missing before the sum (it's the objective function for $\lambda=1$).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.