Describe the least angle regression (LAR) algorithm and how it relates to the lasso path. In the case (two orthonormal columns) with : what is the path of coefficients as a function of the penalty , and where does each variable enter?
Supervised learning, Least angle regression
Level L4 Advanced. Length Long. Nature Th+Mat Both.
What's being asked
Whether you understand LAR as moving in an equiangular direction until a new variable ties in correlation, and that a small change gives the lasso path.
Key idea
LAR keeps all active variables equally correlated with the residual. For the lasso, the same path is traced, except that a variable whose coefficient hits zero is dropped from the active set.
Steps
- Start with all coefficients 0 and residual . Find the variable most correlated with and move its coefficient towards its least-squares value.
- Continue until another variable has the same absolute correlation with the residual. Add it to the active set .
- Now move the coefficients of along the direction (the equiangular direction), so every active variable keeps the same correlation with the shrinking residual. Stop when the next variable ties. Repeat until all variables are in, ending at the least-squares fit.
- Lasso modification: if an active coefficient crosses zero, remove its variable from and continue. Without this step, the LAR path can differ from the lasso path.
- Example: , so is the most correlated. Moving along gives , and the correlations tie when , at . Residual is then .
- Both variables are active. The equiangular direction is , so both coefficients rise at the same rate until the residual is 0: , the OLS solution.
- Compare with the lasso, . For orthonormal , with . So for (and above), and for (and above). Variable 1 enters at and variable 2 at . At , , the same as LAR. The path is piecewise linear and identical.
Common mistakes
- Saying LAR moves one variable at a time like forward selection. It moves all active variables together.
- Claiming LAR and the lasso paths are always identical. They agree only until a coefficient crosses zero.
- Forgetting that the correlations are measured with the current residual and standardised columns.
How long your answer should be
Roughly one page, 7–8 minutes.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: Prove the perceptron convergence theorem: if there is a unit vector and a margin such that for all , and , then the perceptron (starting from ) makes at most mistakes. Why does the bound not depend on the number of points or the dimension?
Next in Supervised learning: A 1-D dataset has with and with , and the model is (no intercept). How do you show that the maximum-likelihood estimate does not exist, what happens to the Hessian, and how does an L2 penalty fix it?