Simple Algorithm
Machine Learning · Convergence · 28 min

The Lasso & Sparsity

L1 geometry, soft thresholding, coordinate descent and paths.

The lasso is a convex problem whose solutions are exactly sparse, and a few lines of subgradient calculus explain nearly everything about it: when the answer is zero, which features enter first, why the fitted values are unique even when the coefficients are not, and why the whole solution path is piecewise linear. This lesson derives those facts, builds the algorithms that exploit them, proves that the lasso's degrees of freedom are simply its number of nonzeros, and shows where correlated features trip it up.

What you’ll learn

  • Derive the lasso's subgradient optimality conditions and their consequences: λmax⁡\lambda_{\max}, the equicorrelation set, uniqueness of the fit, and at most min⁡(n,p)\min(n,p) nonzeros.
  • Derive and implement coordinate descent with soft thresholding, warm starts and a decreasing grid of λ\lambda, and explain why it converges.
  • Prove that the lasso path is piecewise linear in λ\lambda and describe how LARS and homotopy methods trace it, including their worst case.
  • Show that the lasso fit is the residual of a projection onto a convex polyhedron, and deduce that its degrees of freedom equal the expected number of nonzero coefficients.
  • Prove the elastic net's grouping bound for correlated features, and place the lasso among its nonconvex, structured and combinatorial alternatives.

Optimality conditions

This lesson uses the scaling of glmnet and scikit-learn,

min⁡w∈Rp 12n∥y−Xw∥2+λ∥w∥1,\min_{\mathbf w\in\R^p}\ \frac1{2n}\norm{\mathbf y-X\mathbf w}^2+\lambda\norm{\mathbf w}_1,

with centered y\mathbf y and standardized columns, 1n∥xj∥2=1\frac1n\norm{\mathbf x_j}^2=1, so that λ\lambda is on the scale of a correlation. This λ\lambda is exactly the regpath widget's λ\lambda and scikit-learn's alpha; the sum-of-squares λ\lambda of Regularization: Ridge & Lasso is nn times larger. The objective is convex but not differentiable where a coordinate is zero, so optimality is stated with the subdifferential of the absolute value: ∂∣w∣={sign⁡w}\partial\abs w=\{\sign w\} for w≠0w\ne0 and ∂∣0∣=[−1,1]\partial\abs 0=[-1,1]. A point minimizes a convex function exactly when 0\mathbf 0 is among its subgradients.

Three consequences follow directly.

  • When the answer is zero. At w^=0\hat{\mathbf w}=\mathbf 0 the residual is y\mathbf y, so 0\mathbf 0 is optimal exactly when λ≥λmax⁡=∥X⊤y∥∞/n\lambda\ge\lambda_{\max}=\norm{X^\top\mathbf y}_\infty/n. Just below λmax⁡\lambda_{\max} the single feature with the largest ∣xj⊤y∣\abs{\mathbf x_j^\top\mathbf y} enters.
  • The fit is unique. Even when the coefficients are not (see below), all solutions share the same fitted values Xw^X\hat{\mathbf w}, the same residual, and therefore the same set EE of features whose residual correlation reaches ±λ\pm\lambda.
  • Sparsity has a ceiling. If the columns of XX are in general position, which holds with probability one when the features have a continuous distribution, the solution is unique and has at most min⁡(n,p)\min(n,p) nonzero coefficients (R. J. Tibshirani, 2013). So with p≫np\gg n and continuous features, the lasso never selects more than nn of them.
DerivationWhy the fitted values are unique
  1. 12n∥y−Xwˉ∥2<12(12n∥y−Xw^∥2+12n∥y−Xw~∥2)\tfrac1{2n}\norm{\mathbf y-X\bar{\mathbf w}}^2<\tfrac12\Big(\tfrac1{2n}\norm{\mathbf y-X\hat{\mathbf w}}^2+\tfrac1{2n}\norm{\mathbf y-X\tilde{\mathbf w}}^2\Big)

    Suppose w^\hat{\mathbf w} and w~\tilde{\mathbf w} both attain the minimum value mm but Xw^≠Xw~X\hat{\mathbf w}\ne X\tilde{\mathbf w}. Take their midpoint wˉ\bar{\mathbf w}. The loss is strictly convex as a function of the fitted vector u=Xw\mathbf u=X\mathbf w:

  2. 12n∥y−Xwˉ∥2+λ∥wˉ∥1<12(m+m)=m\tfrac1{2n}\norm{\mathbf y-X\bar{\mathbf w}}^2+\lambda\norm{\bar{\mathbf w}}_1<\tfrac12(m+m)=m

    The penalty is convex, so it is at most the average at the midpoint. Adding the two inequalities, the midpoint beats the minimum, a contradiction:

