Statistics Graduate Level Quiz: Ridge And Lasso Regularization
10 questions · exam conditions
0:00
Ridge And Lasso RegularizationQuestion 1 of 10

A researcher fits a penalized regression without standardizing the predictors. One predictor, originally denoted by xjx_j, is replaced by xj=10xjx_j^*=10x_j, while the response and all other predictors remain unchanged. The same numerical value of λ\lambda is then used.

How does this rescaling affect the role of that predictor under ordinary ridge or lasso penalization?

It makes the predictor effectively less penalized because an equivalent fitted effect requires a coefficient one-tenth as large.
It makes the predictor effectively more penalized because its observed values are ten times as large.
It leaves the fitted model unchanged because both ridge and lasso are invariant to predictor rescaling.
It leaves ridge unchanged but makes lasso less penalized because only the latter depends on coefficient magnitude.
← Back to quizzes

Statistics Graduate Level Quiz

Statistics Graduate Level Quiz: Ridge And Lasso Regularization

Practice Ridge And Lasso Regularization in Statistics Graduate Level with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Ridge And Lasso Regularization, giving you a quick way to practice the rules, question types, and explanations that matter most for Statistics Graduate Level.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

A researcher fits a penalized regression without standardizing the predictors. One predictor, originally denoted by xjx_j, is replaced by xj=10xjx_j^*=10x_j, while the response and all other predictors remain unchanged. The same numerical value of λ\lambda is then used.

How does this rescaling affect the role of that predictor under ordinary ridge or lasso penalization?

  1. It makes the predictor effectively less penalized because an equivalent fitted effect requires a coefficient one-tenth as large. (correct answer)
  2. It makes the predictor effectively more penalized because its observed values are ten times as large.
  3. It leaves the fitted model unchanged because both ridge and lasso are invariant to predictor rescaling.
  4. It leaves ridge unchanged but makes lasso less penalized because only the latter depends on coefficient magnitude.
Explanation: Whenever you see a question about penalized regression and rescaling, your first instinct should be to ask: what does the penalty actually operate on? Both ridge and lasso penalize the coefficients, not the predictors directly. Ridge penalizes jβj2\sum_j \beta_j^2 and lasso penalizes jβj\sum_j |\beta_j|, each multiplied by λ\lambda. Here's the key insight. Suppose the true relationship is βjxj\beta_j x_j. If you replace xjx_j with xj=10xjx_j^* = 10x_j, then to produce the same fitted contribution to the model, you only need βj=βj/10\beta_j^* = \beta_j / 10. A coefficient ten times smaller is subject to far less penalization — under ridge, (βj/10)2(\beta_j/10)^2 is 100 times smaller than βj2\beta_j^2; under lasso, βj/10|\beta_j/10| is ten times smaller. So the penalty barely restrains this predictor compared to others on their original scales. Answer A is correct: rescaling xjx_j by a factor of 10 makes it effectively less penalized, because representing the same effect requires a proportionally smaller coefficient. Answer B gets the direction backwards — larger observed values actually allow a smaller coefficient, reducing, not increasing, the penalty burden. Answer C is the most tempting trap: it's true that the optimal fitted model is theoretically scale-invariant, but only if λ\lambda is adjusted accordingly. Using the same λ\lambda breaks that invariance entirely. Answer D incorrectly claims ridge is unaffected; both penalties operate on coefficient magnitude and are equally disrupted by the fixed λ\lambda. Study tip: Always remember that standardizing predictors before penalized regression ensures each coefficient is penalized on a fair, comparable scale — this is precisely why standardization is considered best practice.

Question 2

Consider the Gaussian model yβN(Xβ,σ2I)y\mid β\sim N(Xβ,\sigma^2I), with the intercept treated separately. Ridge is defined by minimizing 12yXβ22+λ2β22\frac{1}{2}||y-Xβ||_2^2+\frac{\lambda}{2}||β||_2^2, and lasso by minimizing 12yXβ22+λβ1\frac{1}{2}||y-Xβ||_2^2+\lambda||β||_1.

