Equivalence of constrained and unconstrained form for lasso
Problem 1 The unconstrained form of lasso
Suppose we solve Problem 1 for a given (lambda) and obtain its solution (eta_{ ext{problem1}}^*(lambda)).
Problem 2 The constrained form of lasso
We can rewrite the constrained form into unconstrained form using Lagrangian mutiplier method.
The unconstrained form for the problem is given by:
Since the objective and the constraints are convex, so we have the pair ((eta^*,v^*)) is primal-dual optimal if and only if it is a saddle-point of the Lagrangian.
First we solve the
The form is the same with eq(1), so we have the same solution with Problem 1, i.e. (eta_{ ext{problem2}}^*=eta_{ ext{problem1}}^*(v))
Then we solve
The solution is (v^*).
Finally, we have that (eta^*_{ ext{problem2}}=eta_{ ext{problem1}}^*(v^*))
Therefore,if we let (lambda) in Problem 1 be (v^*), the solution in Problem 1 is (eta_{ ext{problem1}}^*=eta_{ ext{problem1}}^*(lambda)=eta_{ ext{problem1}}^*(v^*)), this is the same with solution in Problem 2.
So the two forms are equivalent.
Equivalence of constrained and unconstrained form for Ridge Regression
Problem 1 The unconstrained form of ridge regression
Suppose we solve Problem 3 using F.O.C for a given (lambda) and obtain its solution (eta^*(lambda)).
Problem 2 The constrained form of ridge regression
We can rewrite the constrained form into unconstrained form using Lagrangian mutiplier method.
The unconstrained form for the problem is given by:
The first KKT condition (stationarity) says that the gradient with respect to (eta) of the lagrangian equals to 0. Since s is independent on (eta), so solving for the derivative of eq (3) is thus equivalent to solving for the derivate of eq (4) when (lambda=v) .
The second KKT condition (complementarity) says that
Let (s=|eta^*(lambda)|^2), then we can find that (v^*=lambda) and (eta^*=eta^*(lambda)) satisfy the KKT conditions for Problem 2, so they are the solution of Problem 2, which is the same as the solution in Problem 1.
So the two forms are equivalent.