Reference: Hastie, Trevor, Robert Tibshirani, and Martin Wainwright. Statistical learning with sparsity: the lasso and generalizations. Chapman and Hall/CRC, 2015.
In a regression problem, the observed data \[(X_1,Y_1),\cdots, (X_n,Y_n)\] that are IID from an unknown distribution \(F_{X,Y}\) such that \(X_i\in \mathbb{R}^d\) and \(Y_i\in \mathbb{R}\).
The regression problem refers to investigating the relation between \(X\) and \(Y\). In particular, the regression problem is often motivated by the prediction problem:
given \(X\), how can we best predict \(Y\)?
In the prediction framework, we can think of using a function \(g(X)\) as a prediction of \(Y\).
To measure how good the predictor \(g(X)\) is, we often use the mean-square error (MSE): \[R(g) = \mathbb{E}((Y-g(X))^2).\] Namely, the MSE is the expected squared deviation from our predictor \(g(X)\) to the target \(Y\).
Ideally, we want to choose \(g\) that minimizes \(R(g)\). Formally, we want to find \[g^* = {\sf argmin}_{g} R(g).\]
We now take a deeper look at the MSE \(R(g) = \mathbb{E}((Y-g(X))^2)\). Using the law of total expectation, \[\mathbb{E}((Y-g(X))^2) = \mathbb{E}[\mathbb{E}[(Y-g(X))^2|X]].\] Using the fact that for any fixed constant \(c\), \[\begin{align*} \mathbb{E}[(Y-c)^2] = \mathbb{E}[(Y-\mathbb{E}[Y]+E[Y]-c)^2] = \mathbb{E}[(Y-\mathbb{E}[Y])^2] + (\mathbb{E}[Y]-c)^2 = {\sf Var}(Y) + (\mathbb{E}[Y]-c)^2, \end{align*}\] we can rewrite the MSE as \[R(g) = \mathbb{E}[\mathbb{E}[(Y-g(X))^2|X]] = \mathbb{E}[{\sf Var}(Y|X) + (\mathbb{E}[Y|X] - g(X))^2]= \mathbb{E}[{\sf Var}(Y|X) ]+ \mathbb{E}[(\mathbb{E}[Y|X] - g(X))^2].\] The first quantity is independent of \(g\) so it does not matter in the selection of \(g\). The second quantity involves \[(\mathbb{E}[Y|X] - g(X))^2 \geq 0.\] The only case that the equality holds is \(g(X )= \mathbb{E}[Y|X]\). As a result, to minimize the MSE, we should use the conditional expectation \(\mathbb{E}[Y|X]\) as our predictor. The conditional expectation \(\mathbb{E}[Y|X=x] = m(x)\) is also known as the regression function or the best predictor.
With the regression function, we can decompose \(Y\) as \[\begin{equation} Y = \underbrace{\mathbb{E}[Y|X]}_\text{best predictor} + \underbrace{(Y-\mathbb{E}[Y|X])}_\text{residuals}. \label{eq::decom} \end{equation}\] Here are some interesting properties of the decomposition in equation \(\ref{eq::decom}\):
Unbiased. \(\mathbb{E}[\mbox{best predictor} ]= \mathbb{E}[\mathbb{E}[Y|X]] = \mathbb{E}[Y]\) and \(\mathbb{E}[\mbox{residual}] = 0.\)
Uncorrelated. \({\sf Cov}(\mathbb{E}[Y|X], Y-\mathbb{E}[Y|X]) = 0.\)
Residual variance. \({\sf Var}(Y-\mathbb{E}[Y|X]) = \mathbb{E}[{\sf Var}(Y|X)]\). To see this, \[\begin{align*} {\sf Var}(Y-\mathbb{E}[Y|X]) & = {\sf Var}(Y) - 2{\sf Cov}(Y,\mathbb{E}[Y|X]) + {\sf Var}(\mathbb{E}[Y|X])\\ & = \mathbb{E}[Y^2] - \mathbb{E}[Y]^2 - 2(\mathbb{E}[Y\mathbb{E}[Y|X]] - \mathbb{E}[Y]\mathbb{E}[\mathbb{E}[Y|X]]) + \mathbb{E}[\mathbb{E}[Y|X]^2] - \mathbb{E}[\mathbb{E}[Y|X]]^2\\ & = \mathbb{E}[Y^2] - \mathbb{E}[Y]^2 - 2\mathbb{E}[\mathbb{E}[Y|X]^2] +2 \mathbb{E}[Y]^2 + \mathbb{E}[\mathbb{E}[Y|X]^2] - \mathbb{E}[Y]^2\\ & = \mathbb{E}[Y^2] - \mathbb{E}[\mathbb{E}[Y|X]^2] \\ & = \mathbb{E}[\mathbb{E}[Y^2|X] -\mathbb{E}[Y|X]^2 ] \\ & = \mathbb{E}[{\sf Var}(Y|X)]. \end{align*}\]
Variance decomposition. With the above properties, we obtain \[{\sf Var}(Y) = {\sf Var}(\mathbb{E}[Y|X]) + \mathbb{E}[{\sf Var}(Y|X)].\] Although this is the same formula as the law of total variance, it now can be interpreted as: \[{\sf Var}(Y) = \underbrace{{\sf Var}(\mathbb{E}[Y|X]) }_\text{{\sf Var}(best predictor)}+ \underbrace{\mathbb{E}[{\sf Var}(Y|X)]}_\text{average {\sf Var}(residuals)}.\]
Let \(\widehat m\) be a regression estimator (estimator of the regression function). We often use the squared error as our measure of accuracy. Under the squared error, the prediction risk is \[R(\widehat m) = \mathbb{E}((Y-\widehat m(X))^2),\] where \((X,Y)\) is a new pair of observations from the same population. Note that the expectation is taken over both new observations \((X,Y)\) and the estimator \(\widehat m\).
Let \(m\) be the true regression function, i.e. \(\mathbb{E}(Y|X=x) = m(x)\). The prediction risk can be decomposed into \[R(\widehat m) = \sigma^2 + \underbrace{\mathbb{E}(b^2_n(X))}_\text{bias} + \underbrace{\mathbb{E}(V_n(X))}_\text{variance},\] where \[\sigma^2 = \mathbb{E}((Y-m(X))^2), \quad b_n(x) = \mathbb{E}(\widehat m(x)) - m(x), \quad V_n(x) = {\sf Var}(\widehat m(x)).\]
When using the linear regression, we do not (and should not) assume that the linear model is correct. The linear regression can be viewed as the best linear predictor that minimizes \(\mathbb{E}((Y-\beta^TX)^2)\). Namely, the optimal coefficients \[\beta^* ={\sf argmin}_{\beta} \mathbb{E}((Y-\beta^TX)^2)\] and you can easily see that a sample analogue to \(\beta^*\) is \[\widehat\beta_n = {\sf argmin}_{\beta} \frac{1}{n}\sum_{i=1}^n(Y_i-\beta^TX_i)^2,\] which is the least squares estimator (LSE).
When \(G = \mathbb{E}(XX^T)\) is non-singular, the minimizer \(\beta^*\) has the following closed-form \[\beta^* = G^{-1} \alpha,\] where \(\alpha = \mathbb{E}(XY)\). Similarly, the LSE also has the following closed-form \[\widehat\beta_n = \widehat G_n^{-1} \widehat\alpha_n,\] where \(\widehat G_n = \frac{1}{n}\sum_{i=1}^n X_iX_i^T\) is the Gram matrix and \(\widehat\alpha_n = \frac{1}{n}\sum_{i=1}^n X_iY_i\).
Consistency of \(\widehat\beta_n\). By the Law of Large Numbersssss, \[\widehat G_n\overset{p}{\rightarrow} G,\qquad \widehat\alpha_n \overset{p}{\rightarrow} \alpha.\] Thus, by the continuous mapping theorem, we have \[\widehat\beta_n\overset{p}{\rightarrow}\beta^*.\]
Asymptotic normality. Recall that \(\widehat\alpha_n = \frac{1}{n}\sum_{i=1}^nX_iY_i\). Let \(\epsilon^{*}_i = Y_i - X_i^T\beta^*\) be the oracle residual. Note that \(\epsilon^{*}_1,\cdots, \epsilon^{*}_n\) are independent. With the oracle residuals, we can rewrite \[\widehat\alpha_n = \frac{1}{n}\sum_{i=1}^nX_i(X_i^T \beta^* +\epsilon^*_i) = \widehat G_n \beta^* + \frac{1}{n}\sum_{i=1}^nX_i\epsilon^*_i.\] Thus, \[\widehat\beta_n = \widehat G_n^{-1 } \widehat\alpha_n = \beta^* +\widehat G_n^{-1 } \frac{1}{n}\sum_{i=1}^nX_i\epsilon^*_i.\] So we conclude that \[\widehat\beta_n - \beta^* = \widehat G_n^{-1 }\bar Z_n,\] where \(\bar Z_n=\frac{1}{n}\sum_{i=1}^n Z_i\) with \(Z_i = X_i \epsilon^*_i\) are sample averages of independent random vectors \(Z_1,\cdots, Z_n\) with the key property that \[\mathbb{E}(Z_i) = \mathbb{E}(X_i\epsilon^*_i) = \mathbb{E}(X_i(Y_i - X_i^T\beta^*)) = 0.\] Due to the fact that \((X_1,Y_1),\cdots, (X_n,Y_n)\) are IID, \(Z_i = X_i\epsilon^*_i = X_i(Y_i - X_i^T\beta^*)\) will also make \(Z_1,\cdots, Z_n\) IID. Thus, by the multivariate central limit theorem, \[\sqrt{n} (\widehat\beta_n - \beta^* )\overset{d}{\rightarrow} N (0, \Omega),\] where \[\Omega = G^{-1}\mathbb{E}(\epsilon_*^2XX^T) G^{-1}= G^{-1}M G^{-1}\] such that \[M = \mathbb{E}(\epsilon_*^2XX^T) = \mathbb{E}((Y-X^T\beta^*)^2XX^T).\]
Sandwich estimator. A consistent estimator of \(\Omega\) is \[\widehat\Omega_n = \widehat G_n^{-1}\widehat M_n \widehat G_n^{-1},\quad \widehat M_n = \frac{1}{n}\sum_{i=1}^ne_i^2 X_iX_i^T,\] where \(e_i = Y_i-\widehat\beta_n^ TX_i\) is the residual. \(\widehat\Omega_n\) is also called the sandwich estimator.
The above results do not assume that a linear model is correct–it is for the best linear predictor. We can use the sandwich estimator to construct a confidence interval for \(\beta^*\) or the bootstrap method in this case.
Here is one caveat. In many standard textbooks, there is a common formula for computing the standard errors of the regression coefficients: \[\widetilde\Omega_n = \widehat G_n^{-1} \widehat\sigma^2,\quad \widehat\sigma^2 = \frac{1}{n-d-1}\sum_{i=1}^n e_i^2.\] The estimator \(\widetilde\Omega_n\) is not the sandwich estimator; \(\widetilde\Omega_n\) works only if 1. the linear model is correct, and 2. the error is homoscedastic. It is a consistent estimator if the linear model is correct. So you have to be very careful about the conclusion when using this formula. On the other hand, if you are using the sandwich estimator or the bootstrap approach, you can always interpret the confidence interval as covering the best linear predictor. More details are in
Buja, A., Berk, R., Brown, L., George, E., Pitkin, E., Traskin, M., ... & Zhang, K. (2015). Models as approximations: A conspiracy of random regressors and model deviations against classical inference in regression. Statistical Science, 1460.
Now we study the excess risk of \(\widehat\beta_n,\) i.e., \[\mathcal{E}(\widehat\beta_n) = R(\widehat\beta_n) - R(\beta^*).\] The excess risk tells us the expected loss when we are using the LSE compared to using the optimal predictor.
Theorem 1. Assume the distribution \(F_{XY}\) is supported on a compact set and \(G\) is non-singular. Then there exists \(c_1,c_2>0\) such that \[P(R(\widehat\beta_n)> R(\beta^*)+2\epsilon)\leq c_1e^{-nc_2 \epsilon^2}.\]
The above bound is also called the concentration bound. It is another way to express how good an estimator is.
Let \(Z = (Y,X)\) and let \(\underline{\beta} = (-1,\beta)\). With this notation, \((Y-\beta^TX) = -\underline{\beta}^TZ\). So the prediction risk can be written as \[R(\beta) = \mathbb{E}((Y-\beta^TX)^2) = \mathbb{E}(\underline{\beta}^TZZ^T\underline{\beta}) = \underline{\beta}^T\mathbb{E}(ZZ^T) \underline{\beta} = \underline{\beta}^T\Gamma \underline{\beta}.\] Similarly, the sample version of the prediction risk (called empirical risk) is \[\widehat R_n(\beta) = \frac{1}{n}\sum_{i=1}^n(Y_i-\beta^TX_i)^2 = \underline{\beta}^T\frac{1}{n}\sum_{i=1}^nZ_iZ_i^T \underline{\beta} = \underline{\beta}^T\widehat\Gamma_n \underline{\beta}.\]
Thus, the difference between the empirical risk and prediction risk is \[|\widehat R_n(\beta) - R(\beta)| = |\underline{\beta}^T\widehat\Gamma_n \underline{\beta} - \underline{\beta}^T\Gamma \underline{\beta}| = |\underline{\beta}^T(\widehat\Gamma_n-\Gamma) \underline{\beta}|\leq \| \underline{\beta}\|^2_1 \|\widehat\Gamma_n-\Gamma\|_{\max}.\] Note that \(\|A\|_{\max} = \max_{j,k}|A_{jk}|\) is the matrix max norm. Using Hoeffding’s inequality to each entry with the fact that \(F_{XY}\) has a compact support, we conclude that \[P(\|\widehat\Gamma_n-\Gamma\|_{\max} >\epsilon)< (d+1)^2 2e^{-nc_3\epsilon^2},\] where \(c_3\) is a constant depending on the size of the support. Note that when \(G\) is non-singular and \(F_{XY}\) has a compact support, there exists \(\bar B\) such that \(\|\widehat\beta_n\|\leq \bar B\) a.s. so we will assume that \(\widehat\beta_n\) is bounded. Thus, the above concentration inequality implies that \[P\left( \sup_{\beta: \|\beta\|_1^2\leq \bar B}|\widehat R_n(\beta) - R(\beta)|>\epsilon\right)< (d+1)^2 2e^{-\frac{nc_3}{4\bar B^2}\epsilon^2}.\]
Finally, because \(\widehat\beta_n\) is the minimizer of the empirical risk, i.e., \(\widehat R_n(\widehat\beta_n) <\widehat R_n(\beta)\) for all \(\beta\), on the event that \(\sup_{\beta: \|\beta\|_1^2\leq \bar B}|\widehat R_n(\beta) - R(\beta)|\leq\epsilon\), we have \[R(\beta^*)\leq R(\widehat\beta_n) \leq \widehat R(\widehat\beta_n) +\epsilon\leq \widehat R(\beta^*) +\epsilon\leq R(\beta^*)+2\epsilon.\] Thus, we obtain the desired concentration bound.
A refined bound can be obtained in Theorem 11.3 of
Györfi, L., Kohler, M., Krzyzak, A., & Walk, H. (2006). A distribution-free theory of nonparametric regression. Springer Science & Business Media,
which states the following (note that the result is stated in terms of estimation error).
Theorem 2. Assume that \(\sup_x{\sf Var}(Y|X=x) <\infty\) and \(F_{XY}\) are bounded and \(G\) is non-singular. Then \[\mathbb{E}\left(|\widehat\beta_n^TX- m(X)|^2\right) \leq 8\inf_{\beta} \mathbb{E}(|\beta^TX-m(X)|^2) + \frac{Cd(\log n +1)}{n},\] where \(C\) is some positive constant.
The high-dimensional problem refers to the case where the number of covariates \(d\) is large and may be growing with sample size \(n\) even in the regime \(d>n\). In this case, linear regression has an infinite number of solutions due to the fact that we have \(n\) linear equations and \(d\) parameters. Moreover, the covariance matrix \(G = \mathbb{E}(XX^T)\) is not invertible. Even a simple model like a linear model cannot be used in a high-dimensional setting without further assumptions.
One way to advance in a high-dimensional problem is to assume that many covariates are actually irrelevant in the prediction problem. Namely, only \(s\) out of \(d\) covariates are indeed correlated with the outcome \(Y\) and \(s\) is a much smaller number than \(d\) and is small relative to \(n\) as well. This assumption is known as the sparsity assumption.
In the sparsity setting, a common approach is to consider penalized regression, i.e., we add a penalty on the parameter \(\beta\) so that the risk increases as more parameters are non-zero. This penalty can be characterized by the \(L_0\)-norm. For a vector \(\beta\), its \(L_0\)-norm is \[\|\beta\|_0 = \mbox{ number of non-zero elements.}\] The \(L_0\)-penalized regression is \[\widehat{\beta}_{\sf Best} = \underset{\beta}{{\sf argmin}}\,\, \frac{1}{n}\sum_{i=1}^n(Y_i - \beta^T X_i)^2 + \lambda \|\beta\|_0.\] The resulting coefficients are related to the so-called best subset estimators.
However, a problem with the \(L_0\) penalty is that finding the minimum of \(\frac{1}{n}\sum_{i=1}^n(Y_i - \beta^T X_i)^2 + \lambda \|\beta\|_0\) is difficult. It is a non-convex problem and is an NP-hard problem (you can just view these two statements as ‘computationally very difficult’). Thus, in many situations we will replace the \(L_0\) penalty by an \(L_1\) penalty because solving an \(L_1\) penalty problem is still a convex problem, so computationally it is not very challenging. The process of replacing \(L_0\) penalty (or other non-convex problem) by \(L_1\) penalty (or other convex problem) is called convex relaxation. This is a common trick in machine learning and optimization.
The idea of penalization/regularization can help in this case. There are two common penalized parametric regression models: (i) the ridge regression model, and (ii) LASSO (least absolute shrinkage and selection operator).
The ridge regression adds a penalty called the \(L_2\) penalty in the minimization criterion. Namely, the ridge regression finds the fitted parameter as \[\widehat{\beta}_{\sf Ridge} = \underset{\beta}{{\sf argmin}} \frac{1}{n}\sum_{i=1}^n(Y_i - \beta^T X_i)^2 + \lambda \|\beta\|^2_2,\] where \(\|\beta\|_2^2 = \sum_{j=1}^d \beta_j^2\) is the square 2-norm of the vector \(\beta\). The penalty \(\lambda \|\beta\|^2_2\) is called the \(L_2\) penalty because it is based on the \(L_2\) norm of the parameter.
It turns out that the ridge regression has a closed-form solution that is similar to the least square estimator and the spline: \[\widehat{\beta}_{\sf Ridge} = \left(\mathbb{X}^T\mathbb{X} +n\lambda \mathbb{I}_{d}\right)^{-1} \mathbb{X}^T \mathbb{Y},\] where \(\mathbb{X}\) is the \(n\times d\) data matrix and \(\mathbb{I}_{d}\) is the \(d\times d\) identity matrix.
Let \(\widehat{\beta}_{\sf LS} = \left(\mathbb{X}^T\mathbb{X} \right)^{-1} \mathbb{X}^T \mathbb{Y}\) be the ordinary least square estimator (no penalty, the classical approach). The ridge regression has a very similar solution as the least square estimator but just the coefficients are moved toward \(0\) because in the matrix inverse, there is an extra \(n\lambda \mathbb{I}_d\) term. We will say that the ridge regression shrinks the estimator \(\widehat{\beta}_{\sf Ridge}\) toward \(0\). As you would expect, the penalty \(\lambda\) trades off between the bias and variance. Large \(\lambda\) leads to a large bias but less variance.
When \(\lambda\rightarrow 0\) properly, we may establish the consistency of ridge regression.
Theorem 3 (Hsu, Kakade, Zhang (2012)). Assume that \(\|X\|\leq \bar B\) almost surely and the Gram matrix \(G\) is non-singular. If the linear model is correct, i.e., the bias \(b(x) = \beta^{*T}x - m(x) = 0\), then \[R(\widehat\beta_{\sf Ridge}) - R(\beta^*) = \left(1+O\left(\frac{1+\bar B^2/\lambda}{n}\right)\right)\cdot \frac{\lambda\|\beta^*\|^2}{n}+\frac{\sigma^2}{n}\cdot \frac{{\sf tr}( G)}{2\lambda}.\]
This result can be found in Remark 15 of
Hsu, D., Kakade, S. M., & Zhang, T. (2012, June). Random design analysis of ridge regression. In Conference on learning theory (pp. 9-1). JMLR Workshop and Conference Proceedings.
Actually, they also derived the convergence rate when the linear model is incorrect–the consistency is with respect to the best linear predictor. If you are interested in ridge regression, you may check the references in the above paper.
The ridge regression can be viewed as a Bayesian estimator (posterior mean). To see this, we assume that the model \(Y = \beta^TX+\epsilon\) with \(\epsilon\sim N(0,\sigma^2)\) and place a prior over the parameter \(\beta\sim N(0,\tau^2\mathbf{I}_d)\). Then you can show that the posterior mean is the ridge regression estimator with \(\lambda = \frac{\sigma^2}{n\tau^2}\).
Note that ridge regression is sometimes used in low-dimensional problem as well. One scenario that people would use ridge regression is that when the covariance matrix is singular or nearly singular. The ridge regression stabilizes the estimate.
Recommended reference: Hastie, Trevor, Robert Tibshirani, and Martin Wainwright. Statistical learning with sparsity: the lasso and generalizations. Chapman and Hall/CRC, 2015.
LASSO (least absolute shrinkage and selection operator) is one of the most famous penalized parametric regression models. It has revolutionized modern statistical research because of its attractive properties. LASSO finds the regression parameters/coefficients using \[\begin{equation} \widehat{\beta}_{\sf LASSO} = \underset{\beta}{{\sf argmin}}\,\, \frac{1}{n}\sum_{i=1}^n(Y_i - \beta^T X_i)^2 + \lambda \|\beta\|_1 =\underset{\beta}{{\sf argmin}}\,\, \widehat R_n(\beta)+ \lambda \|\beta\|_1, \label{eq::LASSO} \end{equation}\] where \(\|\beta\|_1 = \sum_{j=1}^d |\beta_j|\) is the 1-norm of the vector \(\beta\). The penalty \(\lambda \|\beta\|_1\) is called the \(L_1\) penalty. This is often known as the Lagrangian/regularized LASSO.
There is a different form of the LASSO problem: \[\begin{equation} \underset{\beta}{\sf minimize}\,\,\,\, \frac{1}{n}\sum_{i=1}^n(Y_i - \beta^T X_i)^2 ,\qquad \mbox{subject to } \|\beta\|_1\leq t. \label{eq::dualLASSO} \end{equation}\] When \(t\) is chosen to be the value of \(\widehat{\beta}_{\sf LASSO}\) under the \(\lambda\) in the original problem, we obtain the same result. This is often known as the constrained LASSO.
A third version of the LASSO problem is the dual form from the optimization: \[\begin{equation} \underset{u}{\sf minimize}\,\,\,\, \frac{1}{n}\sum_{i=1}^n(Y_i - u_i)^2 ,\qquad \mbox{subject to } \max_{j=1,\cdots, d}\left|\sum_{i=1}^nX_{ij}u_i\right|\leq L. \label{eq::dLASSO} \end{equation}\] Under the so-called KKT conditions (Karush-Kuhn-Tucker conditions), the solution in the dual problem in equation \(\ref{eq::dLASSO}\) leads to the same solution in the primal problem in equation \(\ref{eq::dualLASSO}\).
If we normalized the covariates so that \(\mathbb{X}^T \mathbb{X} = \mathbb{I}_d\), the LASSO estimates can be written as \[\widehat{\beta}_{\sf LASSO, j} = %\hat\beta_{\sf LS,j} \times\max\left\{0, 1 - \frac{n\lambda}{|\hat\beta_{\sf LS,j}|}\right\} {\sf sign}(\widehat\beta_{\sf LS, j})\left(|\widehat\beta_{LS,j}| - \frac{n\lambda}{2}\right)_+ %\hat{\beta}_{\sf LS,j} \times\max\left\{0, 1-\frac{n\lambda}{|\hat\beta|_{\sf LS,j}}\right\},\] for \(j=1,\cdots, d\), where \((x)_+ = \max\{0,x\}\). Namely, the coefficients from LASSO are those coefficients from the least square method shrunk toward 0 and for those parameters whose value are below \(n\lambda\), they will be shrunk to \(0\).
When \(\lambda\) is large or the signal is small, many coefficients will be 0. This is called sparsity in statistics (only a few non-zero coefficients). Thus, we will say that the LASSO outputs a sparse estimate. Those \(\widehat{\beta}_j\) will be 0 if they does not provide much improvement on predicting \(Y\). So it naturally leads to an estimator with an automatic variable selection property. The value of \(\lambda\) will affect the estimates \(\widehat\beta\). Larger \(\lambda\) encourages a sparser \(\widehat\beta\) (namely, more coefficients are \(0\)) whereas smaller \(\lambda\) leads to a less sparse \(\widehat\beta\).
Although ridge regression also shrinks the coefficients toward \(0\), it does not yield a sparse estimator. The coefficients are just smaller but generally non-zero. On the other hand, LASSO not only shrinks the values of coefficients but also sets them to be \(0\) if the effect is very weak. Actually, this is a property of the \(L_1\) penalty – it tends to yield a sparse estimator – an estimator with many \(0\)’s.
When the linear model is correct, the LASSO is consistent under good conditions.
For a linear regression model, we say that the model is \(s\)-sparse if there are at most \(s<d\) coefficients that are non-zero. Namely, \(\|\beta^*\|_0 = \sum_{j=1}^d I(\beta_j\neq 0) \leq s\). Let \(S = \{j: \beta^*_j\neq 0\}\) be the support of the true parameter \(\beta^*\). Note that in the high dimensional model, we allow \(s\), the sparsity, and \(d\), the number of parameters, to increase as \(n\rightarrow\infty\) as well.
Here we display a convergence rate of LASSO from the following book:
Hastie, T., Tibshirani, R., & Wainwright, M. (2015). Statistical learning with sparsity. Monographs on statistics and applied probability, 143(143), 8.
In particular, chapter 11 discusses a couple of other results on the LASSO theory.
The result is based on the restricted eigenvalue condition. Recall that \(S\) is the collection of parameters with non-zero coefficients. Define the set \[\mathcal{C}(S,\alpha) = \{\beta: \|\beta_{S^C}\|_1\leq \alpha \|\beta_S\|_1\},\] where \(\beta_S = (\beta_j: j\in S)\) and \(\beta_{S^c} = (\beta_j: j\notin S)\). The Gram matrix \(\widehat G_n\) is said to satisfy the restricted eigenvalue condition with parameter \(\gamma\) over class \(\mathcal{C}(S,\alpha)\) if \[\min_{\nu \in \mathcal{C}(S,\alpha)}\frac{\nu^T \widehat G_n\nu}{\nu^T\nu} \geq \gamma.\] With this condition, the LASSO has the following performance guarantees.
Theorem 4 (Theorem 11.1 in Hastie, Tibshirani, and Wainwright (2015)). Assume the following:
The linear model is correct and \(s-\)sparse.
The Gram matrix \(\widehat G_n = \frac{1}{n}\sum_{i=1}^n X_iX_i^T\) satisfies the restrictive eigenvalue condition with \(\gamma\) over class \(\mathcal{C}(S,3)\).
Then 1. for the Lagrangian LASSO in equation \(\ref{eq::LASSO}\) with parameter \(\lambda\geq4\|\sum_{i=1}^nX_i\epsilon_i\|_{\infty}/n>0\), \[\|\widehat\beta_{\sf LASSO} - \beta^*\| \leq \frac{3}{2\gamma} \sqrt{s} \lambda.\] 2. for the constrained LASSO in equation \(\ref{eq::dualLASSO}\) with \(\|\widehat\beta_{\sf LASSO}\|_1\leq \|\beta^*\|_1\), \[\|\widehat\beta_{\sf LASSO} - \beta^*\| \leq \frac{4}{\gamma} \sqrt{\frac{s}{n}}\left\|\frac{\sum_{i=1}^nX_i\epsilon_i}{\sqrt{n}}\right\|_{\infty}.\]
We first prove the case of constrained LASSO.
Constrained LASSO. Consider the empirical risk \[\widehat R_n(\beta) = \frac{1}{n}\sum_{i=1}^n (Y_i-X_i^T\beta)^2 = \frac{1}{n}\sum_{i=1}^n\left(X_i^T(\beta-\beta^*) +\epsilon_i\right)^2.\] This implies \[\begin{align*} \widehat R_n(\widehat\beta_{\sf LASSO}) &= \frac{1}{n}\sum_{i=1}^n\left(X_i^T\underbrace{(\widehat\beta_{\sf LASSO}-\beta^*)}_{=-\delta_\beta} +\epsilon_i\right)^2\\ & = \frac{1}{n}\sum_{i=1}^n\left(X_i^T{\delta_\beta} -\epsilon_i\right)^2\\ &\leq \widehat R_n(\beta^*) = \frac{1}{n}\sum_{i=1}^n \epsilon_i^2, \end{align*}\] where \(\delta_\beta = \beta^* - \widehat\beta_{\sf LASSO}\). Note that we use \(\widehat R_n(\widehat\beta_{\sf LASSO}) \leq \widehat R_n(\beta^*)\) in the above derivation since \(\widehat\beta_{\sf LASSO}\) is the minimizer under constrained ERM while \(\beta^*\) is not (but it satisfies the same constraint.)
Thus, after rearrangements, \[\begin{equation} \delta_\beta^T \widehat G_n \delta_\beta = \frac{1}{n}\sum_{i=1}^n (X_i^T\delta_\beta)^2 \leq \frac{2\delta_\beta^T}{n}\sum_{i=1}^nX_i\epsilon_i. \label{eq::LC::1} \end{equation}\] For the right-hand side, the Holder’s inequality implies that \[\begin{equation} \left|\frac{2\delta_\beta^T}{n}\sum_{i=1}^nX_i\epsilon_i\right|\leq 2\|\delta_\beta\|_1\left\|\frac{1}{n}\sum_{i=1}^nX_i\epsilon_i\right\|_{\infty}. \label{eq::LC::2} \end{equation}\]
Fact: the constraint \(\|\widehat\beta_{\sf LASSO}\|_1\leq \|\beta^*\|_1\) implies that \(\delta_\beta \in \mathcal{C}(S,1)\). To see this, because \(S\) is the support of \(\beta^*\), we have \[\delta_{\beta,S} = \beta^*_S-\widehat\beta_{\sf LASSO, S} ,\qquad \delta_{\beta,S^c} = \widehat\beta_{\sf LASSO, S^c}.\] Thus, \[\begin{align*} \|\delta_{\beta,S}\|_1 = \sum_{j\in S} |\widehat\beta_{\sf LASSO, j} - \beta^*_j| &\geq \sum_{j\in S} | \beta^*_j|- |\widehat\beta_{\sf LASSO, j}| \\ &= \|\beta^*\|_1- \sum_{j\in S} |\widehat\beta_{\sf LASSO, j}|\\ &\geq \|\widehat\beta_{\sf LASSO}\|_1 - \sum_{j\in S} |\widehat\beta_{\sf LASSO, j}|\\ & = \sum_{j\notin S} |\widehat\beta_{\sf LASSO, j}| = \|\delta_{\beta,S^c}\|_1. \end{align*}\]
Applying the fact that \(\delta_\beta \in \mathcal{C}(S,1)\subset \mathcal{C}(S, 3)\), we have \[\|\delta_\beta\|_1 = \|\delta_{\beta,S}\|_1+ \|\delta_{\beta,S^c}\|_1 \leq 2\|\delta_{\beta,S}\|_1\leq 2\sqrt{s}\|\delta_{\beta,S}\|_2\leq 2 \sqrt{s}\|\delta_\beta\|_2,\] where the last second inequality is due to Cauchy-Schwarz inequality. Thus, we can rewrite equation \(\ref{eq::LC::2}\) by \[\left|\frac{2\delta_\beta^T}{n}\sum_{i=1}^nX_i\epsilon_i\right|\leq 4\sqrt{s} \|\delta_\beta\|_2\left\|\frac{1}{n}\sum_{i=1}^nX_i\epsilon_i\right\|_{\infty}.\] Thus, after rearrangements, equation \(\ref{eq::LC::1}\) becomes \[\begin{align*} \delta_\beta^T \widehat G_n \delta_\beta &\leq 4\sqrt{s} \|\delta_\beta\|_2\left\|\frac{1}{n}\sum_{i=1}^nX_i\epsilon_i\right\|_{\infty}\\ \Rightarrow \|\delta_\beta\|_2 \cdot \underbrace{\frac{\delta_\beta^T \widehat G_n \delta_\beta}{ \|\delta_\beta\|^2_2} }_{\geq \gamma}&\leq 4\sqrt{s}\left\|\frac{1}{n}\sum_{i=1}^nX_i\epsilon_i\right\|_{\infty}\\ \Rightarrow \|\delta_\beta\|_2&\leq \frac{4}{\gamma}\sqrt{s}\left\|\frac{1}{n}\sum_{i=1}^nX_i\epsilon_i\right\|_{\infty}, \end{align*}\] which completes the proof.
Lagrangian LASSO.
For the Lagrangian LASSO, the estimator \(\widehat\beta_{\sf LASSO}\) satisfies \[\widehat R_n(\widehat\beta_{\sf LASSO}) + \lambda\|\widehat\beta_{\sf LASSO}\|_1 \leq \widehat R_n(\beta^*) + \lambda \|\beta^*\|_1.\]
Our first goal is to show that \(\delta_\beta = \widehat\beta_{\sf LASSO} - \beta^*\) belongs to a nice cone \(C(S, \alpha)\) for some \(\alpha\) under the condition \(\lambda\geq4\|\sum_{i=1}^nX_i\epsilon_i\|_{\infty}/n\). After rearrangement, we obtain \[\begin{align*} \widehat R_n(\widehat\beta_{\sf LASSO}) - \widehat R_n( \beta^*) &\leq \lambda(\|\beta^*\|_1 - \|\widehat\beta_{\sf LASSO}\|_1 ) \end{align*}\] and we expand \(\widehat R_n\), leading to \[\delta_\beta^T \widehat G_n \delta_\beta - \delta_\beta^T\left(\frac{2}{n}\sum_{i=1}^n X_i\epsilon_i\right) \leq \lambda(\|\beta^*\|_1 - \|\widehat\beta_{\sf LASSO}\|_1 ),\] which further implies \[\begin{equation} \begin{aligned} \delta_\beta^T \widehat G_n \delta_\beta &\leq \delta_\beta^T\left(\frac{2}{n}\sum_{i=1}^n X_i\epsilon_i\right) +\lambda(\|\beta^*\|_1 - \|\widehat\beta_{\sf LASSO}\|_1 )\\ & \leq \|\delta_\beta\|_1 2 \left\|\frac{1}{n}\sum_{i=1}^n X_i\epsilon_i\right\|_{\max} + \lambda(\|\beta^*\|_1 - \|\widehat\beta_{\sf LASSO}\|_1 )\\ & \leq \frac{1}{2}\lambda \|\delta_\beta\|_1+\lambda(\|\beta^*\|_1 - \|\widehat\beta_{\sf LASSO}\|_1 ), \end{aligned} \label{eq::L1} \end{equation}\] where we use the condition on \(\lambda\) in the last inequality: \(\lambda\geq4\|\sum_{i=1}^nX_i\epsilon_i\|_{\infty}/n>0\). Clearly, \(\delta_\beta^T \widehat G_n \delta_\beta\geq 0\), so the above inequality becomes \[\begin{equation} 0 \leq \frac{1}{2}\lambda \|\delta_\beta\|_1+\lambda(\|\beta^*\|_1 - \|\widehat\beta_{\sf LASSO}\|_1 ). \label{eq::L2} \end{equation}\] Note that \(\|\widehat\beta_{\sf LASSO}\|_1\) can be expanded as \[\begin{align*} \|\widehat\beta_{\sf LASSO}\|_1 & = \|\beta^* + \delta_\beta\|_1\\ & = \|\beta^*_S + \delta_{\beta, S}\|_1+ \|\underbrace{\beta^*_{S^C}}_{0's} + \delta_{\beta, S^C}\|_1\\ & \geq \|\beta^*_S\|_1 -\|\delta_{\beta, S}\|_1 + \|\delta_{\beta, S^C}\|_1\\ & = \|\beta^*\|_1 -\|\delta_{\beta, S}\|_1 + \|\delta_{\beta, S^C}\|_1. \end{align*}\] Putting this into equation \(\ref{eq::L2}\) and use the fact that \(\|\delta_\beta\|_1 = \|\delta_{\beta,S}\|_1 + \|\delta_{\beta,S^C}\|_1\), we conclude \[\begin{equation} \begin{aligned} 0 &\leq \frac{1}{2}\lambda \|\delta_\beta\|_1+\lambda(\|\beta^*\|_1 - \|\widehat\beta_{\sf LASSO}\|_1 )\\ &\leq \frac{1}{2}\lambda (\|\delta_{\beta,S}\|_1 + \|\delta_{\beta,S^C}\|_1) + \lambda (\|\delta_{\beta, S}\|_1 - \|\delta_{\beta, S^C}\|_1)\\ & \leq \frac{3\lambda}{2}\|\delta_{\beta,S}\|_1 -\frac{\lambda}{2}\|\delta_{\beta,S^C}\|_1. \end{aligned} \label{eq::L3} \end{equation}\] Thus, we conclude that \[3\|\delta_{\beta,S}\|_1 \geq \|\delta_{\beta,S^C}\|_1\] so \(\delta_\beta \in \mathcal{C}(S, 3)\). Namely, the constraint \(\lambda\geq4\|\sum_{i=1}^nX_i\epsilon_i\|_{\infty}/n\) implies that \(\delta_\beta \in \mathcal{C}(S, 3)\).
Now applying restricted eigenvalue condition to the left-hand-sided of equation \(\ref{eq::L1}\) and use the same derivation as equation \(\ref{eq::L3}\), we conclude that \[\begin{align*} \gamma \| \delta_\beta\|_2^2 \leq \delta_\beta^T \widehat G_n \delta_\beta &\leq \frac{1}{2}\lambda \|\delta_\beta\|_1+\lambda(\|\beta^*\|_1 - \|\widehat\beta_{\sf LASSO}\|_1 )\\ &\overset{\eqref{eq::L3}}{\leq} \frac{3\lambda}{2}\|\delta_{\beta,S}\|_1 -\frac{\lambda}{2}\|\delta_{\beta,S^C}\|_1\\ &\leq \frac{3\lambda}{2}\|\delta_{\beta,S}\|_1 \\ &\leq \frac{3\lambda}{2} \sqrt{s} \|\delta_{\beta,S}\|_2\\ &\leq \frac{3\lambda}{2} \sqrt{s} \|\delta_{\beta}\|_2. \end{align*}\]
Thus, \[\| \delta_\beta\|_2 \leq \frac{3\sqrt{s}}{2\gamma} \lambda,\] which completes the proof.
The quantity \(\|\sum_{i=1}^nX_i\epsilon_i\|_{\infty}\) can be bounded using the concentration inequality. When \(X\epsilon\) is sub-Gaussian, i.e., \(\log \mathbb{E}(e^{tX\epsilon})\leq \frac{1}{2}\sigma^2t^2\) for some finite number \(\sigma^2>0\) and any \(t>0\), we have \[\left\|\sum_{i=1}^nX_i\epsilon_i\right\|_{\infty}\leq O_P(\sqrt{n\log d}).\] Using this fact, Theorem 4 implies that \[\|\widehat\beta_{\sf LASSO} - \beta^*\|_2 = O_P\left(\sqrt{\frac{s\log d}{n}}\right).\]
There are many other theoretical works on the convergence of LASSO. Here is another example. For a matrix \(C\), we define its \(m\)-sparse minimum and maximum eigenvalues as \[\phi_{\min}(m; C) = \min_{\beta: \|\beta\|_0\leq \ceil{m}}\frac{\beta^T C\beta}{\beta^T\beta},\quad \phi_{\max}(m;C) = \max_{\beta: \|\beta\|_0\leq\ceil{m} }\frac{\beta^T C\beta}{\beta^T\beta}.\] These quantities are related to the restricted isometry property (RIP)1.
Theorem 5 (Meinshausen and Yu (2009)). Assume the following:
The linear model is correct.
The covariates are bounded and the design matrix is standardized (i.e, the diagonal of sample covariance matrix \(\widehat\Sigma_n\) consists of 1’s.)
The noise \(\epsilon_i\) is sub-Exponential, i.e, \(\mathbb{E}(e^{|\epsilon_i|})<\infty\), and has variance \({\sf Var}(\epsilon_i) =\sigma^2<\infty\).
There exists \(0<\kappa_{\min}\leq\kappa_{\max}<\infty\) such that \[\liminf_n\phi_{\min}(s_n\log n ; \widehat\Sigma_n)\geq \kappa_{\min},\quad \limsup_n\phi_{\max}(s_n+\min\{n,d_n\} ; \widehat\Sigma_n)\leq \kappa_{\max}.\]
\(\lambda\propto \sigma\sqrt{\frac{\log d_n}{n}}\).
Then there exists \(M\) such that with a probability tending to 1 \[\|\widehat\beta_{\sf LASSO} - \beta^*\|^2 \leq M \sigma^2\frac{s_n\log d_n}{n}.\]
Sometimes, you will see that people write \(\|\widehat\beta_{\sf LASSO} - \beta^*\| = O_P\left(\sqrt{\frac{s_n\log p_n}{n}}\right)\). This is the common rate for the LASSO estimator. The above theorem is from
Meinshausen, N., & Yu, B. (2009). Lasso-type recovery of sparse representations for high-dimensional data.
Note that a design matrix \(\widehat\Sigma_n\) is called an incoherent design if there exists a sequence \(e_n\) (also known as sparsity multiplier sequence) such that \[\liminf_{n\rightarrow\infty}\frac{\phi_{\min}(e_ns^2_n;\widehat\Sigma_n)}{\phi_{\max}(s_n+\min\{m,d_n\}; \widehat\Sigma_n)}\geq 18.\] A more general result can be obtained using the incoherent design.
There is one condition that is particularly restrictive in Theorem 5: the condition on the eigenvalues (4th condition). A similar condition is the restrictive eigenvalue condition in Theorem 4. Essentially, we need the design matrix to behave almost like an orthonormal matrix. For problems like compressive sensing, this is possible since we can manipulate the design matrix but for many other problems such as genetic studies, the design matrix refers to the gene-gene interaction matrix, which is known to fail this condition.
There is less literature about the behavior of LASSO when the model is incorrect. Here we present a theorem about the convergence of predictive risk of LASSO when the model is incorrect. Note that the convergence here refers to the convergence to a ‘population LASSO’. We use the dual form of LASSO to simplify the problem.
Theorem 6. Assume that \(|Y|\leq B\) and \(\|X\|_{\max}\leq B\). Define the population LASSO \[\beta^*_{\sf LASSO} = {\sf argmin}_{\beta: \|\beta\|_1\leq L} \mathbb{E}(Y_i - \beta^T X_i)^2 = {\sf argmin}_{\beta: \|\beta\|_1\leq L} R(\beta)\] and the LASSO estimator \[\widehat\beta_{\sf LASSO} = {\sf argmin}_{\beta: \|\beta\|_1\leq L} \widehat R_n(\beta).\] With a probability of at least \(1-\delta\), we have \[R(\widehat\beta_{\sf LASSO}) \leq R(\beta^*_{\sf LASSO}) + \sqrt{\frac{8(L+1)^4 B^2}{n}\log \left(\frac{2 d^2}{{\delta}}\right)}.\]
Define \(Z = (Y,X)\) and \(Z_i = (Y_i,X_i)\) and \(\underline{\beta} = (-1, \beta)\). The prediction risk can be written as \[R(\beta) = \underline{\beta}^T \Gamma\underline{\beta},\] where \(\Gamma = \mathbb{E}(ZZ^T)\).
Similarly, the empirical prediction risk is \[\widehat R_n(\beta) = \underline{\beta}^T \widehat\Gamma_n\underline{\beta},\] where \(\widehat\Gamma_n = \frac{1}{n}\sum_{i=1}^n Z_iZ_i^T\).
For any parameter \(\beta\), the difference can be written as \[\begin{align*} \widehat R_n(\beta) - R(\beta) & = \underline{\beta}^T (\widehat{\Gamma}_n - \Gamma)\underline{\beta}\\ & \leq \sum_{j,k}| \underline{\beta}_j|| \underline{\beta}_k| [\widehat\Gamma_n - \Gamma]_{j,k}\\ & \leq \|\underline{\beta}\|_1^2 \|\widehat{\Gamma}_n - \Gamma\|_{\max}\\ &\leq (L+1)^2 \|\widehat{\Gamma}_n - \Gamma\|_{\max}. \end{align*}\]
By setting \(\eta = (L+1)^2 \|\widehat{\Gamma}_n - \Gamma\|_{\max}\), we have \[R(\widehat\beta_{\sf LASSO})\leq \widehat R_n(\widehat\beta_{\sf LASSO}) +\eta \leq \widehat R_n(\beta^*_{\sf LASSO})+\eta \leq R( \beta^*_{\sf LASSO}) + 2\eta.\] Using Hoeffding’s inequality, \[P(\|\widehat\Gamma_n-\Gamma\|_{\max} >\epsilon)< d^2 2 e^{-\frac{n\epsilon^2}{2B^2}}.\] Thus, by setting \(d^2 2 e^{-\frac{n\epsilon^2}{2B^4}} = \delta\), we obtain \[\epsilon = \sqrt{\frac{2B^4}{n} \log\left(\frac{2d^2}{\delta}\right)} %= \sqrt{\frac{2B^2}{n} \log\left(\frac{2d^2}{\delta}\right)}.\] Plugging this into \(\eta\), we conclude that \[R(\widehat\beta_{\sf LASSO})\leq R( \beta^*_{\sf LASSO}) + \sqrt{\frac{8(L+1)^4B^4}{n} \log\left(\frac{2d^2}{\delta}\right)} .\]
Note that a more general version appears in the following paper:
Greenshtein, E., & Ritov, Y. A. (2004). Persistence in high-dimensional linear predictor selection and the virtue of overparametrization. Bernoulli, 10(6), 971-988.
Remark (sparsistency). Another way to derive the convergence of LASSO is via the concept of sparsistency. An estimator \(\widehat\beta\) is sparsisteny if its non-zero element is the same as the non-zero element of \(\beta^*\) with a high probability, i.e., \[P({\sf supp}(\widehat\beta) = {\sf supp}(\beta^*)) \rightarrow 1,\] where \({\sf supp}(\beta) = \{\beta_j: \beta_j\neq 0\}\). Under good assumptions, the LASSO estimator has sparsistency; see, e.g.,
Zhao, P., & Yu, B. (2006). On model selection consistency of Lasso. Journal of Machine learning research, 7(Nov), 2541-2563.
Remark (WARNING on LASSO). Although we have beautiful theorems on LASSO under sparse and high-dimensional settings, these theorems may not be applicable to the real data. In particular, the restrictive eigenvalue condition is often a too strong condition. It basically requires the covariates to be almost uncorrelated (or even independent). When analyzing genetic data or images from fMRI, it is well known that the covariates (genes or voxel values) are highly correlated with each other. So the theorem is not applicable in this case and we have no idea how will the LASSO behaves (although LASSO is still commonly used in these scenarios). One situation that the restrictive eigenvalue condition works is compressed sensing–we can design the covariate so that the restrictive eigenvalue conditions can be obtained by design2.
Inference in high-dimensional case is very challenging. The major reason is that the convergence rate we obtain is often done by empirical risk minimization approach. This is different from the usual analysis that we perform a Taylor expansion over the objective function. Despite the challenges, there are still some advancements in this direction. In general, there are two common directions for high-dimensional inference.
Sequential testing and post-selection inference. The first approach considers a sequential procedure of including one and one variable. The challenge is that this procedure runs in to the post-selection inference problem that at each stage, our hypothesis testing depends on all the previously selected parameters. Some famous references are:
Lockhart, Richard, et al. “A significance test for the lasso." Annals of statistics 42.2 (2014): 413.
Tibshirani, Ryan J., et al. “Exact post-selection inference for sequential regression procedures." Journal of the American Statistical Association 111.514 (2016): 600-620.
Lee, Jason D., et al. “Exact post-selection inference, with application to the lasso." The Annals of Statistics 44.3 (2016): 907-927.
Debiased/Desparsified approach. The debiased/desparsified LASSO is another common approach for high-dimensional inference. The main idea is: although the LASSO estimator does not have asymptotic normality when \(d_n\) increases much faster than \(n\), the debiased version of the LASSO estimator still have (LASSO estimator minus an estimate of the bias). An interesting fact about the debiased LASSO estimator is no longer a sparse estimate–most of its parameter estimates are non-zero. So people also called it a desparsified LASSO. Here are some famous papers about this idea:
Zhang, Cun-Hui, and Stephanie S. Zhang. “Confidence intervals for low dimensional parameters in high dimensional linear models." Journal of the Royal Statistical Society: Series B (Statistical Methodology) 76.1 (2014): 217-242.
Van de Geer, Sara, et al. “On asymptotically optimal confidence regions and tests for high-dimensional models." The Annals of Statistics 42.3 (2014): 1166-1202.
Javanmard, Adel, and Andrea Montanari. “Confidence intervals and hypothesis testing for high-dimensional regression." The Journal of Machine Learning Research 15.1 (2014): 2869-2909.
Why does the \(L_1\) penalty lead to a sparse estimator? One simple way to explain this is via high-dimensional geometry. In fact, the geometry in high dimensions can be very different from low dimensions. To start with, we examine how the \(L_1\) norm behaves when the dimension is high.
The first thing where high-dimensional geometry is very different from low-dimensional geometry is the shape of the \(L_1\) norm level set. Consider the set \[B= \{\beta\in\mathbb{R}^d: \|\beta\|_1 \leq 1\}.\] What will this set look like relative to the set \([-1,1]^d\)?
In the \(d=1\) case, it covers the entire region. In the \(d=2\) case, it covers half of the region. In the \(d=3\) case, you can show that it covers actually \(1/4\) of the region \([-1,1]^3\).
Then what would happen when \(d\) is large? It turns out that this \(L_1\) level set covers \(\frac{1}{2^{d-1}}\) volume of the region \([-1,1]^d\), which means that the region covered by \(B\) will only cover a tiny fraction of the region \([-1,1]^d\) when \(d\) is large and the set \(B\) will be the region around the coordinate axes. Figure 1 provides a graphical illustration of this.
The illustration in Figure 1 implies that the \(L_1\) norm behaves like a spiky structure under high dimensions. The shape of a squared loss is an ellipse (contour of the squared loss). Thus, when an ellipse hits a spiky structure, it is very like that the hitting point is on the spike, i.e., some parameters are \(0\). This is why \(L_1\) regularization often leads to a sparse estimator.
In fact, any \(L_q\) norm regularization with \(q\leq 1\) leads to a sparse estimator. Another interesting fact: the minimization problem of \(L_q\) regularization is NP-hard if \(q<1\); or informally, you can say that \(L_q\) regularization is ‘computable’ if \(q\geq 1\). We are very fortunate that the intersection of a sparse estimator (requiring \(q\leq 1\)) and a computable estimator (requiring \(q\geq 1\)) has an intersection at \(q=1\). Thus, \(L_1\) regularization is a blessing zone that we can enjoy a sparse and computable estimator.
Another bizarre phenomenon of high dimensional geometry occurs when we are working with high-dimensional multivariate Gaussian. To simplify the problem, we consider a \(d\)-dimensional Gaussian with unit variance. Let \[X\sim N(0, \mathbf{I}_d),\] where \(\mathbf{I}_d\) is the \(d\times d\) identity matrix. The PDF will be \[p(x) = (2\pi)^{-d/2} \exp\left(-\frac{1}{2}\sum_{j=1}^dx_j^2\right).\] This density is symmetric at \(0\) and decrease with respect to the distance from the origin \(r = \sqrt{\sum_{j=1}^d x_j^2} = \|x\|_2\). Now we consider the following question: if we are thinking about the density as a function of distance to the origin, which radius will most of the probability mass concentrate?
To study this, we convert the PDF of coordinate \(x\) into a PDF with respect to the radius \(r\). Using the polar coordinate transform and the fact that \(p(x)\) is isotropic,\(dx =r^{d-1} S_{d-1} dr\), where \(S_{d-1}\) is the \(d-1\) dimensional surface volume of the unit ball \(\{x: \|x\|_2 = 1\}\). Thus, the PDF will be \[p(r) = (2\pi)^{-d/2} S_{d-1} r^{d-1} \exp\left(-\frac{1}{2}r^2\right)\propto r^{d-1} e^{-\frac{1}{2}r^2}.\] What will the mean and variance be and what will the mode be? Let \(R\) be the random variable with a PDF \(p(r)\).
A simple approach to compute the mean and variance is to use the fact that by setting \(R^2 = S\), we obtain \[p(s) \propto s^{\frac{d-2}{2}}e^{-\frac{1}{2}s}\sim {\sf Gamma}\left(\alpha=\frac{d}{2}, \beta = \frac{1}{2}\right).\] Using the properties of Gamma distribution, we conclude that \[\begin{align*} \mathbb{E}(S) &= d\\ {\sf Var}(S)& = 2d\\ {\sf Mode}(S) & = d-2. \end{align*}\]
What does this tell us about random variable \(S\) when \(d\) is large? A crucial implication is that the mean and the variance are of the same order, meaning that the standard deviation will be of the order \(\sqrt{d}\). Thus, if we are thinking about \(S\) rescaled by its mean, then \(\frac{S}{\mathbb{E}(S)}\overset{P}{\rightarrow} 1.\) Also, since \(\frac{|\mathbb{E}(S) - {\sf Mode}(S)|}{\mathbb{E}(S)}\rightarrow 0\), \[\frac{S}{{\sf Mode}(S)}\overset{P}{\rightarrow} 1.\] Note that the mode of \(S\) is the squared of the mode of \(R\), i.e., \({\sf Mode}(R) = \sqrt{d-1}\). Using the continuous mapping theorem, we conclude that \[\frac{R}{{\sf Mode} (R)} \overset{P}{\rightarrow}1.\] Namely, all probability mass will concentrate around the mode of \(R\) when we rescale the entire distribution so that the mode occurs at radius \(1\)! In a sense, this implies that the distribution \(p(x)\) puts almost all its probability mass around the shell \(\|x\|_2 = \sqrt{d}\)!
Another striking result about high-dimensional geometry is the fact that
most of the volumes of a high dimensional ball or cube are close to the boundary.
To see this, note that for a \(d\)-dimensional ball with a radius \(R\), its volume is \[V_d(R) = \frac{\pi^{d/2}}{\Gamma(\frac{d}{2}+1)} R^d,\] where \(\Gamma(\cdot)\) is the Gamma function. Thus, the ratio of a ball with unit length (\(R=1\)) versus with radius \(1-\epsilon\) is \[\frac{V_d(1-\epsilon)}{V_d(1)} = (1-\epsilon)^d.\] When \(\epsilon = r/d\), this quantity converges to \(e^{-r}\), which decrease rapidly when \(r\) increases. Thus, most of the volume is within \(\epsilon = O(1/d)\) to the boundary, which means that the majority of the volume is around the boundary. Or alternatively, if we randomly choose a point within a high dimensional ball, it is very likely that this point is within \(O(1/d)\) distance to the boundary. Not only the ball, a high dimensional cube also has a similar property– most of the volume is very close to the boundary.
This section is a simplification of the following paper:
Hastie, T., Montanari, A., Rosset, S., & Tibshirani, R. J. (2022). Surprises in high-dimensional ridgeless least squares interpolation. Annals of statistics, 50(2), 949.
In recent years, researchers have discovered an interesting phenomenon called benign overfitting: when the dimension increases (and sample size is fixed), the mean squared error of a linear model may be decreasing! In this section, we will briefly explain how this could happen.
We will consider a special linear model called ridgeless regression, a combination of the usual least squared model and ridge regression. The ridgeless regression estimator is \[\begin{equation} \widehat\beta_{RL} = {\sf argmin} \left\{\|b\|: b\mbox{ minimizes }\|\mathbb{Y}-\mathbb{X}b\|\right\}, \label{eq::RL1} \end{equation}\] where \(\mathbb{Y} =(Y_1,\cdots, Y_n)^T \in \mathbb{R}^n\) is the response vector and \(\mathbb{X} \in \mathbb{R}^{n\times p}\) is the feature/covariate matrix.
\(\widehat\beta_{RL}\) has the following property: \[\begin{align*} \widehat\beta_{RL} =\begin{cases} \widehat\beta_{OLS} \qquad &\mbox{if }n>p,\\ \widehat\beta_{LI}\qquad &\mbox{if }p > n, \end{cases} \end{align*}\] where \(\widehat\beta_{OLS}\) is the ordinary least square and \(\widehat\beta_{LI}\) is the least norm interpolator, a limiting case of the ridge regression, \[\begin{align*} \widehat\beta_{LI} &= \lim_{\lambda \rightarrow 0} \widehat\beta_{\lambda},\\ \widehat\beta_\lambda & = {\sf argmin}_b \|\mathbb{Y}-\mathbb{X}b\| +\lambda\|b\|^2_2. \end{align*}\] Here is an interesting fact: \(\widehat\beta_{RL}\) will demonstrate the benign overfitting! See Figure 2.
To investigate this phenomenon, we will consider the following IID setup: \[\mathbb{Y} = \mathbb{X}\beta^* + \epsilon, \qquad\epsilon\sim N(0, \sigma^2 \mathbf{I}_n),\] where \(\mathbf{I}_n \in \mathbb{R}^{n\times n}\) is the identity matrix. Moreover, we assume that entries \(\{X_{ij}\}\) are IID from \(N(0,1)\). Namely, each row vectors \(X_1,\cdots, X_n\) are IID from \(N(0, \mathbf{I}_p)\)
To investigate the mean squared error, we will separately analyze the bias and variance. In particular, we will consider the conditional bias and variance: \[\begin{align*} {\sf Bias}(\widehat\beta_{RL}|\mathbb{X}) \in\mathbb{R}^n,\qquad {\sf Var}(\widehat\beta_{RL}|\mathbb{X}) = {\sf Tr} [{\sf Cov}(\widehat\beta_{RL}|\mathbb{X})], \end{align*}\] where \({\sf Cov}(\widehat\beta_{RL}|\mathbb{X})\) is the covariance matrix.
The conditional MSE is \[{\sf MSE}(\widehat\beta_{RL}|\mathbb{X}) = \|{\sf Bias}(\widehat\beta_{RL}|\mathbb{X})\|^2 + {\sf Var}(\widehat\beta_{RL}|\mathbb{X}).\]
When \(p<n\), it is clear that the bias is \(0\) because \(\widehat\beta_{RL} = \widehat\beta\). Thus, \[{\sf Bias}(\widehat\beta_{RL}|\mathbb{X}) = 0.\]
For the variance, the story is more interesting. First, let \[\widehat G = \frac{\mathbb{X}^T\mathbb{X}}{n} \in \mathbb{R}^{p\times p}\] be the (sample) covariance matrix. For ordinary least squares, we know that \[\begin{align*} {\sf Var}(\widehat\beta_{RL}|\mathbb{X}) &= {\sf Tr} [{\sf Cov}(\widehat\beta_{RL}|\mathbb{X})]\\ & = {\sf Tr}[(\mathbb{X}^T\mathbb{X})^{-1 }\sigma^2]\\ & = \frac{\sigma^2}{n}\cdot {\sf Tr}(\widehat G^{-1}). \end{align*}\] Using the property of trace, \[{\sf Tr}(\widehat G^{-1}) = \sum_{j=1}^p \mu_j^{-1}(\widehat G),\] where \(\mu_j(A)\) is the \(j\)-th eigenvalue of \(A\).
To investigate the property of eigenvalues of a Gaussian covariance matrix, we will use the Marchenko-Pastur theorem (MP theorem).
Theorem 7 (Marchenko-Pastur theorem). Let \(\{Z_{ij}\}\) be IID random variables with \(\mathbb{E}(Z_{ij}) =0, {\sf Var}(Z_{ij})=1\). Let \(\mathbb{Z} \in\mathbb{R}^{n\times p}\) be the matrix of \(\{Z_{ij}\}\). Define \(\widehat\Omega = \frac{\mathbb{Z}^T\mathbb{Z}}{n}\in \mathbb{R}^{p\times p}\) and \(S_{\widehat\Omega}\) be the distribution of eigenvalues of \(\widehat\Omega\), i.e., \[S_{\widehat\Omega}(t) = \frac{1}{p}\sum_{j=1}^p I(\mu_{j}(\widehat\Omega)\leq t).\] When \(n,p\rightarrow \infty, \frac{p}{n}\rightarrow \gamma<1\), we have the following results:
\(S_{\widehat\Omega}\) converges in distribution to \(S_{\gamma}\), where \(S_{\gamma}\) has a PDF \[S_{\gamma(t)} = \begin{cases}\frac{1}{2\pi \gamma} \frac{1}{t} \sqrt{(b-t)(t-a)}, \qquad\ &t\in[a,b]\\ 0,&\mbox{Otherwise}. \end{cases}\] and \(a =(1-\sqrt{\gamma})^2, b= (1+\sqrt{\gamma})^2\).
The Stieltjes transform of \(S_\gamma(t)\) is \[\begin{align*} \omega_\gamma(-z) &= \int \frac{dS_\gamma(t)}{t-z}\\ & = \frac{-(1-\gamma-z) + \sqrt{(1+\gamma-z)^2 - 4\gamma}}{2\gamma z}. \end{align*}\]
Using L’Hospital’s rule, we further have \[\omega_\gamma(0) = \lim_{\lambda\rightarrow 0} \omega_\gamma(z) = \frac{1}{1-\gamma}.\]
The above theorem is from Chapter 3 of
Bai, Z., & Silverstein, J. W. (2010). Spectral analysis of large dimensional random matrices (Vol. 20). New York: Springer.
The power of Theorem 7 is that the trace of the inverse covariance matrix \[{\sf Tr}(\widehat G^{-1}) = \sum_{j=1}^p \mu_j^{-1}(\widehat G),\] can be written as \[\begin{align*} {\sf Tr}(\widehat G^{-1}) &= p \frac{1}{p} \sum_{j=1}^p \mu_j^{-1}(\widehat G)\\ & = p\int \frac{1}{t} dS_{\widehat G}(t)\\ &\approx p \int \frac{1}{t} dS_{\gamma}(t) \\ & =p\cdot \omega_{\gamma}(0) = \frac{p}{1-\gamma} \end{align*}\] when \(\gamma =\frac{p}{n} < 1\), which is our current setting.
To sum up, \[{\sf Var}(\widehat\beta_{RL}|\mathbb{X}) = \frac{\sigma^2}{n} {\sf Tr}(\widehat G^{-1}) \approx \sigma^2 \frac{p}{n} \frac{1}{1-\gamma} = \sigma^2 \frac{\gamma}{1-\gamma},\] so \[{\sf MSE}(\widehat\beta_{RL}|\mathbb{X})\approx \sigma^2 \frac{\gamma}{1-\gamma}\] when \(\gamma = \frac{p}{n}<1\). Thus, when \(\gamma\) increases, the mean squared error increases as long as \(\gamma<1\).
When \(p>n\), \(\widehat\beta_{RL} = \lim_{\lambda\rightarrow 0}\widehat\beta_\lambda\), so we will first investigate the bias and variance of the ridge regression.
A feature of the ridge regression is its closed form: \[\begin{align*} \widehat\beta_\lambda &= (\mathbb{X}^T\mathbb{X} +n\lambda \mathbf{I}_p)^{-1}\mathbb{X}^T \mathbb{Y}\\ &=\mathbb{X}^T (\mathbb{X}^T\mathbb{X} +n\lambda \mathbf{I}_n)^{-1} \mathbb{Y}, \end{align*}\] where the last equality can be verified by multiplying \((\mathbb{X}^T\mathbb{X} +n\lambda \mathbf{I}_p)\) in both sides.
Analysis of variance. We first analyze the variance. \[\begin{align*} {\sf Var}(\widehat\beta_{RL}|\mathbb{X}) &= {\sf Tr} [{\sf Cov}(\widehat\beta_{RL}|\mathbb{X})]\\ &=\lim_{\lambda\rightarrow 0} {\sf Tr} [{\sf Cov}(\widehat\beta_{\lambda}|\mathbb{X})],\\ {\sf Cov}(\widehat\beta_{\lambda}|\mathbb{X})& = \mathbb{X}^T(\mathbb{X}^T\mathbb{X} +n\lambda \mathbf{I}_n)^{-2}\mathbb{X} \cdot \sigma^2,\\ {\sf Tr} [{\sf Cov}(\widehat\beta_{\lambda}|\mathbb{X})]& = {\sf Tr}[\mathbb{X}^T(\mathbb{X}^T\mathbb{X} +n\lambda \mathbf{I}_n)^{-2}\mathbb{X} ]\cdot \sigma^2\\ & = {\sf Tr}[\mathbb{X}\mathbb{X}^T(\mathbb{X}^T\mathbb{X} +n\lambda \mathbf{I}_p)^{-2} ]\cdot \sigma^2 \qquad \mbox{(trace property)}\\ & = \frac{1}{p} {\sf Tr}\left[\frac{\mathbb{X}\mathbb{X}^T}{p}\left(\frac{\mathbb{X}^T\mathbb{X}}{p} +\frac{n}{p}\lambda \mathbf{I}_n\right)^{-2} \right]\cdot \sigma^2\\ & = \frac{\sigma^2}{p}{\sf Tr}[\widehat Q (\widehat Q + \tau \lambda \mathbf{I}_n)^{-2}], \end{align*}\] where \[\widehat Q =\frac{\mathbb{X}\mathbb{X}^T}{p} \in \mathbb{R}^{n\times n},\qquad \tau = \frac{1}{\lambda} = \frac{n}{p} <1.\]
As \(\lambda\rightarrow0\), \[\begin{align*} {\sf Var}(\widehat\beta_{RL}|\mathbb{X}) &={\sf Tr} [{\sf Cov}(\widehat\beta_{RL}|\mathbb{X})]\\ & = \frac{\sigma^2}{p}{\sf Tr}[\widehat Q (\widehat Q + \tau \lambda \mathbf{I}_n)^{-2}] \\ &\approx \frac{\sigma^2}{p }{\sf Tr} (\widehat Q^{-1})\\ & = \tau \cdot\frac{1}{n} \sum_{j=1}^n \mu_j^{-1}(\widehat Q). \end{align*}\] Now we apply Theorem 7 again with swapping \(n,p\) in the setting and conclude that \[{\sf Var}(\widehat\beta_{RL}|\mathbb{X}) \approx \sigma^2 \frac{\tau}{1-\tau} = \frac{\sigma^2 }{\gamma-1}.\]
Analysis of bias. To analyze the bias, we will use another property about \(\widehat\beta_{RL}\) that it can be expressed by the pseudo-inverse when \(p>n\): \[\widehat{\beta}_{RL} = (\mathbb{X}^T \mathbb{X})^{\dagger} \mathbb{X}^T \mathbb{Y},\] where for a matrix \(A\in\mathbb{R}^{p\times p}\) its pseudo-inverse \(A^{\dagger}\) satisfies \(AA^{\dagger}A = A, A^{\dagger} AA^{\dagger} = A^{\dagger}\). Note that if \(A\) has rank \(r<p\), then \({\sf Tr}[A^\dagger A] = r\).
Let \(\widehat\Omega = \mathbb{X}^T \mathbb{X}\). A direct computation shows that \[\begin{align*} \mathbb{E}(\widehat\beta_{RL}|\mathbb{X}) &= \widehat\Omega^{\dagger}\widehat\Omega\beta^*\\ {\sf Bias} (\widehat\beta_{RL}|\mathbb{X}) & = (\mathbf{I}_p - \widehat\Omega^\dagger \widehat\Omega)\beta^*\\ \|{\sf Bias} (\widehat\beta_{RL}|\mathbb{X})\|^2 & = \beta^{*T}(\mathbf{I}_p - \widehat\Omega^\dagger \widehat\Omega)\beta^*. \end{align*}\]
Here is an interesting property about the Gaussian vectors \(X_i \sim N(0, \mathbf{I}_p)\). For any rotation matrix \(U\in \mathbb{R}^{p\times p}\), \[UX_i \overset{d}{= }X_i,\] i.e., \(UX_i\) has identical distribution as \(X_i\).
Thus, we can rewrite the bias as \[\begin{align*} \|{\sf Bias} (\widehat\beta_{RL}|\mathbb{X})\|^2 & = \beta^{*T}(\mathbf{I}_p - \widehat\Omega^\dagger \widehat\Omega)\beta^*\\ & = (U\beta^{*})^T(\mathbf{I}_p - \widehat\Omega^\dagger \widehat\Omega)(U\beta^*). \end{align*}\]
Now we pick \(U_1,\cdots, U_p\) such that \[U_i \beta^* = \|\beta^*\|\cdot e_i,\] where \(e_i\) is the unit \(i\)-th coordinate vector.
Thus, \[\|{\sf Bias} (\widehat\beta_{RL}|\mathbb{X})\|^2 = (U_i\beta^{*})^T(\mathbf{I}_p - \widehat\Omega^\dagger \widehat\Omega)(U_i\beta^*) = \|\beta^*\|^2 (1 - [\widehat\Omega^\dagger \widehat\Omega]_{ii})\] for \(i=1,\cdots, p\).
With this result, we ‘average’ them, which leads to \[\|{\sf Bias} (\widehat\beta_{RL}|\mathbb{X})\|^2 = \frac{1}{p}\sum_{i=1}^p\|\beta^*\|^2 (1 - [\widehat\Omega^\dagger \widehat\Omega]_{ii}) = \|\beta^*\|^2 \left(1- \frac{1}{p}\underbrace{{\sf Tr}( \widehat\Omega^\dagger \widehat\Omega)}_{=n}\right) = \|\beta^*\|^2 (1- \frac{1}{\gamma}) .\]
Putting variance and bias together, we conclude that when \(p>n\), \[\begin{align*} \|{\sf Bias} (\widehat\beta_{RL}|\mathbb{X})\|^2&= \|\beta^*\|^2 \left(1- \frac{1}{\gamma}\right) \\ {\sf Var}(\widehat\beta_{RL}|\mathbb{X}) &\approx \frac{\sigma^2 }{\gamma-1}\\ {\sf MSE} (\widehat\beta_{RL}|\mathbb{X}) & \approx \|\beta^*\|^2 \left(1- \frac{1}{\gamma}\right) + \frac{\sigma^2 }{\gamma-1}. \end{align*}\]
When \(\gamma = \frac{p}{n} \rightarrow \infty\) and \(\|\beta^*\|\) remains fixed, we see that bias is converging to a fixed quantity but the variance keeps decreasing. Thus, the total mean squared error is decreasing as \(\gamma \rightarrow \infty\).
Now we consider both regimes and conclude that \[{\sf MSE} (\widehat\beta_{RL}|\mathbb{X}) \approx\begin{cases} \sigma^2 \frac{\gamma}{1-\gamma},\qquad &\mbox{when } p<n\\ \|\beta^*\|^2 \left(1- \frac{1}{\gamma}\right) + \frac{\sigma^2 }{\gamma-1}\qquad &\mbox{when } p>n. \end{cases}\] As \(\gamma = \frac{p}{n}\) increases from \(0\), the MSE first increases until \(\gamma=1\), and then the MSE decreases, leading to the famous phenomenon of the benign overfitting. Figure 2 shows the asymptotic MSE under \(\sigma^2=1\) and \(\|\beta^*\|^2=1\).
Note that a crucial feature of the MSE decreasing is based on the assumption that \(\|\beta^*\|^2\) remains fixed as \(p\rightarrow \infty\). Since the total signal is fixed, the average signal on each coordinate is shrinking.