Which prior specifications produce these estimators as posterior modes with the stated values of λ\lambda?

  1. Ridge uses independent N(0,τ2)N(0,\tau^2) priors with λ=σ2/τ2\lambda=\sigma^2/\tau^2; lasso uses independent Laplace priors of scale bb with λ=σ2/b\lambda=\sigma^2/b. (correct answer)
  2. Ridge uses independent Laplace priors of scale bb with λ=b/σ2\lambda=b/\sigma^2; lasso uses independent normal priors with λ=τ2/σ2\lambda=\tau^2/\sigma^2.
  3. Ridge uses independent N(0,τ2)N(0,\tau^2) priors with λ=τ2/σ2\lambda=\tau^2/\sigma^2; lasso uses independent Laplace priors of scale bb with λ=b/σ2\lambda=b/\sigma^2.
  4. Ridge uses independent uniform priors with λ=σ2\lambda=\sigma^2; lasso uses independent point-mass priors with λ=1/b\lambda=1/b.
Explanation: When you see a question connecting regularized regression to Bayesian posteriors, the key move is to write out the log-posterior and match terms to the penalized loss. Recall that maximizing the posterior is equivalent to minimizing the negative log-posterior. With a Gaussian likelihood, logp(yβ)12σ2yXβ22-\log p(y|\beta) \propto \frac{1}{2\sigma^2}||y - X\beta||_2^2. The prior contributes logp(β)-\log p(\beta), and the penalty structure of that term determines which estimator you recover. For a Normal prior βjN(0,τ2)\beta_j \sim N(0, \tau^2), we have logp(β)12τ2β22-\log p(\beta) \propto \frac{1}{2\tau^2}||\beta||_2^2. Combined with the likelihood (scaled by σ2\sigma^2), the negative log-posterior becomes 12yXβ22+σ22τ2β22\frac{1}{2}||y-X\beta||_2^2 + \frac{\sigma^2}{2\tau^2}||\beta||_2^2, which matches ridge with λ=σ2/τ2\lambda = \sigma^2/\tau^2. For a Laplace prior with scale bb, logp(β)1bβ1-\log p(\beta) \propto \frac{1}{b}||\beta||_1, giving 12yXβ22+σ2bβ1\frac{1}{2}||y-X\beta||_2^2 + \frac{\sigma^2}{b}||\beta||_1, which matches lasso with λ=σ2/b\lambda = \sigma^2/b. This is exactly what A states, confirming it as correct. B is wrong because it swaps the priors — Laplace gives an 1\ell_1 penalty (lasso), not ridge, and the λ\lambda expressions are inverted. C is wrong because it correctly assigns normal→ridge and Laplace→lasso but flips the λ\lambda relationships: the correct ratios are σ2/τ2\sigma^2/\tau^2 and σ2/b\sigma^2/b, not τ2/σ2\tau^2/\sigma^2 and b/σ2b/\sigma^2. D is wrong because uniform priors contribute no penalty (flat log-prior), and point-mass priors don't produce lasso. A reliable memory aid: the shape of the prior matches the shape of the penalty — bell curve (Normal) → quadratic 2\ell_2, peaked tent (Laplace) → linear 1\ell_1. Always derive λ\lambda by scaling the likelihood by σ2\sigma^2, so it appears in the numerator of the ratio.

Question 3

In a centered regression with no intercept, the squared singular values of the design matrix are 99, 11, and 00. Ridge uses the estimator βλ=(XTX+λI)1XTyβ_{\lambda}=(X^TX+\lambda I)^{-1}X^Ty with λ=1\lambda=1.

What is the effective degrees of freedom of the ridge fit, defined as the trace of its smoothing matrix?

  1. 3.03.0, equal to the total number of coefficient coordinates
  2. 2.02.0, equal to the rank of the unpenalized design matrix
  3. 1.51.5, obtained by averaging the positive singular-value contributions
  4. 1.41.4, obtained by summing the three ridge shrinkage factors (correct answer)
