Ridge, LASSO and Elastic Net are three very popular methods of penalised regressions. All of these have more than one formulations. For example, two formulations for Ridge are:
- minimise $\lVert Y - X \beta \rVert _ 2 ^ 2 + \lambda \lVert \beta \rVert _ 2 ^ 2$ with respect to $\beta$
- minimise $\lVert Y - X \beta \rVert _ 2 ^ 2$ with respect to $\beta$ subject to $\lVert \beta \rVert _ 2 ^ 2 \leq t$
I'm following The Elements of Statistical Learning, and there it is claimed that there's a one-to-one correspondence between $\lambda$ and t
(refer to Pg. 63). Though not explicitly stated (or I've missed somehow), the same claim is implied for the other two methods also.
I (intuitively) understand the equivalence between the two formulations. If we want to shrink the estimates more, the $L_2$ will be smaller, and we will use lower value of t
in the $2 ^ {nd}$ formulation. And, in the $1 ^ {st}$ one, we'll use a higher value of $\lambda$, as that will increase the objective function and hence to minimise the penalty, the estimates will be shrinked. Hence, the claim is intuitive, but I don't know the proof of it. This thread is very related to my question, but it didn't derive the one-to-one correspondence.
My question is how to derive that one-to-one correspondence. I can't find any reference for this. Derivation for any one of these three will be sufficient, as I can then do the other two myself.
In case it matters, I'm interested in this relationship, because as far as I understand the R
package glmnet considers penalties in form of the $1 ^ {st}$ formulation only. I'd like to impose a penalty in form of $2 ^ {nd}$ formulation, where the value of t
is known to me. I asked a related question in Stack Overflow.
Thanks.
Update
Both of the first two answers try to prove that the two forms are theoretically equivalent. I understand that equivalence, and this thread is not about that. I am specifically looking for the one-to-one correspondence to apply it in a practical problem where I need to use the $2^{nd}$ form based on domain knowledge, with a specified value of t
. Since Ridge have a closed form solution, theoretically it is possible to solve $\lambda$ from $\lVert(X^TX+\lambda I)^{-1}X^Ty\rVert=t$. But it does not seem to me as an easy equation to be solved, and I do not think such an equation can be obtained for the other two methods (LASSO and Elastic Net), as they do not have a closed form solution. Also, varying $\lambda$ to get many solutions of the $1^{st}$ form and choosing that solution such that it's $L_2$ norm is closest to t
does not seem to be an ideal method.