Ridge & Lasso Regularization - Statistics Graduate Level
- Which prior specifications produce these estimators as posterior modes with the stated values of ? Answer: Ridge uses independent priors with ; lasso uses independent Laplace priors of scale with . 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, . The prior contributes , and the penalty structure of that term determines which estimator you recover. For a Normal prior , we have . Combined with the likelihood (scaled by ), the negative log-posterior becomes , which matches ridge with . For a Laplace prior with scale , , giving , which matches lasso with . This is exactly what A states, confirming it as correct. B is wrong because it swaps the priors — Laplace gives an penalty (lasso), not ridge, and the expressions are inverted. C is wrong because it correctly assigns normal→ridge and Laplace→lasso but flips the relationships: the correct ratios are and , not and . 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 , peaked tent (Laplace) → linear . Always derive by scaling the likelihood by , so it appears in the numerator of the ratio.
- Using the one-standard-error rule, which penalty is selected, and what is the principal reason for that choice? Answer: , because it is the largest candidate within one standard error of the minimum, favoring greater regularization. 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 . Then, among all candidates with larger penalties than the minimizer (i.e., more regularized models), select the largest whose cross-validation error still falls at or below that threshold. Why largest? Because a larger 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, has error ✓, while has error ✗. So C is correct: 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 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 , then pick the largest (not smallest error) that clears that bar.
- Which statement best compares ridge and lasso in this setting? Answer: Ridge uniquely assigns , whereas lasso can have multiple nonnegative splits of the same combined coefficient. When two predictors are perfectly collinear (), 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 . Subject to a fixed sum , this strictly convex penalty has a unique minimizer. Minimizing over all splits of yields — 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 . When , any split with and satisfying yields the same lasso penalty value . Because the 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., ) would increase the 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.
- Which statement about the corresponding constrained formulation is necessarily valid? Answer: solves the least-squares problem subject to , although the constrained coefficient solution need not be unique. 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 and the constrained problem are equivalent in a precise sense via KKT conditions. For any solution of the penalized problem, setting means is feasible for the constrained problem. The KKT conditions for both problems are satisfied by the same point with the penalty parameter acting as the Lagrange multiplier. Therefore is indeed a solution to the constrained problem at that value of . However, because the objective is convex but not strictly convex (e.g., when is rank-deficient or columns are collinear), the constrained problem may have multiple optimal solutions — is a solution, not necessarily the unique one. This makes B correct. A is wrong because the constraint bound need not equal ; these are dimensionally different objects and the relationship between them depends on the data. C is wrong because the penalty does not make the full objective strictly convex in — strict convexity requires the loss term alone to be strictly convex, which fails when 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.
- What are the expectation and variance of the ridge estimate along this eigenvector? Answer: Expectation and variance When analyzing ridge regression along a single eigenvector, you should work in the rotated coordinate system where is diagonal. Along one eigenvector with eigenvalue , the ridge estimator shrinks the OLS estimate by the factor , 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: . This confirms the expectation is . Variance: The variance of the OLS estimator along this eigenvector is . Ridge applies the shrinkage factor squared to this variance: . So the correct answer is C: expectation and variance . Choice A gets the expectation right but uses the unsquared shrinkage factor on the variance: , a common computational slip. Choice B incorrectly reports the expectation as , 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.
- Which pair gives the ridge estimate followed by the lasso estimate? Answer: and When , the OLS estimate simplifies beautifully to . 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 , yielding the closed-form solution . With , each coordinate is multiplied by : . Ridge shrinks every coefficient proportionally toward zero — none are set exactly to zero. Lasso applies soft-thresholding: . With : the first coordinate gives , the second gives (thresholded to zero), and the third gives . So the lasso estimate is . Lasso's key feature — exact zeros via thresholding — eliminates the small coefficient entirely. The correct answer is A: ridge followed by lasso . 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 , lasso soft-thresholds by . Under orthonormal designs, these apply independently per coordinate, making calculation straightforward.
- What is the effective degrees of freedom of the ridge fit, defined as the trace of its smoothing matrix? Answer: , obtained by summing the three ridge shrinkage factors 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 , and its trace — the effective degrees of freedom — equals , where are the singular values of . Here, the squared singular values are , , and , with . Plugging in: This confirms D is correct. Choice A (3.0) would be correct only for OLS with a full-rank system — ridge shrinkage strictly reduces effective df below the number of coefficients. Choice B (2.0) reflects the rank of (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 ... actually it simply averages them as , then doubles — a tempting but unjustified manipulation. The correct operation is a sum, not a rescaled average. Your study tip: memorize the formula 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.
- What is the updated value of ? Answer: , because soft thresholding reduces the magnitude by Whenever you see a lasso coordinate-descent question, your mental anchor should be the soft-thresholding operator. Because (standardization), the closed-form update for is simply: where . Plugging in and : The penalty shrinks the magnitude by exactly , 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 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 ; the lasso update is always shrunk toward zero. Choice C would be correct only if , which would force . Here , so the coefficient survives shrinkage — it's reduced but not zeroed out. Study tip: Memorize the soft-thresholding rule as "subtract from the absolute value, clip at zero, restore the sign." On exam questions, always check whether exceeds first — that one comparison tells you immediately whether the answer is zero or a shrunken nonzero value.
- Which statement about uniqueness is generally correct? Answer: Ridge coefficients are unique; lasso coefficients may be nonunique, although all lasso solutions have the same fitted values on the training design. 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 penalty: . This term is strictly convex and smooth, and when added to any convex loss, the entire objective becomes strictly convex — regardless of whether is rank-deficient. A strictly convex function has exactly one minimizer, so ridge coefficients are always unique, even when or the design matrix is rank-deficient. This confirms answer B's first clause. Lasso adds an penalty: . 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 ) leaves open the possibility of multiple minimizers. Critically, even when multiple lasso solutions exist, they all produce identical fitted values on the training data, because 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 penalty is not, so this reasoning fails for lasso. C is wrong because it incorrectly assumes rank deficiency breaks uniqueness for ridge; the 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 penalties confer strict convexity → unique coefficients; penalties do not → potential non-uniqueness, but fitted values remain unique.
- How does this rescaling affect the role of that predictor under ordinary ridge or lasso penalization? Answer: It makes the predictor effectively less penalized because an equivalent fitted effect requires a coefficient one-tenth as large. 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 and lasso penalizes , each multiplied by . Here's the key insight. Suppose the true relationship is . If you replace with , then to produce the same fitted contribution to the model, you only need . A coefficient ten times smaller is subject to far less penalization — under ridge, is 100 times smaller than ; under lasso, is ten times smaller. So the penalty barely restrains this predictor compared to others on their original scales. Answer A is correct: rescaling 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 is adjusted accordingly. Using the same breaks that invariance entirely. Answer D incorrectly claims ridge is unaffected; both penalties operate on coefficient magnitude and are equally disrupted by the fixed . 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.