Check your understanding

With standardized features, you lower λ\lambda slightly below λmax⁡\lambda_{\max}. Which feature gets the first nonzero coefficient?

  1. The one with the largest least-squares coefficient
  2. The one with the largest absolute correlation with y\mathbf y
  3. The one with the largest variance
  4. All features enter together, with tiny coefficients
Show the answer

B. The one with the largest absolute correlation with y\mathbf y

At w^=0\hat{\mathbf w}=\mathbf 0 the KKT conditions read ∣xj⊤y∣/n≤λ\abs{\mathbf x_j^\top\mathbf y}/n\le\lambda for all jj. The first to be violated as λ\lambda falls is the feature with the largest ∣xj⊤y∣\abs{\mathbf x_j^\top\mathbf y}, which for standardized features is the largest absolute correlation with y\mathbf y.

Coordinate descent

Freeze every coordinate but wjw_j. With the partial residual r(j)=y−∑k≠jxkwk\mathbf r^{(j)}=\mathbf y-\sum_{k\ne j}\mathbf x_kw_k and 1n∥xj∥2=1\frac1n\norm{\mathbf x_j}^2=1, the objective in wjw_j is 12wj2−zjwj+λ∣wj∣\tfrac12w_j^2-z_jw_j+\lambda\abs{w_j} plus a constant, where zj=1nxj⊤r(j)z_j=\frac1n\mathbf x_j^\top\mathbf r^{(j)}. That one-dimensional problem is solved by soft thresholding:

wj←Sλ(1nxj⊤r+wj),Sλ(z)=sign⁡(z) (∣z∣−λ)+,w_j\leftarrow S_\lambda\Big(\tfrac1n\mathbf x_j^\top\mathbf r+w_j\Big),\qquad S_\lambda(z)=\sign(z)\,(\abs z-\lambda)_+,

written with the full residual r=y−Xw\mathbf r=\mathbf y-X\mathbf w, since r(j)=r+xjwj\mathbf r^{(j)}=\mathbf r+\mathbf x_jw_j. Keeping r\mathbf r up to date, each update costs O(n)\order{n} and a sweep over all features O(np)\order{np}.

Predict before you look

During coordinate descent a coefficient has current value wj=0.8w_j=0.8, its correlation with the full residual is 1nxj⊤r=0.1\frac1n\mathbf x_j^\top\mathbf r=0.1, and λ=0.3\lambda=0.3. What value does the update give wjw_j?

Show the answer

0.6

The partial-residual correlation is zj=0.1+0.8=0.9z_j=0.1+0.8=0.9, and S0.3(0.9)=0.6S_{0.3}(0.9)=0.6. Forgetting to add back the coefficient's own contribution, S0.3(0.1)=0S_{0.3}(0.1)=0, would wrongly delete a strong feature. At the fixed point zj=wj+λz_j=w_j+\lambda, which is the KKT condition 1nxj⊤r=λ\frac1n\mathbf x_j^\top\mathbf r=\lambda.

python
import numpy as np

def soft(z, t):
    return np.sign(z) * np.maximum(np.abs(z) - t, 0.0)

def lasso_cd(X, y, lam, w, tol=1e-8):
    """min (1/2n)||y - Xw||^2 + lam*||w||_1; columns scaled so (1/n)||x_j||^2 = 1."""
    n = len(y)
    w, r = w.copy(), y - X @ w              # keep the residual up to date
    while True:
        biggest = 0.0
        for j in range(X.shape[1]):
            new = soft(X[:, j] @ r / n + w[j], lam)   # partial-residual correlation
            r -= X[:, j] * (new - w[j])
            biggest, w[j] = max(biggest, abs(new - w[j])), new
        if biggest < tol:
            return w

lam_max = np.max(np.abs(X.T @ y)) / len(y)     # every coefficient is 0 for lam >= lam_max
w, path = np.zeros(X.shape[1]), []
for lam in lam_max * np.logspace(0, -3, 100):   # decreasing grid with warm starts
    w = lasso_cd(X, y, lam, w)
    path.append(w)