Explanation: Whenever you encounter a question about ridge regression degrees of freedom, anchor your thinking to the spectral decomposition of the hat matrix. The ridge smoothing matrix is Hλ=X(XTX+λI)1XTH_\lambda = X(X^TX + \lambda I)^{-1}X^T, and its trace — the effective degrees of freedom — equals jdj2dj2+λ\sum_{j} \frac{d_j^2}{d_j^2 + \lambda}, where djd_j are the singular values of XX. Here, the squared singular values are d12=9d_1^2 = 9, d22=1d_2^2 = 1, and d32=0d_3^2 = 0, with λ=1\lambda = 1. Plugging in: df(λ)=99+1+11+1+00+1=0.9+0.5+0.0=1.4\text{df}(\lambda) = \frac{9}{9+1} + \frac{1}{1+1} + \frac{0}{0+1} = 0.9 + 0.5 + 0.0 = 1.4 This confirms D is correct. Choice A (3.0) would be correct only for OLS with a full-rank 3×33 \times 3 system — ridge shrinkage strictly reduces effective df below the number of coefficients. Choice B (2.0) reflects the rank of XTXX^TX (two nonzero eigenvalues), which is the OLS effective df for this rank-2 matrix — it ignores the penalty entirely. Choice C (1.5) comes from naively averaging the two nonzero contributions (0.9+0.5)/2×2=1.5(0.9 + 0.5)/2 \times 2 = 1.5... actually it simply averages them as 0.9+0.520.7\frac{0.9+0.5}{2} \approx 0.7, then doubles — a tempting but unjustified manipulation. The correct operation is a sum, not a rescaled average. Your study tip: memorize the formula df(λ)=jdj2dj2+λ\text{df}(\lambda) = \sum_j \frac{d_j^2}{d_j^2+\lambda} cold. It appears frequently in theory questions, and the most common trap is substituting the rank or the coefficient count instead of computing the shrinkage-weighted sum.

Question 4

Ten-fold cross-validation for lasso gives its minimum estimated prediction error, 1.201.20, at λ=0.08\lambda=0.08. The standard error at that minimum is 0.050.05. Among larger candidate penalties, the error is 1.241.24 at λ=0.30\lambda=0.30 and 1.291.29 at λ=1.00\lambda=1.00.

Using the one-standard-error rule, which penalty is selected, and what is the principal reason for that choice?

  1. λ=1.00\lambda=1.00, because its error lies within one standard error of its own pointwise estimate.
  2. λ=0.08\lambda=0.08, because the rule always retains the candidate with the smallest estimated cross-validation error.
  3. λ=0.30\lambda=0.30, because it is the largest candidate within one standard error of the minimum, favoring greater regularization. (correct answer)
  4. λ=0.30\lambda=0.30, because its cross-validation error equals the minimum-error candidate's error within Monte Carlo noise.
Explanation: Whenever you see a question involving cross-validation and model selection, think about the bias-variance tradeoff: a simpler, more regularized model may generalize better even if it doesn't achieve the absolute lowest cross-validation error, because that minimum is itself a noisy estimate. The one-standard-error rule operationalizes this idea. First, compute the threshold: minimum error ++ one standard error =1.20+0.05=1.25= 1.20 + 0.05 = 1.25. Then, among all candidates with larger penalties than the minimizer (i.e., more regularized models), select the largest λ\lambda whose cross-validation error still falls at or below that threshold. Why largest? Because a larger λ\lambda means stronger regularization and a sparser, more interpretable model — and since its error is statistically indistinguishable from the minimum, you prefer the simpler solution. Here, λ=0.30\lambda = 0.30 has error 1.241.251.24 \leq 1.25 ✓, while λ=1.00\lambda = 1.00 has error 1.29>1.251.29 > 1.25 ✗. So C is correct: λ=0.30\lambda = 0.30 is selected precisely because it is the largest penalty still within one standard error of the minimum. Choice A is wrong because the rule doesn't compare a candidate's error to its own standard error — it compares to the threshold built from the minimum's standard error. Choice B is wrong because it ignores the rule entirely; simply keeping λ=0.08\lambda = 0.08 would mean never applying the one-standard-error principle at all. Choice D is wrong because "Monte Carlo noise" is not the stated justification — the rule is a deliberate regularization-preference criterion, not a noise-tolerance argument. Study tip: Memorize the two-step procedure — compute err^min+1SE^\hat{\text{err}}_{\min} + 1 \cdot \widehat{SE}, then pick the largest λ\lambda (not smallest error) that clears that bar.

