3
$\begingroup$

I was recently asked the question, "In ridge regression $\hat{y}=X(X^\top X+\lambda I)^{-1} X^\top y$, why might the correlation $\mathrm{corr}(\hat{y},y)$ between the predicted values ($\hat{y}$) and actual values ($y$) remain constant as $\lambda$ varies?" My initial thought is that this could be due to the eigenvalues of the $X^\top X$ matrix being roughly equal. However, I'm not certain if this is the only factor at play or if there are other potential reasons for this phenomenon. Thank you so much!

$\endgroup$
2
  • $\begingroup$ Is $y$ a number or vector? Besides, by "might be", you meant what you stated can be either true or false? $\endgroup$
    – Zhanxiong
    Commented Apr 16, 2023 at 2:26
  • $\begingroup$ Thanks @Zhanxiong for asking and sorry for the confusion. $y$ is a vector and what I meant by this question was, if we observed that the correlation remains constant, what could be a possible cause? Does this make sense to you? $\endgroup$
    – Alex
    Commented Apr 16, 2023 at 3:03

1 Answer 1

1
$\begingroup$

When you have a ridge in the parameter space, that ridge is a set of values where the fit hardly changes anywhere along it (the $\hat{y}$ values are essentially the same along that ridge even though $\hat{\beta}$ changes).

It's $\hat{\beta}$ that's not well-determined if you don't regularize, while the fit is nearly fixed.

Since that's the exact case where you want to use ridge regression, a collection of more or less regularized fits (larger or smaller $\lambda$ values) will still end up very near to the top of that ridge, and so have almost the same fit -- i.e. almost the same $\hat{y}$ values.

Which is to say, when you really want to use ridge regression (because you have an ill-determined system leading to a ridge in log-likelihood - or in -SSE - in the beta-space), that's exactly when you should expect to see the fit hardly change as you change $\lambda$.

Since the fit is barely changing, the correlation is nearly constant.

$\endgroup$
2
  • $\begingroup$ Thanks @Glen_b for your explanation. Just to clarify, are you saying that this situation occurs whenever the design matrix $X$ has multicollinearity? $\endgroup$
    – Alex
    Commented Apr 16, 2023 at 15:40
  • $\begingroup$ That would generally be what would lead to the ridge here, yes, and presumably why you're regularizing. Ridges in parameter space can crop up in a variety of other contexts, though, with similar effect - one might argue that even then, its at least a form of local multicollinearity. $\endgroup$
    – Glen_b
    Commented Apr 16, 2023 at 21:32

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.