Pathwise coordinate descent, the approach of glmnet (Friedman, Hastie & Tibshirani, 2010). Each fit starts from the previous solution, which is already close, so a few sweeps suffice. Production code adds two tricks: sweep only the current nonzeros until they converge and then check the KKT conditions for the rest, and use screening rules to skip features that are predicted to stay at zero, again verified by a KKT check.

Why does cycling through one-dimensional updates find the global minimum of a non-differentiable function? The objective is a smooth convex part plus a penalty that is a sum of functions of single coordinates. For that structure, a point where no single coordinate can improve is a global minimum, and cyclic coordinate descent converges (Tseng, 2001). The separability matters: for the fused lasso penalty ∑j∣wj+1−wj∣\sum_j\abs{w_{j+1}-w_j}, coordinate descent can stall at a non-optimal point. Proximal gradient methods (ISTA and its accelerated version FISTA) are the main alternative, treated in Proximal & Projected Methods.

The path is piecewise linear

DerivationBetween kinks, the solution moves on a straight line
  1. 1nXA⊤(y−XAw^A)=λ sA\tfrac1nX_A^\top(\mathbf y-X_A\hat{\mathbf w}_A)=\lambda\,\mathbf s_A

    Fix an interval of λ\lambda on which the active set AA and the signs sA\mathbf s_A do not change. The KKT conditions on AA form a linear system (assume XAX_A has full column rank):

  2. w^A(λ)=(XA⊤XA)−1(XA⊤y−nλ sA)\hat{\mathbf w}_A(\lambda)=(X_A^\top X_A)^{-1}\big(X_A^\top\mathbf y-n\lambda\,\mathbf s_A\big)

    Solve it. The solution is affine in λ\lambda:

  3. kinks:∣1nxk⊤r^(λ)∣=λ  (k∉A)orw^j(λ)=0  (j∈A)\text{kinks:}\quad\big|\tfrac1n\mathbf x_k^\top\hat{\mathbf r}(\lambda)\big|=\lambda\ \ (k\notin A)\qquad\text{or}\qquad\hat w_j(\lambda)=0\ \ (j\in A)

    The residual correlations of the active features all equal ±λ\pm\lambda and shrink at the same rate as λ\lambda falls: the path moves in the equiangular direction. It bends only when an inactive feature's correlation catches up with λ\lambda (it joins AA) or an active coefficient reaches zero (it leaves AA):

Least angle regression, LARS (Efron, Hastie, Johnstone & Tibshirani, 2004), walks along these equiangular directions; with one modification, dropping a variable whose coefficient hits zero instead of letting it change sign, it computes the entire lasso regularization path, one kink at a time, each with a rank-one update of a factorization of XA⊤XAX_A^\top X_A. Homotopy methods (Osborne, Presnell & Turlach, 2000) trace the same path. On typical data the number of kinks is modest, comparable to min⁡(n,p)\min(n,p), but in the worst case it is exponential in pp, although an approximate path with O(1/ε)\order{1/\sqrt\varepsilon} segments, every point optimal to within a relative duality gap ε\varepsilon, always exists (Mairal & Yu, 2012). For large problems, coordinate descent on a grid of λ\lambda values is usually faster; exact paths remain valuable for theory and for small or moderate problems.

Think first As λ\lambda decreases, can a feature that has entered the lasso model later leave it again?