Question 5

For a fixed λ>0\lambda>0, let βλβ_{\lambda} be any solution of the penalized lasso problem minβ{12yXβ22+λβ1}\min_{β}\{\frac{1}{2}||y-Xβ||_2^2+\lambda||β||_1\}. Define t=βλ1t=||β_{\lambda}||_1.

Which statement about the corresponding constrained formulation is necessarily valid?

  1. βλβ_{\lambda} solves the constrained problem only when the numerical constraint bound satisfies t=λt=\lambda.
  2. βλβ_{\lambda} solves the least-squares problem subject to β1t||β||_1\le t, although the constrained coefficient solution need not be unique. (correct answer)
  3. βλβ_{\lambda} is the unique constrained solution because every positive penalty produces strict convexity in ββ.
  4. βλβ_{\lambda} solves a constrained problem only when XX has full column rank and the lasso solution has no zero entries.
Explanation: Whenever you see a question linking penalized and constrained forms of the lasso, you should think about the Lagrangian duality connecting them: the penalized problem minβ{12yXβ22+λβ1}\min_\beta \{\frac{1}{2}\|y-X\beta\|_2^2 + \lambda\|\beta\|_1\} and the constrained problem minβ12yXβ22 subject to β1t\min_\beta \frac{1}{2}\|y-X\beta\|_2^2 \text{ subject to } \|\beta\|_1 \le t are equivalent in a precise sense via KKT conditions. For any solution βλ\beta_\lambda of the penalized problem, setting t=βλ1t = \|\beta_\lambda\|_1 means βλ\beta_\lambda is feasible for the constrained problem. The KKT conditions for both problems are satisfied by the same point with the penalty parameter λ\lambda acting as the Lagrange multiplier. Therefore βλ\beta_\lambda is indeed a solution to the constrained problem at that value of tt. However, because the objective 12yXβ22\frac{1}{2}\|y - X\beta\|_2^2 is convex but not strictly convex (e.g., when XX is rank-deficient or columns are collinear), the constrained problem may have multiple optimal solutions — βλ\beta_\lambda is a solution, not necessarily the unique one. This makes B correct. A is wrong because the constraint bound t=βλ1t = \|\beta_\lambda\|_1 need not equal λ\lambda; these are dimensionally different objects and the relationship between them depends on the data. C is wrong because the 1\ell_1 penalty does not make the full objective strictly convex in β\beta — strict convexity requires the loss term alone to be strictly convex, which fails when XX is not full column rank. D is wrong because the equivalence between penalized and constrained forms holds generally, without requiring full column rank or nonzero entries. As a study tip: always distinguish between existence (guaranteed by convexity) and uniqueness (requires strict convexity) of lasso solutions — exam questions frequently conflate the two.

Question 6

Suppose two standardized predictors are identical: x1=x2x_1=x_2. For a specified positive penalty parameter, assume the optimal combined coefficient s=β1+β2s=β_1+β_2 is strictly positive. The intercept is unpenalized.

Which statement best compares ridge and lasso in this setting?

  1. Ridge uniquely assigns β1=β2=s/2β_1=β_2=s/2, whereas lasso can have multiple nonnegative splits of the same combined coefficient. (correct answer)
  2. Lasso uniquely assigns β1=β2=s/2β_1=β_2=s/2, whereas ridge can have multiple splits with the same fitted values.
  3. Both methods uniquely assign the full combined coefficient to the predictor appearing first in the design matrix.
  4. Both methods permit every split satisfying β1+β2=sβ_1+β_2=s, including splits with coefficients of opposite signs.
