I was reading the following link. One of the section mentions about selecting the a value for $\alpha$.

Looking at the bottom right plot below (contains MSE for 3 different values of $\alpha$), it seems to me that $\alpha = 0$ gives the lowest MSE and hence should be the best here. However, the image below says that $\alpha=1$ is the best instead.

Question: I do not understand why $\alpha=1$ is the best ? Because it seems to me that $\alpha=0$ yields lowest MSE for all values of $\log(\lambda)$.

And my interpretation is that the higher the value of $\lambda$ , the more penalization there is. And if a model yields MSE lower than other models at the same penalty factor (i.e. same $\lambda$), then surely this should be the best model. Am I wrong ?

What did I misunderstand here ?

Image 1 enter image description here

  • $\begingroup$ It's a typo, it should be lasso (alpha=0).... Ie lasso is alpha =0 not alpha=1 $\endgroup$
    – seanv507
    Jul 9, 2017 at 18:25
  • $\begingroup$ @seanv507, I'm pretty sure that lasso is alpha = 1, ridge is alpha = 0, and everything in between is elastic net. $\endgroup$
    – Ben Ogorek
    Jul 10, 2017 at 3:10
  • $\begingroup$ @ben ogorek, you're right, lasso is alpha =1 $\endgroup$
    – seanv507
    Jul 10, 2017 at 4:59

1 Answer 1


If low MSE is your goal, go with $\alpha=0$ and a small value of $\lambda$ (s = lambda.1se, s = lambda.min or even something smaller). If your goal is a simpler model (with fewer than 20 variables), and then you could tune $\lambda$ using the cross validation plots but also your preference for model complexity.

I'm guessing you have enough data relative to your model that regularization is not especially beneficial. In all plots above, the cross-validation results are telling the same story: "the smaller the lambda the better." If you extrapolate that curve out, then you don't have any regularization at all and you're back to ordinary regression with 20 variables. If I had to guess, the full 20 variable model really is the best for your situation, which is why $\alpha = 0$ with a very small $\lambda$ is giving you the best MSE results - it keeps all the variables and applies very little regularization (i.e., bias).

For reasons I don't fully understand, LASSO ($\alpha = 1$) stops short of 20 variables (even for s = lambda.min) though the curve appears to be decreasing. Perhaps the default is set so that variable selection actually happens, which is presumed by the user's choice of $\alpha=1$.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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