Yes. Between kinks every active coefficient moves linearly, and one of them can reach zero, typically when a correlated feature that entered later takes over its role. The lasso drops it at that point (it may re-enter later). Plain LARS would let it cross zero and change sign, which violates the KKT sign condition; that difference is exactly the lasso modification. Forward stepwise selection, by contrast, never removes anything. (In the widget's eight-feature problem it does not happen: once a path reaches zero it stays there.)

Degrees of freedom from a projection

DerivationThe lasso fit is a projection residual
  1. min⁡w,z 12∥y−z∥2+t∥w∥1  s.t. z=Xw,L=12∥y−z∥2+t∥w∥1+u⊤(z−Xw)\min_{\mathbf w,\mathbf z}\ \tfrac12\norm{\mathbf y-\mathbf z}^2+t\norm{\mathbf w}_1\ \ \text{s.t. }\mathbf z=X\mathbf w,\qquad L=\tfrac12\norm{\mathbf y-\mathbf z}^2+t\norm{\mathbf w}_1+\mathbf u^\top(\mathbf z-X\mathbf w)

    Multiply the objective by nn and write t=nλt=n\lambda. Introduce z=Xw\mathbf z=X\mathbf w with a multiplier u\mathbf u:

  2. max⁡u u⊤y−12∥u∥2  s.t. ∥X⊤u∥∞≤t⟺min⁡u∈C∥y−u∥2,C={u:∥X⊤u∥∞≤t}\max_{\mathbf u}\ \mathbf u^\top\mathbf y-\tfrac12\norm{\mathbf u}^2\ \ \text{s.t. }\norm{X^\top\mathbf u}_\infty\le t\quad\Longleftrightarrow\quad\min_{\mathbf u\in C}\norm{\mathbf y-\mathbf u}^2,\qquad C=\{\mathbf u:\norm{X^\top\mathbf u}_\infty\le t\}

    Minimizing over z\mathbf z gives z=y−u\mathbf z=\mathbf y-\mathbf u and the value u⊤y−12∥u∥2\mathbf u^\top\mathbf y-\frac12\norm{\mathbf u}^2. Minimizing t∥w∥1−u⊤Xwt\norm{\mathbf w}_1-\mathbf u^\top X\mathbf w over w\mathbf w gives 00 if ∥X⊤u∥∞≤t\norm{X^\top\mathbf u}_\infty\le t and −∞-\infty otherwise. The dual problem:

  3. y−Xw^=PC(y),Xw^=y−PC(y)\mathbf y-X\hat{\mathbf w}=P_C(\mathbf y),\qquad X\hat{\mathbf w}=\mathbf y-P_C(\mathbf y)

    Strong duality holds (u=0\mathbf u=\mathbf 0 is strictly feasible), and z=y−u\mathbf z=\mathbf y-\mathbf u links the optima. The dual solution is the Euclidean projection of y\mathbf y onto the convex polyhedron CC (bounded, a polytope, when XX has rank nn), and it is the lasso residual:

This explains the uniqueness of the fit (projections are unique) and gives its degrees of freedom. For y∼N(μ,σ2I)\mathbf y\sim\mathcal N(\boldsymbol\mu,\sigma^2I), Stein's lemma says that for any fitting rule y^(y)\hat{\mathbf y}(\mathbf y) that is Lipschitz,

df=1σ2∑i=1nCov⁡(y^i,yi)=E[∑i=1n∂y^i∂yi].\mathrm{df}=\frac1{\sigma^2}\sum_{i=1}^n\Cov(\hat y_i,y_i)=\E\Big[\sum_{i=1}^n\frac{\partial\hat y_i}{\partial y_i}\Big].

Projections onto convex sets are 1-Lipschitz, and so is y−PC(y)\mathbf y-P_C(\mathbf y). Near almost every y\mathbf y the active set and signs are locally constant, and then the KKT solution above gives y^=PAy−t XA(XA⊤XA)−1sA\hat{\mathbf y}=P_{A}\mathbf y-t\,X_A(X_A^\top X_A)^{-1}\mathbf s_A, with PAP_A the projection onto the span of the active columns: the divergence is tr⁡PA=rank⁡XA\operatorname{tr}P_A=\rank X_A. Hence df=E[rank⁡XA]\mathrm{df}=\E[\rank X_A], which is the expected number of nonzero coefficients when the columns are in general position (Zou, Hastie & Tibshirani, 2007; Tibshirani & Taylor, 2012, for general XX).

So ∣A∣\abs A is an unbiased estimate of the lasso's degrees of freedom, and ∥y−Xw^∥2−nσ2+2σ2∣A∣\norm{\mathbf y-X\hat{\mathbf w}}^2-n\sigma^2+2\sigma^2\abs A is an unbiased estimate of E∥Xw^−μ∥2\E\norm{X\hat{\mathbf w}-\boldsymbol\mu}^2, its error in estimating the mean at the observed inputs (Mallows' CpC_p, or Stein's unbiased risk estimate). The lasso searches over features, which costs degrees of freedom, and shrinks the survivors, which saves some; remarkably, the two effects cancel exactly. Effective Complexity & Degrees of Freedom develops this covariance view for any fitting procedure.

Think first Best-subset selection with kk features, chosen by searching all subsets, also produces kk nonzero coefficients. Are its degrees of freedom also about kk?

No: typically more, sometimes far more. The search picks the subset that fits this noise best, so the fitted values react strongly to the noise, and ∑iCov⁡(y^i,yi)/σ2\sum_i\Cov(\hat y_i,y_i)/\sigma^2 exceeds kk. The fitted values are also discontinuous in y\mathbf y (the chosen subset jumps), so Stein's lemma does not even apply. The lasso escapes both problems because its fit is a continuous, Lipschitz function of y\mathbf y, and its shrinkage pays back exactly what its search costs.

Correlated features and beyond

If two columns are identical, the lasso's penalty ∣w1∣+∣w2∣\abs{w_1}+\abs{w_2} depends only on w1+w2w_1+w_2 for same-signed splits, so a whole segment of solutions is optimal; with near-duplicates the solution is unique but unstable, flipping between the two as the data change. The elastic net (Zou & Hastie, 2005) adds a ridge term. In their original "naive" form, ∥y−Xw∥2+λ2∥w∥2+λ1∥w∥1\norm{\mathbf y-X\mathbf w}^2+\lambda_2\norm{\mathbf w}^2+\lambda_1\norm{\mathbf w}_1 with unit-norm columns, it provably holds correlated features together:

DerivationThe grouping bound
  1. −2xi⊤r^+2λ2w^i+λ1s=0,−2xj⊤r^+2λ2w^j+λ1s=0-2\mathbf x_i^\top\hat{\mathbf r}+2\lambda_2\hat w_i+\lambda_1s=0,\qquad-2\mathbf x_j^\top\hat{\mathbf r}+2\lambda_2\hat w_j+\lambda_1s=0

    Suppose w^i\hat w_i and w^j\hat w_j are nonzero with the same sign ss. Both KKT conditions hold, with residual r^=y−Xw^\hat{\mathbf r}=\mathbf y-X\hat{\mathbf w}:

  2. λ2 (w^i−w^j)=(xi−xj)⊤r^\lambda_2\,(\hat w_i-\hat w_j)=(\mathbf x_i-\mathbf x_j)^\top\hat{\mathbf r}

    Subtract them: the ℓ1\ell_1 terms cancel, leaving

  3. ∣w^i−w^j∣≤∥y∥2(1−ρij)λ2\abs{\hat w_i-\hat w_j}\le\frac{\norm{\mathbf y}\sqrt{2(1-\rho_{ij})}}{\lambda_2}

    Bound the right side by Cauchy–Schwarz. With unit-norm columns, ∥xi−xj∥2=2(1−ρij)\norm{\mathbf x_i-\mathbf x_j}^2=2(1-\rho_{ij}) where ρij=xi⊤xj\rho_{ij}=\mathbf x_i^\top\mathbf x_j; and ∥r^∥≤∥y∥\norm{\hat{\mathbf r}}\le\norm{\mathbf y}, because the objective at w^\hat{\mathbf w} is no larger than at w=0\mathbf w=\mathbf 0:

As ρij→1\rho_{ij}\to1 the two coefficients are forced together; Zou and Hastie state this bound (their Theorem 1) with the larger ∥y∥1\norm{\mathbf y}_1 in place of ∥y∥\norm{\mathbf y}. They also show that the naive elastic net is a lasso on augmented data with pp extra rows, so it can select all pp features even when p>np>n, and they rescale the naive estimate by (1+λ2)(1+\lambda_2) to undo the double shrinkage of the two penalties.

Key takeaways

  • KKT: active features have residual correlation exactly ±λ\pm\lambda, inactive ones at most λ\lambda. Hence w^=0\hat{\mathbf w}=\mathbf 0 iff λ≥∥X⊤y∥∞/n\lambda\ge\norm{X^\top\mathbf y}_\infty/n, the fitted values are always unique, and in general position at most min⁡(n,p)\min(n,p) coefficients are nonzero.
  • Coordinate descent updates wj←Sλ(1nxj⊤r+wj)w_j\leftarrow S_\lambda(\frac1n\mathbf x_j^\top\mathbf r+w_j) for O(n)\order{n} each; separability of the penalty guarantees convergence, and warm starts along a decreasing λ\lambda grid make whole paths cheap.
  • The path is piecewise linear: between kinks w^A(λ)=(XA⊤XA)−1(XA⊤y−nλsA)\hat{\mathbf w}_A(\lambda)=(X_A^\top X_A)^{-1}(X_A^\top\mathbf y-n\lambda\mathbf s_A); LARS with the lasso modification and homotopy methods trace it, with exponentially many kinks in the worst case.
  • The lasso fit is y−PC(y)\mathbf y-P_C(\mathbf y) for a convex polyhedron CC; by Stein's lemma its degrees of freedom equal E[rank⁡XA]\E[\rank X_A], the expected number of nonzeros in general position.
  • Correlated features make the lasso pick one arbitrarily; the elastic net's ridge term bounds ∣w^i−w^j∣\abs{\hat w_i-\hat w_j} by ∥y∥2(1−ρij)/λ2\norm{\mathbf y}\sqrt{2(1-\rho_{ij})}/\lambda_2, holding groups together.

Check yourself

In the interactive lesson these are scored with your confidence, and what you miss comes back for review.

Question 1

At a lasso solution, feature jj has w^j=0\hat w_j=0. Which condition must hold?

  1. xj⊤y=0\mathbf x_j^\top\mathbf y=0
  2. Feature jj is uncorrelated with all the other features
  3. ∣1nxj⊤(y−Xw^)∣≤λ\big|\frac1n\mathbf x_j^\top(\mathbf y-X\hat{\mathbf w})\big|\le\lambda
  4. Feature jj's least-squares coefficient is zero
Show the answer

C. ∣1nxj⊤(y−Xw^)∣≤λ\big|\frac1n\mathbf x_j^\top(\mathbf y-X\hat{\mathbf w})\big|\le\lambda

Zero is optimal for coordinate jj when the data's pull on it, its correlation with the current residual, is no larger than the penalty's slope λ\lambda. Nothing more is required: the feature can be correlated with y\mathbf y and with other features.

Question 2

A lasso fit with columns in general position has 12 nonzero coefficients. What is an unbiased estimate of its degrees of freedom?

  1. More than 12, because the lasso searched over features
  2. 12
  3. Fewer than 12, because the coefficients are shrunk
  4. pp, the total number of features
Show the answer

B. 12

The divergence of the lasso fit is rank⁡XA=∣A∣\rank X_A=\abs A almost everywhere, so by Stein's lemma ∣A∣\abs A is an unbiased estimate of df\mathrm{df}. The search inflates the degrees of freedom and the shrinkage deflates them, and for the lasso the two effects cancel exactly.

Question 3

Two columns of XX are identical, and at the chosen λ\lambda the lasso gives the pair a nonzero total weight. Which statement is true?

  1. The lasso has no solution
  2. The coefficient vector is unique and splits the weight evenly
  3. The fitted values change depending on which solution the algorithm returns
  4. The fitted values are unique, but infinitely many coefficient vectors attain them
Show the answer

D. The fitted values are unique, but infinitely many coefficient vectors attain them

Any same-signed split of the total weight between the copies gives the same fit and the same penalty, so a whole segment of coefficient vectors is optimal. The fitted values are unique for every lasso problem, by strict convexity of the loss in XwX\mathbf w.

Question 4

Between two consecutive kinks of the lasso path, how do the active coefficients depend on λ\lambda?

  1. Linearly
  2. Like 1/(c+λ)1/(c+\lambda), as in ridge
  3. Exponentially
  4. They stay constant
Show the answer

A. Linearly

With the active set and signs fixed, the KKT conditions are a linear system whose right side is affine in λ\lambda: w^A(λ)=(XA⊤XA)−1(XA⊤y−nλsA)\hat{\mathbf w}_A(\lambda)=(X_A^\top X_A)^{-1}(X_A^\top\mathbf y-n\lambda\mathbf s_A).

Further reading

  • R. Tibshirani, "Regression shrinkage and selection via the lasso," Journal of the Royal Statistical Society B 58(1), 267–288 (1996).
  • B. Efron, T. Hastie, I. Johnstone & R. Tibshirani, "Least angle regression," Annals of Statistics 32(2), 407–499 (2004).
  • J. Friedman, T. Hastie & R. Tibshirani, "Regularization paths for generalized linear models via coordinate descent," Journal of Statistical Software 33(1), 1–22 (2010).
  • H. Zou, T. Hastie & R. Tibshirani, "On the 'degrees of freedom' of the lasso," Annals of Statistics 35(5), 2173–2192 (2007).
  • T. Hastie, R. Tibshirani & M. Wainwright, Statistical Learning with Sparsity: The Lasso and Generalizations (CRC Press, 2015).