Explanation: When two predictors are perfectly collinear (x1=x2x_1 = x_2), the penalty structure of ridge versus lasso creates fundamentally different solution sets — this question tests whether you understand how each regularizer handles non-uniqueness. For ridge regression, the penalty is λ(β12+β22)\lambda(\beta_1^2 + \beta_2^2). Subject to a fixed sum β1+β2=s\beta_1 + \beta_2 = s, this strictly convex penalty has a unique minimizer. Minimizing β12+β22\beta_1^2 + \beta_2^2 over all splits of ss yields β1=β2=s/2\beta_1 = \beta_2 = s/2 — the equal split is the only solution. The circular contours of the ridge penalty touch the constraint line at exactly one point. For lasso, the penalty is λ(β1+β2)\lambda(|\beta_1| + |\beta_2|). When s>0s > 0, any split with β10\beta_1 \geq 0 and β20\beta_2 \geq 0 satisfying β1+β2=s\beta_1 + \beta_2 = s yields the same lasso penalty value λs\lambda s. Because the 1\ell_1 ball has a flat edge aligned with the constraint, infinitely many solutions exist — all nonnegative splits are equally optimal. This confirms A is correct. B is wrong because it reverses the roles: lasso lacks uniqueness here, not ridge. C is wrong because neither method assigns the full coefficient to one predictor — ridge always splits equally, and lasso spreads it across a continuum of nonneg solutions. D is wrong because lasso solutions with opposite-sign coefficients (e.g., β1=s+t,β2=t\beta_1 = s+t, \beta_2 = -t) would increase the 1\ell_1 penalty, so they are suboptimal. Study tip: Remember the geometry — ridge has strictly convex (circular) level sets giving unique solutions, while lasso's diamond-shaped level sets have flat edges that can align with constraints, creating solution manifolds.

Question 7

Consider one eigenvector of XTXX^TX having eigenvalue d=4d=4. The corresponding component of the true coefficient vector is 33, and the error variance is σ2=2\sigma^2=2. Ridge uses βλ=(XTX+λI)1XTyβ_{\lambda}=(X^TX+\lambda I)^{-1}X^Ty with λ=1\lambda=1.

What are the expectation and variance of the ridge estimate along this eigenvector?

  1. Expectation 2.42.4 and variance 0.400.40
  2. Expectation 3.03.0 and variance 0.400.40
  3. Expectation 2.42.4 and variance 0.320.32 (correct answer)
  4. Expectation 0.60.6 and variance 0.080.08
Explanation: When analyzing ridge regression along a single eigenvector, you should work in the rotated coordinate system where XTXX^TX is diagonal. Along one eigenvector with eigenvalue dd, the ridge estimator shrinks the OLS estimate by the factor dd+λ\frac{d}{d+\lambda}, which creates bias but reduces variance. Expectation: The ridge estimator is biased. Its expectation along this eigenvector is the true coefficient multiplied by the shrinkage factor: E[β^λ]=dd+λβ=44+1(3)=45(3)=2.4E[\hat{\beta}_\lambda] = \frac{d}{d+\lambda}\beta = \frac{4}{4+1}(3) = \frac{4}{5}(3) = 2.4. This confirms the expectation is 2.42.4. Variance: The variance of the OLS estimator along this eigenvector is σ2d=24=0.5\frac{\sigma^2}{d} = \frac{2}{4} = 0.5. Ridge applies the shrinkage factor squared to this variance: Var(β^λ)=(dd+λ)2σ2d=(45)2(0.5)=0.64×0.5=0.32\text{Var}(\hat{\beta}_\lambda) = \left(\frac{d}{d+\lambda}\right)^2 \frac{\sigma^2}{d} = \left(\frac{4}{5}\right)^2(0.5) = 0.64 \times 0.5 = 0.32. So the correct answer is C: expectation 2.42.4 and variance 0.320.32. Choice A gets the expectation right but uses the unsquared shrinkage factor on the variance: 0.8×0.5=0.400.8 \times 0.5 = 0.40, a common computational slip. Choice B incorrectly reports the expectation as 3.03.0, which would only hold for OLS (no shrinkage), ignoring ridge's inherent bias entirely. Choice D applies the shrinkage factor to the variance without first computing the OLS variance correctly, arriving at implausibly small values. Your study tip: always remember that ridge bias uses the shrinkage factor once, but the variance uses it squared — these two formulas are easy to conflate under exam pressure.

Question 8

A coordinate-descent step for lasso minimizes 12nyXβ22+λβ1\frac{1}{2n}||y-Xβ||_2^2+\lambda||β||_1. Predictor xjx_j is standardized so that xjTxj/n=1x_j^Tx_j/n=1. Holding the other coefficients fixed, its partial residual is rj=ykjxkβkr_j=y-\sum_{k\ne j}x_kβ_k, and xjTrj/n=0.26x_j^Tr_j/n=-0.26. The penalty is λ=0.20\lambda=0.20.

What is the updated value of βjβ_j?

  1. 0.03-0.03, because the penalty is divided across the two signs
  2. 0.26-0.26, because standardization makes the unpenalized update exact
  3. 00, because the correlation magnitude is close to the penalty level
  4. 0.06-0.06, because soft thresholding reduces the magnitude by 0.200.20 (correct answer)
Explanation: Whenever you see a lasso coordinate-descent question, your mental anchor should be the soft-thresholding operator. Because xjTxj/n=1x_j^Tx_j/n = 1 (standardization), the closed-form update for βj\beta_j is simply: βj=S ⁣(xjTrjn,λ)=sign(z)max(zλ,0)\beta_j = S\!\left(\frac{x_j^T r_j}{n},\, \lambda\right) = \text{sign}(z)\cdot\max(|z| - \lambda,\, 0) where z=xjTrj/nz = x_j^T r_j / n. Plugging in z=0.26z = -0.26 and λ=0.20\lambda = 0.20: βj=sign(0.26)max(0.260.20,0)=(1)(0.06)=0.06\beta_j = \text{sign}(-0.26)\cdot\max(0.26 - 0.20,\, 0) = (-1)(0.06) = -0.06 The penalty shrinks the magnitude by exactly λ\lambda, giving D as the correct answer. Choice A claims the penalty is "divided across two signs," which has no basis in lasso theory — soft thresholding subtracts the full λ\lambda from the magnitude, not half of it. Choice B is a tempting trap: standardization does simplify the update formula, but it does not eliminate the penalty term. The unpenalized OLS update would be 0.26-0.26; the lasso update is always shrunk toward zero. Choice C would be correct only if zλ|z| \leq \lambda, which would force βj=0\beta_j = 0. Here 0.26>0.200.26 > 0.20, so the coefficient survives shrinkage — it's reduced but not zeroed out. Study tip: Memorize the soft-thresholding rule as "subtract λ\lambda from the absolute value, clip at zero, restore the sign." On exam questions, always check whether z|z| exceeds λ\lambda first — that one comparison tells you immediately whether the answer is zero or a shrunken nonzero value.

Question 9

A centered linear model has standardized design matrix XX satisfying XTX=I3X^T X=I_3. Let z=XTy=(3,0.5,2)Tz=X^T y=(3,0.5,-2)^T. Ridge minimizes 12yXβ22+λ2β22\frac{1}{2}||y-Xβ||_2^2+\frac{\lambda}{2}||β||_2^2, whereas lasso minimizes 12yXβ22+λβ1\frac{1}{2}||y-Xβ||_2^2+\lambda||β||_1. Both procedures use λ=1\lambda=1.

Which pair gives the ridge estimate followed by the lasso estimate?

  1. (1.5,0.25,1)T(1.5,0.25,-1)^T and (2,0,1)T(2,0,-1)^T (correct answer)
  2. (2,0,1)T(2,0,-1)^T and (1.5,0.25,1)T(1.5,0.25,-1)^T
  3. (2,0.25,1)T(2,0.25,-1)^T and (1.5,0,1)T(1.5,0,-1)^T
  4. (1.5,0,1)T(1.5,0,-1)^T and (2,0.5,1)T(2,0.5,-1)^T
Explanation: When XTX=IX^TX = I, the OLS estimate simplifies beautifully to β^OLS=XTy=z=(3,0.5,2)T\hat{\beta}_{OLS} = X^Ty = z = (3, 0.5, -2)^T. Both ridge and lasso then reduce to coordinate-wise shrinkage problems, which makes this question entirely about recognizing two distinct shrinkage operators. Ridge with the given objective adds λ2β22\frac{\lambda}{2}\|\beta\|_2^2, yielding the closed-form solution β^ridge=11+λz\hat{\beta}_{ridge} = \frac{1}{1+\lambda}z. With λ=1\lambda = 1, each coordinate is multiplied by 12\frac{1}{2}: (3,0.5,2)T(1.5,0.25,1)T(3, 0.5, -2)^T \to (1.5, 0.25, -1)^T. Ridge shrinks every coefficient proportionally toward zero — none are set exactly to zero. Lasso applies soft-thresholding: β^lasso,j=sign(zj)(zjλ)+\hat{\beta}_{lasso,j} = \text{sign}(z_j)(|z_j| - \lambda)_+. With λ=1\lambda = 1: the first coordinate gives sign(3)(31)=2\text{sign}(3)(3-1) = 2, the second gives sign(0.5)(0.51)+=0\text{sign}(0.5)(0.5-1)_+ = 0 (thresholded to zero), and the third gives sign(2)(21)=1\text{sign}(-2)(2-1) = -1. So the lasso estimate is (2,0,1)T(2, 0, -1)^T. Lasso's key feature — exact zeros via thresholding — eliminates the small coefficient entirely. The correct answer is A: ridge (1.5,0.25,1)T(1.5, 0.25, -1)^T followed by lasso (2,0,1)T(2, 0, -1)^T. Choice B reverses the two estimates. Choice C mixes them incorrectly, preserving the lasso's zero in the ridge solution. Choice D incorrectly zeros out the ridge estimate while leaving the lasso coefficient at its raw OLS value. Your study tip: memorize the two operators — ridge scales by 11+λ\frac{1}{1+\lambda}, lasso soft-thresholds by λ\lambda. Under orthonormal designs, these apply independently per coordinate, making calculation straightforward.

Question 10

A regression problem has more predictors than observations, and the design matrix contains exact linear dependencies. Both ridge and lasso are fit using a strictly positive penalty parameter and squared-error loss.

Which statement about uniqueness is generally correct?

  1. Both coefficient vectors are unique because any strictly positive penalty makes the full objective strictly convex.
  2. Ridge coefficients are unique; lasso coefficients may be nonunique, although all lasso solutions have the same fitted values on the training design. (correct answer)
  3. Neither coefficient vector is unique because a rank-deficient design prevents uniqueness under every convex penalty.
  4. Lasso coefficients are unique; ridge coefficients may be nonunique, although ridge training fitted values remain unique.
Explanation: When you see a question combining penalized regression with rank-deficient design matrices, your instinct should be to separately analyze the loss geometry and the penalty geometry for each method. Ridge regression adds an 2\ell_2 penalty: λβ22\lambda \|\beta\|_2^2. This term is strictly convex and smooth, and when added to any convex loss, the entire objective becomes strictly convex — regardless of whether XTXX^TX is rank-deficient. A strictly convex function has exactly one minimizer, so ridge coefficients are always unique, even when p>np > n or the design matrix is rank-deficient. This confirms answer B's first clause. Lasso adds an 1\ell_1 penalty: λβ1\lambda \|\beta\|_1. This is convex but not strictly convex — it is piecewise linear. Adding a non-strictly-convex penalty to a non-strictly-convex loss (squared error with rank-deficient XX) leaves open the possibility of multiple minimizers. Critically, even when multiple lasso solutions exist, they all produce identical fitted values Xβ^X\hat{\beta} on the training data, because XβX\beta must lie in a convex set where the loss is constant. This confirms B's second clause. A is wrong because strict convexity of the full objective requires the penalty itself to be strictly convex — the 1\ell_1 penalty is not, so this reasoning fails for lasso. C is wrong because it incorrectly assumes rank deficiency breaks uniqueness for ridge; the 2\ell_2 penalty rescues strict convexity regardless. D reverses the correct pairing entirely — it's ridge, not lasso, that guarantees unique coefficients. Your study tip: memorize that 2\ell_2 penalties confer strict convexity → unique coefficients; 1\ell_1 penalties do not → potential non-uniqueness, but fitted values remain unique.